- 0 Posts
- 219 Comments
qjkxbmwvz@startrek.websiteto
Programmer Humor@programming.dev•You can pry pattern matching from my cold dead hands
81·20 days agoPer the Linux kernel coding style:
Tabs are 8 characters, and thus indentations are also 8 characters. There are heretic movements that try to make indentations 4 (or even 2!) characters deep, and that is akin to trying to define the value of PI to be 3.
qjkxbmwvz@startrek.websiteto
Linux@lemmy.ml•Linux is awesome at home, but aren't y'all forced to use Windows at work?
3·20 days agoMac at work. Yabai+sketchybar is no i3wm replacement, but it works ok.
My
.zshrcis basically the same as I use on my personal computers, and aside from a few coreutils differences it…kinda just works. I haveaptaliased tobrewso I can feel more at home.Stock terminal works fine—I use
xtermon Linux, so I’m used to relying ontmuxfor nice features anyway.Basically, I miss the window manager, but practically speaking that’s a about it. (I obviously have
xscreensaverinstalled!)
qjkxbmwvz@startrek.websiteto
Linux@lemmy.ml•What are some of your most useful or favorite terminal commands?
9·21 days agoncis useful. For example: if you have a disk image downloaded on computer A but want to write it to an SD card on computer B, you can run something likeuser@B: nc -l 1234 | pv > /dev/$sdcardAnd
user@A: nc B.local 1234 < /path/to/image.img(I may have syntax messed up–also don’t transfer sensitive information this way!)
Similarly, no need to store a compressed file if you’re going to uncompress it as soon as you download it—just pipe
wgetorcurltotarorxzor whatever.I once burnt a CD of a Linux ISO by
wgeting directly tocdrecord. It was actually kinda useful because it was on a laptop that was running out of HD space. Luckily the University Internet was fast and the CD was successfully burnt :)
qjkxbmwvz@startrek.websiteto
Linux@lemmy.ml•What folders do you make in addition to the default ones ?
5·27 days agoI’m a
~/tmpman myself.
qjkxbmwvz@startrek.websiteto
Privacy@lemmy.ml•Which private (no cloud requirement) wireless home security cameras save footage locally without monthly subscription?
9·1 month agoI would recommend PoE security cameras. You probably want support for RTSP / ONVIF.
I have some Amcrest cameras talking to Frigate. It is completely local—cameras on a separate VLAN that can’t talk to the Internet, footage is recorded on a server running Frigate. Works very well for me. No vendor lock-in is also nice!
qjkxbmwvz@startrek.websiteto
Linux@lemmy.ml•780k Windows Users Downloaded Linux Distro Zorin OS in the Last 5 Weeks
13·1 month ago640k780k ought to be enough for anybody…
I know right? What a poser!
/s
If you can build up intuition around Fourier decomposition I think it gets much easier to understand.
Multiple things going on at the same frequency are indistinguishable (up to a phase). Lots of stuff going on at different frequency can be separated. Light also has frequency (color) and volume (intensity)—it may be more intuitive to conceptualize in this way.
xscreensaver of course! Note that this is not an option on Windows—jwz hates Microsoft, and any xscreensaver port to Windows is against his wishes.
I use yabai and sketchybar for a tiling WM feel. It’s nowhere as nice as my preferred i3, but it’s ok. Unfortunately it often breaks with major OS updates, so I’m sure to hold back updating my system until yabai is working.
IIRC
sshfswill work on macOS but it’s more work to install. Worth it if allowed by your IT policies and your work can benefit from it.Vim, tmux, and the usual *NIX stuff you might want.
The coreutils are not the GNU coreutils you typically find on a Linux system, so you may find a few differences. I believe
sedis slightly different, and the flags forlsmust be before the filename arguments, but I’ve found it’s mostly silly stuff like that (I used zsh before using macOS, so no problem there).
Oracle Free tier, amd64. Only use it because it’s free—limited bandwidth, but given I have slow upload at home it’s never really been a bottleneck. Hate to admit it given it’s Oracle, but I’ve been completely happy with it.
If I switch to a paid VPS I will probably go with racknerd (suggestions welcome though if you have thoughts).
Especially after adding in all the power draw of the automation requires…
What exactly is the incremental power draw for automation? My network gear and server (a little nuc) are sunk power costs as I self host other services.
Idling, my home uses around 100W with the fridge off. One 10W light is an additional 10% of my power budget, and I have a lot more than one light in my house. I also pay about $0.40/kWh.
I can be a bit neurotic about turning off lights when I leave a room, so Home Assistant was a nice way to free up brain space for me. A few motion sensors here and there + some simple automations, and the lights mostly handle themselves. Zigbee sensors and Zigbee or Matter-over-WiFi bulbs, so everything is local. A free VPS+WireGuard setup means I can access them remotely should I need to, with TailScale as a backup.
Cloud failures mean I can’t access remotely, but local control is unaffected—if my smart devices stop working it’s almost certainly my fault :)
Why are fruit special though? Leaves and roots are also part of a plant, so why would a tomato not be a vegetable, but lettuce (leaf) and carrot (root) get exemptions?
What exactly is a vegetable, by your definition?
As others point out, vegetable is a culinary term; fruit is a botanical and culinary term.
https://en.m.wikipedia.org/wiki/ACID
Atomicity (something happens in its entirety or not at all), consistency (database is always in a valid state — if the database has constraints, they will always be honored), isolation (transactions don’t step on each other), durability (complete transaction is complete even if there’s a power failure).
Not a database expert, my parenthetical explanations may need work.
qjkxbmwvz@startrek.websiteto
Programmer Humor@programming.dev•Simple Optimization Trick
11·5 months agoDid the developer use any version control though? SCCS has been around since the early 70s, RCS and CVS since the 80s. The tools definitely existed.
Also, it was a single dev, which makes SCM significantly simpler!
No doubt related to Johnson noise.
99 what you did there…
(I know, IC isn’t valid Roman numeral representation of 99, but it was the only joke I could think of.)

deleted by creator