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 -
6 months ago I sold everything, quit my job, gave up my apartment and left the country with my 11kg backpack. I booked a one way ticket to South America. I wanted to travel, get lost but also finish up some personal projects and do a little tech books challenge I came up with. I learnt so much over the past half a year, it's crazy.
Not looking back. Projects paid off and it turns out that my dream company actually found me themselves without me even applying... and so still from South America I'm in final rounds of the interview! 🤗
All my worries about a gap in CV, no employment along with other problems I thought I was gonna have... It's all BS. So if anyone here is waiting for a sign. Well, this is it now. Go!22 -
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.27 -
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.20 -
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
-
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 -
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 -
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 -
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 -
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 -
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
-
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 -
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 -
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
-
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 -
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 -
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 -
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. :c14
-
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 -
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
-
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 -
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 -
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 -
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 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 -
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 -
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 -
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/...11 -
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 -
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 -
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 -
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 -
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 -
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 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
-
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 -
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.25 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
!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 -
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 -
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 -
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!10 -
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 -
!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 -
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 -
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....11 -
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 -
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 -
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 -
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 -
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
-
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 -
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
-
It is 4 am now.
There it is. My obsession to destroy electronical things got me once again lol. I found a Canon printer last month and put it in my room to gather more electronical parts (for future arduino projects).
I am quite impressed about what makes Canon printers so different from Epson printers.
Canon really makes it fucking hard to open the inside of the printer.
Epson printers were way easier to open. A big plus for Epson.
Canon printers have weird design. Everything somehow sticks inside of something else with no room inside the printer. Like spaghetti.
Wherelse Epson printers have a plenty of room inside with a better design. No need to waste alot of time to reverse engineer it (figuring every single cable, motor, and what else not out). A plus for Epson here.
Now... what might have impressed me alot?
Take a look at the attached picture. The power on button(design), the display (it is usually soldered on Epson printers) and the "door servant" as I call the part with the blue cables. The "door servant" pushes the stick down when it has electricity.
I never found these like this in Epson printers.3 -
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 -
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 -
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.7 -
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 -
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 -
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
-
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 -
!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 -
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 -
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 -
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
-
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 -
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 -
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.25 -
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 -
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 -
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 -
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 -
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 -
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 -
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! -
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 -
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 -
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 -
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 -
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 -
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 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 -
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 -
**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 -
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 -
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 -
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 -
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
-
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 -
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*
-
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 -
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 -
!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 -
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 -
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/...4 -
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 -
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 -
(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 -
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 -
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
-
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 -
so I'm a level developer and I haven't really worked with WordPress that much however I am experienced in HTML CSS PHP JavaScript xcetera and I'm looking to get into WordPress cuz I don't really want to make a cms through laravel Paloma tutorials I found on making more precise of way to beginner and don't really explain a lot. What I don't understand is how the pages work. I'm using a basic bootstrap theme. However I am unaware how to just make a basic home page using HTML it looks like it's using posts and stuff. so my question is is there a tutorial online either video or written meant for people who have already done web development and want to move over to wordpress.3
-
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 -
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 -
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 -
I found out that apache had built-in support ( via a module - mod_md ) for automatic TLS certificate management with Let's Encrypt since October 2017.
Bloody Hell! Why didn't I hear of this sooner?
So, I ran off into my cloud to set up this so-called ManagedDomain ( mod_md ).
Found the module in the package repositories, installed it and started testing it out.
I started writing IfModule conditions under mod_ssl so that I wouldn't have to overwrite my existing TLS configurations ( which was already issued by Let's Encrypt via certbot, by the way ).
After a whole night of twisting and turning with the configurations, it turns out that the module in the package repositories were built for ACMEv1 and that API has been dead for as long as the module has been around.
I had noticed that the module was 'experimental', but I still hoped that they had the packaged the module.
Finally, I cozied back up with certbot. At least, until this so-called mod_md becomes stable and mainstream.
I hope certbot doesn't make a fuss. I'm sure, it got offended that I was trying to cheat it with mod_md.4 -
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. -
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.14 -
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 🙌🏻 -
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
-
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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. -
#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 -
The default font was different between development and production. The default font was never selected for the application. It has been this way for years. I found and fixed this. Now a huge amount of UI issues are just gone. People are like "Why was this never set?" Internally I am saying "Because they got lucky and never thought about it in the past."
Other people's code...3 -
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 -
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
-
What's your workspace setup?
Curious because it took awhile and a lot of experimenting/thinking to get mine setup the way it is, but now I can't even think properly unless I have things setup that way after booting up in the morning.
Here goes:
Workspace 1: General stuff, personal email. social media, random research for non work related things, etc
Workspace 2: My main project local development, includes terminals, database, browser research for bugs, debugging software, error logs, etc.
Workspace 3: My main project, production workspace, consoles, browser, etc related to production server, you get the idea
Workspace 4: local dev on my side project
I found it crucial to setup workspace 2 and 3, it has helped me avoid countless stupid errors, like, for example, accidentally working on production terminal and wanting to rip my hair out wondering why the fuck _____ isn't working, then realizing, oh shit, i'm on production, not local. Huge brainspace bandwidth saver when I setup like this.
How about you?2 -
Working on a bugfix which has surfaced after 2 years, I hate the way that nobody thought of perhaps tidying up a component before leaving it gathering dust. Basically found dozens sections of identical code with minimal changes both for production code and testing :/2
-
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. -
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 😍 -
Listening to music and watching movies helps me to focus. But I never found a way to solve my procrastination problem...
-
yes, i know this isn't omg! ubuntu
yes i know it's obviously not StOve (you guys are way too nice)
but im going to look like an idiot for asking this here. my process is a rollercoaster to read so bear with me
context:
· xubuntu 17.10
· zsh (not that it matters)
° i want to be able to use java -jar file.jar
i tried using that command
zsh: java: permission denied
then used sudo
sudo: java: command not found
i grabbed the generic x64 tar.gz and extracted to ~/.local/.app/java/
set the Java path to the openjdk folder inside, no good
i installed openjdk-8-jre
couldnt figure it out that way, so uninstalled
RE-GRABBED the x64 tarball
extracted into /usr/java
set the path to the folder containing java & javaws executables
still no luck
what is the problem here17 -
Found this in our Python codebase:
my_dict[key] = "%s" % str(my_dict[key])
Best way to convert a value to string xX -
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/... -
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 -
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 -
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
-
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
-
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 -
Hey, javascript people, got a question.
Is there any way to disable sites binding the mousewheel (scrolling) event ? Like for example rebinding it to scroll down at the end of window load ? (tamper/greasemonkey)
I am getting furious with all these sites where they will block the whole site to make you agree cookies & gdpr shit.
Removing the foreground/blocking element is sometimes enough but often the remaining site can't be scrolled.
EDIT: Found out you can add links of script that does this to AdBlock:) For example movieinsider has it's "gdpr, cookies & shit" script at the top of head element. Add it and voilá.6 -
Went on Twitter to learn about the Facebook oopsies.
Found a mom who is non-stop on Twitter complaining about her sons (aged 16 and 20) being subject to Social Media™
Landed somehow on POTUS comparing total presidential spending. Of course you've spent less, your term is barely a quarter of the way through, you goon.
Closed internet.1 -
"Okay, this is way OT but here it goes. Back during the GW Bush days I noticed something strange. All five TV networks suddenly started using human(s) to refer to us. Gone were humanity, humankind, mankind (!), people, person(s), us, we and human beings I about barfed when I watched an ingenue said her best girlfriend had found a wonderful human to marry.
I see three problems. One is the way putative competitors started this newspeak in lockstep. Another is the degradation of English. The last is the loss of emotional content. Saying "Humans are responsible for climate change." is so blah it's like somebody else is responsible, like Martians, maybe like somebody else is responsible, Martians, maybe.
I apologize for the wording of this rant but I am forced to use a phone with one hand due to severe injury.3 -
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 -
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 -
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. -
TLDR: I wanted to change email to new one, but I could not remember which one I have
currently. I found out an API in DevRant JS files for email verification and used
it to find it out.
So, I am moving from Gmail to Protonmail Pro, absolutely love their service.
I wanted to do same on Devrant but I could not figure out my current mail for
"I lost my password" form. My Password Manager have only login saved, and profile does
not show email address.
I thought that this user information is stored on server so it have to be some way to retrieve it. I dug
in source code and I've found:
`<div class="signup-title">Verify Your Email</div>`
Which has event assigned to function which uses jQuery.ajax (love it btw :D) to call:
`url: "/api/users/me/resend-confirm",`
This seems like worth a shot. Few copy-pastes and one ajax call later:
*Ding*
From: support@devrant.io
To: dawid@dawidgoslawski.pl
"Welcome to Devrant"
Got it :) So I have already changed in march when DevRant on previous layout.
This is what I love in this profession - problem solving. AI will not replace human
in any way, we will just stop coding array iterations and data manipulation - we will focus
on real problem solving and human touch (like design, convincing management for changes).1 -
Flight Gear.
I had one heck of a time during my pre teen days flying airplanes and going to famous cities around the world in this cool flight simulator game. On a related memory, I think it was in 2008 or something, when Yahoo messenger was the popular thing, I sent a message to one of the main developer about how I can build planes and stuffs for the game. He responded and said something about C++ and some documentations.
This was way before I knew anything about programming. I found myself frustrated about not knowing or understanding any of the guides.
Then puberty happened. -
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
-
This is a post to congratulate a certain developer.
Mortal kombat 11 has had a rough start. First people found out it used denuvo, then people were mad that there were microtransactions (all items are obtainable trough gameplay and they are only kosmetic) then there was some kontroversy about a certain character saying something political. After that people tried playing the new towers of time mode. And it was fucking hard. Way too hard. And you know what netherrealm did? (I'm looking at you bungie you filthy pieces of shit) they said they were going to look into it and they gave everyone a huge amount of every currency. That is how you apologize. Aspiring game developers, take note.15 -
So I bought a gtx1650 gpu for my old phenom II X4 pc. It didn’t work – the screen vent black in like five minutes after powering up the pc.
I was disappointed, but instead of returning the gpu, I bought all the other components to build a new pc on ryzen cpu. Including the gpu, it all was like $400 and I still have all my old parts to sale.
Now I’m here, playing all the latest games like doom and wolfenstein on ultra in 1080p 60fps and I’m more than happy.
I basically found a way to convert my bad experience into good experience. I’m just off my therapy, so all that bad experiences that may seem insignificant are a big deal for me.
I didn’t knew it was possible to make a good emotions out of bad emotions that easy. If only I knew the way to apply this strategy for any arbitrary situation.
(please miss me with that boomer bullshit like “nothing is wrong stop whining and get over it” etc. I’ve been there, I’ve done that and I needed medical treatment afterwards. “Getting over it” just doesn’t work)6 -
Who found out the hard way he is now very intolerant to OTC allergy meds? Me.
Who also terribly suffers from seasonal allergy? Yep. Me.
It's going to be a long summer, coding with migraines, sinusitis, and irritated eyes 😞4 -
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 -
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 -
React, it's declarative way of doing things, and the functional programming methodology it prefers.
Realized how much I've moved on from for-loops and class/object instance to maps, filters and immutability/observers when I worked on a Laravel project after so long and found myself forced to do things in the, erm, "PHP" way, despite spending my initial year and a half of programming working exclusively in PHP.
Sure, there's Class Components and imperative techniques in React but I had blissfully settled into using the flexible nature of doing things enabled by both native JS and React, with hooks, Lodash/Ramda and (almost fanatically) pure functions1 -
i started with Python 2 on Codecademy (way back before it became pay-to-play garbage) and it was... eh... it was okay. Not great, reading a book would've been more informative, but it was better than nothing.
I then made basic RNG wrappers and thought I was hot shit. For, like, 4 years.
Then I found out how to manipulate files, and took off from there. That was the moment I really took to it and i've never stopped since. -
So I've backed font awesome 5 a while back at kickstarter. I've linked my github account to the repo. Now my mailbox get spamed by their issues.
Question: is there a way to deactivate mail notification for a single repo?
So far i found:
- disable all github mails (nope)
- unwatch the repo (would work, but I just want to disable the emails, as they make up 50% of my daily inbox)4 -
So I just found out in a meeting today that my team will be getting rid of 2 contractors, who have been with the company for about 2 years now and know their way around the projects, and replacing them with 3 university graduates with no to little programming experience. Now I don't mind new graduates coming in, but getting rid of experienced workers before the newbies have learnt the ropes is not the best of plans.
-
iPhones have never been more unlockable, as literally a picture of someone on your phone can be used to unlock their phone.
On the subject, I would also like to know what the point of an unlock is? If a criminal has my phone, they are stealing it, period. If a good Samaritan has it and wants to identify the owner, they can't because there is a lock.
This means that the only potential way that I am ever getting it is that there is no lock and a good person found it.3 -
I AM SO ANGRY! Today my job fired me for the stupidest reason!! A while back I lost my job a (non-important) client for having an "overactive temper" so my boss made me begin taking VRTAM (or virtual reality therapy for Anger Management). Well I attended the first couple things but decided to stop because they were definitely stealing my information. I don't know what sketchy website they found for that but as a dev I can tell when they are taking my personal information. Also there's no way it works I attended a couple sessions and nothing helped because I DONT HAVE ANGER ISSUES!!! Anyway my job found out I had been skipping them and when they confronted me they avoided my concerns and just fired me... Haven't told my wife yet, she's going to be so mad.8
-
When I arrive 5 months ago to the company, I found that I'll have to work with an internee and someone that has a Masters degree, it is his first job and is in the company for more than a year and a half.
Me thinking, it's gonna be fine, but noooo, it's hell on earth!
What to do with someone like that and he does his work 5x slower and you have to repeat yourself 10 times because he forgets everything?
By the way, the 5x slower when I compare to the internee... -
Limitation as a way to force creativity. What do you think about this?
Platforms such as Vine or Twitter limits you somehow, but people still found a way to build their creativity around and grow a following. At the same rate, most Game Jams give you a theme and sometimes some kind of limitations and the result is in almost every jam at least a few interesting games.
Now, looking specifically at dev work, some frameworks or languages limit you somehow. Lets think about Rust safety or Node single threadness.
Do you think those work as limitation to enhance creativity as well? Not necessary by design.5 -
I started because the first PC I owned ran on Windows NT and, even though I can't recall for the life of me what, something always broke but was fixable with some command lines. After finding out about Batch scripts my exploration instinct kicked in and I started to make a script for nearly anything (at one point I even had a script to start Firefox). From there on I stumbled over C++ and what can I say, I quit programmin four times before I found Python and fell in love with this beautiful, pointerless snake which led me on the way of becoming a programmer. So, long story short, a broken OS and all that free time you have during school if you always copy your Honework in breaks^^.
-
I look at the "Discover Repositories" sidebar every time I log into github. I've found some really cool stuff that way.
But I'm really confused as to why I keep getting typescript-related repositories there.
I've never created a ts repository
I've never made a pull request that had ts in it.
I've never created an issue in any ts repositories.
I've never even written a single line of ts.
The only reason I can think of is that I was browsing the official typescript language wiki for a few minutes...
A COUPLE WEEKS AGO
Yet sometimes, all 3 repos in the side bar have typescript in the title.
TL;DR: github, please stop pushing typescript on me.2 -
I recently found out Trinity Desktop Environment(TDE) Project, which is a fork of KDE 3 and is still supported. I'm absolutely amazed and super excited by this, since KDE 3 was my childhood, and I didn't like the way KDE Plazma behaves, I got to try it next time I install Linux somewhere.
I'm mainly a Windows user(because gaming), but I like to dual boot, or install linux on non main devices, just that my current PC isn't dual booted.
Maybe if I buy a new PC I'm putting Linux on it for a few month for nostalgia's sake before switching back to Windows. Maybe by that time gaming is gonna be even more available and viable on Linux. -
So I got into this project weeks before golive. Client did full scale testing and opened floodgates to hardcoding did by the 3rd party guys. Fixed more than 30 issues manually. Weeks later found out a better way to scan everything via notepad++. Lol
-
I'll never finish this shit!!!
Whenever I close a task I end up creating one or two more I found in the way, it's like an infinite rollercoaster of technical debt and perfectionist-me throwing work at myself.1 -
I almost looked for every possible source but is not satisfied or not found optimum way or path.
Actually i have to build a netflix clone (not exactly but a video on demand platform for one local client). The tech stack will be React at the frontend and DRF (Django Rest Framework) at the backend.
I know the node will match my purpose at best, but this needs to be done on DRF. How should I return the video, should I return it in bytes, packets and what can sample code look like, how frontend should fetch it. It will really help if you put your insight, in general. Thank you5 -
! Not a rant about Linux being better than Windows.
I used to ignorantly think that but experience and awesome community's like this have taught me better.
At a previous job I worked with Linux for ages and git used to how streamlined it is when working with a console. I then moved to Windows (to make games I'm Unity3D, which was awesome!) and found myself pining for a decent console. I finally found ConEmu which has a multi tab feature!
Just wanted to share this, knowing it made my life way more fun!6 -
I'm currently working front end at my company, and am applying for a backend internship within the same company.
Would it be in appropriate for me to comment a block of code with
# I know there has to be a better way to do this but I haven't found it yet
In my code challenge for the application?
Basically I found a clumsy and ugly solution but I want them to know *i know* it's clumsy and ugly and if I had more time I would come up with something better6 -
all video streaming fucker companies have found a new way to promote shitty lies!
Hotstar: "try Hotstar! Rs199/month! first 7days free!"
Amazon prime : "try amazon prime! Rs 129/month! first 30 days free!"
those small numbers are fuckin lies. they have only 2 or 3 supported banks and if yours isn't one of them, then you have no option but to buy their full 365 days non refundable subscription of a larger amount, which strangely accepts *all payment bank cards*
liars. liar liar liars!7 -
I started catching feelings for my toilet. It's always been there for me to help me take all the bullshit out of me. Now i feel bad for shitting at it so much. In fact after unclogging the toilet it now hasnt got enough water inside so now the shit smells more. Gotta find a way to fix this toilet just how it found a way to fix me5
-
i thought of a way to implement a stack using two queues, but then i searched on the internet and, as always, found a better version there - using a single queue... will there ever be a day when i can actually think and write those efficient algorithms myself, without looking on the internet? :(2
-
Currently trying to start learning C#, to build a plugin for an ERP System called Uniconta. Something samiliar to Microsoft C5.
Been wanting to learn C# etc for a long time, and now, I suppose I found my motivation.
So, how'd you guys start? I could try to download their examples, and start manipulating. But is that the right way to go around it? :)
At this moment I only have knowledge in web dev, such as HTML, CSS, JS, PHP etc.
Thanks in advance4 -
Why do you not like cheating in games? Isn't it better to skip all the grinding and just get to the good stuff?
I just realized how much time I've wasted on Legos Unboxed... playing it the right way...
Prolly 2 months...
Finally realized yesterday so found the modded version. TLDR god mode.
So either the fun keeps going, I get banned, or I "finish" the game.
Would've saved me a lot of time...21 -
The production file edited in March was way more advanced than the development file edited in July... what happened here?
I want to implement Git on this one so bad. :( I wish I found the way and the time already (it's a very complicated situation).10 -
Fix github for Android. On the main repository screen there's no way to copy dem URL. You have to navigate to a file first. I get annoyed by this so often.
On the other side, I found out about classless frameworks! Amazing for people like me who can't design. See here a list with screenshots : https://github.com/dbohdan/...3 -
Hey Guys.
VMs - VirtualBox or VMware?
IV'e been using VMware v14 cracked, my principal VM is a Linux mint machine, wich one deals better with Linux VMs?
I haven't used Vbox since I found a craked VMware 14 but should stop using it..........
Also, what is the best way to have a prepared to mount VM in a pen drive? Lets say I place my Linux mint machine in my 64Gb pendrive I take everywhere, I want to plug it to any machine (windows most likely) and use it pronto to run the VM instead working in that machine.8 -
My first Rant/Story
One year ago I was told I'll be working on a Magento 2 project.
I was told it's great you'll see it's so much better then Magento 1 (at that time I didn't even know what Magento is or what it's used for).
Now one year later, a day doesn't pass that I don't discover something new in it to hate. Every day there is something new that doesn't make any sense at all. But I found my way to live with it.. at least it isn't boring haha -
Just fucking hate how expensive and hard to find a cheap SMS gateway
And as in cheap, I mean cheap as send email
I found Cheap Global SMS and it doesn't have a professional website nor a good API but it is way more cheap
Downside? I must pay with a payment gateway made by the same company (coincidence?)
And NO WAY I'm sending my id to a payment gateway that no one uses
I'll try sending some random image to see if they accept it
But, still, no confidence to put my credit card in there2 -
My very first computer had a bunch of CDs with tons of random freeware, shareware and demos. One of these happened to be an awesome graphics demo called Second Reality from Future Crew ( https://youtu.be/rFv7mHTf0nA check it out! ).
This demo was the reason I became addicted to programming back in the days and I started with QBasic, Power Basic, Pascal, assembler using MSDOS "debug" command (worst assembler out there!), and several strange C dialects like C-- (I found it hard to get hands on affordable compilers and totally missed Linux until several years later).
Delphi and Visual Basic accompanied me quite some time until I finally found the language which perfectly met my needs until today : C++
This was all way before I started to study ☺️1 -
I am so glad I found a way to compile c++ for personal projects without using MS VS. Time to relieve my machine from this burden :D14
-
XSS mitigation is a pain in the ass.
After all this time, with all the brilliant developers around the world, why haven't we found a sane way to mitigate this shit by default?
Shit!8 -
That feeling when you realize that the REST API you were trying to consume apparently does not provide a query flag to get for a more detailed response making you think you'll need to fetch one list of items and then fire almost 1,000 requests really does not compare to that feeling when a colleague points out that the REST API in question does in fact support the flag AFTER you implemented the roundabout way.
FUCKING HELL!
I just didn't realize that I could click on GET and POST blocks for the metronome API documentation opening up a frigging pop-up. (See screenshot.)
Why couldn't the information have been more upfront? Only a cursor change on hovering the area could make one thing to click there.
Oh how I blame their lack of a user interface for my blindness.
I thought that it was just a basic documentation that only told you which endpoints exist and expects you to learn by trial of fire. So I searched the interwebs and on their support forum I found an old issue making me think that my round-about way was the way to go m(
Even worse, on the support forum I cannot even leave a comment warning the poor souls comming after me that they should not do the roundabout way as that issue has been long closed.
If you want to see it yourself: https://dcos.github.io/metronome/... -
a camp / meet up. walking around (lost) in downtown LA. stopping at every bar we found for a pint.
walked for probably 2 miles before we realized we were going the wrong way.6 -
That moment your professor tasks you with writing a genetic algorithm and are forced to use MatLab (which I don't use).
"The University offers MatLab through ssh, so no problems, right?" Only basic package installed...
As cherry on the pie I found out that it's nowhere close to intuitive for me.
Got the feeling I could've done it way faster in the programs I'm used to, but finally got it working! -
When I finally got LINQ method syntax... and found that I could shape my data any way I wanted, all in a single line of code
-
I've got a Linux Server running with 2 NVMe disks in RAID 1 configuration using mdadm. But if I want to create a big file, say 4GB, the whole system starts to hang.
I found out it's because of the journaling process which gives the CPU a long IOWAIT.
My problem is, I want to unzip a huge file, but this results in an immense server hang. Is there any way to do this without the server hang?
I unzip it inside of a docker container, if that is of any help.7 -
In a Phaser game, I was unknowingly overriding a method of a parent class. It must've been Phaser.Group or Phaser.Sprite that my class was extending, I was calling destroy() on it without realising I was calling the parent class' method too and was baffled about why shit wasn't working. Found out maybe two days later and changed the method 'destroy()' in my class to 'pokeItWithAStick()'. This was at a previous job, but I'm mostly sure that it stays that way in the codebase three years later.2
-
Any ServiceNow developers in this thing? Besides the training and learning plans on developer.servicenow.com and their API documentation, any other recommendations for resources (books, videos, courses)? I didn't find any at Lynda, and those I've found on YouTube are fairly poor quality. I like books more than videos in general although sometimes it's nice to hear someone talk through it. I found a course at Udemy, but I'm a bit leery of its quality. I have been toying around in a developers' instance and once I get a better feel of it, I plan to replicate an implementation of it that I already used as a technician, and improve upon it. The platform is way more massive than I already thought it would be.2
-
To my surprise, I recently found a documentation page written by a specific co-worker of mine, which I thought could only mean he had decided to leave the company and thereby was forced to write that. Later I found out I was right about that. How sad is that? I mean that someone refuses to document his work in any way, not that this person has actually left the company. The only information on the page was something along the lines of: "Uses the gradle build system.". Ah, and "you have to have Java installed". Thanks, mate. Couldn't have figured that one out.
-
When oracle employees decide to add new "feature":
How can we add feature X so it can be the user new most terrible nightmare?
When oracle employees decide to update an existed "feature":
We have discovered that the users of feature X have found a work-around to make it useful, we need to update that feature to make it the users most terrible nightmare ever, and we would like to make the upgrade/installation process break everything else installed on their machines without possible way of recovering, and if it worked by any chance we would like to make that process frustrating as fuck.7 -
I would like to completely communicate via email to obtain clients. Not Skype; that is clients calling me through Skype and the phone. Has anyone done this? I've found that phone calls/Skype wastes so much time. Time that could be spent gaining a client and starting their project. However people love the phone calls and Skype way too much.10
-
I'm so sick and tired of the human dick head parade. Epic has us register for a fucking GitHub organization and people found a way to abuse the pull request and sending 300,000 close to 400,000 people notifications so now we're dealing with spam that's going out with random shit including someone ripping their ass hole open (picture...). Over 200 emails I swear to god. This is why castration should be legal.
Unsubscribed from one, someone creates a new useless PR.4 -
Hey guys :) I have a little question for you all.. does anyone knows how to decode emojis into text in a smart way? (All I found did not satisfied me..)
And happy New year 🎉4 -
Hey so I have to make something using both angular and rails and I wanna ask. After I manage to get angular running on rails, do I just proceed to build what I wanted on angular normally? Or is there a special way I have to do.
I'm learning to build something but I can't find specific guides on how to combine those to do so.
So I've found how to make it without rails. And how to link angular and rails. My plan is to learn both seperately then add. Will that work?
Sorry. My words are muddled. I'm just so tired.2 -
"How about we don't do it this way because I have undone what you did and have redone it in a stupid way and if we have to do it the correct way we'll have to undo MY work, so let's just keep it like it is, ok?"
Really? And one of your arguments is "because it's working now", bitch it was working before, you just didn't read my code.
I'll give you the benefit of the doubt though, I don't think you did this on purpose, you were tired yesterday, I get it. But still, could've talked to me before deleting all my code.
I'm not that mad though, I got paid the same and still found a nice pattern I can use on my own future projects, it just won't be used at work. -
!dev && !rant
So I really liked the movie Blindspotting from this summer. I originally watched it because the two main characters (and writers) are two of my favorite rappers, but it's a great fucking movie.
The way they're doing the soundtrack for the movie is basically releasing multiple EPs (honestly not 100% sure how long it's gonna go on). And I just found out that the second EP got released like a month ago. I've been listening to it and I fucking love it.
So nothing really important, I'm just really hype for this right now. -
what is your best way of testing as human?
I create application, post on testing server, take a bath, eat something, watch a video or two, and then i start messing around, I found usually that time, your brain almost forgets everything, and works great for testing!
Share yours :) -
Working for a little SharePoint-Company while studying.
Have to hunt bugs.
Found a major bug which kills one of our customers SharePoint-Site completely because of code pasta.
Told my supervisor about the bug and reported it.
"yeh. we will fix it now"
2h later they started to go live.
"Did you fix the bug?"
"No. Wanted to have the system live asap."
On my way home I got a call.
"We need you back here in the office"
"Why?"
"It crashed. Is not reachable anymore. Help fixing it"
fuck off -
Heyho...
I tried a solution found on github to export my mails from Protonmail (it's ofc deprecated but should work... not for me 😂). Got some errors, fixed them, new errors... 🤔 None of the reported ones btw...
https://github.com/scastiel/...
The import/export app is in beta and not available for the public.
The bridge thing is still for paid users and not for linux.
IMAP is for paid users, too... bah...
Is there another way? 😢
... forwarding multiple mails at once would be nice...1 -
Found someone who had a similar idea then me.😮
(Except, mine was 2 years ago and I'm working on it since)😎
Thought i'd be nice, talk or write with him about stuff.
Went to his github repo and opened up a few issues about certain design decisions and problems that he and I face because of our environment.
His reaction was mostly like "meh, doesn't matter, to individual, trivial, ...
"🙃
I think he didn't even try to understand me or what I meant, or what that implies.
I don't know if I behaved like a dick, or if he is.😑
Just tried to be nice and Interact in a usefull way.
🙁3 -
How do I know if there's a module for the problem I'm trying to solve? How do I know if there's a better module that solves the problem in a better way than the module I'm using? After I found the module, how can I use it if npmjs website contains just a skinny example and no explanation? Should I attend an advanced course for each module in repository?
-
Stupid isp - no internet for more than 13h now. This happens way too often (once or twice a month for a whole day) I’m trying to keep calm and don’t explode in fuckery language but there are people who can’t run their business or really relying on working internet connection. (Unitymedia - stay aware of these fcktards) Wuuusaaa... but I found out that the chrome trex got a nice little party hat.1
-
Any hardcore vim users out there? In need of help with tabs/panes. I tried some google-fu, but not much help.
I have a kubernetes helper, where I can run a command like :Vikube, and it'll open the result in a new tab. Is there any way I can open the result in a splitpane instead? I've found some ways, but not any good ways :/4 -
A lot of us get imposter syndrome in this industry. I still get it on a regular basis.
You can't wait until things are perfect. You have to launch imperfectly, but with confidence that you'll get where you need to be. But then imposter syndrome sets in. Self doubt tells us we don't belong.
I found this quote in my email pile this morning:
"Isn't doing your best all you can do? Dropping the narrative of the impostor isn't arrogant, it's merely a useful way to get your work done without giving into Resistance. Time spent fretting about our status as impostors is time away from dancing with our fear, from leading and from doing work that matters." - Seth Godin -
So it turns out Moq (.NET mocking library) is leaking developers info via Git and gets in the way of builds with SponsorLink warnings.
Not only this is a GDPR violation but also a shit move from the dev (kzu).
I wasn't aware of that until a colleague found
https://reddit.com/r/dotnet/... and went through some of the GH issues.5 -
Well those fucktards in canonical made a fucking os which was easy to use for an average user and now they dominate the Linux scene. And in this way they fucking collect data from fucking users using Ubuntu and send those stuff to other companies like Google does. It's just bad about how ppl are fed the idea of being free of surveillance with Ubuntu. I searched shit up online and found out that many os out there are doing these dirty tricks. Man, ig it's better to do a linux from scratch project and use it lol.2
-
Checking my work email, found three meeting invitation emails, got a mini heart attack, then noticed the other two are just rescheduling...
Not a nice way to start a Monday with meetings invitation 😅 -
I found the weirdest UI bug.
I have a side nav bar, that opens on button click. The way it is implemented: a navbar, that is positioned a lot to the left (120% of it's width). On click, it transitions to 0%.
When I zoom in very close without the sidebar opened on an image, some text from the sidebar is visible.
Pretty weird..1 -
I only found out today that there is a light-weight Redis app for Windows that works out of the box.
I thought using Docker Desktop + WSL was the way to go about that.
uhhhh.. makes me wonder what else am I missing out on that's incredibly easy but Im not aware of, yet.4 -
I think I found a way to audit college courses without paying for them. Find someone that is taking the courses and get paid doing their homework (for cheap/free). Make sure they take good notes and provide access to all materials. Do their homework of course. If taken to the extreme you could have a CS/CE/Math background while possibly making money on the deal. Any time you want to take a course you advert that you will do the homework. You could even wrangle the victim to record the lectures so you can reference as needed.
At the end you won't have a degree, but will be able to do everything the degree demands.
Obviously there are issues with this, one being a moral issue.4 -
I found the (almost) prefect solution if you have an Amazon Kindle, and find the default launcher absolute dogshit like me.
Install the "launcher hijacker" from this repo and a proper launcher like Nova.
https://github.com/BaronKiko/...
It isn't perfect (the default laucher sometimes shows up for a split second when pressing the "home" button), but it really is night and day compared to the default crap Amazon puts on the device.
It's a shame that their customers have to resort to this kind of measures just to make the device more usable.
Only other issue I found so far is that it's pretty much impossible to use widgets in Nova, because it always opens the system settings, but it's not really a big deal for me.
PS:
I am not affiliated with this project in any way, just want to make the life of other Kindle users that aren't aware of it's existence less miserable. -
How to write programs on Android 10 that work with files/directories? Have used a number of JVM-based languages like Groovy, Clojure and Kotlin.
My last try was with Groovy. I ran it under Dcoder which has to be cloud-, based as it supports numerous languages. I gave it permission to access storage but got a file not found error from Java. Copied this excerpt for the file path.
import java.io.File
class Example {
static void main(String[] args) {
new File("/storage/emulated/0/read_file.grvy").eachLine {
line -> println "line : $line";
}
}
}
Do I need root? Do I need to change file permissions using Termux? Why can't I find a way to write simple software on a Motorola Super, 3 GB RAM and 8 cores? I hate using a phone for a computer but a seizure has me in a nursing home with only one usable hand.
Any help is greatly appreciated.5 -
Fuck VS! C# sucks! F# sucks!
I found no way to debug C # and F # without VS(At least the official did not give a plan)! And I can only use macOS now.
After downloading VS for mac, I found that it installed mono automatically! And there is not even a button to open the folder!
Why do you have to wrap a class outside the main function? And their pointers are not flexible at all! Also, unlike C, Go, and Rust, the compiled files are binary files. WTF does DotNet give me? debug directories and .dll files!
I originally planned to learn DotNet core for the convenience of using Azure.
But I found that, through Python, JavaScript, Ruby, C(LLVM-Clang), Go, C ++, Rust, Haskell, Azure can also be used, which gives me more sufficient reasons to give up C #, F #!14 -
Weirdest dream i had about code, i was just coding all my social interactions; i'd have some kind of overlay over my vision and i'd have to type in my every move and sentence while going on about my day in a very gray and sluggish world as if i was just a programmer stuck inside my body, working with myself the way i work with a server.
Another time i actually found a bugfix in my sleep. I had wasted 8 hours on a dumb bug that day without managing to find a solution and when i woke up, all the code was in my head and it worked on the first try! -
Found a 'new' little way of customizing /
stylizing / formatting GitHub markdown.
Because of that I just had to document
it in a new section of my MarkedDown
project.
https://github.com/MarkedDown/...
Hope someone finds it useful~4 -
A couple of us found out (with evidence) that one of our senior faked his way through his thesis by outsourcing his entire project to another company and using our student publication as a cover-up.
As miserable as he made my life last year (including ruining my chance of promotion) I'm still trying my best to not let my mouth open. (Can't say I'm not hoping for someone else to open their mouth) 😇5 -
I'm super bored, but I think I found a good way to spend my time.
https://theitsloth.github.io/contex...
https://theitsloth.github.io/editor...
https://theitsloth.github.io/tabbed...
p.s. Code quality varies between meh and awful. -
!rant after struggling with version control in a very restricted enviroment where nothing can be installed on the user's machine.
I finally found a way that was allowed after days of digging, so simple yet beautiful, thy name be clickonce. -
!dev
So I found out that
A) there's no Ham radio bandwidth
B) no Ham radio community
C) that Ham radio is technically illegal
D) but "easily could be made legal
And was considering applying for bandwidth allocation however, the way that applying works, implies a single studio, with equipment costs/budget and the likes.
Have any of you ever played with ham radio?3 -
Worst dev tech, it has to be MS Word. Apparently they follow the OOXML guidelines to create a Word doc but they have to put in their own shit-flavored ingredients to increase a developer's misery. Parsing that document is pure agony.
I was looking for a way to find the default font size of the document and found this gem https://social.msdn.microsoft.com/F... -
Gson is an excellent library every Java/Android developer should know. You can easily parse a Json or XML network response into a POJO class and get ready to go. But the guys who started the project I currently support found a better, smarter, slicker way to parse network responses into memory:
ArrayList<ArrayList<HashMap<String, String>>>
I would love to meet the genius who came up with this idea. I mean, you can parse absolutely any API response without even having to define stupid Java classes or importing libraries! And also you can reutilize the same scheme for literally all Java projects that handle API responses! Wonderful -
studies in memory indicate that a person recalls information better when exposed to the same biological, and emotional state they were in when the information being recalled, be it semantic or episodic.
other aspects include many other cues.
what conversations people were having
the same people being there
similar sensory inoyt
and being in the original place where the memory was formed.
but some information is so jarring that the brain when kept in a consistently aggravated state of emotional unease and vigilance can be repressed along with from what i note, connected semantic information if say the information recalled was related to a nearly alien state of considerable mind and perception altering terror and unhappiness.
we often forget bad things because its the only way we heal.
the most evil people in the world found a way to recreate this trauma so they could add.
parallel memories. whole tracks of human experience existing apart from each other, just in the hopes of keeping that person quiet.
ironically for a person who is nice, witnessing these types of people responsible for these things get murdered or brutally deformed, also tends to be buried away with the same repressed memories.7 -
I had to import some resources into infrastructure-as-code ( IaC ) for a new project. I found the right tool for the job and started working on it.
But I had a lot of resources to import. I decided to use the API of the source provider and transform them into the configuration format required for the IaC tool.
After spending a good half of a day scripting with a combination of `jq` and `yq` and another bunch of tools, I finally completed the import yesterday.
Today, I had to refer to the documentation of the IaC tool for something else and I found that there was a built-in command for pulling resources from the target to the source ( basically what I did with my script ). 🤦
( I hope my manager doesn't find out that I 'wasted' half a day when I could have completed the job within around an hour )
Lesson learnt the hard way ( again ) : READ THE F**KING MANUAL even if it may seem trivial.
*thought to self* : YTF won't you learn this simple thing after so many incidents? RTFM! -
i am going through a tough time and since i got cut off from my friends, nd have no desire for self time/binging/going out, i found responsibilities to be the only way of passing time.
and my outstation boss being on an office visit added to my distraction. he is busy motivating us folks to work faster , take more tasks, pick kpis etc, and i am already motivated to work as anything else is just a mental suffering for me.
so i finished a ticket in 5 hours last night, which was supposed to take this whole sprint of 14 days . win-win for both of us :) :(5 -
I was trying to add someone to a team project on visual studio team services; i saw "no identites found" when i typed their email in so i thought it wasn't the correct way
I wandered around fiding nothing, eventually coming back to the first form
I type the email again, i don't pay attention to "no identities found" and add anyway : it works
wow didn't expect it to be that simple1 -
UI/UX dev.
I've been all over the place since I started as a kid and spent the majority of last year confused as to what I really wanted to do, but it seems like ultimately I found my way back home when I met React.1 -
Sometimes I think that TypeScript is like a poor developer's Haskell. I thought "Isn't this supposed to support functional programming?" and searched for a way to do currying or partial application, and only found hackish solutions :/ Then again, maybe I don't know Haskell well enough to make a proper judgment.1
-
In the war on bandwidth consumption, work has cut out torrent access. So I, like a child look for porn (actually I was doing that too), found a way around. I use http://filestream.me to cache my torrents. Then go to http://Uptobox.com file host and login to my account, that i created with my fake mailinator.com email address, where I use the remote URL upload feature to download my files from filestream. Change the file name to VM-update.dll (I don't know why I chose a DLL originally, but I release no one asks why you were downloading a DLL). The download. All of this, except the downloading is done in Opera Web Browser with VPN on (a little extra paranoia goes a long way).2
-
I have been working on this whole day but is not able to find a way around this.
I want to create an xsd from a given Python class. I want to automate this process and we have a bunch of such classes.
What I have found numerous times today is "How to convert XSD to Python class " for which there are bunch of libraries such as PyXB and generateDS.
Asked a question on stack overflow but there is no response.
Can anyone help me with this2 -
I have a dream that one day whenever you pass / assign / apppend an object you can choose to pass by value or reference, regardless of the object being a primitive or a container (list, vector etc.) object
So I could stop waste my time and bang my head to my desk over such dumb problems this shit induces because language designers found making list to be passed by reference fun
I know such behavior is inherited from C's logic, and I don't give a fuck about any further explanation I might already know. What can be explained doesn't mean that's logical.
You give the choice to pass by value or reference for every object the same way or you do not at all, but no mixed shit.
Just, shut up and make it happen.4 -
Using input type time and the format is set by chrome language.
Is there any way to force 24h-format other than change locale if using a external library such as date picker isn't an option?
I have found out that South African is a locale in English with 24h-format time. -
!rant
I've been following and finished a course about MVC 5. On the deployment side he showed how to deploy the Release on the filesystem through the vs 2017 publish Wizard GUI and after that he suggest to deploy that folder on the IIS server. Now I looked around on the web and I've not found a way\guide on how to self host that project on my PC and expose the project to internet (which I do mostly by using no-ip.org). Someone have any clue or can point to a step by step guide? -
What stack are you using to test your angular app and why?
We’re using Karma + Jasmine for writing unit tests, because it’s the default, and run them on GitLab CI in a Docker container. For UI testing we don’t use the default Protractor but Selenium, because we haven’t found a way to run Protractor tests with a dedicated webserver.1 -
For all you Dutch out there, or other people who celebrate Sinterklaas.... I know this a bit late ( mustard after the meal, right?), but I only found out about this place today.
Anyway, maybe you can use it next year, and who knows there are other uses for it.
It is: a way to assign a number of favors among a number of participants, making sure no participant has to do the same favor to the same other person twice.
I'm sorry, I can't find a way to make this sound any less sexy.
The pseudorandom generator is seeded with the year, so you can use it every year and everyone will get consistent results.
For the Dutch: een scriptje om meer dan één lootje te trekken met Sinterklaas. Sorry, daar heb ik ook geen minder sexy beschrijving voor. Je kan de namen per jaar invullen aan het begin.
And then I almost forgot to include a link: https://jsbin.com/waragireyo/edit/...1 -
I am lately working on a Wordpress website (ouch, pain) for a friend as a side project and it is supposed to be multilingual. No problem, there are some plugins for it and thanks to one of my previous rants I found out the _e() function (still a stupid af name).
But I was wondering: given that I’ll have a lot of translations in some template pages in the theme, what is the standard way to do it? I have a couple of solutions in mind:
- single Po/mo files for every page
- as above, but with a script to merge the Po(s) before making the mo
Am I missing something obvious?
I was told to just use one po, but it sounds like hell to organise4 -
@#!@!&#! Hangouts! Need to attend Jangouts meeting. Installed app on cellphone as desktop doesn't have a mic. Figured out way how to open correct meeting in the Hangouts app (opening it on desktop and then it shows in mobile app), made sure whenever I spoke green bars were going up. Found out that I shouldn't mite myself as unmuting doesn't work. Ok, it's fragile, let's not touch it. Figured all this half an hour before the conference. And when others join, found out that they can't understand me as sound capturing is somehow screwed up and it's doing just noise!
I really need to look into jangouts and convince others to switch conferencing system. -
Today I tried: pnpm.
Following up my hateful rant against Isaac Schlueter and his decisions on npm.
I went all the way out and tried so many alternatives, honestly found a developer experience much greater than the "official" one.
What triggers me the most is the explicit statement of "other creative means" in this commit https://github.com/npm/arborist/..., you don't talk like that when all other package managers are making creative workarounds for the design failure of node_modules.
I don't know what it is but I really hate this guy.4 -
On a low motivation ride today again.
So, the thing is, mujoco. That's it. Mujoco is very annoying.
Current problem is that I have an xml as a robot description input from elsewhere, but it is not scaling well when I use it as input in another file. And it seems I can't scale everything else down, so I have to scale up the robot. And as I haven't found a way to scale up the entire thing at once, I might have to modify the xml for the arm. And that's annoying because I have to change every single joint and site and other stuff for it to work well...
Fuuuuuuuuck. 😑 -
How do folks feel about IoC/DI?
I used Spring and Angular for the first few years of my career, so it seemed like it was a mandatory pattern of a framework and my team would never deploy an app that couldn't use it (even if it was just a Lamda or something, we found smaller DI libraries). Now I work in Express and React, and I look back and feel that those patterns required me to write more code, created more complexity, and wasn't any easier to read or understand, and was way more bug prone, and debugging the injection pipeline itself was effectively not possible.
I guess I'm wondering: what do people feel that it buys them?15 -
why the hell does google keep changing their goddamn interface? they somehow found a way to make it worse. i know i'm late to the party but it just annoys me so much.
i'm switching to yandex.6 -
I tried Appgyver over christmas, since it promised easy front-end (no-)coding I was looking forward to getting rudimentary frontends done faster.
Well, the first real project that I wanted to start didn't compile anymore (internal error from the service), the page told me to reload and try again.
It failed again... And again.
Fine with me, I only spent 10 minutes on the project at this point.
I then searched for the bugreporting page and found it. The sad thing is that when I wanted to open a ticket the server crashed. It didn't even return a HTTP error, just a JSON saying there is a error and a GUID.
I have to say, if a Dev decided to have holidays without new issues that's one way of getting that done.3 -
First I thought I finally found some public WiFi which isn't unencrypted (Password was on a sign outside).
*Opens WiFi settings*
*WiFi is unencrypted*
Huh? *Connects*
*Sign in page opens up which asks for the password*
Well... VPN is the way to go...9 -
I've been studying a bit about business analytics and intelligence to diversify a bit from dev.
After a lot of looking around I've found it's all just glorified jargon which basically enables your decision to have backing of facts and logic. It sounds as if it's a great coverup tool but don't know if it actually helped decision-making.
Why does researching the market/competition need to have a thousand breakdowns/categories/focus areas.
I feel like an interpretation of business analytics is a very simple and intuitive solution but there is just too much random and wasteful metrics attached to it.
I believe it's just my nascent knowledge and experience speaking, but I never felt the same way about software development, financials, etc2 -
I don't understand why finding media that holds differences of personality type is supposed to mark me one way or another I didn't study psychology because I found people disinteresting.
And a decent enough story is a decent enough story.
Problem is.
In all cultures and subcultures some people are less appealing than others
Course these people are all unappealing at their core but sometimes the rather slow insidious and obvious attempts to sneak their weirdness Into storylines to make themselves seem almost pitiable or believable leads to alright productions
Where are we right now ?
A long way back it seems.
Why ? -
I have a question about Android dark theme
I've added dark theme support for my application using 2 different themes declared in styles.xml.
On official android developer site:
"In order to support Dark theme, you must set your app's theme (usually found in res/values/styles.xml) to inherit from a DayNight theme"
and this is what I've done. I've also created colors-night.xml to avoid modifying colors that cannot be modified in styles.xml by coding and this works too: when dark mode is activated from device system, colors changes automatically.
At this point, I was wondering which is the best way to implements dark theme: creating 2 different themes, using colors-night (and drawable-night) or a combination of these 2 ways? -
!rant
I'm not a fan of reinventing the wheel but I have this new found motivation to learn everything related to tech , science and math from scratch. I'm talking new models and so on . It's probably not going to work like most of my other ideas but it's worth giving it a shot . For now I guess I will setup a new YouTube channel or something and log the progress and the development .
That said I'm not sure where i should start first but I do know I want to cover everything from programming and quantum scripting to rocket science . Work our way up slowly ofcourse ... -
See this is the shit that drives me crazy
I remember implementing for example the voice synthesis trained model I found and it only kind of worked and there being a better way of determining what the expected model inputs were but I can’t remember
Life needs to move on
It’s well last time !
Where the he’ll can I go for life to move on so I can focus on something instead of being dragged around by my balls ???? -
Whenever I rant about JavaScript and it's terrible way of doing things differently and totally illogical in the way real programmers would do things versus webdev-scriptkiddies...
Whenever I laugh about these engineers who can only 'code' in Matlab...
Whenever I hear people consider configuring (of stuff like WordPress or RGB-Keyboard-Lights etc.) as 'programming'...
I wonder, if I'm just like the 'Real Programmers' back in 1983 who truly considered Fortran or Assembly to be much more superior than Pascal and someone who coded in the latter or even used a simple OS like UNIX couldn't get accepted as a programmer.
Found that old article about "Real Programmers".
It's worth a read.
http://pbm.com/~lindahl/...
Just consider someone writing modern computer programs without libraries, ifs, for loops and only gotos by hand from top to bottom...
Some day I want to start some modern project everyone else would do in some random modern scripting language and hack it down in assembly just for fun and to tell people, I did it. So I could call myself a Real Programmer too.2 -
so.
i had a stupid idea that'd let me do a project i had planned and abandoned a while back after getting experience with the new project.
problem: detect and manage empty space in a massive file, allow adding data to those empty spaces from files, and fill in a table in a designated empty space with where dynamically-loaded things are. In Python.
I tried JUST detecting empty space, and Python would break out of loops for no reason at all just at random. "run bottom to top through this file until a non-00h byte is found" would either break out of the loop way earlier than should be possible (8 or 9 bytes into a 32KB empty file) or run way into non-zerofill areas before breaking the loop.
Am I just retarded? Is this more Python conditional fuckery? i'm so lost that it's just on hold for now (and i think i lost that script too)