I bought an extra card because it was cheap, why not?
Fucking Bourgeoisie
HYPERDANIELSVIDEOGAME
I am way too bored.
My main contracting project is basically on hold for a month. It's done, it's been ready to go live for months now, but the rest of the business just wasn't ready. I've been doing everything I can think of to polish it up but I am running out of shit to do. But, they're still paying for me to be here three days a week, so I show up. Even with official clearance to spend the entire day playing video games, I do kind of feel bad about that, so I try to do something actually productive.
In a previous bout of boredom, I'd added a dev-only page to the system that displayed the Git history of the project. Not that hard, since there were already generic list/edit views that worked for it, and PHP is good at slicing and dicing text so I just called out to the Git command line. This was already a waste of time, but it was a nifty way to see what was actually in a commit when you pull in a bunch of changes.
But now I'm really bored.
Really, really, really, really bored.
I decided the page was too slow. 2000+ commits shouldn't take 150ms to process, should they? Especially not since I can run that command in a terminal and it takes 5ms. I've optimized every user-facing page to about as good as it can get, but as a dev-only page, it wasn't part of the obsessive benchmarking and optimizing. I fairly quickly discovered that a) the bottleneck was PHP taking ages to spin up a subprocess in a way that gets output back, and b) it's already been reported as a bug, and the PHP devs shifted the blame to the C library guys and refuse to work on it.
So I set out to write a full Git parser in PHP. No calling out to external commands, just open up files in the .git folder and walk the commit tree manually.
If you've never poked deeply into the Git internals, they're pretty complex. While the actual format of a commit is text-based, everything is compressed on-disk. The storage layer doesn't see any difference between commits, file changes, and whatever else there is. Recent stuff is stored as individual files, but every so often they get bundled up into a pack file, with a separate index that has more clever bit-twiddling to cram data in tightly than I expected. It's not the hardest thing to figure out (it's pretty well documented), but it's not trivial. Using the git program is the trivial solution.
Long story short, two days later, I have it working. One commit doesn't show up (zlib says it can't decompress it, but PHP being PHP it logs a silent error and keeps on rolling instead of throwing an exception or returning anything that tells me it failed), it can't handle certain formats that this project doesn't have in the entire git history (V1 IDX files, MIDX files, pack files over 2GB, or delta-encoded commit objects), and the detail view still calls out to the command line (it's already within the 16ms target time), but it works. 200 lines of code and 10 hours of effort, but it works.
Too bad it's FUCKING SLOWER.
It's loading in about 400ms now, optimized down from 20 seconds the first time it actually worked properly, but that's still over twice as slow as the old way. It even uses about 1MB more memory. I've run out of ideas for optimizing it. It's just not getting any faster.
Fuck it. Stashing this code somewhere, reverting back to the old way, and queuing up some Steam downloads.
Living the dream
That kinda reminds me of a time when my friend wanted to implement a better,recursive,sorthing algorithm. We made linked lists with 100 nodes and compared his sorting to the good old inefficient bubble-sort. Bubble-sort took ~200ms to complete, his algorithm took 20 seconds. Standard c++ sort took 90ms. That's when we decided to just embrace the standard libraries
Any of ya'll nerds got a good IRC client for Windows? HexChat being on GTK2 doesn't really cut it.
Might be overkill for you, but I use Quassel for Windows + Linux + Android (Quasseldroid).
Quasselcore running on my server, Quassel clients connect to that. But they do release a version of Quassel that has core+client together, so it behaves like a regular IRC client.
Trying it out. Got a dark theme for it and changed a few settings around, finally IRC is readable.
Got a free Synology DS215j NAS that was apparently broken and constantly reported failing S.M.A.R.T. on healthy drives in one of the bays.
I dusted it out, reinstalled DSM and been testing it out for two days now by constantly dumping gigs of data onto it. Apparently it starts doing it after two or three days.
If I'm lucky it might have been only a bug in DSM firmware and I've got a properly working NAS right now. Wish me luck.
woweeee. Aunt got someones inheritance and had to clean a horders apartment. Dad helped her and got a 42" LG LED TV out of it with a blown backlight.
Okay, seems easy enough, lets replace an LED. Oh wait, it looks like all the LED's are shorted out, but the PSU seems fine etc and I can see the white static in the LCD.
Bought a set of LED-s from ebay and fuck them, they sent me the wrong ones. I even checked the order to see if it was my fault, but nope, looks like theirs.
https://files.facepunch.com/forum/upload/107312/a2bb31f4-223a-4802-b1e4-751d607f02b1/image.png
Top one is the one they sent me, others are old ones. 1 more led per strip, 10 total. The lengths match though, but the connector doesn't. BUT! I guess it could work like that, as the reason why they blow LED-s is that LG overvolts them to have a brighter screen in demo mode, but to make it survive under normal conditions you have to crank the brightness back to normal but people don't do that. The old strip had 96V written on it, 96/32 = 3V per LED. Now it would be 96/40 = 2.4V per LED. I guess it should work.
@gman003-main
@gman003-main
@gman003-main
WHAT
2.4V is a pretty low forward voltage for an LED, I was looking at some white LEDs from Samsung about a month ago that start turning on at 2.85V, and those were really low Vf for a white LED.
The driver might still be able to handle it. LEDs aren't driven with a voltage, they're current-controlled. The controller starts boosting upwards in voltage until the LED string starts conducting, after that the switching of the boost is controlled by how much current is going through the LED string. So it might go past the original 96V, if the driver was built for it.
just because your title is gone doesn’t mean you don’t have to slap me with computer facts if I say your name 3 times :<
Okay, the TV works with the 8 extra LED-s, but there's an another issue :v
The reflector didn't exactly fit, so I hole-punched new holes into it.
https://files.facepunch.com/forum/upload/107312/ea14b47b-a77b-45d9-88ca-088951171c68/20190124_210839.jpg
But as the old one had some plastic lens over them, the new LED-s have more of a diffuser over them, so on a white/static screen, you have a lot of backlight bleed
https://files.facepunch.com/forum/upload/107312/92f35169-e534-4c2a-8c3d-c6164cb44af3/20190124_232936.jpg
But oh well, probably going to give it to my hard-seeing grandma so she could read the subtitles a bit bigger on the 42" screen instead of the 32" one. Watching movies is fine, isn't really an issue but using it as a screen is horrible.
wew lad, im leaving help desk.
spent 9 months at a fortune 10 company's help desk taking phone calls all day. i got an offer with a $55k/year salary for a jr sysadmin role at a very small company's corporate office. negotiated to $62k ($67k including an annual cash benefit). i'll go from a team of 300 supporting thousands of other IT staff to a team of 4, so i hope i don't get overworked to shit
I usually ask if there's any particular area of computing you want facts from. But instead I'll just give you something from my most recent blog reading:
The character pitch of early (1930s-ish) IBM printers was based on the hole pitch of 1920s-era 45-hole punched cards - 5/32" pitch, using 1/8" holes/characters with 1/32" margins. This let them reuse a lot of mechanisms - this was the era of impact printers, and there's not much difference between slamming a hole punch into paper and slamming a character type into paper.
@Crest
@Crest
@Crest
What does it take to get free merch from Elgato?
About 200k youtube subs
Today was tweaking and fixing minor annoyances day. I've changed the i3status output to be more minimal, and I installed an emoji font so I don't see squares wherever emoji are used.
Then there's this annoying problem where sound over the headphones won't work when booting with them plugged in. I've had that on my previous laptop as well. The solution is apparently to run "alsactl restore" on boot. Some shitty workaround for something someone in the Alsa dev team must have noticed at some point. Oh well, it's fixed now, with xfce showing my volume level on boot now.
Lastly I looked at startup times. Quite often my laptop (XPS 15 2-in-1, the 9575) will take ages to load the BIOS. I often have to wait 10-15 seconds before I see grub. I recently had to use my older XPS 15 9530, which has its bios boot in three seconds. That pisses me off.
According to some forum posts this is just XPS 15 life since the 9550, and that there's nothing to be done about it. I've tried disabling hybrid sleep in Windows, removing EFI dump vars and setting fast boot in the bios settings, but like that author said, in the end there's nothing that can be done about it. So I guess I'll have to accept it.
I find it to be worth my time to make my devices nicer every once in a while. Even if, rationally speaking, most of those issues aren't worth the hours of looking into. I'm quite sure there's no one else in the world who would do it exactly like I do, but that's fine. I really like this setup.
"Spring cleaning" configs and just tweaking things in general is so satisfying. I spent 4 hours on sshd_config on my game servers. Despite standard SSH keys being more than enough, now it's passing every security audit I can find.
There's no tangible gain for it. It's just fun.
do you think logitech would send me a new G602 since my current one is starting to doubleclick on its own?
It's probably like 4 years out of warranty but the last time I had them replace the previous one, it was about the same amount out of warranty so...
i just spent like 6 hours dicking around and rebuilding my i3 workflow after nuking my debian install
i've ended up with more or less the same result as before but it's great being able to dump unnecessary packages and watch my thinkpad's ram usage drop from 800mb idle to 200mb
I did a silly thing and picked up these two servers on eBay for £240
Dell R710:
2x Xeon X5660
32GB of RAM
2x2TB HDDs
Dell R610
2x Xeon X5550
24GB of RAM
1x1TB HDD, 2x78GB SAS Droves
seemed like a good enough deal to me. now to work out what I’m gonna do with them.
proxmox hosts?
I picked up an R510 not long ago, they make great space heaters.
I've really been wanting to pick up an R610 for myself from my old job at some point but I'm not 100% sure what I'd do with it. Probably just host a few VMs/game servers and maybe a Nextcloud instance/Plex/whatever
i've toyed with the idea of getting some servers off ebay and playing around with ESXi, some dude posted a homelab history in pictures on hacker news and i now really want a homelab to mess around with
http://lavacano.net/heap/ptr/G+w7P.png
i forked a foobar2000 component and added a "time remaining" counter, an exercise which proved to be an interesting feet-wetting experience for both the foobar2000 SDK and Discord's rich presence API
http://lavacano.net/heap/ptr/huQ+r.png
i also got visual studio to automatically sign the dll after building
Sorry, you need to Log In to post a reply to this thread.