• Activity
  • Votes
  • Comments
  • New
  • All activity
    1. What programming/technical projects have you been working on?

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?

      8 votes
    2. Help with Email & Changing Name Servers/Webhost?

      Alright, time to ask for help. I designed a website for my cousin using Wordpress, hosted via BlueHost. It's 99% done. The problem: she'd originally registered her domain through wordpress.com....

      Alright, time to ask for help. I designed a website for my cousin using Wordpress, hosted via BlueHost. It's 99% done.

      The problem: she'd originally registered her domain through wordpress.com. She also has an email through that, which she accesses via Google Workplace. We've transferred the domain, but the nameservers are still registered to wordpress.com. I've found the guides for transferring nameservers on BlueHost and wordpress.com, but this is a step above what I've dealt with in the past.

      My main concern and frustration are the email. She's already using it for work, and I want to make sure there's no downtime, but I... honestly have no idea how it's even set up, right now. Or how this would work when transferring hosts entirely. Attempts to search it haven't been too helpful for me.

      So my questions: How will changing nameservers impact the email? Would updating them potentially just... break her email entirely? Need her to set up the email separately? And if she does, can it be kept through Google Workplace/Gmail since that's what she's already using? Is it fine to leave it as-is? I assume not but her wordpress.com account shows that it expires in 2027, so...?

      Just, please help.

      7 votes
    3. Computer Airflow

      I have a standard Meshify 2 that has a lot of space in it. Its pretty much only got my GPU (3080) and a few drives. Anyway, it idles around 40C in my office, which is fine. Here's my question ---...

      I have a standard Meshify 2 that has a lot of space in it. Its pretty much only got my GPU (3080) and a few drives. Anyway, it idles around 40C in my office, which is fine.

      Here's my question --- I've got five 140mm fans, not including the normal exhaust on the back. Here's the setup I did today.

      • Front (top to bottom): two intake
      • Top (front to back): optional intake (comes on at 50C), two exhaust

      The top exhausts run around 50rpm slower than the two intakes. I read that I should build negative pressure. This case is covered in filters, too, so dust hasn't been an issue.

      Under load (GTAV) the system maxes out around 60C.

      Is that top optional intake a waste of time?

      Apologies for the terrible tagging...

      7 votes
    4. Auto-mute mode in ALSA might be the reason you can't use your speakers with headphones plugged in

      Problem: I recently switched back to a desktop as my main computer, and was surprised to learn I couldn't use my speakers if my headphones were plugged in. I don't use a desktop environment (just...

      Problem:

      I recently switched back to a desktop as my main computer, and was surprised to learn I couldn't use my speakers if my headphones were plugged in.

      I don't use a desktop environment (just Sway), so I rely on pavucontrol as a GUI to control my audio.

      I could use my headphones just fine while my speakers were plugged in, but when I switched to my speakers in pavucontrol's interface, they would not output audio. My headphones would stop playing (as expected), and pavucontrol's little "dancing bar" would indicate that the speaker's port was processing an audio signal (as expected), but no sound was actually being produced.


      Solution:

      The culprit ended up being something called "Auto-Mute" in ALSA. To disable auto-mute mode, you can either:

      1. Run the command amixer sset "Auto-Mute" unmute in a terminal
      2. Run the command alsamixer in a terminal
        2.1 Press F6 and select your sound card
        2.2 Ensure you're viewing playback settings by pressing F3
        2.3 Move the item selection over until you've selected auto-mute mode
        2.4 Press the down arrow key to switch it to "Disabled"

      That fixed my issue.

      For me, auto-mute mode stayed disabled after a reboot. You might need to run the command alsactl store to make the configuration persistent though. The Arch Linux Wiki article on ALSA has a "tips and tricks" section that goes into more detail:

      https://wiki.archlinux.org/title/Advanced_Linux_Sound_Architecture#Tips_and_tricks

      17 votes
    5. What programming/technical projects have you been working on?

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?

      11 votes
    6. SEO or traffic direction help

      This will include a shameless plug as I need someone to help analyse what I can do to improve it, pretty please. I am out of ideas. So, Https://thunderlizard.co.uk is my wife's website. It is a...

      This will include a shameless plug as I need someone to help analyse what I can do to improve it, pretty please. I am out of ideas.

      So, Https://thunderlizard.co.uk is my wife's website. It is a personalised clothing and gifts store based in the UK. It's hosted on 20i, and uses their CDN and caching, which isn't that great but it works okay.

      It's Wordpress and Woocommerce and is store only, no blog at this time. Even with Rankmath installed, using SEO heavy product descriptions (and short descriptions), tags, categories, etc, and using both Index Now and Google Products plugin, it's not scoring well or showing up much in product or general searches.

      I've read plenty of guides and put into practice as much as I can. The next thing to try is backlinks from quality sources, which Google are supposed to be phasing out. The issue is, what am I backlinking to if it's not simply the products? Can anyone advise me on what I can do to help?

      A lot of her sales come via her Etsy store, but they absolutely destroy your profit margin with taxes and service costs. When she's making only a couple of quid here and there, profit margins matter. We're trying hard to push people towards the website, hence needing advice to allow people to find it. Is it simply that it's a hugely flooded market and it's like swimming in the Pacific and trying to stand out?

      Rebuilt - please review - 2024/11/14

      6 votes
    7. What programming/technical projects have you been working on?

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?

      14 votes
    8. Ideas for a side project I'm working on -- an RPG to help me curb my alcohol consumption

      Preface: I am familiar with Habitica. This idea would probably scratch a similar itch, but I'm also using this as an opportunity to sharpen my Rust skills. My idea came about when I was trying to...

      Preface: I am familiar with Habitica. This idea would probably scratch a similar itch, but I'm also using this as an opportunity to sharpen my Rust skills.

      My idea came about when I was trying to find out some new tactics to curb my alcohol consumption, which isn't quite out of control yet, but I don't want to tempt fate.

      I've also really liked the progression aspect of RPGs. What if I could gamify my quest to not drink alcohol and make it sort of a fun, unique RPG experience at the same time?

      In the broadest sense, it would go something like this:

      • You open the game up, ideally each day. You are instantly prompted: "Did you drink yesterday?" (and perhaps it will go back a few more days if you skipped).
      • For each day you answer "no", you are rewarded with some sort of tokens, credits, etc. -- currency to play the game. If you answer "yes", maybe you get penalized somehow.
      • Then, you pick up your journey, which is sort of a standard RPG experience -- fighting battles, buying gear, learning spells, leveling up, advancing through the world, you name it.
      • The game should get progressively more difficult, but should not have an ending, as "quitting alcohol" does not have an ending either. At the same time, it should scratch the RPG progression itch.

      The initial game concept I came up with is just one that I see as the quickest way to get this off the ground, which would be something CLI-based, where you are presented with a menu ("visit shop, enter arena, view equipment" etc.). You spend battle tokens to enter into arena battles, which reward experience points, money, and gear. You level up, work towards a build (there needs to be a way to respec because restarting isn't really an option), and progress through the arena.

      In total, you would probably spend less than 5 minutes every day playing the game, which is by design. It should be an every day habit. But, there should be enough entertainment value that, if I'm not getting those sweet battle tokens by not drinking, I'm missing out on experiencing the game (or, I could lie, which defeats the purpose of the app).

      So that's where I'm at right now. I'm really interested to hear your thoughts, ideas, critiques, etc. before I spend a free weekend building out a concept.

      Some questions in particular:

      • I was leaning toward just building this in CLI because it will be extremely simple. It could just be a matter of STDINs. However, I'm open to other Rust-based options. Is there a good Rust UI toolkit or web framework that is worth looking into that would make this a little more modern?
      • What about game features? What could make this a really fun experience, while also balancing the whole concept of being built around your life and your habits?

      In the end, this is a deeply personal project that would be built, first and foremost, for my specific needs. But that's not to say I couldn't build it with some scalability in mind. Rather than asking about alcohol, perhaps the "habits" can be customized, and so forth.

      Anyway, have a great weekend!

      23 votes
    9. Linux Mint desktop environment recommendations?

      I am planning on switching to Linux Mint as my first Linux daily driver. I know someone who's used Cinnamon (the default) and it works fine, but I was wondering if the other options officially...

      I am planning on switching to Linux Mint as my first Linux daily driver. I know someone who's used Cinnamon (the default) and it works fine, but I was wondering if the other options officially provided (Xfce and MATE) are any better? I have a little bit of (pretty trivial) GNOME experience on Ubuntu, but I don't really understand the pros and cons of different DEs. I've used KDE on the Steam Deck, and I hear that's a popular one, but can I get that on Mint?

      12 votes
    10. Detect video noise using FFMpeg

      Hi Folks I've been working on an autoconversion Bash script to pick up videos and convert them to AV1. Yes, I know converting a source to another source means degradation and yada yada yada, but...

      Hi Folks

      I've been working on an autoconversion Bash script to pick up videos and convert them to AV1. Yes, I know converting a source to another source means degradation and yada yada yada, but it's something I can live with as most of my sources are of very high quality to begin with, and I'm going for space-saving. Plus, my eyes aren't what they once were.

      The conversion into AV1 I'm mostly happy with. I'm currently going through some old 90s shows which are of lesser quality, so they would need a little help to look better with AV1 by adding some natural film grain, else AV1 makes them look a little bit too clean.

      I can easily pop into the script and enable film grain in the variables, or add in a simple option, but that's boring and tedious. Why do that when we can automate the world :)

      Where I have got to is using the signalstats filter. The issue I have is I don't know how to analyse it's output enough to work out whether I should or shouldn't enable film grain or not. I know it's subjective either way.

      Does anyone have experience with this? The output per frame looks like:

      frame:1438 pts:59977 pts_time:59.977
      lavfi.signalstats.YMIN=0
      lavfi.signalstats.YLOW=0
      lavfi.signalstats.YAVG=60.6913
      lavfi.signalstats.YHIGH=149
      lavfi.signalstats.YMAX=239
      lavfi.signalstats.UMIN=91
      lavfi.signalstats.ULOW=108
      lavfi.signalstats.UAVG=121.955
      lavfi.signalstats.UHIGH=131
      lavfi.signalstats.UMAX=148
      lavfi.signalstats.VMIN=124
      lavfi.signalstats.VLOW=128
      lavfi.signalstats.VAVG=134.535
      lavfi.signalstats.VHIGH=146
      lavfi.signalstats.VMAX=154
      lavfi.signalstats.SATMIN=0
      lavfi.signalstats.SATLOW=0
      lavfi.signalstats.SATAVG=9.74682
      lavfi.signalstats.SATHIGH=27
      lavfi.signalstats.SATMAX=43
      lavfi.signalstats.HUEMED=147
      lavfi.signalstats.HUEAVG=162.949
      lavfi.signalstats.YDIF=0.737433
      lavfi.signalstats.UDIF=0.642897
      lavfi.signalstats.VDIF=0.162755
      lavfi.signalstats.YBITDEPTH=8
      lavfi.signalstats.UBITDEPTH=8
      lavfi.signalstats.VBITDEPTH=8

      I'm happy to analyse a random 60-second segment and then grab an average from a couple of these outputs, but I'm not sure if this is a good method or not. I'm asked a couple of the biggest LLMs, they have come back with older ways that no longer exist in ffmpeg 7.1.

      I'm trying not to use too many other pieces of software in this script. The dependencies are fairly simple with ffmpeg, awk, grep, etc., the kind of thing you get on nearly every distro of Linux. Any thoughts and/or ideas?

      8 votes
    11. Advice Needed: Simple and Reliable notifications

      I have a long standing problem that probably has several good solutions, I just haven't been able to figure them out. So here I am, asking you. I'm selfhosting some services, a mix of selfbuilt...

      I have a long standing problem that probably has several good solutions, I just haven't been able to figure them out. So here I am, asking you.

      I'm selfhosting some services, a mix of selfbuilt and open source software. But some things I don't want to selfhost. Notably backups and alerts/notifications. For backups I have a solution which works well in every regard except one - I don't always get alerted when things fail, because the way I send myself those alerts is failing more than the actual backups.

      Currently I'm using python and gmails smtp interface to send myself email, but gmail disables my smtp access from time to time, and it's really easy not to notice not getting an email. I've tried sending the email regardless of whether the backup failed or not, but I've noticed several times that I still don't notice if the they stop coming.

      Now on to my requirements/wishlist.

      1. I'm already using s3 glacier at aws for the backups, so preferrably something in the aws space.
      2. I would like to get an popup/toast on my phone when a message is being sent. And the ability to review messages later.
      3. I would like as few moving parts as possible.
      4. I don't want to write my own client.
      5. I want it to be cheap, and if there's a cost I prefer to pay it at a place where I'm already paying, meaning aws (or possibly proton).
      6. I want a stable service.
      7. I prefer to manage as little as possible of the infrastructure.
      8. I'd like a simple programmable interface that can't easily fail. E.g. http based.
      9. It's no problem if messages are not received instantly, I could easily tolerate delays up to 24 hours.

      As you may have noticed I'm pretty much expecting there to be something in aws that I can use, but aws documentation is so abstract, that I often don't understand what the point of something is or how I'm supposed to use it.

      9 votes
    12. Cmake strategies or alternatives for building (different) code for different platforms

      Okay, so this is getting really long, I'll put the ask up front: I have a strategy, I think it is reasonable. Now is a point where I can easily change things, and it won't be so easily later. So...

      Okay, so this is getting really long, I'll put the ask up front: I have a strategy, I think it is reasonable. Now is a point where I can easily change things, and it won't be so easily later. So I'm looking to see if anyone has trod this road before and can recommend any of:

      1. a different build system that will be easier to manage for this use case
      2. a different strategy for using cmake that will be easier to manage
      3. any gotchas I should be aware of, even if you don't have better solutions.

      Background

      I have a project I'm working on where the ultimate deliverable will be a hardware device with 3-4 different microcontrollers coordinating with each other and interacting with a PC-ish platform. This is a clean rewrite of a C++ codebase. Due to the microcontroller (and some of the PC APIs) being C++, the language of choice for most of it is likely to remain C/C++.

      I'm succeeded in setting up a build system for embedded code. The old code was arduino, so it relies a lot on those libraries, but I've managed to set up enough custom cmake to get off of the ardunio tools altogether, even if I am borrowing their libraries and some of the "smarts" built into the system about setting build flags, etc. So far, I have a dockerized toolchain (cmake + make + gcc-arm-none-eabi) that can successfully build ARM binaries for the target platform.

      The thing that I'm up against now is that I'd like to have a robust off-target unit testing infrastructure. My ideal case is that everything in the embedded system will be broken down into libraries that have clear interfaces, then to use unit tests with mocks to get high coverage of test cases. I'll still need some HIL tests, but because those are harder to set up and run, I want to use those for integration and validation.

      In terms of OSes available, we're mostly working on Windows systems using WSL for linux. I'd like things to be as linux-based as possible to support CI on github, etc.

      Goals and Cmake limitations

      I started out using cmake because I hate it least of the tools I've used, and I am at least pretty far up the learning curve with it. But a limitation I'm hitting is that you can't do a mixed compile with two different toolchains in one build. The reasons why cmake has this limitation seem reasonable to me, even if it is annoying. You can easily change the toolchain that your code is built with, but that seems to be largely targeted at cross-compiling the same binaries for different systems. What I want to do is:

      • build my code libraries with embedded settings for linking to the embedded binaries and build those embedded binaries (the end product)
      • build my code libraries with linux-ish tools and link them against unit tests to have a nice CI test process
      • (eventually) also be able to build windows binaries for the PC components -- when I get to that point, I'd like to get away from the MSVC compilers, but will use them if I have to

      Current strategy

      My current plan is to configure a library build like this (pseudocode):

      add_library(mylib sources)
      if (BUILD_TYPE STREQUAL BUILD_TYPE_EMBEDDED)
      <embedded config>
      elseif (BUILD_TYPE STREQUAL BUILD_TYPE_LINUX)
      <linux config, if any>
      endif()
      
      #unit tests are built for each library
      if (BUILD_TYPE STREQUAL BUILD_TYPE_LINUX)
      add_executable(mylib_test sources test_sources)
      target_link_libraries(mylib gtest etc.)
      endif()
      

      For the rollup binaries, I make the whole target conditional

      if (BUILD_TYPE STREQUAL BUILD_TYPE_EMBEDDED)
      add_executable(myembedap sources)
      target_link_libraries(mylib)
      endif()
      

      Then the build script (outside cmake) is something like

      cd build/embedded
      cmake <path to src> <set embedded toolchain> -DBUILD_TYPE=embedded
      make
      cd ../../build/linux
      cmake <path to src> -DBUILD_TYPE=linux
      make
      

      Things I like about this strategy:

      • It's relatively simple to do all the builds or just one of the builds (that control would go in the shell script)
      • I have one source tree for the whole build
      • It lets configuration be near code
      • It lets tests be near code.
      • I think it's extensible to cover the PC component builds in the future

      Things that worry me:

      • It feels like a hack
      • Support for off-target tests feels like it should be solved problem and I'm worried I'm missing something

      Thanks for reading. If you made it this far, you have my gratitude. Here's a video with funny out of office messages that I enjoyed.

      6 votes
    13. best option for a bare-bones message board/forum?

      hello tildes, i am searching for a bare-bones forum/message board. i'll describe what i need and perhaps someone can point me in the right direction: must have the ability to create an account...

      hello tildes,

      i am searching for a bare-bones forum/message board. i'll describe what i need and perhaps someone can point me in the right direction:

      must have the ability to

      • create an account
      • create topics with the ability to reply
      • fully customizable front-end (html/css) so i can make it match my website
      • either self-host or use a custom domain on ext hosting

      unimportant but nice to have

      • display images in posts via external urls
      • different boards (categories?) to post into (would be nice but not vital)
      • nested replies (or some visual way to see what you're replying to)

      free would be ideal (dreams are nice) but probably wouldn't want to spend more than $5/month as this is a supplement to a website where i don't expect much traffic at all due to the nature of the project. no images/video/audio will be hosted ideally.

      i'm ok with "hacker news" or "reddit-like" software but my backend knowledge if very limited. for instance, i looked into self-hosting lemmy but i don't understand how to setup docker. options like phpbb would be fine if i could strip away everything aside from the above-mentioned features.

      i want it to be extremely simplistic in appearance and for the end-user (tildes is a great example of the simplistic end-user experience). tildes could be a cool option but i think getting it setup is a bit out of my skill-range.

      can anyone offer any suggestions/guidence?

      edited to emphasize important aspects and clarify things that are not vital but would be nice to have.

      15 votes
    14. Best solution to extract PDF data?

      Hi folks-- To those more knowledgeable than I am: What would be the best local solution to extract numerical data from a batch of PDF file reports? The values I want are interspersed among word...

      Hi folks--

      To those more knowledgeable than I am:

      What would be the best local solution to extract numerical data from a batch of PDF file reports? The values I want are interspersed among word processor formatted tables and irrelevant text. The text and table formatting are (nearly) identical across reports. The data I want vary across reports. The PDFs are not of images...I can select and copy text without OCR. I have thousands to process, and the data themselves are confidential (I have clearance) and cannot be shared. I can use Windows or Linux but no MacOS.

      I am technically inclined, so I bashed my head against regular expressions just enough to use notepad++ to find and delete most of the irrelevant stuff and make a CSV, but it's a hacky, imprecise method and not nearly automated enough for batches. For reference, I don't code for a living or even as a hobby, but I use R and bash, am familiar with IDEs, and can follow pseudocode well enough to edit and use scripts.

      Any thoughts? Thanks in advance!

      24 votes
    15. What programming/technical projects have you been working on?

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?

      14 votes
    16. Are Feeds - like RSS or Atom feeds - Really Worth It For A Personal Blog?

      I stopped blogging several years ago. Over the last few years, I've been writing plenty of private essays. However, very recently I have been considering starting to publish my writing and, well,...

      I stopped blogging several years ago. Over the last few years, I've been writing plenty of private essays. However, very recently I have been considering starting to publish my writing and, well, start blogging again publicly. I have no desire to waste time on templates, look-and-feel, visual stuff, etc. I just want to write a bog-standard html file, and then publish it...I do value leveraging html elements that help with meta data (e.g. microformats, etc.), but don't care about how things look - and these elements that i value are all invisible to most users anyway. I would be fine with just crafting html by hand, deploying it via sftp or some boring deployment pipleine, and that's it. But, then, I started thinking: what about having an RSS/Atom feed? I used to consume content via an rss reader, but have not done so in years. But, I don't want to manually craft that feed file; nope, sorry. But, I've heard a comment or two from acquaintances that rss/atom feeds and syndication are really something that people - like my potential audience - might really desire. So, I should really consider having one. This means that either I have to craft several things manually (from the blog post itself, the list of archived posts, the feed file, etc.), or use a static site generator that will handle all this for me, etc. I don't want to get trapped down a rabbit hole where I am spending so much on the tooling, the scaffolding, twiddling with templates, or the publish process itself. I just want the minimal for writing and publishing, I want it to live on my domain name, and that's it. Am I crazy or extremely lazy for not wanting to generate an RSS/Atom feed file?

      So, here's my ask of you all nice people: are feeds like RSS/Atom feeds even worth it? If so, does anyone have recommendations for a manual process where i can craft the blog post's html by hand, but somehow leverage a portion of a static site generator (or some minimal tool) to only automate the creation of the RSS/Atom feed file? Thanks in advfance for any constructive feedback!

      P.S. - One thing that re-ignited my desire both to write more in public, and keep it alive with minimal fuss was my re-reading of Jeff Huang's excellent "This Page is Designed to Last" post: https://jeffhuang.com/designed_to_last/

      19 votes
    17. What programming/technical projects have you been working on?

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...

      This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?

      18 votes
    18. Real-time speech-to-speech translation

      Has anyone used a free, offline, open-source, real-time speech-to-speech translation app on under-powered devices (i.e., older smart phones)? There are a few libraries that written that...

      Has anyone used a free, offline, open-source, real-time speech-to-speech translation app on under-powered devices (i.e., older smart phones)? There are a few libraries that written that purportedly can do or help with local speech-to-speech:

      I'm looking for a simple app that can listen for English, translate into Korean (and other languages), then perform speech synthesis on the translation. Although real-time would be great, a short delay would work.

      RTranslator is awkward (couldn't get it to perform speech-to-speech using a single phone). 3PO sprouts errors like dandelions and requires an online connection.

      Any suggestions?

      6 votes
    19. What was your first programming language, what languages do you know now, and what tips do you have for those trying to learn any of those?

      What was your first programming language, what other languages (if any) do you know now, and what tips do you have for those trying to learn any of those? Whether those tips are for beginners or...

      What was your first programming language, what other languages (if any) do you know now, and what tips do you have for those trying to learn any of those? Whether those tips are for beginners or even advanced, to do with APIs, or if you've got a good library to share.

      53 votes
    20. Formatting Maven Errors

      Maven conveniently puts all errors at the end of a build. However, the error messages are not formatted. The errors messages are presented as once giant line via word wrap. I'm on a windows box,...

      Maven conveniently puts all errors at the end of a build.

      However, the error messages are not formatted. The errors messages are presented as once giant line via word wrap.

      I'm on a windows box, using Git Bash to run maven.

      I could futz around and make a macro in Notepad++ for formatting the error messages into a more readable format.

      Before I go that route I was wondering if maven had any handy settings or if there is some handy utility that will do that for me.

      3 votes