Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Search - "im-a-tag"
Typical Tuesday morning. Got word that a client was having trouble viewing a mp4 video, thats being used as a background element on their website, on their iphone.
No biggie, I think to myself.
An hour in Im praying to the safari Gods and cursing the existence of iOs (or however the hell you spell it).
While debugging I realise the browser gives up on downloading the video 2 seconds in, the same way I gave up watching that Netflix Neath note abomination, two seconds in.
So i quickly write up an ajax script forcing the browser to download the file before displaying it...F.I.G.J.A.M
But hold up 'webkitURL' is deprecated. Please use 'URL' instead ..dafuq ?
Okay okay I got this just use a work around for that ..aaand done.
Should be working right? Wrong (-_-)
Half an hour later searching stackoverflow like its the gospel and judgement is upon me and I found the solution..I found the solution, simple stupid solution that would make you wanna facepalm so hard that your great grandkids would have marks on their face.
Declare the MIME type in the bloody source tag in the html ... shoot me now3
People love fast moving green text with a black background.
I have linux on my laptop and I have a script (litturally just 1 line) that outputs random hex data to the command line.
I ran it while WebStorm was starting up and I had people instantly telling me to shutdown all the pcs on the network xDD6
I swear to God it's people like this that just get on my nerves
It appears that proper tagging is not just a devRant issue.8
I was thinking about how I implement login functionality, and realised I have no clue how I came up with it so decided to ask if it was a good way to do things.
Basically, client logs in, username/email and pass are sent to server.
Server salts and hashes password and checks it against the one in the database for that user.
If its correct, send the client the user ID and the user token. (User id could be username, or a number, it depends)
When that client makes a request, the request must contain the ID and token.
The server checks that the ID and token combo are correct, and because the ID is linked to the user we know who it is and can complete the request.
Usually I make the token a random string of 16 or 32 chars, each account has their own token, and it may be stored in the browser so they stay logged in. I also normally add a "log out everywhere" button, which essentially just generates a new token to overrides the current one, making any previously saved tokens invalid.9
Well fuck. My filament run out. SHIIIIIIT and well its start of the year and i cant buy another spool. Fuck. Well i guess i will code some shit until i can buy some spool. This is fucking horrible. I know what i want for christmass at least. LOOOOOOOOOOT OF FUCKING FILAMENT !!!!!!!!!!! 50KG ? not enough ! 100KG Maybe i can do with that for few weeks. 200KG ? Ouuuu yeah. Naaaah just kidding. I will order a fucking 5KG spool. That should last till christmas i hope.
And breaking news: Im introducing new tag.
HAXK20 SHITTY RANTS !!!
I know amazing ?
You can now subscribe to me or if you want just the shitty rants then just search the tag.
me: Imma start working on this project I have been putting off for a week
me after messing with the chrome console for 30 mins:
Running my own business is not going well. Hasnt for years now. Previous dev jobs were also just nightmares. I feel like i cant cut it as a freelancer, or as a full time dev. I do enjoy programming but my resume is crap and my worthwhile portfolio items are basically all locked down under NDAs or ambiguous accountability. I cant prove im even worth hiring and im almost too old to be considered for any junior role. Not that i think i could handle it. So im considering finding a new career and keeping coding as my hobby. But first i have to decide what to do about my remaining client. Which is fine because... i dont even know what i could do for a full time job now. Ugh, im so profoundly discouraged i dont even want to try and think about this anymore.
The weekly rant topic indirectly applies here but since its a bunch of self pity i decided it would be best to not tag it such...3
I’m working on a react codebase and company decided to add a new module.
Now im writing markup and css to ensure UX is smooth as designers thought of it.
Imagine my horror when I start to code and find out no matter what HTML tag i use, it’s been FUCKING OVERRIDDEN in the global stylesheet. AND STYLES HAVE BEEN OVERRIDDEN WITH !important
They’re also using Ant design as a component library. Guess what, default ant design classes have been overridden too. So i try to use ant design button or card, and bam, MAGICALLY SOME DESIGN FROM SOME SHITHOLE MODULE DECIDES TO FUCK WITH MY STYLES
On top of that, styles of parts of application has been written in SASS, some part of application uses bootstrap components some use third party components like tables and responsive grids to suit to their preferences. Some parts use handwritten css. Some parts use CSS IN JS and styled components. THE FUCK IS THIS GARBAGE!!!! THE FUCKING CODEBASE HAS A MIND OF ITS OWN!!!!!! YOU NAME A WAY TO ADD STYLES TO A COMPONENT, ITS THERE!!!
And the company’s management thought a “fractal” approach to maintain each individual view is “best” for SCALABILITY!!! HOW THE FUCK DID IT NOT CROSS YOUR DUMB MIND THAT FRACTAL APPROACH ALSO GUIDES TO HAVE ALL COMMON STUFF AT ONE PLACE!!!! THIS CODEBASE HAS DUPLICATE STYLES AND DUPLICATE CODE IN ALMOST EVERY MODULE!!!!
Not to mention every developer choosing to freely decide the way they should write their code without any guidelines.
HOW THE FUCK PEOPLE WRITE THEIR CODE WITHOUT THINKING ABOUT OTHER DEVS!!! SO BASICALLY I AM NOT ONLY CLEANING SOMEONE ELSE’S SHIT BUT ALSO TRY NOT TO SHIT IN THE PROCESS!! FML2
Ok so Im doing a project about interpreters for college, and need people to answer questions for it.
If youve ever made an interpreter could you answer these, thanks!
1) how long have you been in the computing industry?
2) what got you into interpreters?
3) what do you think is the hardest part about creating an interpreter?
4) what do you think aare the best practices for creating an interpreter
5) do you think its best to create a language or create your own?9
Was on a Festival last Weekend, and we got some NFC tags to take payments on the Festivalsight
Now im codeing a NFC based TimeTracking App, useing this NFC Tag
OK, im Kind of bored of using #NoHomo
As my Tag...
Now I ask you again to give me a new one!
You will comment Tags and ++ the ones you Like and - - them if you dont.
The Tag with the most ++'s wins.
Time limit: 24 Hours
EDIT 1: Added #NoHomo
EDIT 2: Added Time limit6
Me and a friend are making a discord bot, and added a warning command to warn users.
All was going well, and when we tested the deleting a warning it seemed fine. I then tried to delete all the warnings one by one, when we came across a problem. It wont delete the last warning in the array, the 1st, 2nd, 3rd etc? Thats fine, just the last index that isnt working.
Our code is like this:
list = data.warns//a list of JSON format warnings
console.log(list)//shows the value is in the list
console.log(list[index])//shows the value
console.log(list)//shows its gone
data.warns = list;
console.log(data.warns)//shows the value is still no longer present
data.save().catch(blah blah)//no error is caught, and nothing crashes, it proceeds to send a message to the channel after this
but then the value at index is still there in the database as if it didn't save it, but only if the index is the last item in the array.
We have been stuck on this for over an hour and I now remember why I hate programming.2
So i made my first mod menu! Yess out of Andlua+ for android
This is how it works
Before menu is launched (Root is required)
Menu is launched from andlua
Menu runs in the background
Select the game that the menu is for (stated the package we are modding in the code)
When any button is checked lets say aimbot the C++ file and menu and root will give permission to execute which gives the hack!
How is the C++ file made? Well its converted from lua (game guardian) to cpp :/ this has been a terrible month! Block launcher has stopped working so i have to stick with this im sticking to learning js , python and idk what other langs to use if you dont know what andlua is please do search it up it would be more easier if they made a .so file disassembler for android so i can poke around and find more values / offsets / hexs
So! How are you devs? Yes i use my pc if your asking
The fact that i put this as a hacker tag burn it >:))2
Trying to get a stupid string to be localized in a widely used extension for typo3 (sr_freuserregister). Just add a marker to the HTML template and try to localize it via typoscript.
3 hours later im going to put in my string in English and German and just going to hide them accordingly to the language code in the <html/> tag. Holy crap.