Details
-
SkillsHTML+CSS+JS, PHP, Java, Python, Bash...
-
LocationSlovenia
-
Github
Joined devRant on 9/26/2016
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
@Ahzed11 if I fail my exam in a week, I will definitely check that out for next year. Our online lectures were...less than excellent...
-
We use DokuWiki. It's free software that we host ourselves, but you could probably set it up on the cheapest and most basic PHP host.
The barrier to entry is certainly higher than something like Dropbox Paper, but you can do basically anything with it once you get the hang of it. -
@AlgoRythm I think these pictures are to blame, not the sub button. And the reason this is so common is because images in HTML have the unique and counter-intuitive property of completely ignoring parent sizing and overflowing all over the place. It's dumb, but it's "what the standard says".
-
I have sent this article to countless new programmers. Every one of them said "it couldn't possibly be that bad". Half have sent me "fuck, you were right" messages a year later, the other half just sort of disappeared.
-
@ScriptCoded if I'm not mistaken, the first number includes cached resources, the second just what went over the wire.
@Commodore it's some note taking web app that took for ever to even respond, then the JS waited for a websocket that was broken, blocking the rendering. -
@620hun that was the first thing I tried and it tried to shove null into the missing fields. What I'd need is the equivalent of the exclude field in ModelForm.
In fact, that's what I replaced it with when I killed this ungodly mess a good hour ago: a custom form_class with the exclude field and a custom validator to handle fishy POSTs. -
@620hun the model has 3 fields, two of which are foreign keys. The code is from an UpdateView that receives only that one field.
This caused UpdateView to either try to null the missing fields or complain about their absence.
I tried filling them in in get_initial(), but that method doesn't have access to the instance, so it doesn't know the values.
Using this hack, I tricked the UpdateView into thinking the missing fields were there and at the same time made sure that a rogue user couldn't just add their own values to the POST and override the foreign keys. -
@620hun the POST -> form -> model -> DB mapping is all done automagically and I need to inject data into the model. To do that, I'd have to override the form processing step.
But I don't want to deal with that, so I just let the framework handle it and inject the data right into the request. -
It's almost a thing in DC:
"How I changed the law with a GitHub pull request" - https://news.ycombinator.com/item/... -
@Frederick that early access period is going to make sure that all the good ones get snatched by trolls...
-
Wow, it does sound like that. Did not see that. 😂
Although, to be fair, the iptables rules on that server are the equivalent of spaghetti code. Some from UFW, some manual and some from an old script, written by someone I haven't heard from in years 😅 -
@-vim- certainly. NetworkManager is the first that comes to mind. It perfectly fits the "hard things are easy, easy thing are hard" description.
-
At least in Firefox, adding a space at the end tells it it isn't a URL. I'd imagine other browsers work the same way.
But I feel the frustration. Bonus points if you're searching for legacy Windows stuff that literally ends in .com. -
For anything that requires video, you can't go much simpler than a Raspberry Pi (or any of the other SBCs). Seems perfect for the job.
-
@succcubbus bonus Internet Points for the result being in an Instant Answer itself
-
I use "qr <textHere>" a lot (QR code generator) as well as this: "aspect ratio 16:10 1920:?".
Also, their color picker is my absolute favorite. -
Why is this no longer a thing?? I smell a Kickstarter idea...
-
@Mitiko I'm almost 100% it doesn't. Good thing, too - that sounds like a disaster.
-
@TobyAsE Thanks for pointing that out! It would seem, that I am an idiot. The server is in fact a DL180. I don't know why I wrote 380 initially, or how I didn't realize my mistake writing it a second time. 🤦♂️
It's the 180s that I've always seen with 3.5", although an image search reveals that 2.5" configs exist too, so I guess I'm just going mad.
(In my defense, their model numbers make **no sense**) -
@netikras this isn't WSL. It's a virtual server running as a full VM. It has its own IP and everything. I think this was just some strange routing issue on the host machine that made all my traffic go to someone else's Windows Server VM instead. The techs said a host reboot fixed it.
-
@BadFox not sure I see the connection, but if I ever needed another VPN (I host my own atm), I would definitely go with his. I'm still only 99% sure he isn't actually one of the spooks, sent here to infiltrate our ranks and hoover up our data through his VPN, but I'm willing to take that risk :)
Speaking of... I've been absent for a bit. Are you still working on that @linuxxx ? -
@TobyAsE they are annoyingly rare. I know at least the entire DL380 series uses 3.5", as well as many of their tower servers.
-
@Condor I would really like to use ZFS (or btrfs), but hardware RAID controllers hide too much information from the OS. At best you don't get most of ZFS's benefits and at worst you straight up lose data.
And we'll be going for WD Reds (or equivalent from another brand) when we go into production. The Purples are just the only disks we happened to have enough of for testing. -
@gitversion the problem is not about upgrading accidentally. It's about upgrading to a new major/breaking version accidentally. Ubuntu Server (yes, I said the forbidden words) solves this by having separate php and php7 packages. Same for python and python3. EPEL does this, but it's technically a third-party repo.
-
@linuxxx I don't know about any ethical problems (please enlighten me), but the repos are grossly outdated. I need a thrid-party repo for Python 3? PHP 7? Whyy???
-
@jayMcD brilliant! I'll be posting some pics the moment I get some time alone in the server room.
-
@FrodoSwaggins yeah, I know... The intended use case is (don't laugh 😅) network-attached storage and a bit of virtualization, but we'll be replacing the drives when we go into production. We just happened to have a box of Purples (I honestly don't know why) and I figured they'll be good enough for testing.
-
@ralnivar
1) Consider me impressed. What did I forget to blur?
2) I take it you have a vertical monitor? The image is supposed to take up about half the viewport, but that's just too much on tall screens, so it zooms in to avoid blank space or stretching. It does adjust itself on phones etc., but since "normal people" don't have vertical monitors, I didn't bother adding another special case. -
@brod sorry, I've never heard of it. It's just a nickname from my childhood that I can't seem to get rid of.
-
@david-hil I just don't understand why... The white garbage around the picture made the whole site look broken. Further inspection revealed that he re-uploaded the same picture 3 times - each time in worse condition. I just....can't anymore.