• Activity
  • Votes
  • Comments
  • New
  • All activity
    1. Volunteer software developers for open source projects

      Where do you find volunteers to help with open source projects? Such as: https://www.codeshelter.co https://hacktoberfest.com https://summerofcode.withgoogle.com For example, with KeenWrite, I'm...

      Where do you find volunteers to help with open source projects? Such as:

      For example, with KeenWrite, I'm looking for help help with a specific feature that could be applicable to a wide audience (i.e., academia and technical writers). The lion's share of the effort for cross-references would be an extension or change to the flexmark-java library: parsing a de facto standard cross-reference syntax, rather than direct changes to my text editor.

      7 votes
    2. What are the benefits of using Linux for the less computer competent?

      I've been experimenting with Ubuntu and Mint on VirtualBox for a few days, and I fail to see the utility for less tech savvy people such as myself. I have experience in HTML and CSS as well as...

      I've been experimenting with Ubuntu and Mint on VirtualBox for a few days, and I fail to see the utility for less tech savvy people such as myself. I have experience in HTML and CSS as well as dabbling in Codecademy for recreation, but higher level computing is new to me. I don't know how to navigate a terminal nor how to stop Windows from crashing, but I'm open to learn.

      72 votes
    3. TIL that you can have a "chiptunes" like music play when GRUB (bootloader) loads

      I had to use the Arch Linux live boot usb today and I was pleasantly surprised to hear a short beepy music play when it got booted. It felt quite welcoming! In my particular case, it served quite...

      I had to use the Arch Linux live boot usb today and I was pleasantly surprised to hear a short beepy music play when it got booted. It felt quite welcoming!

      In my particular case, it served quite useful too as my laptop currently does not have an internal display, and nothing shows up on the external HDMI monitor until after the OS boots up, so it was quite reassuring as well.

      I have now configured my GRUB to play a small sound as well (since I have multiple bootloaders installed).

      How To

      1. You need to edit the config file /etc/default/grub.
      2. If you simply un-comment the line starting with GRUB_INIT_TUNE, it will enable the default tune which is a single and very short "beep" sound.
      3. Or, you can edit that line to have it how you want. Some suggestions: https://jdnash.com/api-makers/grub_init_tune-necropolis/
      4. Then update the grub config (requires root): grub-mkconfig -o /boot/grub/grub.cfg

      And you're done.

      Relevant Arch Wiki: https://wiki.archlinux.org/title/GRUB/Tips_and_tricks#Play_a_tune

      30 votes
    4. How do Reddit, Lemmy, Tildes, etc. process, store, and serve ranked threads/links?

      I'm familiar with how the ranking algorithms work on a high level. What I'm curious about is to how those algorithms are actually applied. How do these platforms actually apply the ranking...

      I'm familiar with how the ranking algorithms work on a high level. What I'm curious about is to how those algorithms are actually applied.

      How do these platforms actually apply the ranking algorithms so that the user sees the threads appropriately ordered? My knowledge is limited to PHP and MySQL, so I'm looking at it through the lense of those systems. I've thought of a few possible ways, but all of them seem pretty resource intensive.

      1. Maintain a table of threads with all relevant information required to calculate ranking, as well as ranking itself. A server side script executing on a routine basis every X minutes (cron job?) updates the rankings on all the threads, so they can be easily ordered. However, people most likely don't care about threads >Y days old, so those can be excluded or automatically deranked somehow.

      2. Maintain a table of threads with all relevant information required to calculate ranking. When a user visits, the last X threads (again, users probably don't care about really old stuff) are pulled out of the database and ran through a ranking and sorting algorithm, reordered and displayed to the user. This seems the most resource intensive?

      I am by no means a professional developer, but I've been dabbling recently and the concept of how these large quantities of data are ranked both perplexes and interests me.

      15 votes
    5. What's a good way to test a website that runs on edge nodes?

      I have a little web app running on Deno Deploy and I want to see how it handles people connecting from multiple regions. There's a BroadcastChannel class that lets you send messages to any servers...

      I have a little web app running on Deno Deploy and I want to see how it handles people connecting from multiple regions. There's a BroadcastChannel class that lets you send messages to any servers running in other regions, but to test it, I need to make connections in multiple regions, so there's more than one server running.

      What are good ways to test this, either interactively or by writing tests? Maybe use a VPN? What's your favorite?

      4 votes
    6. TIL that in vim, you can press <C-Tab> (or g<Tab>) to jump to the last accessed tab page

      Previously I used to have this in my .vimrc: if !exists('g:lasttab') let g:lasttab = 1 endif nmap <C-Tab> :exe "tabn ".g:lasttab<CR> au TabLeave * let g:lasttab = tabpagenr() Courtesy of:...

      Previously I used to have this in my .vimrc:

      if !exists('g:lasttab')
        let g:lasttab = 1
      endif
      nmap <C-Tab> :exe "tabn ".g:lasttab<CR>
      au TabLeave * let g:lasttab = tabpagenr()
      

      Courtesy of: https://stackoverflow.com/a/2120168

      But while going through the help docs today, I stumbled across this mapping and am glad to find that this now exists by default. When it got added, however, I don't know.

      18 votes
    7. Best Linux Distro for gaming/noob

      Hey y’all. Recently picked up a Cyberpower prebuilt. Looking to install a Linux distro on it for gaming. Currently have Ubuntu on my laptop, so I’m not a total noob, but my experience is still...

      Hey y’all. Recently picked up a Cyberpower prebuilt. Looking to install a Linux distro on it for gaming. Currently have Ubuntu on my laptop, so I’m not a total noob, but my experience is still low. Not a big fan of having to use the terminal. Any distros y’all would recommend? Am leaning toward Pop_OS or SteamOS.

      7 votes
    8. MATLAB learning resources for software engineers

      I'm starting grad school in neuroscience/biomedical engineering soon, and one of my most dreaded parts of it is inevitably having to develop Matlab code. I understand why people use it -- it's...

      I'm starting grad school in neuroscience/biomedical engineering soon, and one of my most dreaded parts of it is inevitably having to develop Matlab code. I understand why people use it -- it's arguably best in class at a lot of engineering tasks, and the matrix-first approach of the language makes it very fast to prototype things if you think like a mathematician/engineer.

      However, the language also seems to actively discourage good software practices, and many frequently used scientific projects have atrocious code. Think python dependency management is bad? How about NO DEPENDENCY MANAGEMENT? Yes, that's right, the way you share code in matlab is by importing collections of loose files from github/matlab file exchange. The Matlab neuroimaging code that I have worked has also frequently abused the workspace to share state implicitly between scripts, which makes the code virtually incomprehensible. Instead of using packages to create namespaces, common practice is give function names a prefix and import them into the global namespace.

      I know there's multiple large companies that rely on Matlab for their products, so it must be doable; I just haven't seen it for myself yet.

      Do you guys have any experience developing in Matlab, and if so, are there any good resources to learn how to build robust software in it? What are some open source projects that have good Matlab code?

      16 votes
    9. Git branched on its own, WTH happened?

      I cannot push nor pull to/from my local repo to/from my remote. I get the message "Your branch and 'origin/main' have diverged", etc. I will be able to fix it, I'm already in the process of...

      I cannot push nor pull to/from my local repo to/from my remote. I get the message "Your branch and 'origin/main' have diverged", etc.

      I will be able to fix it, I'm already in the process of refreshing my memory on how to rebase this cleanly.

      But ... I am the only person working on this. I have only one local and one central/remote repository. And I never made a branch.

      It's just me, working on one computer, right here ... make a few commits locally, then push 'em ... make a few commits locally, then push 'em. That is my entire workflow.

      How in the hell did I end up with "my branch" (???) and the origin/main branch being in conflict with each other?

      Any Git gurus care to take a stab at this?

      Thanks in advance.


      Edit, more info:

      I am guessing here, but for awhile I was working in a VM on my local machine ... but Android SDK is too much of a resource hog, so I committed and pushed everything on the VM, shut it down, and then pulled latest down to my actual machine ... or at least, that's how I remember it.

      My working theory is that, somehow, I screwed up that "switching between machines" process, although, so far, no clue as to how/why I did.

      Theory #2 is that Android SDK did something sneaky/stupid behind the scenes -- my last several commits have been done through the Android Studio IDE, not directly in the terminal.


      Last Edit:

      D'oh!

      Found it. I made a couple of "quick changes" to the project's README.md file directly in the remote forge, and that's what screwed me up.

      10 votes
    10. Is it possible to build a sustainable image and video hosting service?

      The history of the web is littered with with many a dead image/video hosting service. Echos of their existence plague older forums in the form of broken links and images. It seems like they all...

      The history of the web is littered with with many a dead image/video hosting service. Echos of their existence plague older forums in the form of broken links and images. It seems like they all follow the same path, starting up as the new "simple" service that just hosts images, no fuss. But then as interest grows, so do costs, and the service owners have to scramble to monetize. Generally this is done by stuffing the place full of ads until everyone leaves. Alternatively the owners are stubborn and stick to their guns, until they inevitably have to shut down due to drowning in costs. When they do shut down, millions of assets are lost and the graveyard of broken images across the web grows some more.

      https://gfycat.com/ is the latest notable victim of this.

      With all the recent social media turmoil, there as been lots of exploration of alternative sites, and all of them have to overcome the problem of hosting media in one way or another.

      Tildes obviously does this by avoiding it entirely which, while a very effective solution, is just handballing the problem elsewhere. Users will still want to post images and videos but they will just have to find alternative hosts. Over time those hosts will die and Tildes posts will be filled with dead links.

      Mastodon has similar problems,the biggest cost of hosting a mastodon instance is the storage and bandwidth required to facilitate media posts. And there's a real danger of an instance incurring high costs if a particular post becomes popular and is hotlinked on a big centralised social media site.

      It seems like a really tricky problem to solve, something peer-to-peer could sort of solve the costs created by traffic peaks but has problems when there is many small files viewed by few individuals each.

      Are there any other solutions out there? Web3, IPFS? Or is it just not that much of a problem, do we accept that media on the web is ephemeral and will be lost after a while?

      80 votes
    11. 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?

      32 votes
    12. Good resources for accessibility in web design/development?

      Hey there! Any web developers/designers out there that have resources on creating websites that are fully accessible? I am getting back into web development after a decade away and want to learn...

      Hey there! Any web developers/designers out there that have resources on creating websites that are fully accessible? I am getting back into web development after a decade away and want to learn the correct way. Thanks for any tips!

      16 votes
    13. Self-hosters! Share your reasons for self-hosting and favorite apps!

      Self-hosting has been a rabbit hole of wonder that I've explored and delved into over these past few months. I'm curious to hear what others use it for, what apps they love, and their rationale...

      Self-hosting has been a rabbit hole of wonder that I've explored and delved into over these past few months. I'm curious to hear what others use it for, what apps they love, and their rationale for doing so?

      I'll go first.

      First, in terms of rationale, this is a wonderful article that I think is worth checking out that encapsulates much my of ethos about pursuing self-hosting.

      https://kylechayka.substack.com/p/essay-the-digital-death-of-collecting

      The TL;DR is that we no longer have control over the things that we 'own' digitally for these massive cloud companies. For instance the songs / artists you listen to on Spotify may suddenly and unexpectedly become unavailable, certain things (most recently podcasts) may be forced upon you in unpleasant ways. Having complete control of your digital data is a very liberating feeling.


      In terms of apps:

      Hyperbackup - I use a synology NAS, so hyperbackup has been wonderful and use both external HD's and a cloud interface to create encrypted backups of everything which gives me peace of mind.

      Plex - One of my most used apps, being able to stream anything remotely has been a dream. Plexamp has given me back control of my music library in a way I never thought I would have.

      Tautulli - Great for more informatics on my plex usage

      Calibre / Calibreweb - Phenomenal for keeping track of my book collections

      PiHole - Ads be gone!

      *Arr apps - Specifically Sonarr/Prowlarr/Radarr, really like Overseerr for an interface tying everything together

      Daily Notes - A clean interface for keeping regular notes


      Some things that I'm not currently self-hosting but would love to hear if others are using alternatives...

      Instapaper - I know there are a few similar FOSS apps out there but haven't found one as convenient and well laid out

      TickTick - To do app, but similarly haven't found a FOSS alternative that was as robust and nice to use

      OneNote

      86 votes
    14. Building my own email system and/or other privacy-first email solutions?

      Back in the day I remember setting up squirrelmail + qmail to host my own email as well as for others. And then I got that coveted gmail invite and never really looked back. I've started to get...

      Back in the day I remember setting up squirrelmail + qmail to host my own email as well as for others. And then I got that coveted gmail invite and never really looked back.

      I've started to get into the mindset of erasing my digital trail, at least for my personal activities, and email seems to be the main one that I need to figure out.

      The idea of setting up my own email solution came up again because I wonder how transparent / private services like protonmail and mailbox.org really are.

      Any suggestions or insight would be appreciated. Squirrelmail seems to be now defunct, and I am pretty sure the world has changed enough that residential ISPs don't allow running of servers at home anymore. I guess I could setup something on AWS if I had to.

      22 votes
    15. Linux Question: I think my sys m.2 is failing and want to copy my / data for backup via cli

      So, I'm using Arch i3wm. I have multiple copies of my /home/username (I am the sole user), and I have a "Spare" drive with media, games, and other goodies, some of which are also stored on...

      So, I'm using Arch i3wm. I have multiple copies of my /home/username (I am the sole user), and I have a "Spare" drive with media, games, and other goodies, some of which are also stored on partitions on the m.2 in question, but they have backups.

      And the reason I ask this question is because while I've had my m.2 fail at the end of '21 (I didn't even know that was a thing, but it barely lasted a year, and things are acting shoddy now... though the original failed without a warning), I just bought a second m.2 for my games. I guess I could swap most of the whole thing over, but I know the boot partition is easier just rebuilt from scratch... which I had to do last week.

      Ultimately, what's making me suspicious is when I upgraded to the new drive and unplugged all my non-m.2 satas, I also added some memory and a new power supply. But then after the upgrade (Monday of last week, so the 5th), the system wouldn't boot up. I used a usb to troubleshoot and my /boot partition was apparently no gouda. I redid that, and everything was fine... until this week. Then my new Games partition (basically the new drive) failed fsck and it got stuck in a boot loop on Tuesday. I could boot emergency to root, but not skip the fsck and keep the Games disk auto mounted (I know I changed something to randomize fsck on bootup, but that's something I'm still kinda looking into how I managed...), so I just removed it from my fstab and it booted fine. For two times. I just manually mounted the drive, all was great, then my SO sent me a screenshot today while I was at work stating that my / partition (on the older m.2) apparently rebooted because it bypassed my screen lock, and was stating EXT4-fs error, reading directory lblock:0 and whatnot.

      So, that's my history on what's going on, and if anyone can offer any advice [mostly] on the backup stuff, though as I said, /home and the important tangible stuff is saved, but if you also have any input on something more than I suspect the drive is failing (since the /boot partition and now the / partition are crapping out), please feel free to share.

      (Also, thanks for letting me in. This is what I'd typically post on reddit and probably have to repost 10 times depending on the sub to get the right keywords and tags and yes, I already searched the internet but my search will not match yours... sigh)

      6 votes
    16. Can you set a clock using a light sensor to detect sunrise and sunset?

      While pondering an off-grid microcontroller project, I got to wondering: A light sensor can obviously detect day vs night. So it could be used as a very cheap way to set a device's clock - but how...

      While pondering an off-grid microcontroller project, I got to wondering: A light sensor can obviously detect day vs night. So it could be used as a very cheap way to set a device's clock - but how accurately? To within an hour? A few minutes? How would you do it?

      Questions that arose from this include:

      • Should it detect dawn/dusk (light <-> dark transition), or noon/midnight (brighest/darkest time) ?
      • How do dawn/dusk times relate to clock time? Does it depend on lat/long?
      • If using dawn/dusk, what light level threshold to use?
      • The same threshold for dawn & dusk, or different ones?
      • Better to detect a darker threshold (start of dawn, end of dusk) or a lighter one?
      • Some days will be lighter/darker than others, so how to manage averaging of times?
      • How accurate could it be made?

      My naïve first stab at this would be: Pick a light threshold. Record the dawn/dusk times according to that threshold. Average them, call that "noon", and gradually tweak the clock time over several days to bring it into line with the sensed/calculated "noon" - but a searching for graphs of sunrise/sunset times quickly showed that the midpoint of sunrise & sunset is not noon.

      Googling threw up lots of results for sensor lights combining a clock and a photocell, but I couldn't find anything about using the photocell to set the clock. So does anyone know if this has been tried before? Is it a non-starter for some reason?

      Edit:

      Perhaps it's worth sharing the project I had in mind, which is a rain alarm so I can rush out and get the washing in from the line when it starts to rain. I was thinking how annoying it would be if I left it switched on and it rained in the middle of the night and the alarm woke me up. So I decided should automatically avoid triggering during the sleeping hours of night (say 10pm to 8am). My first thought was a photocell so it wouldn't trigger when it's dark. Then I remembered that it gets light at 3am at the moment, which wouldn't work. So it needs a clock. How to set the clock:

      • Manually - Needs a user interface with buttons and a display. Seems overkill just for a clock.
      • Serial port - Clunky to plug a laptop in just to set the clock.
      • WiFi - Needs a username and password or WPS, and an ESP32 or similar - again seems overkill just to get the time.
      • GPS - also overkill and expensive.
      19 votes
    17. Dual-boot with a shared partition?

      Hey, I use Windows 10 and Arch in a dual boot configuration. I use both of them for software development and want a shared partition to store all the projects. Unfortunately, it's not as easy as I...

      Hey,

      I use Windows 10 and Arch in a dual boot configuration.

      I use both of them for software development and want a shared partition to store all the projects.
      Unfortunately, it's not as easy as I had thought.

      Initially, I tried NTFS as the Linux support seemed fine. I tried both, ntfs-3g and the kernel implementation.
      Besides the issue that hibernate could lock the drive - which you can disable - it periodically caused problems during compilation and other stages.

      Especially Rust based projects have thrown weird errors during builds, but I also had this on certain Go projects as well.
      It sometimes felt like, that the NTFS driver returned the wrong files when the compiler asked for them. Unmet dependencies, missing files, etc. Usually, when the project is huge.

      In certain scenarios symbolic links didn't work and permissions were not set correctly - which you can fix by adding some args to the fstab mount - never got it really stable though.

      I then tried to format to Ext4, and all issues were instantly gone on the Linux side.

      Fortunately, there are tools such as Linux FileSystem from Paragon which promise to make it work (I even bought a proper license) - and it did for a while, until it didn't.

      I once copied a bigger folder that included a bigger node_modules folder and during copy, files were missing, corrupted, the copy process hung - then crashed.

      I was so desperate that I even tried out FAT32, but I quickly found out that it doesn't support symbolic links at all, and therefore breaks Git and other tools depending on it.

      Is it still so hard in 2023 to have a shared partition between two OS? Has anyone made better experiences?
      I really don't want to split the partitions as I sometimes work on the same project on different OSes.

      Thanks in advance!

      7 votes
    18. Experienced programmers who picked up Rust, which learning resources did you find to be excellent?

      I am currently going through the official Rust book and have gone through some of the Rustlings exercises. Both resources have been excellent so far. What resources have you enjoyed? Additionally,...

      I am currently going through the official Rust book and have gone through some of the Rustlings exercises. Both resources have been excellent so far.

      What resources have you enjoyed?

      Additionally, is there anything about Rust that particularly caught you out when transitioning from other languages?

      20 votes
    19. How will Mullvad removing port forwarding affect Unraid?

      How does Mullvad removing port forwarding affect an Unraid setup using deluge-vpn container? I don’t access my server from outside my network and just use a basic binhex deluge-vpn docker setup....

      How does Mullvad removing port forwarding affect an Unraid setup using deluge-vpn container?

      I don’t access my server from outside my network and just use a basic binhex deluge-vpn docker setup. Any issues I’ll have here?

      Currently out of town and won’t be back until after this change happens tomorrow. Curious what to expect when I'm back home.

      4 votes
    20. Android Mozilla browsers with access to about:config

      Hi Android Mozilla browsers with access to about:config. Examples are... Firefox Beta and Firefox Nightly Back in the day there were lots of config tweaks for PC Firefox. But there's not much...

      Hi
      Android Mozilla browsers with access to about:config.
      Examples are...
      Firefox Beta
      and
      Firefox Nightly

      Back in the day there were lots of config tweaks for PC Firefox.
      But there's not much config information about Android Firefox.

      I found these two posts on Reddit.
      https://www.reddit.com/r/firefox/comments/11shvus/fixing_performance_problems_in_firefox_on_android/

      https://www.reddit.com/r/browsers/comments/1278zp5/improving_performance_in_firefox_android_part_ii/

      Does anybody here have other about:config suggestions?

      11 votes
    21. Newbie here looking for advice on how to get into Programming/CS by building a project

      Been lurking for a week on tildes now and I am really glad this place exists. The crow here is exactly what I have been missing on Reddit for a while now. Having said that, the whole Reddit...

      Been lurking for a week on tildes now and I am really glad this place exists. The crow here is exactly what I have been missing on Reddit for a while now.

      Having said that, the whole Reddit situation has some-what motivated me to get the balls rolling on an idea that I have had for a while and I am looking for advice on the same.

      I have often heard this phrase "Learn programming by building" but whenever I dive in to the resources, I fall flat due to the information overload and the general abstractness that the field has (I appreciate abstractness but here it demotivates me) and I have never found a proper resource that I could follow to actually build something instead of just blindly following tutorials and playing with them.

      So, my question is how do I translate "learn by building a project" into a practical framework.

      I know of 100 days of swift and I really like that approach however I don't think I want to start with swift or build an iOS app right now.

      24 votes