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
Search - "aaaaand go"
-
Going to have to do multiple rants on this one as I've had three awesome teachers.
Number one: Linux teacher.
He was around his 40's to mid 40's I think and he loved talking to people who also had the same passion (linux) about it.
When we had Linux classes which everyone hated, he'd always let me free. He knew I'd be able to finish the 10 weeks' assignments within an hour or so (took me half an hour instead of 10 lessons) so he just said: go do whatever you want.
Aaaaand instead of doing my own thing I ended up saving the whole class.
Yeah he was a very open minded guy who was awesome with linux/the students.10 -
Sometimes taking a break can really clear your head. Yesterday evening, I was programming with my mate and couldn't find a very persistent bug. Didn't want to get a break because I just wanted to solve it. He convinced me to go downstairs and get a drink. Reached the bottom of the stairs aaaaand poof, figured out the bug!1
-
>Discovers a new low level profiling tool that could help us at work with stuck process debugging and gets all hyped
>Installs on test machine, tool doesn't work
>Wonders why. Oh. Needs a kernel module to work, compiled and loaded
>"Well, its my test machine... Guess that's no problem..." but... my hype died down a bit. Kernel module installation just for a new tool that aggregates all other commonly used tools? eh... Maybe it will blow me out of my shoes still
>Installs and loads the module
>Tool works. Turns out its just a htop-like tool, with shortcuts to launch specific other profiling tools like strace/ltrace/lsof/netstat/ss etc...
"Oh... That's boring. Maybe it has all those tools built in at least?"
>Tries to run ltrace - tool exits as ltrace is not installed
Lol
>Installs ltrace and launches tool again. Tries to ltrace a process and
>Nothing. Nothing happens. For seconds... Then kicks me off of SSH
WTF?
>Tries to ping machine... silence
Did... our net go down again? (Having issues due to a storm going over our area these few days)
>Pings google and... gets instant reply
More wtf
>Pings the hypervisor the machine was running on
Works like normal
Oh... Oh no. Please tell me it didn't!
>Logs into the hypervisor UI, checks machine state
Running OK
>Opens machine console aaaaand... Yep. Stacktrace as well as a lot of kernel mumbo-jumbo... It took the machine down to kernel panic.
I never went so quick from "We need this tool deployed everywhere" to "Omg I need to get rid of this crap as soon as possible" lol.
And just for those wondering, it was sysdig.1 -
now taking server names for our live backend server, most +1d's by tomorrow arvo i will name our server that.24
-
!rant The end of the world arrives. I have an 8GB Flash USB drive on my keychain. What hacker-ish/prepper stuff should I have already installed on it to take control and survive the apocalypse? Aaaaand...GO!19
-
Finally made my node production server stable enough that I could focus on writing tests*. I start by setting up docker, mocking cognito, preparing the database and everything. Reading up on Node test suites and following a short tut to set up my first unit test. Didn't go smoothly, but it's local and there are no deadlines so who cares. 4 days later, first assert.equal(1+1, 2) passes and I'm happy.
I start writing all sorts of tests, installing everything required into "devDependancies," and getting the joy of having some tests pass on first try with all asserts set up, feels good!
I decide to make a small update to production, so I add a test, run and see it fail, implement the feature, re-run and, it passes!
I push the feature to develop, test it, and it works as intended. Merge that to master and subsequently to one of my ec2 production servers**, and lo and behold, production server is on a bootloop claiming it "Cannot find module `graphql`". But how? I didn't change any production dependencies, and my package lock json is committed so wth?
I google the issue, but can't find anything relevant. The only thing that I could guess was that some dependencies (including graphql) were referenced*** in both, prod and dev, and were omitted when installed on a prod NODE_ENV, but googling that specific issue yielded no results, and I would have thought npm would be clever enough to see that and would always install those dependencies (spoiler: it didn't for me).
With reduced production capacity (having one server down) I decided to npm uninstall all dev dependencies anyway and see what happens. Aaaaand it works.....
So now I have a working production server, but broken local tests, and I'm not sure why npm is behaving like this...
* Yes I see the irony.
** No staging because $$$, also this is a personal project.
*** I am not directly referencing the same thing twice, it's probably a subdependency somewhere.2 -
Aaaaand all tabs and windows go to bitches again.. sigh.. did closed tabs and windows in feierfox EVER work for anyone? I have noticed restore session works. But after closing gracefully, feiafax just don't bother saving shit. Somehow I have less patience when it comes to browsers. Fuck you feuercocks! Suck my balls you memory hungry, wannabe free hippie hippo. Done, deleted, die!!9