Details
-
AboutI love to create!
-
Website
-
Github
Joined devRant on 1/10/2019
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
-
Been working for a while with some terrible code with no documentation that I just inherited from a previous employee
Topic: multi-threaded program in Python
Goal: kill both parent and children with keyboard interrupt
Intuitive idea: check in children processes if parent still alive
Implemented idea:
- parent creates socket connection
- keyboard interrupt kills parent and thus the socket connection as well
- children receive some specific socket error from the loss of connection
- children catch the exception and are killed
In Python 2, of course
I, too, like to inflict pain on myself for fun7 -
>Be client
>Have an issue with incredibly slow webpage load time
>Blame memcache issues
So... I look into the problem. Yes, the page either loads up fast, or times out. So, into the logs I go. Webserver is fine (except the timeout), PHP though... Error log is fine (just notices), but slow log shows the issue is the database (of course... its always the database... ugh)
So, checking the database, there is one ugly query that seems to be an issue. 5 joins and a huge where condition.
So I run EXPLAIN on the query and... Proceed to bang my head against the wall.
OF COURSE ITS SLOW YOU FU******, NONE OF YOUR TABLES HAVE ANY INDEXES.
What do they expect when the database has to always go down the whole table and do everything in memory, until it runs out and has to dump it all on disk and work with it there.
Ugh... Some clients... -
So I have attended AWS tech bootcamp yesterday and today.
One thing I notice is everyone either have Mac laptop or other laptops with Win10.
I'm probably the only one with Linux distro. 🤔
I feel special and at the same time, lonely.7 -
I just realize that companies dont value a good developer, they just want a developer that can do the job done for clients to get money, i understand that just recently and im sad that some people are just in it for the money not for the love of the craft and technology.8
-
My terminal (Tilix) didn't have a header bar for a quite a while now. I had grown to live without it even though I missed looking at the terminal title to figure where I was.
Today I my hand accidentally hit F11 and I was in for a surprise. I actually exclaimed aloud in the office.
I waited to test, confirm and verify that the header bar itself was not a bug before I facepalmed myself