Details
-
AboutI' sandalanka.I'm student.I'm studying sabaragamuwa university of sri lanka.
-
Skillsjs java c# android html php css boostrp
-
Locationsri lanka
-
Github
Joined devRant on 9/28/2018
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
-
Sad to abort a nice Minecraft session with fellow devranters in order to drive to work... Hopefully I am back before 4AM.18
-
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 -
Missed the opportunity to participate in a company wide gamejam cause I don't read my business emails 😢
but then I found out that anyone who doesn't participate gets those days off, which coincidentally fall on Thursday and Friday, and the Monday after that is a national holiday 😁1 -
> had an exam with a friend
> we both go to comp sci college
> had to write a fucked up algorithm in matlab
> he hates matlab
> he completes the task
> the variable that outputs the result is called holocaust
> he gets sent to dean
> expelled24 -
I took a pinball game I found on GitHub, forked it and added graphics along with modified the physics a bit.
https://github.com/ErvinSabic/...
I have a customer who repairs pinball machines.
I'm gonna sneak this into his site free of charge just cause it would be badass.1 -
Fuck. My new job in the public sector requires me to sign paper applications to access JIRA or git. It takes them 4 days to process, so now I am waiting at home doing nothing. I’ll still get paid a competitive developer salary, though.
If you are a EU citizen from a country that subsidizes Poland, you can be sure that your taxes are well spent on my couch :)9 -
I think my hard drive is going to die.
My laptop takes 15 minutes to start up and it takes a fucking long time to open any program but once they're opened they run pretty well... And it does since two weeks ago!
This is a hdd related problem, isn't it?13 -
follow on from my last rant.
I've finally gotten my new Jira project. Only thing I seem to have access to change is the Kanban board columns. Still has 50+ fields when creating a ticket etc.
Asked the support team handling the request if this was a mistake. He said no, i'll need to open another ticket to have those changes requested.
Opened and got a reply. Currently there are 2 versions of Jira running. They are working on consolidating them atm and won't help me right now until this is done. I've been asked to re-open my request after the consolidation is done in March 2019.
5 ... fucking ... months, so I can have a competent ticketing process.
He pointed me to a page explaining the move and listing all the changes taking place. Well lets look at the changes they are making that are so critical:
Change 14: Rename "More info" status to "Needs more info".
... Oh pardon me. I didn't realise such critical show stoppers were being addressed. Please do continue. Don't mind me, i'll just be over here taking 4 hours to create an Epic and 6 stories. As you were9 -
So I tried to start learning Spring 5
How the fuck do you guys do it? Holy shit.
30 seconds in:
"Spring really isn't hard, you start with this request handler interacting with a view parser..."
Alright, sounds good
2 minutes in:
"So in order to use SpringResponseDriverActionHandlerServiceRequesterService you'll need to import com.org.java.spring.util.driver.comagain.request.response.request.drivers and include this 37 level deep nested XML property and finally extend this abstract class and implement it over an iterable list with this specific annotation aaaaaaand.... Done"
> Hello, world!
"See, spring is easy!"11 -
Got bit by a hacked repo. It was compromised for all of like 30-some seconds. No intrusions, but now I can't set my root password (passwd goes "oh, yeah, we got this" then it does... nothing...) and Weyland/X/Gnome/Cinnamon/KDE/whatever the kids use nowadays are all busted (they all start, but they just hang tty1 and whatever other console invoked it). Tried reinstalling all those kinds of things, didn't help.
fml2 -
Should I monetize?
I've created a spot-it like playing card generators online utility. There're around 800 users generating around 800 decks every month currently. I'm just wondering if I should think about placing advertisements on the app. I'm not completely in favor of monetization as they bother user experience, but it can give me some extra bucks to create more applications like this.
What do you say? Should I go for advertisements? How much can I earn from it?
https://funcards.github.io/match-it...7 -
coworker: you know, if you dedicate your life to mastering cobol and fortran you could just make money working on medical software
me: yes because I'd love to be a martyr for tech2 -
Thanks to DevRant, you have saved hundreds of monitors from getting smashed, keyboards from getting torn into pieces and mouses being flung across the rooms! There is a platform for rants now!3
-
You can always fucking tell when it is the season of economics student "entrepreneurs", by just scrolling through the job feed - "payment not verified", "$10k", "NEXT BIG IDEA", "I need", ..7
-
So I wonder if anybody on here has ever come across the LG G3 flickering screen issue.
I bought a LG G3 about 2 years ago. Fantastic phone.. Until all the issues started appearing.
First of all, the glass started lifting off on the left side of the phone, exposing the backlight layer, because the phone somehow managed to bend (insert iphone joke) inside my pocket. I was okay with it since it was a minor visual thing and didn't affect anything.
About 6 months ago the phone started lagging like crazy, and it kept getting worse and worse. It's so bad right now that Twitter will rarely fullscreen images, apps crash all the time, and occasionally the phone freezes to the point where it won't even react to the lock button.
About 2 weeks ago I started getting messages that my sim card was removed, and the phone starts rebooting itself. This would sometimes happen 10 times a day.
I was already pissed at all of these issues and in a desperate need of a new phone, but on Sunday a brand new issue appeared!
The phone's display randomly shut off, then wouldn't want to turn on, and occasionally turn on just to fade out or flicker away.
I of course went to google to see if anybody else has this issue... And it turns out that youtube is full of videos about it. Apparently the overheating issue these phones have slowly ruins the solder on the chips, which in turn creates a poor connection and causes these issues. The only way to solve it seems to be to reflow the chip, but others that tested that only got it to work for around 2 weeks before the issues started reappearing. I haven't tested it myself yet, but after disassembling, fucking around with it, and putting it all back together 3 times I sort of got it to work to the point where I can use it for several minuted before the displays fails. While writing this rant the display only quit on me once at the very beginning.
What I'm wondering is, why is it that nobody at LG decided to address the heating issue by perhaps throttling the CPU more? And I heard the G3 isn't the only LG phone with these issues?
This crap made me lose all my trust in the company. I wanted to upgrade to a G6 or V30, but because of this crap I think my next phone might be a Xiaomi.
This rant is now so long that it's barely even a rant or on topic. I think I should end it here since I have nothing more to say other than the LG G3 is a beautiful but crap phone, oh, and the new iPhone 8 is a flop9 -
So I started new job, full js dev but new project requires python backend. 0 prior python exp but ready to lean and learn. Got my first assignment. Supportive coworkers made me a death clock counter2
-
Well, I got it. The new job that is so from December first I really am a C# developer :)
We just have to agree on the salary. I will at least get more then I have now (as support technician) and well it's kinda a dream come true.2 -
Swag from my previous rant got delivered to the Netherlands in less than a week (more like 5 days). Thanks @dfox and @trogus7
-
"sorry we are no longer accepting questions from this account on stackoverflow"
no problem I'll make a 3rd account.7