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
Search - "found a way"
-
My dad found a phone a few weeks ago and asked me what he should do with it. Knowing how much it hurts to lose personal data, I said I could try to find the owner and send it back.
My first attempt was to search through the files on the SD card in order to find an identifying document (CV, bill, address...) but there were only family pictures.
My second attempt was to unlock the phone and check the information about the owner and the accounts linked to it. But for this to be possible adb has to be enabled. Good thing is that that particular brand shows an option for activating adb on the recovery menu.
But then, it's Android Oreo and I haven't found a way to lift the lock pattern. I thought I could bruteforce it over the shell (as I found there could be about 1300 possibilities for 2 to 5 point patterns), but there is the same attempt throttling as on the screen so that would take ages.
Finally, I found the owner in the most "social" way : The phone was displaying the weather for a particular place. It turns out that there are only 3K inhabitants in that city, si I thought that a big enough Facebook group might help me find the owner. So I posted a message on a 500 people FB group dedicated to this city with a selfie of the owner : someone identified her within 20 minutes.
Mission accomplished 😎42 -
Was irritated and annoyed because of a client.
Someone called the support line and I was ready for some temper-holding practice.
A very sweet lady was at the other side and she couldn't figure something out and was overwhelmed by all the options she had in her new hosting package.
Very calmly helped her and guided her to the right place, step by step. She did exactly what I said instead of playing a smartass.
She finally found it and said that she appreciated it and a ton of thanks 😊.
Now that's a good way to end a work day!8 -
So basically there's this guy, that work with us that relocated from a small village south of Italy to the city where we have the HQ.
So after a while this guy has found a girlfriend here and after few days we discovered that he never had sex in his life. you may ask, how did you discover it? Yes, basically he disappeared for a week, his phone was off, no slack, no Facebook, nothing. We couldn't contact him in any way. After a week he gave a call to our cto saying sorry about what happened and explaining that he spent the whole week having sex with his girl, day and night. This story has also a good end because he still has his job.26 -
Dev: "Ah, I finally fixed that code I was working on the other day and got it pushed to staging!"
Almond: "Ah, great! What was the issue in the end?"
Dev: "It was an odd one - it wasn't actually my code that was the issue, there was a bunch of other code getting in the way."
Almond: "How do you mean?"
Dev: "It kept complaining about something called a "unit test" failing - so after a while I found the right unit tests, deleted them, and now it works great!"
Almond: "..."11 -
I found out recently that Facebook is embedding tracking data in the form of IPTC metadata in images that you upload. This way the images can be tracked even after you download them.
Because I'm an anarchist and just want to watch the world burn a little, I made a tiny server to replace the id hash that they embed with a random one, just to see if I can't fuck with their algorithm a little bit.
You can check out the project here https://github.com/watzon/fbmdob15 -
I am working on another developer's PHP code, and I found a new way that he done the redirect after the login with PHP!30
-
I found a really neat way to toggle two implementations using C style multiline comments.
https://twitter.com/_Gaeel_/status/...3 -
When I was in 7th grade, my neighbor (a DoD programmer) challenged me to write a sorting algorithm for a hypothetical super limited environment (he said a satellite). It didn’t have any built-in sorting methods, had very limited memory, slow processor, etc. so I needed to be clever about it.
It took me a few nights before i found a solution he liked. The method I came up with counted the number of occurrences of each number in the array and put them in the appropriate spots in a new array. This way it only required O(2n) running time and 2n memory.
I just learned today that this is called the “counting sort” 😄
I’m proud of little 11 year old me.19 -
Wtf Microsoft...
Found out the hard way that copying a line of code from Teams chat will sometimes convert the spaces into unrecognized ASCII char.
Spent a few hours yesterday to fix the bad chars.
🤡👍16 -
The person who found this toilet paper company, probably was a programmer. Also probably the best way to describe Array with an Object4
-
Every day in the office kitchen I find bottles of milk open and left out, in the fridge with no date, and empties everywhere. Yesterday I found 11 open and partially used bottles of milk. I’ve designed this flow chart to help educate people (in a way developers can understand) on how to manage milk which is apparently a real challenge for some.10
-
I just found out that there is a method in Java/Android called "Log.wtf()" which stands for...
... What a Terrible Failure!
Don't believe me? See for yourselves! (way to go, guys!)9 -
Vacation in Delphi
Prolog:
After a basic cup of java, I wanted to go to the c and meet Ada, who cured her common lisp with a batch of elixir. On the way, I had a swift Smalltalk with Pascal, who has a brainfuck, because he is a wyvern enthusiast.
I also found a shell with a perl in it, but it had a scratch. This reminded me of my friend Ruby, who has a pet python and loved a good scheme à Shakespeare.
I then started my laptop, which already collected rust on its logo of a maple, and browsed the web for groovy songs. I found a song by Julia, performed in a very high octave in F#.4 -
OMFG it happened again. I'm always very explicit with recruiters that I don't take full time employment while I'm studying. This one was very understanding about it and said he found a great match for my skillset.
I just had a meeting with the CEO of this great match of a company.
- "No, we only seek people who can work full time, let's keep in touch when you've graduated".
What the fuck, way to waste everyones time.10 -
Old man's tale. It's true.
Like 12 years ago, I was working in a small town computer store.
One day, a really ugly woman came in and asked for data recovery since she could not boot up her PC anymore.
We recovered her data, and just to make sure it was all "working", we randomly checked a few directories for files.
We have found some photos of her.
Her and a bottle of Coke.
Let me put it this way: she loves coke bottles. A lot.
There are things that can't be unseen, and moments you still remember after 12 years. Like the moment she came in to get her stuff - and you need to pretend to be all business while you're almost pissing your pants.
Good days :)7 -
Not getting into linux/foss an dumping windows/other proprietary bullshit earlier. The friends I've made through this world, the passion, the ideology behind it...
I fucking wish I'd have found out about this at a way earlier age or even begin raised with those values.8 -
I was learning about packets and I was trying pirni (like Wireshark for iPhone) on my local network. I found a packet of my my roommate about a recipe of fancy a fancy dish
me: *enters the kitchen* Bro you need to see this I got this sick recipe of $fancyDish that I really wanna try
le roommate: THERES NO WAY ARE YOU FREAKING KINDING
I know its wrong to spy on peoples trafic but it was worth it hahaha7 -
How do you make a job offer so that only real 1337 haxx0rs will apply? Well https://automattic.com/ has found a way I guess.4
-
Arduino, all the way...
I have a burn out for 3 years and a few months ago I found arduino.
Burned lots of money in components in the first months because I got so addicted.
No regrets, helped me a lot, been learning a lot and keeps me focused.5 -
So you remember this Headless duck that found it's way into debugging? Well after a few more adventures of 3D printing, it evolved. Afew parts that never would have seen the daylight were added to his body.
Say hello to: Lt. Duckfix3 -
Had to do an assignment in Haskell and had some bugs all over the way. After some Wodka I did a one liner that worked but I never found out why. 10/10 would do again3
-
A bosses son started working with us today. Found out at 5pm I'm now expected to give him a lift to and from work each day because he doesn't drive. This is a boss who easily earns 5 times my wage and isn't offering anything in return. He doesn't even live close or on the way.7
-
Devrant::Mathematicians, unite!
I found a new way to calculate running average.
Old:
a(o, n, i) = (o(i - 1) + n) / i
New:
a(o, n, i) = o + (n - o) / i
a: New average function
o: Old average
n: Element to add to average
i: New number of elements16 -
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 -
Published a well documented and tested API with project examples for basic use cases
- "Yeah we didn't use yours because we didn't know how to use it"
- "Did you look at the documentation or code examples?"
- "What where?"
- "In the repo you just cloned"
- "Yeah no <random guy> found a hacky way of doing what we want, his thing just works"
- "I..."4 -
me: *tries to find a file in system*
Ubuntu: No problem bud, here's a thing which you're looking for
macOS: Sure thing chief, here's your stuff.
Windows 10: Here's a random thing I found on the Internet which is totally irrelavent. By the way, I see you're using Chrome, would you like to start Microsoft Edge instead? 🙃10 -
When your primary Android app (with over 1/2 million total downloads) gets banned...
And all the email says is read these [links to] policies!
Back story: this happened to me back in 2011, no matter what I did there was no way to get in touch with a human at Google, I sure hope this process has gotten better! Having my app suspended with no way to fix and get it back is ridiculous!! This could ruin a business.
Over two years later, on a Google+ hangout with Google Android devs out of the Google London office, I said to them how silly it is that this happened....one of them asked me for the app ID, I provided, he looked it up in a system which then had a reference code which then related to SEO violation....wow I finally found the answer, how silly that an SEO violation (too many keywords in the app description) can get your app permanently suspended. What a shame. I wouldn't wish this on any solo developer trying to self learn and make something...
Sometimes I really just have to say "Fuck you, Google" out loud a few times.9 -
My friend at my office tell me what he did everyday
6.00 am wakeup
6.10 am code while showering (using phone)
8.00 am make a coffee
8.05 am start code
12.00 pm eating lunch
12.10 pm start code
5.00 pm go to home
5.30 pm pickup a phone and do a some socmed
6.00 pm eating
6.10 pm code in pc
11.00 pm sleep
He did that everyday. Im shocked he can code like that. Then i ask him why. He tell me that he loves code so much, everytime he found an error he find a way to solve it and he said it was fun so he cant stop code
I think my boss has brainwashed him :/11 -
Final exams are next week and I'm behind on studying...
If I uninstall devRant, I'll install it back. If I block it using clearlock, I'll find a way to bypass it.
I remember once I accidentally found a way to use devRant on multi window view. I might figure out how to do it again.
So... If you see me on devRant yell at me to get off. I'll be bitter at first, but appreciate it later :)
Oh, and feel free to be as mean as you want. The meaner you are, the less likely I'll go back on.22 -
A few weeks ago when I was sleep deprived I found a way to use devRant in multi window view and now I don't know how I did that anymore. :c13
-
Windows 10: if there is a way to condensate all the shit of the world into a single Operating System, Microsoft has it found that way for sure.10
-
Finally found a way to keep track of my ever expanding studies and how to prioritize them as relevant > how interested I'm > how urgent it is (as in it'd be a game changer if I had this skill right now).
It's called a ternary diagram (just in case you wondered)12 -
Could we just appreciate how good the devRant team has found a way to give life to sources for images taken from this platform?5
-
Motherfucking jquery or adminlte, either one of this shit remove my element addEventListener, already found a way to do it, but it kinda hacky so I still searching the problem
Fuck both of you10 -
Coding gave me a way to express my creativity. It gave me meaning. When I was young I was constantly trying to find what I was good at. It's frustrating because I have one more year of uni doing what doesn't interest me.
Nevertheless, I'm glad I found what I want to do for the rest of my life 🐢.1 -
Found this little gem today in some legacy code at work.
Apparently this is the best way to split a datetime (hh:mm:ss mm/dd/yyy).
If only there was a function that could split a string by keying off characters.
Oh wait there is....
I decided to give it a comment memorial.7 -
Found a bug, reported it to the maintainer.
He then tells me to ignore it since no one noticed it (besides me).
I tell him i can't do it since it's just wrong and he can simply fix it.
Turns out he's just lazy as hell and got mad at me, so i go and fix it.
Next day boss is mad at me because i'm wasting time on tasks that it's not of my concern even knowing all my tasks were completed.
Not even a "thank you by the way".
What did i miss here?4 -
The stranges computer error I have seen.
When modems still was the way you communicated I worked with support.
We where the general distributor for TDC's PCCard modems.
One day we got a computer with modem with intermittent problems (worst kind).
After much trial and error we found that stroking the computer lightly in the top right corner made the modem work perfectly :)
Cause will be reviled later :p4 -
DevRant-Stats Site Update:
Uploaded everything to GitHub now.
Here is a link to the site:
https://devrant-stats.github.io
Not much features yet...
Oh and by the way:
The site is made for DevRant++ Members!
I will update it when I found a fast way to get a list of all devRant Users.
But for now it's only available (or interesting) for devRant++ Members.15 -
Sehr bored!!!! :v I was so bored I started reading rants with the tag “bored” and found a rant of @VenomCLC writing the name of programming languages in a particular way XD so I drawed this.
Enjoy it.2 -
Real story, I'm not kidding you.
But I wouldn't believe it, if it hadn't happened right now.
Customer calls, one device gets no mobile data connection.
I checked everything ... no errors to be found. Just no connection.
After half an hour we found the reason: Someone inserted the SIM the wrong way.
*facepalm*
How the hell can someone put in a SIM the wrong way? There is only one way it'll fit in.
I don't get it.7 -
I spent almost 10 hours coming up with this RegEx. Trial and erroring my way to hell. First I had get rid of the HTML tags (which was easy-ish) then I spent most of my time trying to figure out how to remove the god damn dash but keep hyphenated words ....... Then I found \B and look behinds...
I am making it a point to get good at this shit... Because right now I am petrified of it... Fuck you Regular expression you have taken away all my emotions...14 -
It was a Monday morning, and I did what most people do - I got up late. When I came to senses, I realized I have an important client meeting today.
I ran towards my closet and grabbed my favorite shirt, but it was a mess, badly wrinkled.
But no problem, I decided to put this task on my old but trusty laptop, I waked up my laptop (Which has just celebrated its 12th birthday yesterday), it literally coughed 100 times as i opened 3-4 chrome tabs and android studio on it. Within a minute , my newly found laptop-iron become as hot as the surface of sun, i gently placed my shirt under it and in 5 seconds my shirt was looking brand new !!! I quickly got dressed up , while my laptop was cursing me at the back.
Luckily my meeting went well and we secured a new project, on my way home I was happy and satisfied that my oldy has found a new purpose of life as a makeshift iron.
I returned home, and to my surprise my laptop was'nt turning on....!!! I though maybe its tired from todays work so i let him rest..........3 -
WTF!!!!! I officially have someone trying to extort me just had this in my email box this morning!
--------
Hello,
My name is [name removed], I'm an IT security expert and I found a security issue on your website.
This email is personal and in no way related to any of my employers.
I was able to access to a lot of files which contains sensitive data.
I attached a screenshot of the files I found to this email.
I would be happy to give you the method I used to access these files in order to let you fix it.
Would be a monetary compensation possible?
Please forward this email to the right person, if your are not responsible for the security of the website.
Best Regards,
[name removed]
---
He can basically see the contents of my wp-config.php. How has he managed this?71 -
A few years i had wrote a little script as a proof of concept for remote injection via torrent files.
Yesterday, some doofus bruteforced into my seedbox and tried to install a miner using the same script🤦🤦🤦
Did some digging, found my way back to him and wiped the drives on his system as a gesture of thank you. Anyways, I hope he didn't have anything important on his 16TB volume, cause good luck recovering that10 -
Me: Hello! Welcome to {Company} tech support. How can I help?
Caller: I'll just run through the situation. I got locked out of my apartment and my friend is still inside. I tried calling him but his phone is either off, Do Not Disturb, or something. Anyway, I've tried remotely SSHing our desktop computer from my laptop and using the say command to get the computer to tell him to unlock the door. Unfortunately the volume is too low. I tried Googling how to increase it via command line. But I found nothing. Is there a way to do that?
M: I suppose the doorbell doesn't work?
C: *click*2 -
Necessary context for this rant if you haven't read it already: https://devrant.com/rants/2117209
I've just found my LUKS encrypted flash drive back. It was never stolen.. it somehow got buried in the depths of my pockets. No idea how I didn't look into my jacket for the entire time since that incident happened... But I finally found it back. None of my keys were ever compromised. And there's several backups that were stored there that have now been recovered too. Time to dd this flash drive onto a more permanent storage medium again for archival. Either way, it did get me thinking about the security of this drive. And I'll implement them on the next iteration of it.
For now though.. happy ending. So relieved to see that data back...
Full quality screenshot: https://nixmagic.com/pics/...10 -
Typos kill, kids! And deploying to production.
Instead of "for item in items" in my script, I accidentally did "for items in items". Thus, an exponential loop has been entering things into the database for the past few hours before I found the place to fix it.
By the way, this runs on cron every minute. So there are processes still running exponentially right now, possibly 180+.
Yeah, I'm setting up a a test server instead now.11 -
We just got into a malicious bots database with root access.
So guard duty gave us some warnings for our tableau server, after investigating we found an ip that was spamming us trying all sorts. After trying some stuff we managed to access their MySQL database, root root logged us in. Anyway the database we just broke into seems to have schemas for not only the bot but also a few Chinese gambling websites. There are lots of payment details on here.
Big question, who do we report this to, and what's the best way to do so anonymously? I'm assuming the malicious bot has just hyjacked the server for these gambling sites so we won't touch those but dropping the schema the bot is using is also viable. However it has a list of other ips, trying those we found more compromised servers which we could also log in to with root root.
This is kinda ongoing, writing this as my coworker is digging through this more.11 -
Found this in a code review today.
Technically, I guess, that is one way to fix a divide by zero error.14 -
Languages like python and R are some-what high level languages, with an easy syntax and very readable code. This useful essentially to make it easier for non-programmers to use it. For me as a software developer with +4 years of professional programming. I started with Assembly, Quick-Basic to C++, Java then C#, I found Python super convenient, and at times way too convenient.
At first it felt like I was cheating, and would not consider myself actually writing code, more like pseudo-coding.
After a year or so, I got used to it and it became my default, but it still does not feel right .. is anyone else feeling the same?
I do believe that coding the hard way is not always the right way, but I am just wired that way.17 -
I've been a part of this industry for over two decades, found myself scraping and clawing my way up, recently leaving a high paying position to create my own company; in an attempt to fix the things I feel are severely broken within the ones I've worked for in the past.
Sometimes, we are challenged in ways we never thought we would be. And, it should always result in the improvement of something we never thought would be possible to improve.
There's a certain beauty of hitting a personal impasse. Because it allows you to choose a better path for yourself - which is a key element in accepting and conquering any one of life's many challenges.
So, just remember, we are - by nature - problem solvers. So what the fuck would we do, without a problem to solve?5 -
Call me a child, but I still have a love for Lego. Lately, as I have been sorting my childhood collection into individual sets, I needed a way to track how many of each piece I've found for any given set, and started programming a tool that lets me pull Lego set inventories from the internet and keep track of the parts I've found.
This is the first time I've found a problem and built a program to solve it, and it feels so good! :D
(in case anyone is curious, I'm building it in Java as an Android app.)3 -
I feel so unimportant today. I'm feeling like an
else {
continue;
}
in a loop. (I wrote some code for 2 days and then I found out a way to do it better in 10 mins)2 -
Algorithms real life implementation
On the way to your college canteen? -> A* search
Waiting in line in the canteen? -> Queue
Notice that girl standing in front? -> Linear search
Searching for her dad in the phone book? -> Binary search
Stupid! Google it! -> Trie
Search for her on Facebook! -> Depth-first search
Found her! Friend request? Accepted! Send a Hi! -> Graph
Writing her a secret love letter? -> Caesar cipher
Uploading your first date pic on fb? -> Image compression algorithms
Looking through her Whatsapp messages? -> KMP algorithm
She found out and had your first fight? -> Start over with some gifts! Backtracking
Got her list of items to buy? -> Array
Too many items! Low on cash, maybe? -> Priority queue
Making her play treasure hunt for her gifts? -> Linked list
Wait! Go back! Is that a ring? -> Stack
Girl’s family not agreeing to your proposal? -> Divide and conquer
Got married? Congrats! Going for your honeymoon? -> Travelling salesman problem
Your mom packing luggage for you? -> 0/1 Knapsack problem
She packed your favorite pickles? -> Hash table
Driving to the airport? -> Breadth-first search1 -
I scored a GBA sp (with Super Mario Bros 3) at my local Goodwill today for $20. I always wanted one as a kid, but I almost didn't get it cause some asshole found it first. I saw him fumble with it for a solid 3 minutes before he could get it to turn on. Finally he put the cartridge in the right way and flicked the power switch. I thought it was all over. At that point the dumbass realized it worth something but instead of buying it HE HID THE GAMEBOY AND LEFT. I wasn't going to wait for him so I bought it myself 😂.6
-
Fuck Microsoft and the windows dev team! Fuck the person who thinks it's a bright idea to force users to download updates on their fucking insecure OS.
I live in a shitty substandard country where the cheapest mobile data plan is roughly $7.5 for 7.2gb for a month.
After several weeks of Windows auto downloading updates I don't need, I disabled the updates on several fronts using tutorials found online until yesterday, the fucking thing still found a way to download updates over 6gb, I didn't suspect a thing until I got notification that my data plan is exhausted and I immediately checked windows update and saw a fucking download meter of 76% downloaded. The data was suppose to last for 4-5 days, all gone within 3 hours span.
Fuck whoever thought it is a nice idea to force users to download shitty updates, leave me with the fucking old unstable version, if I get a malware I know how to find my way out you fucking goofs at microfuckingsoft!!14 -
So today I found a way to break into any Apple Mac (provided the exploit hasn't been fixed by the owner) and access all private files, as long as I have physical access to it, in less than 5 minutes.
After finding this, a quick Google on the method reveals this has been a workaround for years.
And to think I once praised Apple for their security standards.
Edit: this was done to an in-house Mac that my company own, and had been password locked by a member of staff who had been fired, but held important company documents on the computer. It was in no way a breach of privacy.7 -
Me trying to take a screenshot with iOS 12:
*holds home and presses lock* (the only way I had found to reliably take a screenshot in previous versions): Siri
Fuck off Siri I want a screenshot!
*tries again same way*: Siri
Fuck OFF Siri!
*holds lock + home*: phone locks
Christ almighty.
*unlocks phone, presses home and lock at the exact same time*
Nothing happens.
*continues holding* I just want my fucking screenshot.
Phone powers off. Hard reset.
Fuck this shit.
How hard is it to monitor two buttons being pressed at the same time? And if it is so damn hard why make it the ONLY WAY TO TAKE A SCREENSHOT??!
Now whenever I want a screenshot it’s basically a crapshoot whether I will get a screenshot, Siri barging in, or my phone locking on me.
Couldn’t they have just used the volume buttons instead? 😡12 -
Java. AGAIN. 😡
so, I am trying to get a csv opened and read, and then search through it based on values. Easy peasy lemon squeezy in python, right?
Well, damned be java. You need a buffered reader to read the file. Then you have to "while(has next)" the whole damn thing, then you have to do something with the data that you read one by one, right? Well, not to be disappointed, they do have json libraries, but you **have to install** the plugins for it. Aka you have to manually add the libraries or use some backwards manager like maven.
Gotta admit, jdbc is neat if you're anal about your sql statements, but bring the same jazz to csv, and all the hell will break loose.
Now, if you just read your json data into multiple objects and throw them in an array... Kiss shorthand search's ass goodbye, because this mofo can't search through lists without licking the arse of every object. And now, you have to find another way because this way, you can't group shit you just read from csv. (or, I haven't found a way after 5 hours of dealing with the godforsaken shitshow that java libraries are.)
Like, I'm devastated. If this rant doesn't make much sense to you, blame some java library for it.
Shouldn't be too hard.24 -
Just started as a remote dev and I found that it's IMPOSSIBLE to work from home.
Get annoyed from something not compiling/errors? Go play some video games two feet away. Nothing going your way? Go lie down on the bed behind you.
But for some reason I can work from home way better at night.
Any other tips for working remotely?9 -
Time for a soap box rant.
I just found this in one of our projects. I've simplified the example to make it more anonymous.
When I see code like this it automatically means there is a lack of attention to enumerations and/or understanding of what they are.
One may argue that in a certain execution of code it's a minor performance hit and therefore insignificant. It's still a performance hit. Furthermore, it takes even less time to do it the right way than it does to do it the wrong way.
Every one of these lines will enumerate the list from the beginning to try and find that one element you're interested in. Big O notation, people.
Throw that crap into a dictionary or hashset or similarly applicable data structure with direct reads at the beginning of your logic so that it only gets enumerated ONCE when the data structure instance is created. Then access it however many times you want.
Soap box rant over.15 -
Is asking for a nice email client in Linux too much?
In thunderbird, I found no way to customize the "messages pane". Title, sender, time all in one line.
In KMail, the fonts and style of HTML signature is not working as expected.
In Evolution, the fonts scaling doesn't work correctly.
Fuck me!11 -
Remember the post about bruce's constant?(4.5099806905005)
Well apparently theres a convergent series for it found all the way back in 2015.
Apparently its an actual thing. Which connects e to the square root of this series.
And it converges on (bruce-1)**0.5.
I confirmed it myself.
The two people who found the series that converges are N. J. A. Sloane and Hiroaki Yamanouchi
Thank you Sloane and Hiroaki!
The actual formula is a series of embedded square roots with the repeating numbers 1,4,2,8,5,7
like so...
sqrt(1+sqrt(4+sqrt(2+sqrt(8+sqrt...
What this means is you can find e using this series.
All you do is run the series, raise by a power of 2, add 1, calculate J and K like so
J = log(2, 1.333333333333333) / log(2, 2)
K = log(2, 1.333333333333333) / log(2, 3)
then calculate (J+K)-(bruce-1)
and out pops our buddy e:
2.7182818284591317
I guess I bullshitted myself for so long, that I didn't believe people like scor when they said they legit witnessed by math skills grow.
Or maybe a blind squirrel occasionally DOES find a nut.
Pretty cool find either way.13 -
God I fucking hate WordPress
Today I found out a single WooCommerce site is using 20% of database CPU (for comparison, 50 other sites use only 10% between them). Upon investigation it turns out that WooCommerce loads every single product in order to do the taxonomy count. Because the data is stored as PHP-serialised values in post meta, there's no way to do a decent "SELECT count() ... GROUP BY ...". And that code came straight from the WordPress devs, no more and no less...8 -
With all the master being renamed to main & other similar renaming crap happening because people are offended.. how is it that noone has a problem with wash your colors & whites separately?! O.o // random thought when doing the loads the other day..
Or is this also a thing people are complaining about and just hasn't found a way to me yet.. ?!? 🤔3 -
Why I sometimes hate linux:
Found old computer with freya os.. I usually work on Windows, so I thought lets try to work on linux for a change..
First things first: sudo apt-get update / upgrade and while it is doing all the updates lets get something to drink..
Came back, logged inn and mouse is gone.. after some googling and searching on my mobile i found out that alt+ctrl+f1 and then alt+ctrl+f7 fixes problem..
Mouse now is back but upgrade failed half way though because no network.. wifi stopped working.. something wrong with drivers.. so to continue upgrade of OS i need a cable now.. (restart didn't work)
Two hours later I managed to update everything, wifi drivers are working and I managed to post this.. But it's too late to do anything, so I will probably put this away again for couple months and will go through same shit next time I open it.5 -
!rant
Was on the public bus on the way to work... was snoozing on a seat next to a window when a droplet from the air-con vent dropped in my mouth... instantly woke up.
Guess I found my not-so-reliable alt caffine source.1 -
!rant
I used to doubt the usefulness of regex, until now.
I'm new to web dev, and downloaded a sample website to make a project with, but all the sources of images came as src="images/image.jpg", and for some reason I couldn't make it work, the only way that I found that could work to me was creating a static folder inside my app folder, declaring in the start of the document a {% load static %} and referring the image source as {% static 'images/image.jpg' %} in the html file, I kinda get what this is doing, but why it's the only way that works, it's beyond me.
Great! Now I can start the development server and see the website in its full glory!!! Then I realized: I had to edit the sources of every image and every reference to css and js in 5 html files to it work properly, and come on, do all that by hand?
Then regex came to mind, never had used it, never knew how to use it properly, after some web research I found if I did a find/replace with ([a-z]\w+\/[a-z,-]+\.[a-z]+{1,2}) and {% static '$1' %}, all the work I had to do, was resumed to a single click of replace all.
Man, I love doing what I do, and I love you guys/gals, never tough I would ever find a place in which I could share this kind of thing!6 -
Make. Fucking. Backups...
I had to find a MailChimp sync plugin for a webshop and thought I found a good one that synced one way (webshop to MailChimp).
I figured, meh, what could go wrong? So I installed it, ran it...and somehow lost around 4000 mailinglist receipients because they were not in the webshop.
Turns out it adds the registered users in the webshop, but also removes entries that are not! Needless to say, I had some explaining to do and was only able to recover about 3000 addresses from a previously sent campaign.
Customer was not happy, neither was my boss, very important lesson learned...1 -
I'm new into Java and tried creating a simple GUI.
Took me about 3 hours until i've found out that I must put a JTextArea into a JScollPane and not the other way around to display the textarea with a working scrollbar.
I love this already.
(I'm also a new devRant user, so... Hey :] !)6 -
An experience that made me doubt (some) skills was when I tried for 3 days straight to find a way to share data over a win32 message. The event worked flawlessly, but the data payload always cointained random bytes.
A few weeks later I found an article about MemoryMappedFiles, which helped me solve it within half an hour.1 -
I found a way to make me procrastinate less on my own projects today! Stream development of it to Twitch.
Yes, there may be nobody watching most of the time; yes there may be nobody interested in a wall of text and no voice; but you just feel the need to stay on-topic when streaming, and I kinda liked it.undefined or... you know... youtube gaming could work stream the world is watching you... maybe not procrastination hobby twitch3 -
Recruiter rant!
I hate when recruiters send you smileys after your first response - Why can't they simply answer in a formal way? This is business and not just another social network...
Claification, just another social network of course excludes devRant, devRant and its community is awesome and I am so glad that I found the app and can be a small part of it!9 -
Just spent an hour looking at the NYC Subway maps vs the direction Google wanted me to take.
Google found the most efficient way is to take E train then transfer to R which then goes back a bit like a U-turn to get to my stop.
Then looking at the subway map, I can just take the R train... Since none of these trains are express... How the fuck did Google think that A-B-C is faster than A-C....10 -
Can I have a big applause for this recruitment agency that baffled me in a good way?
No I'm not kidding! Their employers are actually not total fuckwits at all, as opposed to ALL previous recruiters I've had the nauseating displeasure of meeting.
They really found me 3 perfectly fitting jobs! (and I'm known to be picky)4 -
Random thought of the day. I'm sure I've been told the "common wisdom" is that you can take a job with a lower salary and enjoy a better work-life balance, or go gung-ho for the inner city jobs and earn way more but sacrifice your quality of life.
Anyone else found the complete opposite? The higher the salary I've had over my career, generally the *better* the working environment and the more the employer seems to care for, and value its employees. Not universally true I'm sure, and perhaps I'm just lucky about where I pick, but I've certainly had way more "high stress" situations in some of my lower paid, rather than higher paid roles.9 -
I started working for a startup around 2 years ago, I literally helped them survive in covid, I worked my ass off for them. (I was getting good money so no complain there) but now after 2 years I started looking for better opportunities and finally found one but now the old company guy is not letting me go they have froze my experience letter, not accepting resignation letter not even giving me my salary slips and since with all this frustration I stopped working 2 months ago and now I got blocked form every possible way to contact them.8
-
So I recently found out that just about every other company in this town pays their devs with equivalent experience at least 25% more than what my current employer does.
I requested a salary meeting and informed my boss that I'm way below the average for my position, he replied "Yeah, your salary has been below average for years now, yet you are my best employee in this area".
It hurts that he very well knew this fact and still decided not do to anything about it before I brought it up.
I told him that I don't feel rewarded for all my hard work and overtime, so I requested a 25% bump or I'm leaving in January.9 -
Damnnn, have u ever found the solution to problem while u were sleeping cause i found the way how to fixed a bug in my dream maybe cause i was thinking about it before i went to sleep but its really weird when i think about it. 😬🤯1
-
Finally found a quite reliable way of generating mbtiles 'archives' for tile hosting!
Now I yet have to find a reliable way to fucking actually HOST it and a way to get it fucking displayed.
Spend my entire goddamn day on this and I'm hardly a step closer, for fucks sake.2 -
So, today I wanted to program a bit and, after reading the last chapter, I want to see what I able to do.
I run my last Linux distro, I open sublime and I start typing code. I finish, I build. 0 warning, 0 errors. Nice! I execute the code: error.
I watch and I struggle on the code for hours, I search on Google, I search on StackOverflow, but after 1 hour I notice I'm looking for a needle in a haystack. So I search instead for a way to produce a better error. I found it, I'm very happy. Let's try what the error actually is:
Error: success
Ok....
Ok...... Well, maybe.... Uhm......
Ok, I won't give up. I search for a tutorial. Found.
The code is almost the mine, it's actually a usual snippet, nothing new. I compare my code with the code in the example/tutorial.
First line, is the same.
First 10 lines, are the same.
First 30 lines, are the same.
I build and execute the example: it works.
I build and execute my code: still doesn't work.
I won't give up, I said it. I won't give up.
I wonder if there's a tool like git diff, so I can see what the differences are, maybe I've no good eyes.
I search, first Google result, "diff"
diff myCode.c example.c
"the files are not identical"
...thank you
I search for a better command
diff -y myCode.c example.c
"the files are not identical"
I search for a still better command
Found. StackOverflow stroke again.
sdiff myCode.c example.c
"the files are not identical"
.....
....
.....
I gave up.
Ps. I've 10 years of experience in programming4 -
Be me, wanting to try out PyOpenGL.
Lets start by drawing a rectangle.
Nice.
And now add some text?!
NOPE CANT RENDER FROM TTF OR SOME OTHER STUPID SHIT! YOU NEED TO CREATE A BITMAP FONT. WHICH IS THE MOST INEFFECTIVE BS IVE EVER SEEN.
K but there is surely a library for Python which enables the usage of text in OpenGL? Yes but its last support was 12 years ago.
FFS WHAT IS THIS GARBAGE?
At the end i found out cpp uses freetype to convert each character of a font to a bitmap with the according spacing.
THIS SHOULD BE WAY SIMPLER!5 -
aaAAaaAaaAaaAaAAAAAaAaaa floating points!
I debugged my algorithm for quite a while, wondering why it sometimes gives out "Circle(Point({1.7976931348623157E308,1.7976931348623157E308}),1.7976931348623157E308)" as the smallest circle around a group of points.
Figured out that it sometimes just never found any circle defined by two or three of the points which included all points (which is mathematically impossible).
Then finally I made it print out the points it thought were not inside the circle:
"1,7,8: Circle(Point({0.6636411126185259,0.535709780023259}),0.4985310690982777)
skip, 1 not inside"
So it defined the circle with 1 being on the edge, but then thought 1 was outside. Thank you, floating point Math.
For anyone wondering about the notation: That way I can directly copy/paste it into Geogebra to have a visualisation.7 -
I was working yesterday, writing a calculus with sql.
My very great user explained to me the math in Excel. I first though to myself, piece of cake, i got it.
Then I started typing and at the end of the day i had 6 temp tables which at some point need to join with themselves. It was just hilarious. each table had at least 4 millions rows.
Then I started a new query just for validating the output of me very ugly previous queries.
And I fucking found a easier way to get the same output with 3 joins of 3 different tables and a count at the end.
When you love yourself. but hate yourself at the same time.
xD it was a very productive Friday night2 -
That feeling when you’ve got a reputation of preciseness etc, and the code you just submitted for review has so many silly little mistakes you just want to do that ostrich thing. Gosh, how can I suddenly suck at my job this bad?
Okay, the changes affect EVERYTHING in our codebase (a major change in core business logic), and there is no way I could’ve tested every possible case by myself without a decent coverage of automated tests - which we obviously don’t have. So yet another argument for it (damn management, won’t you listen?!)… but still, some of the mistakes found during code review make me seem like a complete idiot.5 -
So my friend who's learning to program didn't really feel like he accomplished much in a uni assignment since he googled most stuff, copy-pasted and tweaked the code a bit. When I told him that's actually the way we do things he found it the funniest thing ever.13
-
Autodesk + Linux is such a goddamn clusterfuck.
Firstly, they only release RPM builds for Maya, and say that they officially support RHEL and CentOS only.
No support for Debian, Arch, etc. What. The. Fuck.
Fine. Okay. Corporate policy. I can live with that. I use alien to convert the RPMs to DEBs on my ZorinOS installation and then found a script which does the installation for me. Cool.
Installs with a few library fuckups. Okay, no problem. I added the missing library versions (ancient libpng and libtiff). I run it. It throws up with some error involving licensing.
Upon searching it seems that Maya 20-fucking-17 can't handle the "new" consistent device naming system (the one which renames eth0 to enp1s0 or whatever). WHAT THE FUCK. Okay. Found a way to disable that. No effect. It's doing the equivalent of a boot loop with the same error.
Wow. This is the leading player in 3D content creation software :/
(As an aside, I did try to install Fedora 28 but it keeps failing with a TPM error. Yay for Linux distro quirks).1 -
If you wanna think that I'm a bad programmer, that's ok, but I can't put up anymore with Xcode.
Jesus Christ. An entire afternoon spent trying to make an array with two dimensions. I tried every fucking way I found in SO, in the apple site and in every another site that I found in my way.
First: For every example for Swift 3 there's another 10 for Swift <3.
Second: Mutable arrays, as I'm noticing, aren't a thing anymore, so, to declaring array size we go! Except it's impossible to. Tried 3 different ways. Not a single one worked.
Third: Actually, one of the 3 tries worked, for int arrays, and for some obscure reason it won't work for strings, as declaring the array as [String] is too general for swift, I mean, I completely agree with it, a [String] array could contain anything right???? FUCK NO. IT CONTAINS STRINGS YOU FUCKER!!!!
I swear, if the equipment was mine and not from the office, I would have thrown that piece of shit which disconnects from the fucking computer every 30 seconds that apple calls keyboard out of the window already.
Why the fuck do I need to develop for iOS in swift/xcode?? There's so many cross platform alternatives out there, good ones in fact, but no, we must build the applications natively or else the phone will catch on fire according to my boss.
I kinda liked Apple until now.
From now on? Fuck Apple.10 -
just had a movie script idea
in the future, humanity found a way to deal with the problem of death.
humans now live up to 200 years, but their bodies deteriorate very fast.
so instead of keeping them on classic life support, people's heads are succesfully severed and their their brain is plugged into a machine , so that they can live in a digital AI heaven.
This also means that in turn people can talk with their parents that had been in the system already.
So there you go, an artifficial heaven.14 -
Everyone has a great story about writing their first line of code when they were under 15 years old, except for me. I got my first computer at a young age, around 11, thanks to my dad's friend who brought the computer along with some CD-ROMs of Tom and Jerry and GTA Vice City. (By the way, I had to wait ages for the game to load, and I was very happy when it finally did.) I spent my childhood playing games. You guys are lucky to have found someone who encouraged you to learn to code. I didn't have internet at that time8
-
They did it. They really did it.
Oh my... I can't believe it.
I suggested app admins find a way to enable keep-alive in the app. And they installed it.
I mean it. KeepAlive_setup_v1.4.msi is what I found on the desktop.
Next, I feel like suggesting to download more RAM... After this stunt, I wouldn't even be surprised.....2 -
Got started by making farmville cheats. Found many exploits. Best was when I found 3 ways to do the same exploit. Zynga kept patching and I kept releasing a new way.
Lasted for just over a year or so.
Played for like 3years and then got bored. Those were the golden days, really miss them.7 -
A few days ago our server was compromised due to an outdated Jenkins version. The malicious user installed a crypto miner on the server... The same day that it was found I told management that I'm interested in helping out with the server. Since then, nothing happened... No updates, no security measures, no nothing (except for the removed crypto miner and updated Jenkins software)
Oh well only a matter of time before another hack...
Question to some (who work way way way longer than me) med - seniors, should I make a big deal out of this? And keep pressure on it. Or should I just leave it be and wait for the next comprised server? I know devrant is not a Q&A service, but some dev to dev advice is much appreciated.
- incognito1 -
Did some changes and raised a code review. Some lines' indentation don't align. The senior dev (reviewer) asks me to format according to the project scheme.
Changed all tabs to spaces; lines don't align.
Changed all spaces to tabs (with a heavy heart); surprisingly it still doesn't align!!
I'm like okay, let's dive deeper.. Found that the surrounding lines were indented this way: 4 spaces followed by a tab..!! SERIOUSLY!?! WHY? HOW? I mean how does this kind of shit happen?!
Worst part -> getting ship it after following the current convention! -
this year i finally found a job where I don't feel like dying, and it pays well. things are going so smoothly that I'm a bit weirded out, in a good way.
the work as a dev requires creativity and is mentally exhausting, but i got a nice routine going on (not a lot of programming, mostly database maintenance), and even with the high pressure I'm still fine :) -
So my father asked me what I think about filemaker. I researched, while we were waiting for the food (restaurant) bs holy fuck, I've never gotten this bad vibes from a from something I believe to be a scripting language.
> proprietary (Apple)
> only articles I found about it were related to LinkedIn or at least written like they were
> not a single text based tutorial on the first pages of the search result, only videos (didn't watch them, because my mobile data is too scared for that)
> I can't find anything remotely explaining what this shit is about.
wikipedia was the most best resource I could find
> Free ebook about "how to train your junior developer" for filemaker requires me to enter way too much personal information.2 -
Just had a recruiter contact me, and found this gem in their text:
"We work with MS stack and SQL Server, but we really think JavaScript is the way of the future"
Motherfucker, JavaScript can hardly tell basic types apart, how the fuck you gon' run a relational database with it!? And if you're not, then why the fuck are you running a relational database in the first place!?
Fuck outta here!2 -
!rant
So, I don't have any idea about copyright law. I've heard, that React is bad, as it has a `if you sue or in any way "compete" against us, we revoke your licence` clause.
So how bad is this? Is this really a thing, unless you either sue FB, or they try to buy you (which are both not very probable for small companies). Could someone who knows their shit give me a tl;dr summary (or feel free to debate)
What I've found so far: https://github.com/facebook/react/... which seams to be kind of ok.
This would be the patent: https://github.com/facebook/react/...7 -
DevRant-Stats Site Update:
Made some changes.
After a long time with no updates, I decided to finish up my DevRant-Stats Project and do all of my Todos.
First, I added a way to request adding a user if he is not found. (Just search for your name, wait, then click "OK")
So even non-DevRant++ are now able to see their stats.
I also added @dfox and @trogus, though there is not a lot of interesting data yet...
Second, I added a "Details" section and changed the "Other" section a bit. For example I'm using an image for "Latest Rant" and other stuff.
Link: https://devrant-stats.github.io/
Just check it out!
Have fun!
~ Skayo11 -
Today I found out we have 5 different Customer databases, one for each product area. We don't have access to more than 2 of them, while corp. it central has full access, but we have to beg and pay to see our own customers....
Now i'm tasked with integrating all these into a Customer db. and the way i get access is cobolt made, fixed length csv files and it's different for each db.
FML1 -
On a related note
Here is something we should not find funny
But still they found a way with a screaming bitch in a nighty -
I've been in a new city for a while, now.
When it comes to getting to know a new city, I like to pick a remote destination of interest within a walking distance /* Which usually is a supermarket, or an electronics store. */ && just pay attention to surroundings on my way there.
Using Google Maps myself, since it works quite well in my area.
Today /* Technically yesterday, since currently it's past midnight, but the event took place a few hours ago, but whatever. */ I have found this interesting landmark.7 -
i have been browsing trough my gists and this is what I have found.
HAI
HOW DUZ I PRINTSMILE
VISIBLE "SMILEZ!"!
IF U SAY SO
HOW DUZ I PRINTSMILEZ NUMBERZ
I HAS A SMILEZLINE ITZ ""
IM IN YR LOOP NERFIN YR NUMBERZ WHILE NUMBERZ BIGGR THAN 0
SMILEZLINE R SMOOSH SMILEZLINE AN "SMILEZ!" MKAY
IM OUTTA YR LOOP
VISIBLE SMILEZLINE
IF U SAY SO
VISIBLE "O HAI! NOT MY WERK! LOL!:):)DIS WAY CUZ I LIEK SMOOSH:)"
I HAS A COUNTER ITZ 3
IM IN YR LOOP NERFIN YR COUNTER WHILE COUNTER BIGGR THAN 0
PRINTSMILEZ COUNTER
IM OUTTA YR LOOP
VISIBLE ":)N DIS WAY CUZ QUESTION. LOL!:)"
COUNTER R 3
IM IN YR LOOP NERFIN YR COUNTER WHILE COUNTER BIGGR THAN 0
I HAS A UDDERCOUNTER ITZ COUNTER
IM IN YR INNERLOOP NERFIN YR UDDERCOUNTER WHILE UDDERCOUNTER BIGGR THAN 0
PRINTSMILE
IM OUTTA YR INNERLOOP
VISIBLE ":)"!
IM OUTTA YR LOOP
VISIBLE ":)LOLOLOLOLOLOLOLOLOLOLOLOL!:):)KTHXBYE"
KTHXBYE9 -
Finally found a way to deploy my Docker image to my VPS with nothing else than GitlabCI. My CI/CD system will soon be perfect.
[ Heavy breathing ]3 -
Me: Wants to access an IP camera from home. Goes to url on mac. “Plugin required” press install “Not found”, google it: “ActiveX is deprecated and only works in IE.” Installs windows 7 on a virtual machine: runs IE “page can’t be load, browser not supported” looks for other way: got access: Sooooo slow After all that spent time: forget it I don’t wanna see it anymore.rant windows windows 7 virtual machine virtualbox macos activex ip camera internet explorer ie8 vm vmware
-
**phone rings**
- Hello
- Hi. I am calling from *some MNC*. We have a job opportunity for you. Do you have any plans to switch?
- What's the domain?
- It's asp.net and Xamarin.
- Sorry, I do not work on that anymore. Please let me know if you have any openings in Python.
**phone rings again**
- Hello
- Hi. I am calling from *another MNC*. We have a job opportunity for you. Do you have any plans to switch?
- What's the domain?
- It's python.
- Sorry, I do not work on that anymore. Please let me know if you have any openings in asp.net.
My story for last four years. I guess I have found the most humble way to reject the job calls.6 -
I tried to watch netflix ‘13 Reasons Why’ series after reading article about ‘scientists found a 13.3 percent increase in teenagers’ deaths from suicide”
source: https://theverge.com/2019/5/...
I started scrolling trough the show after second episode cause it was so boring and predictable.
Maybe I’m just to old or maybe don’t understand USA school system or maybe I watched way to many typical movies about how the ‘popular group of teenagers’ make other teenagers life a nightmare ( Including scary movie and Venezuelan telenovelas ).
Can anybody who got interested into the show write why it is so cool or depressing ?10 -
Just found this on Reddit
"I used to think that everybody should learn programming. When I first started learning –thinking about how to organize the world in terms of data structures and algorithms– I thought, "Wow, this is such an amazing way to organize information. Everybody should learn to do this!"
I don't think that anymore.
I think there has to be something seriously wrong with you in order to do this work. A normal person, once they’ve looked into the abyss, will say, “I’m done. This is stupid. I’m going to do something else.” But not us, ‘cause there’s something really wrong with us."
Douglas Crockford1 -
I had a half our discussion the other day with a projectmanager about the menu. He wanted to have both inpage anchor links as well as normal links in the main navigation. I found it completely stupid and didn’t get why you would want this. It’s totally unexpected behaviour from a users perspective and tried for 30 minutes to convince him of his stupidity.
Afterwards i gave in, sure, i’ll make it your stupid way. The actual pages that are there now won’t be visible anymore but if this is what you reallllllly want: sure.
Yesterday he came with a remark: the pages that used to be there can’t be reached anymore.
Always trust your developer -
Freelance developers, how do you get clients?
I am developing apps/websites with a friend and so far er have found our clients mainly on project-listing sites (sites like freelancer.com). My experience is though, that it always becomes a price-race, and with many projects only being small static websites, it just doesn't seem that this is the way to Go.
So if any of you have suggestions on how and where to find larger/more serious clients that will be much appreciated - it should be said that we already have quite a few projects to show in our portfolio, so I think we are ready to take on some larger projects6 -
Wk33:
Best experience of 2016 is probably just realising I'm a pretty good programmer. I have a physics undergraduate degree and a 1 year masters in CS, I'm working on back end algorithm stuff so pretty mathsy at times, but I've found from working with others that I write good quality code. I've still got lots to learn but I've got a solid foundation, am reading, learning and coding outside of work.
Worst experience of 2016 is working with people for whom it's purely a day job, only about the money, get things done in whatever hacky way works.10 -
I was just wondering why the flying fuck OxyPlot was rendering an unknown node on my chart for monday when I only queued my sql db for a single Tuesday.
Noticed it was an auto generated node, which had the right time, status, everything.
I looked up my code and found out that the date somehow bugged out, and if c# isn't sure what to do with an empty date it initializes a date on 1.1.0001
And what do you know. Appearantly thats a Monday.
I broke my head way harder over this than I should have, assuming the worst possible bugs in the render engine. fml -
Run test
everything ok
Run again
everything ok
Run again
error
Run again
everything ok
*wtaf is happening?*
I googled for the cause of a "double callback" error and found out that supertest was throwing it when I was attaching a file to the API request. found no conclusive way to solve it, just that "supertest does it from time to time".
Trying to investigate further, I made a function to repeat the API request 5 times in a row. Everything passed. The run it again. Two failed. Again and everything passed.
this is bullshit
fml -
I found out today that my company is going to make a huge deploy to implement non-binary genders on our platform, well, they see woman as 0 and man as 1 (insurance company), and they make calculations with the NUMBER, like, value = gender x risk.. The funny part is that this way to interpret gender is going to be awesome when the "2" be deployed, the non-binary genders.. well, fuck, all calculations will be refactored (20 years of development)4
-
That shitty moment when you are reverse engineering an app (LINE), but can't find any useful hints.
Web analysis didn't help. Decompiling the windows executable also didn't help. Testing the app on different behaviour with python scripts didn't help. Analysing the android app on windows with the jadx decompiler and other decompiler didn't help that much.
BUT today it worked. I did use a paid "Dex dump" android application. I found some methods that the app receives from the servers with a thrift protocol.
Now I just need to find the right parameters to be finally able to make a bot. Hehehe.
That was a hard way, but it paid out. I did learn so many things. It took me like a whole year.5 -
I found some billing information in a sharepoint folder for a contract I am on. I make 3.25% of the amount the customer pays and my boss makes 28%. No way does she work that much harder than we do on any of our contracts. There are several people that make way more than I do who send emails and manage jira. The core of the business is building software yet developers get paid less than email jockeys.
I can see that we only have 67 employees and 6 developers. The rest are contractors. I'm tempted to share this with the other 5 full time developers but I may bring the company down because contractually the company has to have a regular full-time developer assigned to each contract's SoW even if they aren't full time allocated. What should I do? I'm on at least five different SoWs.6 -
I recently started a new job and wanted a way to use devrant on the office. Jsrant and xmlrant both work well but I wanted something on the cmd. There are some options, but what I found relied on npm or python, which I don't have installed on the company pc.
So to browse devrant on any platform and without having to install anything, I made this simple thing using .net core. I used an existing library (GitHub.com/olegrumiancev/devRantNetCore) so that's most of the work.
It's a really stupid app and I made it for my personal use but I'll share it here in case someone else finds it useful.
github.com/CristoferCD/devrant-cli
There are compiled packages for Windows and Linux as a release.3 -
Found a nifty way of generating the 7th dedekind number because of how it uses the difference of powers, and the sum of the fifth and sixth dedekind numbers:
((5**d(10))-(5^(9)))-((((5+168)*2)+7581)*2)
Pretty sure its a one-off though. Couldn't find any generalizations. Just a happy accident.24 -
Has anyone else worked in business environments and found... em.. "wannabe-tech decisions?"
For example, naming stuff with shortened words and underscores instead of spaces.... for no real reason? Or maybe using the word "database" a little too often, just to use the word? (similar to the way you might call someone by name, only to confirm to them that you have learned their name?)
It doesn't actually bother me, rather, I think it's a bit cute that these people are interested in our culture and want to be a part of it, even if it's in sort of silly ways like this.4 -
(Apprentice dev)
Cut me some slack ;)
Learning JavaScript for a few days To a week to familiarise myself with it and really get to grips with it.
Then have to go on to jQuery which is a lot a fun I must say, very easy structured framework to learn and found myself getting really engrossed into it.
Now for the past few days I've been learning angular1 which is a really cool framework, can be a little bit complicated at times but it is learnable
Moral of the story is you never stop learning! Which isn't a bad thing by the way I'm finding web developing a lot of fun!7 -
I hope I did not make the wrong decision here:
Been working on a side project using React Js for a year now. After getting to know more about Vue, I just started rewriting it and moving it to Vue, to speed things up I'm using core JS classes for network stuff and validations ...etc just rewriting Redux to Vuex and React Components to Vue Templates
If I made the wrong decision I'd appreciate if anyone tell me about it before I go deeper in the rewrite process lol
It is not that I found speed difference both perform the same from what I've seen for my scenarios. But the output code of Vue is soooo much cleaner than what I found in React, either I failed to write a clean react code no matter how hard I try to optimize it, or Vue really takes the short way and keeps things clean.19 -
Our Joomla-based site just got a redesign. The developer who did it did something wrong. Articles no longer are attached to their parent categories and are now all referenced at the root level in URLs.
I pulled up the 404 log and now see that some website or bot or whatever is hitting up each category for each article, which screws with our SEO 404 report in Google Search Console.
Which means I have to find a way to programmatically redirect every article within every category "up" a level to the root where each article is now found.
And I have no way of knowing which article belongs to which category anymore. Even if I did, a test shows that articles attached to categories still want to come up at the root level, not in their categories.
Joomla is G.A.R.B.A.G.E.3 -
Following on from my previous SQL script to find prime numbers
https://devrant.com/rants/2218452/...
I wondered whether there was a way to improve it by only checking for prime factors. It feels really dirty to use a WHILE loop in SQL, but I couldn't think of another way to incrementally use the already found prime numbers when checking for prime factors.
It's fast though, 2 mins 15 seconds for primes under 1,000,000 - previous query took over an hour and a half.5 -
rant && !rant
Our timetable for lectures are online as "rapla" eventsystem. I want to write a small app including a timetable. As I didn't found any way to get the lectures as JSON (Bad documentation of API) but only as formated (and ugly) HTML View, I just wrote a small node module that parses the html body with cheerio and fetches all needed data of each entry in a week. Worked out pretty well, will add more functionality.
Never felt so independent 🙌🏻 -
My partner decided to handle sales/marketing part and asked for 50:50 profit sharing, then finally it came to a mutually agreeable ratio 60:40 share of a project.
On the week after I've made few of the prototypes with modularized codebase. My partner dropped me this, "hey the project is cancelled. We ain't getting any payment"
End up in a way I found out that he's outsourcing some cheap contractors. Well let's wish him some luck! 💩1 -
When do you see/perceive-that a Dev transit from junior to senior?
I'm an undergrad, working, by now, for 9 months in companies meanwhile studying, I have found that I didn't really had any difficult time dealing with the requirements/specs in the working environment, I always found myself being able to adapt to the problem and deal with it, and by this way of doing I can hardly see myself as a junior. What do you think about? (Excuse me for any mistake, I'm drink)2 -
My high school computer labs all had Macs and SSO for the students. I found out that they had remote login enabled on all of them.
Using CSSHX, I could log in to every computer in a room simultaneously, turn the volume all the way up, and make them sing.
I never tried any privilege escalation, so my capabilities were basically limited to that.
Still fun as hell to freak out everyone in a room all at once.5 -
So I just found out the hard way, that you can't take screenshots, which is great if you want to enforce privacy, but not so great if you want to treasure some of the most awesome comments you find in this community.
Is there a possibility to add a feature like favorite comments?14 -
Finally, at last I found a way to hack my parents' Xiaomi router. Now that I've got root access to it, I can now fix it, so it's able to.. you know... route traffic.
Because stock router's firmware only operates as a NAT device. Not a router.
The measures we have to take to get shit fixed.....12 -
FAIL!!
My driver's ed Course is online. It is a 32 hour course so in order to go through every slide you have to wait for a timer to countdown. The way they keep you from advancing is graying out the next button.
That's really stupid.
Because I just found out that you can change the button class to active in the Chrome inspector. You can continue.
The shocking part is is that there is no server side verification, so I could complete the entire hour course in less than 30seconds.
Wow. I didn't think a FUCKING DRIVERS ED COMPANY WOULD BE THAT STUPID!3 -
!rant
Health.
This is a big thing I think. I don't know about anyone else, but I'm overweight and this job keeps me at a desk for long periods of time.
I ended up with health issues from a combination of a bad diet, a staph infection years ago, and not being active. So I've made a commitment to start walking - at least a mile a day.
I'm using Pacer + Apple Health on iOS to track my progress. So far, combined with a $50 bluetooth scale I picked up on Amazon, I'm losing weight. I also noticed that when I switched my mile walk to my lunch break, I'm coming back to my work way more refreshed.
I hope to keep this up and I've found the gamification of having apps track my progress is a definite plus.
Anyone else have any healthy habits of "health hacks" they've found?4 -
When I first started reading about Angular 4 I must admit I was a bit excited. It seemed like it fit the company enterprise requirements. The improvements it offered on paper looked quite good for our use case. HOWEVER... After writing Angular 4 for two weeks I'm seriously doubting I made the right decision. Testing is a dependency hell and there are two ways to build and structure your application. The webpack way and the SystemJS way. The grunt way and the angular-cli way. For fuck sake Google. And the documentation is somewhat half supporting one thing, half supporting another. So when you're using angular-cli with webpack, you're pretty much screwed when we're talking about documentation. It has now taken me almost 50 hours to write a pretty basic Angular app, made it compliant with our staging environment and writing a Makefile for it, since I haven't been able to find any same way to provide custom arguments when building it with the angular-cli --aot option. So fuck you Google. Luckily I've found a way to modularize it so much that I'll be able to reuse the core in the future. So I guess I got that thing going for me, which is nice... -.-' *sigh*
-
Does soft-bricking my PC with broken MBRs count?
Otherwise, to stay fit I like to walk/hike. Hate any kind of exercise, unfortunately, but found a way to stay relatively fit by just going walking regularly -
I am using Permiso for runtime permissions in Marshmallow and up. So I spent hours finding a way to check if a user has selected "never ask again" while denying permission. And at last found it.1
-
Why some people think it's fine to hire unexperienced people to do stuff, when there is no one in a company who could check if their code is fine?
Learning through active coding is fine. Until after two months later all you do is patching your code because you found out on stack that this is not a good way of doing it. -
WHY DO DEVELOPERS OF MAJOR PROJECTS UNDER LINUX USE INCONSISTENT CONFIGURE SCRIPT FLAGS !!!
SOME OF THE TIME YOU POINT A PATH WHERE A STANDARD SUBDIRECTORY IS
SOME OF THE TIME YOU POINT TO A WHERE THE FILE CAN BE FOUND PRECISELY
SOME OF THE TIME THEY WANT THE FULL FILEPATH !
AND THE DOCS DONT READ THAT WAY !
'--with-curl=arg path to curl-config'
...
ok /SomePath/bin ? right ? NO
/SomePath/bin/curl-config !!!6 -
As part of my engineering apprenticeship, I was sent to work on a train depot. One day, a mentor of mine called me over and said "Kid - can you go and see Mr so & so and ask him for a long weight?"
I, without thinking about it - went all the way across the depot found the gent and asked him for a long weight. He looked at me, a little bemused - and asked me if I knew what the weight looked like. I said no. He continued to inquire about this weight - it went on for a few minutes until I realised my stupidity. There is no such thing as a long weight - only a long wait.
Needless to say my mentor had a huge laugh together with his mates at my foolishness.
Sometimes things really are quite simple. -
After hiring a guy to work on a project for the clients and after 3 months when the project was done i asked him how was his experience working on this project and to just tell me honestly cause i would like to learn from my mistakes if there are any and improve. In summary he replied that he enjoyed the project and is satisfied with the overall experience. I was happy to read that. Then i read that again and something clicked in my head. I realized that response was kind of "way too generic". So i copy pasted it into google and found a link "Answer project manager interview questions like a pro" and on that site was written an exact sentence he wrote
😐6 -
Just got another email from Amazon recruiting. I deleted it but then thought of a response...
I've found preparing for your interviews and the chance of me getting through is so time consuming and so low that it's better use of my time and effort (way easier) just buying your shares and profiting off the results of whoever you actually hire.4 -
How do you deal with anti-competitive clauses in contracts with your employer?
I have found them to be unavoidable here in the field of IT/CS related fields, and I don't want that to affect my future career as much.
My current strategy is to gain more of other skills than just in software development, so I can fall back on those skills for a different field (e.g. DevOps, sysadmin, ...) instead of being unemployed for a year because I didn't like my workplace anymore.
The only other way I can think of would be to open my own company, but I'm not going to be ready to do that right after school.
Any other thoughts?3 -
Ok, all of us have seen the memes about how nasty Stack Overflow can be, this is why I usually try to find an existing SO post to read instead of making one. This time however, I found an error that I couldn't fix. A nasty C runtime error. I decided to ask a SO question for help, and awaited answers. I came back, and the question had been flagged to require more info, so I added more. I came back later, and someone told me I was doing it the hard way, and I should be using Visual Studio (I'm on Visual Studio Code), which ticks me off, because I don't want to use the hacky way around the problem, then this same person closed the question! They didn't even answer it, they just offered a simple workaround then closed without an answer. Man, SO sucks sometimes.15
-
So there was a time when I "knew" PHP but I've never been able to use it, correctly or not. I knew I had to know a framework to get more accepted in the work market place, so I went on Codecademy, and started to learn a shit ton of stuff that I knew but I now master way more than before. Until I fall on a Ruby on Rails tutorial. Then another. Then a login / register system.
Dude. It was so simple. I had the feeling that my magic wand found me, and that I was developing just by speaking English (well it was the basics)
Today RoR is still my favourite framework, I just wish I could be paid to work with it 😍 -
so... is ReScript just a bunch of butthurt javascript developers who couldn't hack it to learn TypeScript (older, better tooling, better community, massive support with library typings, etc.)
seems like just a lot of extra, seemingly pointless and useless differentiating syntax rules
why do we need to keep reinventing the wheel?
"Our type system is guaranteed to *never* be wrong."
seen statements like this way too many times in my career... welcome to programming pain world, i should just read the rescript issues on github just to get a laugh here
but again, just a 🤡 giving his two cents
update: confirmed, all i've found on the web is rescript shillers trying REALLY HARD to defend it, and mostly failing3 -
I've never made crepe pancakes in a microwave before....
But when your pancake matter is too liquid and you don't have any flour to fix it nor a flat pancake and your kiddo is hangry - you've gotta engineer your way out.13 -
Lineageos finally found a way to add signature spoofing for microg. No need for special roms any more if you want to degoogle yourself.1
-
Found this coding bootcamp advertisement while I was scrolling through Reddit:
“... we provide a better way to learn, free of tuition AND TEACHERS...”
- I learn my code in da streets, yo3 -
Fucking hell! Finally I found a good solution for a problem I never knew how to solve it in a beautiful way. For everybody interested: c++20 provides functionality for synchronously writing to a stream from multiple threads.
Link: http://en.cppreference.com/w/cpp/...2 -
npm audit has gone wild since GitHub (aka Microsoft) acquisition, they surely found a way to influence the community.
Now, guys, embrace the creeping evil until deno is really out.5 -
I found a way to become rich with low effort!
I'll become a python developer.
I hope some fucker finds out that C is durable because it doesn't have to be rewritten all the time and we all go C. The bad apples will fall down soon enough with learning a programming language that actually requires some attention span.34 -
Listening to music and watching movies helps me to focus. But I never found a way to solve my procrastination problem...
-
Found this in our Python codebase:
my_dict[key] = "%s" % str(my_dict[key])
Best way to convert a value to string xX -
I haven't touched my OpenVPN server configuration in almost a year. Everything seemed to "just work" the way I wanted it.
I have now just found out that all ipv6 DNS queries were actually going to the wrong ip.
Why am I such a magnet for stupid shit like this?
Every time I try to do something beautiful, elaborate, complex, I always get some small shitty detail wrong.
It's like "close, but no cigar".
Every.
Single.
Time.
Sigh
Bonus fun fact: I only found out thanks to Windows' DNS leak feature. Thanks, Windows!5 -
What book/video/resource do you know that explains complex stuff in a simple and fun way?
I recently found "Carfting Interpreters" by Bob Nystrom. It explains how to create a new scripting langauge from scratch, It teaches you a lot about interpreters and compilers and virtual machines. And it's free!
http://craftinginterpreters.com//1 -
Just reported a minor tracking bug I found on WebKit to the WebKit bugzilla, and I have a few thoughts:
1. Apple product security can be kind of vague sometimes - they generally don't comment on bugs as they're fixing them, from the looks of it, and I'm not sure why that is policy.
2. Tracking bugs *are* security bugs in WebKit, which is quite neat in a way. What amazes me is how Firefox has had a way to detect private browsing for years that they are still working on addressing (indexedDB doesn't work in private browsing), and chrome occasionally has a thing or two that works, with Safari, Apple consistently plays whack-a-mole with these bugs - news sites that attempt to detect private browsing generally have a more difficult time with Safari/WebKit than with other browsers.
I guess a part of that could be bragging rights - since tracking bugs (and private browsing detection bugs, I think) count as security bugs, people like yours truly are more incentivised to report them to Apple because then you get to say "I found a security bug", and internal prioritisation is also higher for them. -
INFO/WARNING: Some HP audio drivers for certain HP laptops have "integrated keyloggers" enabled. The audio driver would log your keystrokes to look for special keys and saves them to a public folder on your PC (Windows).
I really wonder what kind of total retards decide to implenent features in this way.
https://bleepingcomputer.com/news/... -
#TIL that you can navigate part of your Linux commands with CTRL like CTRL+A gets you to the beginning of the typed command, CTRL+D deletes the forward command and CTRL+E gets you to the end of the typed command.
NONE OF THIS WAS FOUND IN ANY LINUX-FU LESSONS! THESE WERE WAY EASIER TO USE THAN USING THE ARROW KEYS GODDAMMIT!2 -
Honestly... I was checking the notebooks they use at work, because they were having problems with performance, and not only were they using win8, they were running without a license key, even though the notebook they use comes with win10. Someone messed up. I found a way to restore the original copy with the license, so all good i guess?6
-
I thought I found a way to compute PI, but I actually just found a super shitty way to print a variable..
const precision = 1000000
// convert degree to radians
function rad(degree){
return degree * (Math.PI/180);
}
function calculatePI(){
// [x, y]
// take first point on start of unic circle
const point1 = [Math.cos(0) , Math.sin(0)];
// take second point at 0.001 degree
const point2 = [Math.cos(rad(1/precision)), Math.sin(rad(1/precision))];
// Estimate 0.001 degree of circle
const dist = Math.sqrt((point2[0] - point1[0] ) ** 2 + (point2[1] - point1[1]) ** 2);
// Calculate full circle
const perimeter = dist * precision * 180;
return perimeter;
}
console.log(calculatePI());4 -
If a team of two counts, did some hackthebox challenges, wrote some funny scripts, found a way to using nodejs as an attack vector.
Fun -
Just found a file where they had needed to write in a way to assign a discount to an order based on a code redeem. They did it by manually checking “if SESSION.DISCOUNT_CODE is set, discount = hardcoded_integer”…. Over 100 times.1
-
I've found a better job offer; shorter distance, but salery is low, not that is a big issue tbh.
What is the right approach to quit your job?
Or to say, nicest way to avoid burning any bridges.9 -
So a page has been sending errors for long, but we weren't able to find any way to debug it, no error code, and I don't have the authorization to see the logs so I had to wait for a co-worker to be back from holidays.
Now that they're here, I could have a chance to find what was the error.
And be really annoyed about it.
The error was provoked because the security system found a tautology in the data I sent.
(I send datas to build the page, and one parameter is called "Page". Since it was a page of management, I've sent "Gestion", which is management in French. So I sent "Page=Gestion", the security saw "ge=Ge" in it, poof, tautology, you shall not pass.)
That is so ridiculous. -
Posted in DevOps discussion board (teams channel):
“Program x isn’t behaving the same way that it does on production. Can you please take a look?”
..a little background: we have a deployment scheduled for today and this issue was found during regression testing.
The issue found is that when a file is clicked on it disappears from the screen, and then isn’t opened…
The file is not on prem, and doesn’t get uploaded to a server that our DevOps team owns…
So why on earth would this development team be asking DevOps to look into a bug that is most likely a code related issue? 😆
Is this a common occurrence for anyone else?
A Bug is found, and the first thought is that the code isn’t the issue?11 -
Probably the weirdest single command I have ever entered so far:
apt-get install postgresql-12 postgresql-11 postgresql-10 postgresql-9.6
In other words - testing an internal tool across all of our supported postgres versions, but... Just found it funny in a way... Dunno, maybe my humor is just weird.5