About... and so we code.
SkillsHTML, CSS, LESS, JS, jQuery, vue.js, PHP, Codeigniter, Yii, Laravel, MySQL
Joined devRant on 7/18/2016
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
TL;DR: TIL for heavy queries use PDO and not some frameworks DB class
ffs I was trying to save 300k+ lines at once with Laravel for weeks. Mind you from a text file. 1gb ram on the vps so while trying to prepare the text to save: Fatal Error: Allowed Memory Size of bla bla Bytes Exhausted
ok so lets put it in a loop: Fatal error: Maximum execution time of 30 seconds exceeded (set_time_limit(0); lol)
optimising, varying the code got me into a situation when the content got saved in the BD but inconsistent (duplicates) and the table had often more than 1,5M rows. That was what told me its not a performance issue, my code is the issue. (dah)
I was starting to think it would be easier to export a prepared query to a sql file and load the file into the db as thats the fastest possible option...I even started to think about switching to python, then it hit me, Laravel has a shitload of routes to the DB so I switched to PDO
benchmark on 1vCPU, 1GB RAM VPS with SSD
379k lines with 11 columns in less than 10 sec with a loop of saving every ~6000 rows (if i tried choking it to save the whole thing at once it went up to 16-17sec)2
fb messenger stopped working after the update, it just shows a white screen... it made me realise i don't even care, family and friends contact me there but ... Dobby is a free elf now5
ffs our senior dev is on a two week vacation... 4th day and my outlook already looks like fucking mordor5
so the PHP Standards Recommendations part two (PSR-2) says
"Code MUST use 4 spaces for indenting, not tabs."
and i feel devastated1
don't you just hate, when this happens? translated from Slovak we call this "the system of the falling shit" you know this under "hot potato"
from: marketing coworker
to: senior dev 1
* asks for a lot of stuff, deadline yesterday, high priority, on a site for which the jenkins build is crashing every once in a while, because we are migrating all the time so some folders are already deleted or not created yet and the build config is really strict *
forwarded from: senior dev 1
@senior dev 2
forwarded from: senior dev 2
@senior dev 3
forwarded from: senior dev 3
ಠ_ಠ fuck me i guess ¯\_(ツ)_/¯1
Most satisfying bug, it was something with good old $.ajax, way back when Axios wasn't a thing and SPAs weren't so widely used.
I was somehow able to fix the call params for a file that would not load with any other setup. Maybe it was just setting async to sync or something like that, however the thing is I was not familiar with AJAX at all, but I managed to get it run.
Then I googled, why its working and figured out all the answers on SO and other pages were the exact thing i set up for my call. I was so proud
some context: I was struggling with this bug for days and asked more experienced web devs, everybody answered, your code should just work fine.
Maybe thats why I have a positive relation with SO, because the first thing i searched there was something that I figured out myself, haha
made me realise since I was little, I wanted to register
- my_surname.com (its a Hungarian name but there is a french comic strip on the site lol)
- then i wanted to register my_surname.sk since I'm from Slovakia (nope someone has a chain of petrol stations with this name)
- well its awkward but lets do my_surname.eu (my surname is the name of a traditional Hungarian needlework so no fuck you)
- ok, I'm a Hungarian so lets do my_surname.hu (well fuck you i wont even load, but I'm already taken so..)5
I heard the best joke lately!
What do vegans, crossfitters and linux users have in common?
oh wait, wrong forum...9
so one of our managers sent me an email what has to be changed in our FAQ section which runs on WP...
but then i remembered, our cleaning lady had a surgery and wasn't here for a week, maybe she will not come for another week and the kitchen is already starting to get real smelly...
so i created a user for our manager and sent him the credentials to his brand new WP editor account so he can make his changes and went to wash the dishes instead
you guys complaining about doing PHP and WP because you needed money sounds like confessing about doing porn in college
"Sorry mom, but I really needed the money ..."1
when you're in /etc/apache2/sites-available, you want to set up a second domain so you duplicate the config but you type mv instead of cp and discover it after you set up the 'second' domain
I was talking with my mom on messenger and right after the moment I told her to stop believing in advertisement and not clicking on everything on the net... I saw a job ad on Instagram
"*cool company from my home country* front end developer for 3000 - 5000euro/month based on experience"
(which is a pretty good salary there, the avg is around 900euro/month)
i'm living in a different country because of work, parents ranting in phone "the PC is slow" well fuck, that hdd was old when i built that PC so i wanted to change the hdd for my ssd anyway
Goes home for a little time period.. no time to order things. Turns out, hdd meanwhile died on them... well what a good thing i have this ssd in my old notebook, so its not a problem.
*turns on old notebook with 4 yo ssd* ...its dead too.
wtf, i'm so mad right now4
I just started to use
"titties" for success message
"no titties" for error message
... I need friends... and titties obviously6
My coworker cannot log in to his company email account. So I contacted the guys in charge of this by email, asking if they could help and asked whats the process now or how does this work. I assume if his email is not working, they cannot send him a password reset link.
their answer: yeah, sure, we reseted the password of the mentioned user, here is his new password5
Macbook pro is - at least where I live - considered expensive. Some of my friends have cheaper cars. I really hesitate to buy even a 2015 version, as thats the one I want. Im thinking about buying a used one ffs.
Now yesterday im chatting with this girl, exchanging nudes and so, when on one of her pictures I saw the apple logo, a macbook, I bet its an air, no its a pro, god damnit. So I asked her, that laptop is that yours? She said yes, she buyd it a few years ago with money she collected, because she photographs a lot (dah) and its really good to photoshop on that thing.
Ffs I want one for my work, which pays well, actually I can buy a brand new macbook with one month salary, why am I having these problems deciding? Am I the only one, again?
Wtf is wrong with me5
in middle/high school we learned turbo pascal and while others tried to draw a rectangle or circle I drew a church
I never saw the teacher that surprised, but not much recognition since that1
I love this weekly group rant, it made me think back when my mom started to work in a kindergarten and she used to take me to work when i was 4-7 years old ('94 - '97).
There was this "TV" and all the kids used to smash the buttons on it. It also played sound, but there was always a lot of kids there so I was shy to ask them if I push the buttons too. But I was the teachers son, so I didn't had to sleep in the afternoon, and then I discovered this computer thing I was amazed, it was like nothing I saw before, you push it and it does what you pushed and, *_* this smiley is exactly me back then. It was probably an old commodore with green text on the black screen. It was the moment when I decided to get more information about this wonder.
In elementary school (around '98) we had this computer room and as I was one of the best students back then I was granted access to it. It was a huge success in a post communist country to get money for new computers to teach us kids to use them back then, so only the chosen ones could use them, and I was one of them, one of the best time time of my life, honestly. At this moment I knew for sure, I want one and when I grow up I gonna work with them. I had no idea what you can do with it but every adult is talking about how well paid are the people who use them at work. :D it sounds funny now
In '89 or '99 we visited our family in a town far away. My grandfathers sisters boyfriend had a computer and he said, look I also have internet. This face again *_* what the hell is internet. So he explained me this internet thing which "makes all computers connected, but you have to pay for it and it kinda works like wired phones you know. Here you put the address and you can open the website"
me: website, whoooa *_*
8-9 year old clever me: "but how do you know what are the addresses, do you have a phonebook for these addresses?"
he showed me google, and a slovak and czech search engine, I remember searching for "funny pictures" on the slovak search engine, because I was thinking If I search google, its english so he would pay too much :D
I didn't had a computer until I was 13 years old, but then I started to messing with Microsoft Front Page 2003, was amazed with the html and css generated by it and started to editing it.
Now Im a front end web dev
This is what really grind my gears:
relating to https://devrant.com/rants/1167125/...4
is it just me or
min 1 year experience with web dev
min 5 years experience with web dev in JS
does not make much sense4
You know that feeling when you have your headphones on and somebody is talking to you and then your stomach starts to hurt, because you don't want to put down your headphones because the music is great and your headphones plays it really good?
I cannot code without headphones on. I'm currently on a longterm journey to find the best over-the-head budget headphones for coding, just out of curiosity, I started with cheap Phillips headphones for a couple of euros (9 or 10 i don't rem.), I would say they are usable, for a casual user, but far-far from the best
Then i purchased a Sennheiser HD451 for like 3x the price of the Phillips, really good. I use them in work and wanted to go on with the comparison so i bought a ATH m30x for home, and for gods sake, they are soo fucking good, way better what i would expect from a budget headphone, it cost twice the price of the Sennheiser.
Whats your "daily driver"? What would you suggest to try next?
note: before these I was using earbuds which came with my cellphones and 2.1 systems6
rant && what do you think?
so one of our ISP (Orange Slovakia) had troubles with service for like two days. Their DNS servers translated domains to IPs reaaally slow or not at all. So when i saw the dns error in chrome (yes i use chrome and not quantum) I changed my dns to google dns and ignored it.
Two days later when the service was back up and running, this ISP went to the local media and made a statement "we had a DDOS attack, no user data were harmed, blabla" that was when my BS radar went bananas... so somebody DDOSd your DNS server ... for two fucking days straight... this is probably a lie or they have really noob engineers (or both).
I'm not an expert on network services or routing, or servers but, how about turning off this server, IP and setting up a backup on a different IP ? Possibly anyone here with experience how to handle DDOS? Whats the chance of this happening? i'm really curious23