Details
-
AboutA guy.
-
Skillsphp, mysql, linux, osx
-
LocationKuala Lumpur
-
Website
Joined devRant on 11/20/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
-
So a client wanted me to work on a 6 month project for just 300$. Some people really need to learn the value of time and effort18
-
After countless hours trying to spell my name for customer service over the phone, I made a little webpage that helps me spell words phonetically! 💬
https://dialogue.now.sh35 -
Sorry, I just had to post this cable porn I found posted in some random subreddit.
Just look at those curves12 -
So I have been temporarily assigned to new team .. moving from mainly backend.. to help the Web team ..
Me .: Aight guys .. what we working with ?
Team: MVC .net
Me: awesome ..
Team: but we have our own version of MVC .
Me : 🤔 your own MVC ?
Team: yeh we only buse controllers.. but no models at all ?
Me.: 😲 So where does the view gets its data from ?
Team : from Azure functions apps.
M: how ?
T: ( in very proud tone ) .. we use js to call all functions.
M: so why not just use HTML pages . Why MVC then !
T: coz MVC is modern architecture design.
M: but you not using it and all of calles to the functions are exposed publicly.
T: 🧐 THIS IS MODERN DESIGN !!
M: 🤪 My bad .. what the hell do I know ! I only been developing MVC applications for 7 years !!
Please tell me more about your " Modern Design "
🤮🤮🤮25 -
What is in a web name?
thought i would share
ready?
www.gotahoe.com (go tahoe )
www.speedofart.com (speed of art designers)
www.whorepresents.com (who represents celebrity rep lookup site)
and of finally
www.penisland.com ( pen island yup they sell pens)13 -
Ran into a girl who I had a crush on in high school at a bar last week. Hanged out for a bit, but then I had to run catch the last train home.
Today I get a message from her that reads: "Hey, it was nice to meet you last week. Can I call you some time, there's something I want to tell you. 😉"
I think to myself -- sweet and say that I have no meetings today, call me whenever you can.
A couple of minutes later she calls me, and the first thing she says: "I have this app idea..."
fuck, shouldn't have hyped myself up.29 -
when the project manger asks for status on a ticket.
me: what ticket
pm: hold on. (makes ticket). that one.1 -
I have found some subdomains of a specific domain.
I know the subdomains are up but when i try to load them , firefox says "unable to connect".
What might have caused this?
A static ip or mac address?5 -
Me: "Oh, this duplicate record in the database doesn't look important"
*Research. Check. Investigate
Me: "Looks fine to delete! :D"
*Live website goes down for half an hour4 -
Today I learned:
`/usr` stands for “universal system resources” not “user”
`/dev` stands for “device” not “development”
Had no idea.31 -
If you ever feel frustrated due to your UI design, Please kindly visit this website (http://lifeactionrevival.org/). It will cure your pain and you will frustrate no more.
NB: For faster relief visit website on a desktop browser.8 -
The room automation (light, doors, music) of a "smart" Hotel owned by our company is still being processed by an API that runs on one of my ex-colleagues local machine. It has now officially been declared as a "server" and everyone just hopes it keeps working.8
-
> le server suddenly stops working, no boot, no POST, no beeps, no video
*le frantic cursing on how perhaps that's why the fucking thing was only €60 🤬*
*takes out RAM*
> le server still not booting
*places RAM back without doing anything else*
> le server boots up again
🤔🤔🤔
Is this what they mean with things like "compile it again and somehow the compiler will not complain anymore after a while"?16 -
Every step of this project has added another six hurdles. I thought it would be easy, and estimated it at two days to give myself a day off. But instead it's ridiculous. I'm also feeling burned out, depressed (work stress, etc.), and exhausted since I'm taking care of a 3 week old. It has not been fun. :<
I've been trying to get the Google Sheets API working (in Ruby). It's for a shared sales/tracking spreadsheet between two companies.
The documentation for it is almost entirely for Python and Java. The Ruby "quickstart" sample code works, but it's only for 3-legged auth (meaning user auth), but I need it for 2-legged auth (server auth with non-expiring credentials). Took awhile to figure out that variant even existed.
After a bit of digging, I discovered I needed to create a service account. This isn't the most straightforward thing, and setting it up honestly reminds me of setting up AWS, just with less risk of suddenly and surprisingly becoming a broke hobo by selecting confusing option #27 instead of #88.
I set up a new google project, tied it to my company's account (I think?), and then set up a service account for it, with probably the right permissions.
After downloading its creds, figuring out how to actually use them took another few hours. Did I mention there's no Ruby documentation for this? There's plenty of Python and Java example code, but since they use very different implementations, it's almost pointless to read them. At best they give me a vague idea of what my next step might be.
I ended up reading through the code of google's auth gem instead because I couldn't find anything useful online. Maybe it's actually there and the past several days have been one of those weeks where nothing ever works? idk :/
But anyway. I read through their code, and while it's actually not awful, it has some odd organization and a few very peculiar param names. Figuring out what data to pass, and how said data gets used requires some file-hopping. e.g. `json_data_io` wants a file handle, not the data itself. This is going to cause me headaches later since the data will be in the database, not the filesystem. I guess I can write a monkeypatch? or fork their gem? :/
But I digress. I finally manged to set everything up, fix the bugs with my code, and I'm ready to see what `service.create_spreadsheet()` returns. (now that it has positively valid and correctly-implemented authentication! Finally! Woo!)
I open the console... set up the auth... and give it a try.
... six seconds pass ...
... another two seconds pass ...
... annnd I get a lovely "unauthorized" response.
asjdlkagjdsk.
> Pic related.rant it was not simple. but i'm already flustered damnit it's probably the permissions documentation what documentation "it'll be simple" he said google sheets google "totally simple!" she agreed it's been days. days!19 -
GF: Did you watch a movie while you were sleeping?
ME: (Syntax Error): How could i watch a movie while sleeping?
GF: No, the name of the movie is "while you were sleeping"
ME: oh, you forgot quotes for string17