• Activity
  • Votes
  • Comments
  • New
  • All activity
    1. How do you manage your dotfiles?

      This area is so much more complex than I first expected, with options like your basic manual cp or symlinks, stow, yadm, homeshick, or hacking together some bash yourself. What do you use?

      23 votes
    2. Anyone got suggestions for coding / gaming headphones?

      By coding headphones I mean with active noise cancellation, to be focused on your work. However I'd like to have it more universal since i do play videogames in my freetime, so with a microphone...

      By coding headphones I mean with active noise cancellation, to be focused on your work. However I'd like to have it more universal since i do play videogames in my freetime, so with a microphone would be best - Or should i have 2 sets for both activities?

      Something below 100€ would be nice (naive yes, but I aint got much).

      I looked at the Mixcder e7 on Amazon, which looked promising. Thoughts?

      9 votes
    3. Man JasperReports is annoying

      Each element in the report has an 'Evaluation Time'. The catch, as I'm beginning to realise, is that only those rendered 'Now' actually have any ability to expand or collapse the bands within the...

      Each element in the report has an 'Evaluation Time'. The catch, as I'm beginning to realise, is that only those rendered 'Now' actually have any ability to expand or collapse the bands within the report. i.e. it makes an initial pass (evaluation time 'Now') and figures out the sizes, and then goes back and recalculates the content (but not the size) of the stuff.
      Which is great, except that I'm trying to print something (which should disappear when empty) from a subreport, which only works if it's deferred. Guess I'll have to accept that that band can't be collapsed when empty. It's OK, I'll just redesign my report then.

      /rant over.

      3 votes
    4. Open external links on ~ in new tabs

      I was missing this feature from Reddit and saw others were as well so I thought I would share a user script I created to solve this issue until it's added (if it's added) // ==UserScript== //...

      I was missing this feature from Reddit and saw others were as well so I thought I would share a user script I created to solve this issue until it's added (if it's added)

      // ==UserScript==
      // @name         Tildes.net: Open external links in new tab
      // @namespace    http://tampermonkey.net/
      // @version      0.1
      // @description  Opens external links on tildes.net in a new tab
      // @author       SleepyGary
      // @match        https://tildes.net/*
      // @grant        none
      // ==/UserScript==
      
      (function() {
          'use strict';
      
          document.querySelectorAll('a').forEach(el => {
              if (!el.href.includes('tildes.net') && el.href !== '') {
                  el.target = "_blank";
              }
          });
      })();
      
      14 votes
    5. Feedback on a federated decentralized git hosting solution

      I have an idea, it's not particularly new. I think git code sharing could integrate very nicely with blockchains. I think it could be done elegantly without modifying the git protocol at all, just...

      I have an idea, it's not particularly new. I think git code sharing could integrate very nicely with blockchains.

      I think it could be done elegantly without modifying the git protocol at all, just as an optional superset (like Github) to provide forks, PR and discussion.

      Something like:

      • smart contract based system
      • something like lightening network for off master chain pushes
      • local node hosting all obtained versions of code, something like PNPM meets zeronet
      • cloning/pushing over DHT with web torrent.
      • client key pairs for collaboration and authentication

      Do you guys think it could be done? Thoughts? Ideas? Criticisms?

      Would anyone be interested in working on something like this? I'd like all the help I can get and any input people have.

      6 votes
    6. Best linux distro and/or tiling window manager for a small touch screen?

      There seems to be a solid community of Linux people growing here, so thought I might try asking... I'm building a head unit for my car, using a Raspberry Pi to a 7" (and eventually 10-14") touch...

      There seems to be a solid community of Linux people growing here, so thought I might try asking...

      I'm building a head unit for my car, using a Raspberry Pi to a 7" (and eventually 10-14") touch screen.

      I'd like to have a fast-booting Linux distro with tiling windows that lets me set up a config file to launch a bunch of programs that are tiled perfectly edge to edge, with minimal border (a 1px line us OK), minimal header (just the name of the program? or none at all maybe), and have them all locked in place so I can't accidentally drag one or resize one when touching audio controls, for example.

      The idea is to have a few windows, such as an audio player, a GPS map, 2 dash cam feeds, and an OBDII style sensor readouts, all on screen at the same time, each sized differently.

      I've got each individual program working fine on Raspbian right now, but no idea how to go about the tiling-on-boot, locking them in place, etc.

      Can I do it with Raspbian with some specific window manager? or do I need a different distro?

      Thanks in advance.

      8 votes
    7. Nouveau (open source Nvidia graphics drivers)

      So I tried to install sway on my desktop today. This required a lot of fiddling, as I had to pull in bleeding-edge dependencies for the Wayland libraries, and had to build the compositor framework...

      So I tried to install sway on my desktop today. This required a lot of fiddling, as I had to pull in bleeding-edge dependencies for the Wayland libraries, and had to build the compositor framework wlroots. Finally however, I had everything compiled and ready to go and....

      Proprietary Nvidia drivers are not supported. Use Nouveau.

      I had completely forgotten that sway requires open-source Nvidia drivers. So - has anyone had experience using Nouveau? How usable is it from day-to-day? How noticeable is the performance hit when switching from proprietary drivers?

      8 votes
    8. Do companies have an ethical (not legal) obligation to disclose how they track employees?

      Companies can technically and legally track just about everything you do at work digitally, from your entire browser history to even particular usage patterns on company web apps. Should there be...

      Companies can technically and legally track just about everything you do at work digitally, from your entire browser history to even particular usage patterns on company web apps. Should there be an expectation that companies disclose what they do/do not track to employees? Or should employees have to just live with the fact that companies can and will spy on them as a cost of doing business?

      17 votes
    9. Are there any good dark browsers for IPhone 4?

      I've just used Tildes on my phone for the first time and FUCK! MY EYES! I know I can't change the color of Safari, so I looked in the app store but couldn't find anything. Can you reccomend me a...

      I've just used Tildes on my phone for the first time and FUCK! MY EYES! I know I can't change the color of Safari, so I looked in the app store but couldn't find anything. Can you reccomend me a good browser with a dark theme?

      5 votes
    10. Ask Tildes: What is the best way to get involved with the development of Tildes?

      Hi everyone, I'm a frontend developer and do a bit of backend work as well. I'd really like to contribute some of my downtime to helping build this site. I've checked out the issue tracker on...

      Hi everyone, I'm a frontend developer and do a bit of backend work as well. I'd really like to contribute some of my downtime to helping build this site. I've checked out the issue tracker on gitlab and some of the docs, tech goals and announcement, but I'd like to start getting my hands dirty and contribute some code.

      • Is there a roadmap for development?
      • A feature list to implement?
      • Bugs to fix?

      How can I help out? What's the best way to get started?

      Also for all non-devs, what is the best way that they can start helping out?

      30 votes
    11. Requiring users to use passphrase instead of passwords

      Hey guys -- I wrote a blog that I'd love some feedback on. I'm an identity product manager and have been trying to train my users to use passphrases. Do these read friendly enough? I want it to be...

      Hey guys -- I wrote a blog that I'd love some feedback on. I'm an identity product manager and have been trying to train my users to use passphrases. Do these read friendly enough? I want it to be readable by all users, but my target audience is other people in product and software.

      https://medium.com/@toritxtornado/training-your-users-to-use-passphrases-2a42fd69e141

      12 votes
    12. At what point is a rewrite warranted?

      [Context: I do computational research in the natural sciences.] I have been tasked with verifying the correctness of a ~3000 LOC software project written in a mix of Fortrans 77 and 90. I have...

      [Context: I do computational research in the natural sciences.]

      I have been tasked with verifying the correctness of a ~3000 LOC software project written in a mix of Fortrans 77 and 90. I have made some small amount of headway with getting the program up and running, but it seems like every time I make one step forward I take ten steps back.
      Some issues with the program:

      • It only compiles with one, specific, closed-source compiler
      • Useless variable names
      • Minimal comments (the ones that do exist are near-gibberish, explain the obvious, or comment out debugging print statements)
      • Weird decisions are made with no justification, e.g. the code author decided that, if we are considering the calculations on the first molecule, we are only to consider its first atom
      • Magic numbers everywhere, very few of which are known physical constants or their conversions
      • etc, etc, etc.

      I am reaching peak frustration after having worked with this code for only a few weeks. At this point, the idea of sitting down and rewriting the program from scratch is very, very tempting.
      Do I need to just step back, relax, and keep hitting my head against the wall, or is this a situation where a rewrite may be necessary?

      12 votes
    13. Programming Challenge: Make a Caesar cipher!

      The point of this thread is to post your code for solving the task. Other will comment with feedback and new ideas. Post what language (and version, if relevant) your code is written in. Have fun!...

      The point of this thread is to post your code for solving the task. Other will comment with feedback and new ideas. Post what language (and version, if relevant) your code is written in.
      Have fun!

      Task description

      Your task is to make a caesar cipher that takes a word and an integer as arguments.
      An article explaining what the cipher does.

      Input description

      A word followed by a space and an integer.

      Output description

      The ciphered word.

      Sample onput

      A 1
      Caesar 5
      Tildes 25
      

      Sample output

      B
      Hfjxfw
      Shkcdr
      

      Bonus 1

      Make the cipher work backwards.

      Sample input

      B 1
      Hfjxfw 5
      Shkcdr 25
      

      Sample output

      A
      Caesar
      Tildes
      

      Bonus 2

      Make the cipher handle special characters.

      Sample onput

      A_ 1
      Cae?sar 5
      Til!des 25
      

      Sample output

      B
      Hfj?xfw
      Shk!cdr
      
      22 votes
    14. Guide to Z80 ASM basics

      I've been thinking about messing around with Z80 ASM for a while with the end goal of doing interesting things with one of my old TI calculators. Finally got around to doing some googling, found...

      I've been thinking about messing around with Z80 ASM for a while with the end goal of doing interesting things with one of my old TI calculators. Finally got around to doing some googling, found this guide to the basics, and thought I'd share it for anyone else who might like to read it.

      13 votes
    15. Programming challenge: undo this "Caesar" cipher.

      Disclaimer: I'm a novice and this is a half baked idea Recap The Caesar cipher is fairly straight forward as it just shifts letters along by a set amount. This means that it's quite easy to brute...

      Disclaimer: I'm a novice and this is a half baked idea

      Recap

      The Caesar cipher is fairly straight forward as it just shifts letters along by a set amount. This means that it's quite easy to brute force. There's only 25 offsets, after all. Try to decode this to see what i mean:

      Plqfh 3 foryhv ri jduolf, dqg frpelqh lq d vpdoo erzo zlwk pdbrqqdlvh, dqfkrylhv, 2 wdeohvsrrqv ri wkh Sduphvdq fkhhvh, Zrufhvwhuvkluh vdxfh, pxvwdug dqg ohprq mxlfh. Vhdvrq wr wdvwh zlwk vdow dqg eodfn shsshu. Uhiuljhudwh xqwlo uhdgb wr xvh. Khdw rlo lq d odujh iublqj sdq ryhu phglxp khdw. Fxw wkh uhpdlqlqj 3 foryhv ri jduolf lqwr txduwhuv, dqg dgg wr krw rlo. Frrn dqg vwlu xqwlo eurzq, dqg wkhq uhpryh jduolf iurp sdq. Dgg euhdg fxehv wr wkh krw rlo. Frrn, wxuqlqj iuhtxhqwob, xqwlo oljkwob eurzqhg. Uhpryh euhdg fxehv iurp rlo, dqg vhdvrq zlwk vdow dqg shsshu. Sodfh ohwwxfh lq d odujh erzo. Wrvv zlwk guhvvlqj, uhpdlqlqj Sduphvdq fkhhvh, dqg vhdvrqhg euhdg fxehv.
      bonus points for a program that takes the above text and outputs the shift I used without any human input

      My dumb idea (didn't work, my bad. They're in normal Caeser cipher now)

      I like the simplicity of the shifting characters but having it always be in one direction, and always being the same offset makes it easy to notice the pattern and decode.

      If we have the shift value determined by the length of the current word, and the direction of it dependent on if it's a vowel or a consonant.
      a pirate is nothing without his ship becomes
      b jolgnk kq gvmapgz ppmavbm elp odml so we still have a visibly Caesar-y cipher, but we'll know it's not a true Caesar cipher.
      The offset changes for every word and then is applied based on each letter in the word. If it's a vowel, then the encoded value is shifted upwards but if not, it slides down.

      For the purposes of the below tomfoolery; prime numbers are consonants and the rest are vowels.

      A Valley Without Wind 1 and 2 Steam Key:
      B qjsbuf jt opuijoh xjuipvu ijt tijq
      FWR0H-GQM7B-5344H
      
      Aces Wild: Manic Brawling Action:
      C rktcvg ku pqvjkpi ykvjqwv jku ujkr
      K5R0H-29NPM-A3OTE
      
      Age of Empires Legacy Bundle:
      D sludwh lv qrwklqj zlwkrxw klv vkls
      69PQW-UY3H7-7SQWT
      
      AI War + 4 DLC packs & Tidalis Steam Key:
      E tmvexi mw rsxlmrk amxlsyx lmw wlmt
      KO99D-73JZ2-XNIK3
      
      AI War: Vengeance Steam Key:
      F unwfyj nx stymnsl bnymtzy mnx xmnu
      7M2I8-I99N9-6E9F2
      
      Alan Wake Collector's Edition Steam Key:
      G voxgzk oy tuznotm coznuaz noy ynov
      6ZNJ5-BIVFN-6ZSDZ
      
      Alan Wake's American Nightmare Steam Key:
      H wpyhal pz uvaopun dpaovba opz zopw
      7RERD-4ACYN-TCDQ2
      
      Amnesia: Dark Descent Steam Key:
      I xqzibm qa vwbpqvo eqbpwcb pqa apqx
      VGEO8-OU48X-MU7BL
      
      Anachronox:
      J yrajcn rb wxcqrwp frcqxdc qrb bqry
      3589L-YGF9V-NKGW0
      
      Anodyne:
      K zsbkdo sc xydrsxq gsdryed rsc crsz
      9HW7H-7Z73Z-6302D
      
      Anomaly Defenders:
      L atclep td yzestyr hteszfe std dsta
      ICPIB-M63TI-9Y96V
      
      Anomaly Korea:
      M budmfq ue zaftuzs iuftagf tue etub
      QMPZ2-JUK8B-JRK3V
      
      Anomaly Korea:
      N cvengr vf abguvat jvgubhg uvf fuvc
      30R9T-C02AA-7DQLG
      
      Anomaly Warzone Earth:
      O dwfohs wg bchvwbu kwhvcih vwg gvwd
      38UM9-Z26PH-Q4VAU
      
      Anomaly Warzone Earth Mobile Campaign:
      P exgpit xh cdiwxcv lxiwdji wxh hwxe
      54TYN-AU26Q-5AGGY
      
      Aquaria Steam key:
      Q fyhqju yi dejxydw myjxekj xyi ixyf
      3853A-YSB4J-6243A
      
      Awesomenauts:
      R gzirkv zj efkyzex nzkyflk yzj jyzg
      DH9T5-BWOQC-KB6TB
      
      Awesomenauts:
      S hajslw ak fglzafy oalzgml zak kzah
      RNRJ0-CPT4O-S9UHE
      
      Awesomenauts Cluck Costume:
      T ibktmx bl ghmabgz pbmahnm abl labi
      VOWWW-QTR3Q-EAS9J
      

      These are encoded using a Caeser shift. The line under the title is a fixed phrase (a pirate is nothing without his ship) for aid in the bonus points

      I can post my code if it turns out to be unsolvable (like a bug https://trinket.io/python/dabf2b61f9), but if not; I can also keep going from letters A to Y (sans U) over the weeks with my humble bundle reserves (plaintext or not). I've had these keys for far too long and I'm never going to actually use them, but I also noticed a surge of keys being donated here so figured I might as well change it up.

      Have fun

      9 votes
    16. What trick/pattern/concept/whatever did you adopt that has improved your code quality?

      One big thing that has made maintenance of my older code easier has been considering the concept of cyclomatic complexity. In particular, limiting conditional checks to exceptional cases as much...

      One big thing that has made maintenance of my older code easier has been considering the concept of cyclomatic complexity. In particular, limiting conditional checks to exceptional cases as much as is reasonable has made it easier to focus on the "happy" path of code execution and easily track down the errors, and the limited nesting depth has made things easier to read as well. Overall, my code remains relatively flat and I'm not branching through layers of logic trying to track down a simple bug.

      What are some simple things you do to keep your code from being a massive headache long-term?

      26 votes
    17. Ubuntu 18.04

      Anyone using Ubuntu 18.04 yet? I was thinking about installing it alongside Windows, but wasn't sure if I should wait and just install 16.04. Wanted to get a few opinions.

      9 votes
    18. Post your setup!

      A thread to post your desktop (or laptop) setups - what OS you use, what desktop environment you use, what window manager you use, what editor you use, what terminal emulator you use etc.

      24 votes