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 - "values"
-
Conversation today...
Guy: "Hey I need a real quick script to pull some values out of an XML document...is that possible?"
Me: "Uh...yeah that's pretty simple if that's all it has to do."
Guy: "Ok excellent I'll send you some files and documentation."
Me: "Ok so is this like a one time use thing or do you need to parse multiple of these?"
Guy: "Actually it needs to run all the time, on this specific PC, watch directories for any files that are added, then generate a XLSX files of the values, and also log information to a database. Etc"
Me: "Oh that adds quite a bit of complexity from what you originally said. It's going to take more time."
Guy: "But you said it was easy."
Well fuck you...12 -
Me: Can we do this with your module?
Creator: Yes
Me: How?
Creator: By adding the need values. Please see the docs. :)
Me: You have no documentation on this feature besides, "yes."
*Creator has closed ticket.*4 -
Found this code back in jQuery 1.9.1. Checked again, and t is still here in jQuery 3.1.0. Suppose it is just in case the values of true and false ever change 😃11
-
Indentation check
Hardecoded values check
Kickass logic check
This is the best program that I have seen in my entire life.8 -
Had to explain a developer from a wordpress dev agency where to find the wp-config.php file and what it does/what the values do.
This person has been doing this for years.
I looked at this config file for nearly the first time in my life.
I literally had to explain her which variables stood for/did/meant what.
I am fucking done with today.8 -
One of my interview question for fresh graduates was to switch 2 variable values without adding a new variable.
I was expecting something like
a= readline()
b= readline()
a+= b
b= a - b
a-= b
And some kid answered:
a= readline()
b= readline()
print("a=" + b)
print("b=" + a)
I ain't even mad
Can y'all share some good programming questions for interviewing fresh graduates?22 -
There are in fact three unique Boolean values.
Their names are "true", "false", and
java.lang.NullPointerException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
...12 -
Working on colour related feature, slamming my head on the desk because the GUI is showing wrong colors.
Then I realized they are using BGR values instead of RGB. WTF WHY3 -
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 -
Dear backend dev:
No data is not an error for fuck sake. Don't want 404, or messages if the search criteria filters out all values. Give me a empty array.
Is this hard to understand that we need a team meeting to discuss?
Godamit12 -
Two nginx config files for two different sites.
Both exactly the same except for the fastcgi location, document root and virtual host.
THE MOTHERFUCKING GET VALUES DOESN'T REWRITE PROPERLY WITH ONE OF THEM BUT IT WORKS PER-FUCKING-FECTLY WITH THE OTHER ONE.
GO SUCK A COCK NGINX. AND NO I'M NOT SWITCHING TO APACHE.21 -
Why the fuck would you assign two new values to the same variable in consecutive lines like that ? I swear this project is driving me nuts. Fuck the dev who wrote this.4
-
So today, our "senior tester" logged a bug because he "Viewed Page Source" on the web based report he's testing and the Year values are hard coded! So 2017 will have to added manually!
I burst out laughing so hard, all my colleagues think I'm having a mental breakdown.2 -
Oh, that feeling when you learn the entry level dev, with no useful knowledge, gets paid more than you...
Priceless...4 -
It was a basic java lesson. We had four values that we stored in a array. We had to make some calculations with the values. Then we had to sort those four values. That's the solution our teacher proposed:
if (arr[0] > arr[1]) {
int temp = arr[0];
arr[0] = arr[1];
arr[1] = temp;
}
if (arr[1] > arr[2]) {
int temp = arr[1];
arr[1] = arr[2];
arr[2] = temp;
}
if (arr[2] > arr[3]) {
int temp = arr[2];
arr[2] = arr[3];
arr[3] = temp;
}
if (arr[0] > arr[1]) {
int temp = arr[0];
arr[0] = arr[1];
arr[1] = temp;
}
if (arr[1] > arr[2]) {
int temp = arr[1];
arr[1] = arr[2];
arr[2] = temp;
}
if (arr[0] > arr[1]) {
int temp = arr[0];
arr[0] = arr[1];
arr[1] = temp;
}7 -
"Is there a way to iterate over enum values in Rust like in Java"
"No, because they are more powerful"
🤔🤔🤔20 -
Programmers’ Day is celebrated on the 256th day of the year – chosen because this is the number of distinct values that can be represented with an eight-bit byte, and the highest power of two which is less than 365.1
-
Me: Hans, Get ze Flammenwerfer!!!
Hans: Why?
Me: They use long instead of big decimal!
Hans: How do they handle the floating values then?
Me: Before sending the request they multiply by 100 and on receiving they divide by 1002 -
Working on a database priorly designed and maintained by some private agency.
The fuck I'm dealing with!
Boolean values stored as 'TRUE'/'FALSE'. It's varchar, my dudes.
There are no FK relations. Just the values of IDs in a column.
There are no indexes, all on just the PKs, nothing else. Nothing.
Null, what's that? I'm dealing with 'N/A', my dudes.
Unique key, what's that? The table which stores users has all the fields nullable. Email is not unique ( even though that's the required behaviour).
ALL the numeric values are stored as varchar. Varchar, my dudes. Varchar. '1', '1.1'
And finally, the good ole, 1 table to rule them all. Normalisation, fuck that.
And what's the root cause of all this? My PM used to hand them Excel sheets she maintains on her local system. FTW. I don't have a enough explanations.7 -
“Never,never, never, NEVER eat raw userinput“
Referring to stuff like “insert into foo (bar) values ($_POST[username])“2 -
HELL. YES.
I wrote a complex grid rendering system in c++!
It accepts pixel values and * values (Grid values)
Works very similar to WPF grid, which I LOVE.
The few lines of code needed (On the front end, at least) to do this are in the comments. VERY FUCKING HAPPY RIGHT NOW.13 -
I HAVE BEEN TRYING TO GET A MATHS PART OF MY RENDERER WORKING FOR TWO DAYS NOW AND IT HAS BEEN WORKING THE WHOLE TIME BUT I WAS USING THE WRONG VALUES TO TEST IT THIS ALWAYS HAPPENS TO ME I WANT TO DIE18
-
I applaud my coworker who titled the business analytics dashboard showing end user feedback and CES values projected onto the 6 meter high wall of the office lobby.
"International Normalized Customer Effort Score Tracker"9 -
Business User: Hey can we get a sample output you plan to send us?
Me: yes heres a mock
BU: This doesn't look right, can you use real values?
Me (said nicely): WELL IF WHEN YOU WROTE THE FCKIN REQUIREMENTS WEREN'T SO VAGUE AND ACTUALLY PROVIDED REAL VALUES FOR THE INPUTS WE WOULD GET AND WHAT WE SHOULD OUTPUT USING THEM MAYBE I COULD GIVE YOU A BETTER SAMPLE... AND DO LESS GUESSING ABOUT WHAT THE FUCK YOU ACTUALLY WANT...
BU: Oh I forwarded some data
Me: *looks at input data*
(thoughts) THIS FUCKING MAKES NO SENSE!! NOWHERE DOES ANYTHING LOOK LIKE WHAT YOU WANTED.... HOW ABOUT I PULL MAGIC VALUES OUT OF MY ASS?6 -
Product team having a proof of concept demo with client:
Sales to client: "Just for the record, we are not selling this to a rival company. Because we really want this technology exclusive to you"
Me (thinking to myself): "Oh really? We just had a demo with them last 2 weeks"
One of the core values of our company is Integrity, and I am not just seeing it. -
There are two records in this table.
I can confirm that the second one is currently being pulled.
One of the values I see getting pulled is different than either two of the records.
😶6 -
🎵 it's my birthday... It's my birthday... It's my birthday...🎵
Yesterday tried to hack the cash value in Dirt 4... Used Cheat Engine and tried editing the values to 999,999,999 but didn't work. The values (multiple address) don't update in the game.
Well tonight I started the game again just to play a bit.... And I see the credits are... 999,999,999!!!!!
Oh and yes it actually is my birthday today lol20 -
YOU CANNOT parse CSV by just splitting the string by commas.
YOU CANNOT generate CSV by just outputting the raw values separated by commas.
CSV is not the magical parseless data format. You need to read fields in quotations, and newlines inside of fields shouldn't prematurely end the row.
Do it fucking right holy shit.15 -
So the CEO called me down about a super urgent bug that needs to be fixed or we will loose several hundred thousand pounds of business.
I rush down to his office and there he has a graph "look the values are barely moving i would expect the values to be more erratic this time of day"
*i look at the graph*
"Errrr your looking at 02:00 in the morning, it's 14:00"
Boss: ahh good spot *looks at 14:00* yea that looks good, great job.5 -
Context: we analyzed data from the past 10 years.
So the fuckface who calls himself head of research tried to put blame on me again, what a surprise. He asked for a tool what basically adds a lot of numbers together with some tweakable stuff, doesnt really matter. Now of course all the datanwas available already so i just grabbed it off of our api, and did the math thing. Then this turdnugget spends 4 literal weeks, tryna feed a local csv file into the program, because he 'wanted to change some values'. One, this isnt what we agreed on, he wanted the data from the original. When i told him this, he denied it so i had to dig out a year old email. Two, he never explicitly specified anything so i didnt use a local file because why the fuck would i do that. Three, i clearly told him that it pulls data from the server. Four, what the fuck does he wanna change past values for, getting ready for time travel? Five, he ranted for like 3 pages, when a change can be done by currentVal - changedVal + newVal, even a fucking 10 year old could figure that out. Also, when i allowed changes in a temporary api, he bitched about how the additional info, what was calculated from yet another original dataset, doesnt get updated, when he fucking just randimly changes values in the end set. Pinnacle of professionalism.2 -
Apart from the technical reasons and such. I use Linux because it feels good. And it makes me happy. You should never forget about the soft values.1
-
( bad english alert )
Why everybody from my school class, saying "Windows is better than linux, because windows don't have commands like linux"12 -
Image : TL; but do dear.
Had human values and professional ethics test today.
This was a question.
Would like to hear the views of some professionals in here.14 -
Devs: We fixed a bug, so watch out for some changes.
Management: The new values are too bad, you need to change it back.
Devs: But ... it was a bug?
Management: Rollback ... now!
I swear, the moment shareholders are involved, management is just about who has the best lie.1 -
"An error has occurred. Please try again."
WELL WHAT THE FUCK IS THE ERROR? WHY CANT YOU TELL ME WHAT I NEED TO DO TO FIX THE ERROR YOU PIECE OF FUCKING SHIT.
I shouldn't need to submit a form 23 fucking times, changing field values each time, because of an uninformative fucking error message.3 -
Psst, hey .
When you copy that shitty line 8 times, you will end up with nasty bugs later cause the shit will look the same and you won't understand they're getting values from the same variable.
Don't. -
At my last startup, the company decided to formally adopt core values after being in business for ten years already. They even emblazoned them on a mouse pad and sent it out to every employee as company swag. I quickly learned that those values were more for show. It was a sign of the culture going downhill. Values included teamwork and collaboration. But since I was only an IC and wasn’t a manager or director or VP, I was expected to be a mindless worker bee. Even when I just asked logical followup questions, I was treated like I was being insubordinate and “questioning their requests.”1
-
Thanks to the developer who decided to release his library with no documentation and hard coded values .. 10 hours well wasted !2
-
fuck.
I think when you need 20 minutes to figure out that you tried to use (0) to acces array values instead of [0] in Java it is time to go to bed.3 -
a friend of mine told me about how he hacked this website
all he did was opening the dev-tools in chrome and changing some values...2 -
Spent yesterday afternoon trying to extract the logic from a VBA macro written by civil engineers so that we can encode the same logic in the applications we're writing.
Sweet Jesus.
500 lines of meaningless variable names and loops reading values from various spreadsheets into a 3 dimensional array(!).
On top of that, now that I kind of understand what it's doing, I don't think it's ever worked properly.2 -
I sent an email to a client asking for values in the database only they can access so I can finish an application and test it.... they reply asking for a new feature on the application and completely ignore my request for said values. then another person CCed on the email replies and agrees with the feature request and we should do xyz. still no values from him either. wtfff?7
-
In my day off I was eager to try overclocking in my pc and this is how it went:
- Fucked up overclocking parameters for cpu and ram speed.
- BIOS is broken, had to take out gpu to do a reset taking out the bios battery.
- BIOS is up again, default values loaded, bla bla
- Did not try to fuck off anymoar with overclocking, just kept playing star wars and went to sleep safe and sound like a baby.
- Gotta work now. docker does not start, closes itself after tried to start, docker panic, I panic, tried to uninstall, tried to update. nothing works
- Then I remember bios default values leaves virtualization off. enables it again, docker still not working. I panic again, restarted pc like 10 times between disabling/enabling hyper-v in windows.
- Docker dies. not gonna change my overclock options again. silly me 🤦♂️9 -
Somebody created a new database field of type varchar(10) and then filled it with the string 'NULL' for every row. Now, everybody is having to figure out for themselves that these aren't actual NULL values when running scripts.2
-
Country where you wish to work as developer ? ( if there is a reason and you wish to specify it, you can )
Mine is - Netherland ( for it's care for animals, environment & beauty ) or New Zealand or Estonia or japan ( good people with ethics and values ).
There were my observations, and I could be wrong47 -
You know what fkn sucks? I was so fkn excited to join the company. It was a dream job for me. I loved everything about it. The stack, the concept, the core values, everything.
Fast forward 3 years and I no longer recognize the company I joined. Went from customer first to revenue first. No other vision than increase sales. Heart fkn breaking...2 -
College: This is the debugging mode This is a breakpoint. Here you can see the variable values.
Work: print "asfadadadda" and variables and delete lines until it throws a different exception8 -
Virtual stocks over 3 months. I think i'm ready for the real thing.
(All values in euros since there aren't any simulators like this that use USD.)13 -
Eeeeh... Thanks for saving me Gimp XD
(says that I am trying to create an image that will be 155,8GB)
I just casually squared one equation by entering the final value into both width and height values, oops :D13 -
You know what kind of devs I hate?
- The "Oh I never worked with it so its shit"
- The "I dont wanna learn something new"
- The "You can use JavaScript for this and everything else"
- The Pro ++ Ultra Dev who never heard of modulization and layering
- The hard coded values guy12 -
Wow, I still remember some math after decades. Today, I needed some parameter calculation in an interval with smooth transition at both ends (i.e. continuously differentiable). So I used a 3rd degree polynomial where the values and derivations gave a 4x4 linear equation system. I lazily hacked that into WolframAlpha, and it works nicely.1
-
It took straight 2 minutes to send 3 values to their server and even then it failed, just fucking great, what fills my eyes with blood is how calm the message is supposed to sound, you fuck can't receive opt-outs over https, what?!3
-
Dear fellow project member,
I agree that most code should explain itself, but if you need to use a certain method which requires you to pass several different values of the same type and you just pass values as you like and then get, as you like to call it, 'unexpected behavior', then that is YOUR F***ING PROBLEM.
I DO know your thoughts about documenting code and I DO know you think documenting code only delays the progress, but if you for once could please CHECK THE DOCUMENTATION I WROTE, there would be no need to message me EVERY FIVE BLOODY MINUTES to complain about something that actually works when used right, just because you are too lazy to read the docs!
If you would do that next time, at least the time i spend writing documentation for our project would not be COMPLETELY WASTED! 😤
Kind Regards2 -
Manager : I wish to upload an excel sheet from my browser, and based on *some conditions*, could you please highlight the cells with incorrect values.
Me: And then download the new edited sheet with highlighted cells, right?
Manager: No just change the file that I have on my desktop. So I can repeat whenever I need, with the same file.
Me: :/1 -
My current new boss is pretty awesome. When he arrived, we were a lot of juniors dev crumbling under pressure. He directly went to product team and to sales team and totally reduced our workload to something acceptable.
He values sane work environment a lot, and I think that's what make a good boss -
My senior just created this beauty of an API...
Mixing undefined/null values with empty strings & random hyphens for other variables. And the phone number not following standarised notation (we are a telephone provider)6 -
So, my car's odometer finally rolled over to 100,000 here a couple weeks ago. Been having fun watching it hit various binary values again (100001, 100010, etc.).
-
TL:DR
Why do so shitty "API"s exist that are even harder to write than proper ones? D:
Trying to hack my venilation at home.
This API is so horrible D:
The API is only based on POST requests no matter if you want to write values or get values and the response only contains XML with cryptic values like:
<?xml version="1.0" encoding="UTF-8"?>
<PARAMETER>
<LANG>de</LANG>
<ID>v01306</ID>
<VA>00011100000000000000000010000001</VA>
<ID>v00024</ID>
<VA>0</VA>
<ID>v00033</ID>
<VA>2</VA>
<ID>v00037</ID>
<VA>0</VA>
Also there are multiple API routes like
POST /data/werte1.xml
POST /data/werte2.xml
POST /data/werte3.xml
POST /data/werte4.xml
And actually the real API route is only given in the request body and not in the path.
Why is this so shitty? D:<
Btw in terms of security this is also top notch. It just globally saves if one computer sends the login password.
I mean why even ask for a password then? D:
That made me end up with a cronjob to send a login request so I don't have to login on any device.
PS:
You see, great piece of German engineering.3 -
did all the work and showed it to client . a person came and did just formating/ui , even values were populated by me .
Now he is the one who did everything. even client appreciated his effort of 4 hours.
Fuck this company.2 -
Was accused of plagiarism because I could write a bubble sort algorithm without a reference (and therefore without a source) in my SECOND year of courses.
Their low expectations bit them in the ass when the admin. made all undergrads take a basic test (for loop going through an array, average of values, etc) and lots of people in their third year failed.7 -
Was debugging locally why my bot was inserting the same values twice into the database only to then realise my heroku worker was still on..
-
Update on ConsoleWidgets project:
Unit system is done, and much improved from the last project. Included a new class which mimics the CSS "calc()" - allowing you to mix pixel (Or, in console terms, cell) values and percentage values. The screenshot shows 100% - 10c
Color system in functional! In the screenshot you see the aforementioned widget colored devRant light purple! Not to mention retaining the original transparent color for the window background.
Next up: style class (maybe) and layout management classes (for sure!) -
Colleague: We need to deliver it today so let's hardcode some values in the code to make it work
Me: Ok you do it. I don't even want to see it!3 -
Just learned the previous dev team thought a db column with a value of NULL or "Y" was a great way to handle boolean values.5
-
Zero Days documentary about stuxnet malware features a "identity protected" NSA employee who reveals information about classified NSA tactics.
She claims "I would NEVER compromise ongoing operations in the field."
Well it's too bad that Amazon Prime Video and IMDB don't share your values. They have compromised your name, Joanne Tucker, and the other films you were in.
Nice acting though. You really have people believing you were a real source!15 -
When the previous dev has written all datetime query lookups by date only, resulting in any values for the ladt day of the month to not be included.
THANK YOU.
Same wanker has copied and pasted same 100 lines of code over and over and literally changed one value in between. Obviously never heard of a function.3 -
Wondering why your form isn't submitting any data to the db.
Spending half an hour checking all POST-Variables and functions in your script multiple times to see if they give the correct values (they do).
Finally realizing you wrote 'INSERT INRO' in your SQL statement.
Questioning your intelligence for the rest of the day.6 -
Client is setting up Google Suite, needs me to create a TXT record. She sends me a screenshot of the record that needs to be created, so I ask her to copy/paste the record values .... she copy and pastes the URL and sends that to me. I ask again for her to copy the values in the fields on the page and send them to me ... she sends me another screenshot. How do these people get through a day?3
-
Using cookies for verification and validation without encrypting the values which should have been handled in the backend without any use of cookies.
I wonder how vulnerable by website was... -
A form for an order checkout has a fucking stupid select box for comments... Options like "knock loudly" or "Ring doorbell"... 🤔
My wife had no way to put in a comment to say it needed to go to level 2! So I took over, inspected the element to make sure it wasn't using ID values for these stupid values, then replaced it with a text area with the same control ID, name and class.
Problem solved, felt like such a ninja 😉5 -
Being told code is "production ready" only to find this:
if name == 'foo' or name == 'bar' or name == 'someothershit'
What's wrong with:
if name in ['foo','bar', 'someothershit']?
Oh and they had 10 different values they were matching, not just 3. What kind of joker am I dealing with?1 -
Trying to work with an API that has no response object (it just returns empty arrays if something breaks) and it's JSON is not key-value.. just a bunch of dynamic nested values. just wow.3
-
Sport Festival today
I'm in the IT course and responsible for injecting data into DBs.
I asked some 11-graders if they would pay for better values ;D1 -
Reading JS written by “creative” types:
var myArray = []; //un-sorted values
var SortedArray = myArray.sort();
OrderedHtmlElement.innerText = myArray[0];
Look here if you are going to do it wrong at least commit to the wrongdoing!!!6 -
Just reminiscing when back in the "old days" video games had cheats built in...
Proton men and the flying Dutchman IN AOE3...
Now have to find hackers to create trainer apps that change values in memory and bypass cheat detection...7 -
First !rant. I'm working on a 2d game using Game Maker at school and I just wounder if putting constants up this way makes you cringe. Is there a better way? This code is only run when switching to a weapon and he values can be put into the shooting script itself. I just want to know how you put in mass constants in general coding or even at all.6
-
"No signature of method: build_4z0stktnpkjsyfd6ol74tcab1.android() is applicable for argument types: (build_4z0stktnpkjsyfd6ol74tcab1$_run_closure2) values: [build_4z0stktnpkjsyfd6ol74tcab1$_run_closure2@5edbe9fa]"
Thank You gradle. This is very useful.... FML2 -
Fuck c++
Everytime I have to use this fucking language it spits up some other bullshit error
`cannot convert std::vector<int>() to std::vector<int>&`
WHY THE FUCK ARE STACK ALLOCATED VALUES EVEN THEIR OWN TYPES
AND WHY CANT I TAKE A GOD DAMN REFERENCE TO IT
JUST WHYYYYY29 -
concious inclusion training: we want you to talk and share about a bunch of shit that's illegal to ask in interviews: age,sex, orientation, family status, religion, values, gender identity, ethnicity etc
what the fuck do any of these things even have to do with the job?
im confused but whatever6 -
Pro tip: using enums you can make a type that can be one of two values. Perfect for control structures! #codelikeapro1
-
Biking out to the beach on Saturday I remembered I forgot to remove a log.warn("cuntface", values) before committing on Friday.
-
One thing when working with a ton of data:
If there is a slight, infinitesimal probability that something will be wrong, then it will 100% be wrong.
Never make assumptions that data is consistent, when dealing with tens of gigabytes of it, unless you get it sanitized from somewhere.
I've already seen it all:
* Duplicates where I've been assured "these are unique"
* In text fields that contain exclusively numeric values, there will always be some non-numeric values as well
* There will be negative numbers in "number sequences starting with 1"
* There will be dates in the future, and in the far far future, like 20115 in the future.
* Even if you have 200k customers, there will be a customer ID that will cause an integer overflow.
Don't trust anything. Always check and question everything.5 -
Why is Google so bad in creating good documentations for their API ?
I send exactly what they specify and on some values I just get a 400. thanks for nothing3 -
Okay today I wrote a very ugly api.. No f***king json mapper will handle that response in java. The values are dynamic... Good luck to anyone who will integrate into it... And good luck to anyone who will look at my code
Project manager please always give realistic deadlines2 -
Thanks Airtel for tweeting me your variable names!
This will lead me to the great good. Thank you for showing me the way to attainment of peace and immense control of myself and the world...
NOW FUCKING SHOW THE VALUES OF THE VARIABLES!!!!3 -
Wanna get pissed off? Have a client complain about a penny difference on a report, and not specify how they want values rounded. It'll work, GUARANTEED3
-
I HATE my router
Why the hell did virgin media think it was a good idea to NOT let me port forward ports LESS THAN I’ve already set up
WHO THOUGHT THAT THIS WAS A GOOD IDEA?!?
Its so fucking annoying, I’ve had to remove all of my set up ports just to add ports with low values too many times AaaAAAaa3 -
Copy and paste similar code where I have to change X values but ALWAYS mange to only change X-1 values so i get weird behaviour start debugging what in the end then takes longer than to write it new in the first place. Hate myself for that.
-
I wrote a Rust script in 10 minutes or so that processes several GiB's big ISO files and it calculates its values so fast, that most time is spent waiting for the HDD! Look at the CPU usage and the disk read/write stats :D
(No, the picture is not fake, it's a real screenshot from my desktop edited with Gimp)7 -
I cant believe its impossible to find a dev job even with a computer science degree. What have I wasted 6 years of my life for then if no one values a degree? Fuck you20
-
my work drives me crazy sometimes, our production tables dont have primary keys or indexes. There are several tables who are basically the same, most scripts/reports are hacked together with no common agreement on dates/values and as a result, it is almost impossible to check whether values are correct or not.4
-
I see lots of ranting about bosses or team members.
My boss values me a lot and my team is open to discussing amd value my opinion.
What the fuck to I rant about? fml1 -
"storing_values = {} # storing_values is a dictionary which stores the required values" - Medium tutorial.
... what in the fuck.2 -
Asked to implement a feature in a mobile app that wasn't actually supported by the backend. Feature had 3 possible values in the backend, only 1 and 2 were properly implemented. Below was the backend teams solution to support the third option.
- If the key is missing in API response A, means the user is not allowed access this feature.
- If the key is present in API response A, and missing from API response B, that means it hasn't been set.
- If both are the same value, user has that value.
- It will never be the case that both return option 3.
- If both are different values, one of them being option 3, display option 3.
this ... monstrosity, is in production to this very day. -
Bloody fucking Crystal. Lame fucking excuse for a reporting engine product.
Can’t change data source from API for a report containing List of Values at runtime.
What the actual fuck! A reporting system where I can’t change the data source.
Die in hell you Fucking blood sucking leeches. Die of malaria!2 -
! Worst thing another dev did in our NodeJS code.
1. No indentation. Literally.
2. A single function in a module worth 1000 lines. I'm not even kidding. No breaking into smaller functions. Just a large rock with a lot of js mess scribbled.
3. No comments at all
4. Sending stray values to promises which were not required at all.
5. No jsdoc. Using camelCase and uppercase interchangeably.2 -
Functional test are failing.
Expected: 7109
Got: 9000
Grep code-base for 7109. No findings. 0_o
Dig through test setup written by a drunk.
Find:
assert(actualPrice === 1800 * conversionRate)
Goddamnit. You shall not calculate your expected values in a test setup.1 -
Our dev uses laravel and instead of doing a sum to get a total of a couple columns he is getting all values and manually counting them up in the php.
he keeps telling he cant improve and i cant work on his code because i know i will break the rest.
when i looked at the code i had the following feeling.2 -
I was given two lists of values in an excel spreadsheet and I needed to compare/find duplicates. I wrote some JavaScript to handle it. I don't know how to use fucking Excel.
-
Why does the css border-spacing have to be different in how it takes 2 values.
If you look at margin and padding properties when passing in 2 values, you pass in:
margin: (top/bottom)px (left/right)px;
However, when using border spacing:
border-spacing: (left/right)px (top/bottom)px;
I know I’m simplifying here, but it’s goddamn irritating how it’s takes in vertical and horizontal spacing the other way around. Who the hell thought that was a good idea4 -
I have a random question:
What values do you guys live with?
And how can I make sure I live my life with highest possible values?
The squad here is most raw and honest. I have seen you folks stick to what you believe in and stand up against the evil even if costs you or makes you sacrifice somethings.
Really want to be a better human and seems like my next phase of life would be dedicated to this.20 -
Reinforcement learning is going to be my end. 😩😩😩☠️
(currently stuck at how to put images as well as a bunch of other -motor- values as input... and exactly what am I getting as output again?)
Pulling my own hair out... Ooooooof6 -
Setting up npm private registry and mirror is like setting up machine for handling ddos attack.
Last time I was tuning linux kernel tcp ip stack by adjusting default variable values was ages ago but if you see 100 open sockets in a matter of second after you try to install single frontend dependency you start questioning your life. -
I updated all the records about 1000+ because I forgot to write the where clause with the update query and it updated every fucking single row with same values.
~God bless backups :)2 -
Best conversation I ever had with a manager.
Pulls me off into a meeting and in the same breath tells me he values my opinion, must not argue with him and he does not want "yes" men. Lol -
Name one thing more fun than atomically writing values into a gpu buffer and them mysteriously vanishing into the aether immediately after the compute shader invocation
I can literally see them in the buffer using RenderDoc and then as soon as I go to the next command the buffer is completely filled with zeros again as if the values never existed
?? like how ??11 -
uhm, nice registration form I guess? those are not placeholders btw, it's actual values
source: https://dashboard.nanobox.io/users/...
in comments the password field and the webarchive4 -
Customer: "There are only 'X' values in COLUMN_D, your - report - import is wrong!"
Me: select count(*) from table_a where column_d is not in ('X') -> returns more than a thousand... Yeah please only scroll within a couple hundreds of records in your shitty sql client gui without making queries. Fuckhead. -
WHY THE FUCK DOES RUNKIT RETURN A SHORTENED STRING?!?!? I SPENT 3 FUCKING DAYS DEBUGGING BECAUSE 2 VALUES WERENT THE SAME.
AAAAA -
Demo
Backend Team : No one want to listen to technical details. A short 2 min demo what we have done.
Shareholders : Have you done anything?
Frontend Team : half an hour demo of validators and fields that sum values from other fields
Shareholders: Wow that is awesome, great job, nice to see, great value, lot of progress.4 -
I just don't get people designing database tables using VARCHAR/VARCHAR2 for columns that have numeric values in them, then use them as row identifiers.
I simply don't.5 -
Snartsheet requires checkbox values of "true" or "false"
Microsoft Flow only passes booleans as "True" and "False" so the API rejects the data.3 -
Recently I've been considering switching to another job. I've been at my current employer my entire working carreer, and a switch might be a healthy choice soon. My current working environment is changing (and not for the best in my opnion), and I have never really looked over the fence. I've also felt that my current job lacks some real meaning.
I currently work on software for logistical purposes, but I don’t feel that my work aligns with my values, or that it tries to solve issues that are important to me.
I have received many job offers with higher pay and benefits, but again, none that really work on issues that I find important.
My question to you is wether (and if so: how much) you let your values and ethics weigh in your choice of an employer/project. And are you willing to offer up (financial) benefits for a job that aligns better with your values?4 -
Sure you can specify svg object attributes x, y, width and height in metric values like mm and after put things on paper get same printed output but if you want to transform svg object you need to calculate new values by yourself cause you can’t simply provide translate (10mm, 10mm).
Now I ended up with manually converting values to mm.
Making free transform tool for exact document data rendering inside browser is pain in the ass.
I started to wonder how google docs or microsoft word for web deal with this stuff.2 -
Something I discovered at work today:
A sub procedure that takes three arguments:
A table name
Column list
Where clause
It concatenates all of those values together and executed the dynamically generated query.
Why??????????6 -
Taking over the blog for our companies CSS code as it was unresponsive, due to FIXED values. The fun part was roasting the guy who wrote this before me :p2
-
When you gotta learn those hard coded values for a practical exam cause your professor doesn't accept other values:)
#feelsEngineeringInIndiaMan3 -
* break it into elementary steps, small enough to fit into your "estimation time unit", e.g. days or hours.
* estimate those steps for "developing at a leisurely pace" if nothing goes wrong.
* think about "what could go wrong" (list everything!) and adjust values accordingly.
* adjust total amount with experience values, like:
* times 1.2 for every manager
* times 1 to 4 based on which legacy projects i have to touch
and finally:
* multiply with `1+log(t/u,2)`, with `u` being the amount of useful data in the requirement description and `t` being the total amount of data in the requirement description
* sample: with our current "favourite" customer, about 90% of all tickets is garbage, so t/u = 100/10 = 10 => log(10,2) = 3.3 => multiply everything with 4.34 -
Dividing currency values across new invoices results in ball aching rounding issues.
Finally solved it and there's no one around to high five.3 -
Today I spent 4 hours testbenching and enhancing an algorithm to detect certain metric patterns only to find out that the reason the anomalies weren't picked up correctly was that their metric had some -nan values I didn't check for.... FML2
-
Working on something...
-Hun?! Why the hell doesn't it work?
Attempt a few fixes...
-Still doesn't work? Damn what am i doing wrong?
Attempt other changes...
-Why is it still not working!?
Debug step by step, validate my values are fine...
-Why does my output not correspond to my values!?! What the hell is this black magic!?
Rebuild the same solution for the 5th time...
-...Why does it work now... -
God damn it, if you (libGDX) have default values for public methods then make those constants public. Now I am writing wrapper and I either create my constant with same value as your private one, or do some reflection black magic which will probably break after obfuscation. *sigh* Going with my copy of the constant, not happy about that...
-
how do you all make something that youre unfamiliar with? i mean like something uncommon and strange that youd have to figure out. currently, i have to determine the radius of someones eyeball when the only thing i have is the distance between two eyes. how would any of you go about it? currently im just making an equation and changing values till it works.6
-
just a reminder
if you think your 500 line python script with garbage hardcode values everywhere that brittly functions even for you is going to bring you thousands in subscriptions
fuck you7 -
https://docs.microsoft.com/en-us/...
Cause who the fuck wouldn't expect a TriState to have FIVE goddamn values of which only TWO are supported.
Yeah, makes perfect sense.1 -
If I have four unknown variables, x, y, j, and k, but know the values of x*j, y/k, and k/j, and x*j == y/k
How do I go about getting the values of the individual unknown variables?9 -
The worst thing is to spend hours wondering why a regex isn't getting the right values. Then I edit the regex and when I used undo on my changes, all of a sudden it worked. No idea why...
-
Me to ChatGPT:
Write me an enum in Go using these values:
"Monday"
"Tuesday"
"Wednesday"
"Thursday"
"Friday"
"Saturday"
"Sunday"
ChatGPT:
Sure!
Here is how you write an enum in Go:
type DayOfWeek string
var (
Monday DayOfWeek = "Monday"
...
)
You get the idea! Write it yourself!4 -
Recommendations for growing a new open source project? I'm all ears if anyone has done or has any thoughts on this as my company just open sourced our Flutter mobile app since it lines up with platform values.
I'm also super excited 😍4 -
Why why why the fuck would you assign the same variable name at the start of a function to completely different data? These aren't params, but variables being assigned different things, no comments, no documentation, crucial in the operation, but assigned wildly different values with different behaviors through the code.
-
Ordered to implement Old functionality in New system, not allowed to fix it, refactor or change the underlaying mess.
Wrap old system in a wcf, hardcoded some values, done.
3 weeks estimated so I feel ahead and got more time to look for a New job. -
I'm stressed and my manager values the future of the company before people's health.
I already clocked over 40 hours this week with no foreseeable reward.
I head in mind to leave the company somewhere Q4 2021 but this stuff will make it sooner..2 -
Because of reasons we had to use the reactabular-module in our react application. There were problems giving relative values to the table-columns so a coworker decided to install a resize-listener in the window and calculate the relative values itself when the window width changes.
But i have to defend the guy who did this. Given the other things to do and our (limited) knowledge of the css-display-attribute and the reactabuler-module this was the best thing to do. Or we just wamted to finish this because we already wasted hours on this.1 -
For everybody wondering what's the new endpoint is..
/api/me/subscribed-feed
you can also provide an `filter`, which is comma-seperated with the possible values:
- posted
- commentedOn
- liked
"View more suggested users" does NOT load more. It simply doesn't show everything from the response.8 -
Why does the sqlite SUM function round down values?? WHY?
10333.03 is printed as 10333
This has caused me so many problems?
What is the solution to this?2 -
So some guys at my brother's college made a sports live score app, which charges 1$ for getting score. He decompiles it, and what we see is bewildering, it is not obfuscated and the link to the json values are hardcoded in the app and the whole login process is just a sham. Seriously, WTF, were the guys thinking!4
-
Great article that clearly summarizes what I've been ranting about at work for years...
https://thoughtworks.com/insights/... -
In this game I'm making for class my player was moving opposite of the control pressed... So I multiplied the movement values by negative 12
-
Payment gateways are such a big pain to implement. Docs say that they will return values A,B,C but what you end up recieving is X,Y,Z.
And don't get me started on the webhooks, man they return values completely different values from the api end points and with no reference what so ever to the fields returned by them.
Wish i could get the documentation writer's address and may be the dev as well!!6 -
Oh come on MySQL driver, returning all values as strings? Really? It's like they went out of their way to be dumb.4
-
The database column contains values, yet there is nothing in the code that inserts or updates the values in that column.
I'm not sure if the original author of this program wrote bad code or was some kind of malicious wizard. What I do know is that it scares me.5 -
When the database you have to deal with has values in the type column that end with a whitespace...2
-
My colleague had some problems today.
He had problems from both user input and predefined strings sent with ajax to backend. The "&"-sign was splitting values in GET-requests into unintended parameters. So... he was simply going to search and replace all of those signs with the word "and"...
encodeURI()? Why are you sending our forms with GET-requests?! 🙃 -
Was passing values from back end into template .nothing appeared so I though I screwed up somewhere in the code ,turns out it was the css.1
-
I have a piece of software pulling data from a database. I have been having a problem storing time values correctly, so I am running some tests with the customer. He has some data for Sunday and he says "Oh chick fil a should be empty!" Idk why I think it's funny but we are guaranteed test data because of the Bible.
-
So, a massive formula change in the app. Client warned upfront that old data will also show revised values after change. Changes made, tested and this morning rolled out.
Support question just now (1800 local time on a Friday evening) "How do we quickly get old values in old data? Business insists."
Do I reply #####@#@!! -
I had to optimize a SQL-Query and i was able to cut the amount of time in half.
The business part of the company said it is still too slow, so i researched deeper and looked into the called functions which are used in every part where to claculate value X.
Found 20 similiar selects to get values which are summed up afterwards into three different variables. Thought this can be done in three selects with "sum", but then i found the dumbest thing is this function:
V1, V2 have the values from the selects
V3 is ja given value
X is the return value
the function returns another value
help = functionCall(parameter) - V1 -V2
X= help + V1 + V2 +V3
WTF im mean it does the selects for nothing...
X = functionCall(parameter) + V3 -
I've thought of a new sorting algorithm called Trumpsort. It's like twittersort in that it will take an array of values and tweet them at Donald Trump with a request for them to be sorted. It's scientifically proven to run in O(bad hombres).
-
Today I made a php script to scrap a site.
And I needed to use str_replace in a string to cancel out some values.
Instead of doing simple str_replace I used explode func to separate them with spaces (without any comments on how or why the fuck I m using an explode instead of a str_replace).
Later, I used $p[1] for further processing. -
When everything passed to the front end is in the form of a magic array... all values are grabbed using an arbitrary index...
-
Fucking excel...
I opened up my CSV and changed values in one column... You fucking didn't need to take it in yourself to change all of my dates in another column to one you prefer, they were fucking fine! -
!Rant
Why in hell did we try to get smart with this shit!? As simple as storing 2 values and reading them... But no... Someone wanted to get pretty with it, stored the two values but just read one because the other can be calculated...
Makes sense (btw it's [field] in minutes and [field] in seconds)... Some problems:
1. Why? Oh because someone designed it as int...
2. Why not just in seconds? Fuck you that's why...
3. Who the fuck thought that getting seconds from minutes is better then getting minutes from seconds when we only store integer values?
Thank you... I feel better4 -
DECENTURION
THE FIRST DECENTRALIZED AUTONOMOUS SOCIETY
THE FIRST FULLY DECENTRALIZED STATE IN WHICH ECONOMY, GOVERNANCE AND COMMUNICATIONS ARE BUILT ON A blосkсhаin. DECENTURION’S SYSTEM OF VALUES PUTS ITS OWN RESIDENTS IN THE EPICENTER. THIS APPROACH DETERMINES THE KEY PRINCIPLES OF THE DOMESTIC POLICIES OF THE STATE
https://decenturion.com/6 -
It was a little Java Swing Application for my friend who had to maintain a little notebook for his insulin values.
The device he used to read his values, saved them as a csv-file, so it was pretty easy to map them to a readable format, so he didn't have to maintain that notebook.
He never used the App. He got an implant that manages it for him.1 -
It's sad how easy it is to fool people by switching between absolute and relative values.
3 million people did this, 3 million people own that, 3 million people agree on those things, it all seems significant - but 1% of US population sounds completely marginal and irrelevant...1 -
MS Office is turning to crap. I have to use it extensively because of my job and it never fails to give me grief. Today I wasted so much time because even though excel is loading a CSV file, it still changes values (like april25 to april-25, or 1.0 to 1) without informing the user or ability to undo or disable, because it thinks it is too smart. :(1
-
I saw this quiz. This is Python, right?
I ran this and got '3 44' although I'm not completely sure why the 44. I can see the obvious correlation between 'values [0]' and 'v[0]'. Aside from that I'm not sure.
Can anyone explain this to me?5 -
Advice to new devs: always check function return values. Crash as close to the reason as possible. Make your functions return errors whenever appropriate and check these as well, crashing gracefully.1
-
After several years of using something I still get scared and start doubting myself when I see a line like this:
Only modify values in this file if you know what you are doing.2 -
I regret ever picking my CS major every time I stare at my VS Debugger and am stuck reading the values stored in a List<Int>. Why, List<Int>, as the backing for my shortest path, do you not have the proper values after I walk my tree.
I have lovingly set up my Priority Queue. I have followed the class notes and lectures.
Oh why, my List, have your forsaken me?
Oh.
It's a recursion bug. I'm not updating nodes properly.
I'm a dumb ass.2 -
In my last rant, I complained about our rebranding document that was very much lacking... Their listed colours are slightly different than the colours used in their logo...
How do they fuck up copy pasting the colour values. And yes, it was meant to be the same.1 -
I got my first proper start in programming through a side business operated by the same guy that was running a local makerspace. He had me learn basic git syntax and change some values in ionic.
From there I decided the best way to learn how to do this was write my own project in angular. From there I branched of with React and Vue.2 -
sweaty_decision_meme.jpg
- Debugging some application locally (with debugger)
- 20-30 manual step-ins, tracking those values VERY closely
- debugger becomes a little sluggish
- move mouse to select a line to jump to
- cursor is lagging: all jumpy and everything
- CTRL+ALT+F1
- everything freezes.
sooo...either reboot the laptop and lose all the work, or wait for OOMK to kick in, which could be hours, depending on the level of memory starvation.13 -
I spent two hours trying to figure out why VBA was giving me the correct values when I used debug.print, but not when I got the returned from the function.
I MISSPENT THE GOOD DAMN FUNCTION IN THE RETURN AND VBA DOESN'T SHOW OR AS A BUG OR GOOD DAMN ANYTHING....
I hate this thing so much.
On the bright side the office thinks I'm some sort of magical tech-deity.5 -
We're in the last stretch before going Live next week.
A training session was held with some of the future users.
"Why does that dossierID field is mandatory with a lot of validation rules? We don't use that info, we just remember the names."
"Why do we have this feature to manage x info that is linked with one of our services? We only needed a text field for custom values"1 -
Dear Java, I don't care about your tight rules and patterns; I just want the data.
Do I want some values from some far, hidden-away objects? Oh no, I can't, because I must respect the OO contracts between those objects and interfaces and type safety and blah dee bla.14 -
Ugh, fuck man. I had planned an extremely general function for printing a truth table for a given proposition for a course, with a little functional programming thrown in. Instead, we are just supposed to show all 2^8 possible truth tables for 3 variables. That's eight nested loops with a hardcoded string that you inject the 8 values in.
I feel so disappointed1 -
Uploading an xslx file to office365 to download it as an ods file only to be able to convert it to a csv file via libre office.
Direct conversion attempts with other tools would either fail converting the xslx file or break cells' values (ssconvert, soffice --headless -c, gnumeric).
One of those things where I fail to understand why it has to be so complicated.4 -
Why it is such a pain to scan nullable types on Golang database.sql
Now I have to chose between:
1- Using temporaty variable to hold the nullable value just to soon after check and set the zero value if it is null
2- Adding coalesce to my sql query for the zero values.
Did I mention that there are around 20 collumns that are nullable...1 -
Started by working on centOS to make it work on my PC. At first it was just look on the internet and change values, then i found this great thing called manuals and documentation.
Soon after I learned I could modify some files to change the behaviour of the system, write my own extensions. And before I knew I was HOOKED! -
When you receive a psd file with a million layers, when all you really need from it is the colour values and what font/size they've used and some measurements. You'll just do it all properly with CSS. Better off with a flat png or 2 with transparency and some original vectors.
-
Holy shit! Why is it so hard to find a JSON viewer for android that doesn't absolutely suck ass?
I want a viewer that:
-reads json from the clipboard
-queries json for strings in context
-allows copying of values, not the key and the value put together
Major bonus points:
-JSONPath querying
-Free/pay version without ads7 -
Please look at this code, I wanna know why the $ and {} was added to the alert method to pop up the key and value of user.
what is their functionality there?
let user = {
name: "John",
age: 30
};
// loop over keys-and-values
for (let [key, value] of Object.entries(user)) {
alert(`${key}:${value}`); // name:John, then age:30
}4 -
So my school forces me to take a partner in my project. I build him skeletons, give him examples and wait to see what he'll do. He was supposed to do CRUD for text messages in SQL database. In the update and delete functions, he does this:
UPDATE Message SET (values) ...
WHERE username=@username
Yup ... -
When my electrician uncle does some work for me for free it feels like he is a good person. When I do work for family for free I feel like an idiot (only since a year or two). Hustle culture can really mess with your values even if you don't notice it.2
-
"Hi X, I'm getting some push back on a bigger hard drive seeing as you'll be on the only person in the company who has something bigger than 250GB. Are you able to give me the headline values of how you've used up 249GB so far please?"7
-
Call me a pussy, but I find it quite annoying to figure out why one of 30 of the values returned in a hash is wrong in a 600 line Ruby on Rails method.5
-
unexperienced me just wanted to mess around with vba updating a docvariable in word, now i am fiddling around how to export several values to an external excel-sheet.
that escalated quickly -
Sure, languages with automatic conversion to truthy and falsy values can be a pain in the ass, but in languages without that feature you need to use foo != true to see whether foo is either false or null. How fucking ugly is that?9
-
When you waste 2 fucking days on a program that does all sorts of math (eigenvalues, matrixes, logarithmic ranking, etc) because you fail at simple arithmetic average (not accounting for empty values) because you wrote it that line at 6AM
:/ -
Fuck JavaScript!!!!!
I'm building an application using Vue with MaterializeCSS and i'm using moment to handle dates. i have to initialize datepickers with values at mount of the vue. i use variables to store the states. there are proper routines for intialization and setting of the pickers. the routines run. there are no errors. the pickers show values. no errors. but the fucking variables ar empty!!!! the pickers are not being set. holy mother of fcuking shitty js milk!6 -
Just realized that it’s been a long time since I had to deal with collections that contain values of different types and that ugly type checks that come with it when you need to do something with the values.
Sum types are really a blessing. -
Never heard of clamp(), a css thing for responsive sizing based on min max values. I shall certainly be investigating this on my next project. I ca’t be the only one who has never used this can I?
Plus is supported on all modern browsers!
https://developer.mozilla.org/en-US...8 -
Has anyone here ever implemented OAuth2.0 for WebRTC? I am reading rfc7635 and its references, but they refer to functions they don't define properly and rely on cryptography jargon by eg. calling values by different names, so I'd appreciate a reference implementation of the function for building tokens to clear up the confusion.
rfc7635 on STUN extension for third-party authentication:
https://datatracker.ietf.org/doc/...9 -
So I was working on Nex Robotics's Firebird V,
Was doing some graph traversal thing...
And was breaking my head for 28hrs... I was passing the bot an structure of direction and no. Of times it had to take that direction...
something like for(int i=0; i<dir.times;i++)
And after 29 hrs I realized it also had negative values...
that effing abs() was missing 😫4 -
New data structure:
Map with repeated keys allowed. Values of repeated keys will be stored in an array.
Calling get(key) will get the array, pick a random entry in said array, and return it.
Use: Finding what the "number one rule of x," the "greatest thing ever," the "most unbelievable event," and more is. -
Commas being used as a decimal point are the absolute bane of my damn existence. And what's worse, they are used in csv files with a semicolon as a delimiter. It is comma separated values ffs not a semicolon separated comma separated random fucking shit that's against the fucking syntax of every damn language. Fuck whichever dimwit that thought using commas as a decimal separator was a good idea.7
-
I had to contact technical support for an API. I’m pretty sure I was emailing with a bot because I was getting all sorts of stupid replies.
Me: I’m using your SDK for language X. It’s returned null for some properties. In the user portal, I can see there are values for those properties for the transaction. I don’t know why I’m not receiving them on my end.
Tech Support: Hi! I see the following was sent in the API response. [Sends api response to me.] You can also go the the portal to see those values.
Me: Yeah, I know. You just repeated everything I wrote to you. I don’t want to go to the portal. I told you I want to figure out why your SDK doesn’t seem to map those properties correctly when I receive the api response.
TS: Let me look at the docs. I think you need to send the properties you want in your request in order to get them back in the reply from the api. Such as <property>value<property> in the xml message.
🤨 The docs do not say that. They don’t even imply that.
Me: What the fuck?! That makes absolutely no sense. We have already established that the api **is** returning values for those properties. I want to troubleshoot why your SDK is mapping them as NULL. -
(Fork of the current Chuck Norris wave)
Jack Bauer can assign values to undefined variables just yelling "Gimme a name!!!!" -
You know, sometimes I've just got a blockade, I'm trying to iterate through a List and if there's a certain character at the current index add all values after that to another List until the special character shows up again.
I've been sitting here for what, 5 hours?
Don't know what's wrong with me today.2 -
Practicing some random code interview questions while not busy.
Find top N values with MaxHeap in JS
Didn’t get it right in 1st try. Something wrong with the replace function. Then started getting busy...
At the end of the day, still didnt have a chance to fix it.
God damn it! It’s me. A frontend developer can’t write MaxHeap in JavaScript 🤦♂️ -
Initialize a collection, store values in it and then filter values out of it and none of your code may be inefficient, such as having O(n)² performance. Your code must also pass the predefined Test Suite. You have 15 minutes.
This sounds simple but it's not.
This was for a Google-type company that has high standards.4 -
Why the flying fuck does a resultset get returned with the pointer going to BEFORE the first fucking entry? And why does the error say "no data available"????
I saw the stinking values in the debugger, you fat cunt, don't tell me there is nothing there.
But hey, at least now my boss doesn't have any expectations whatsoever. I sure am dense motherfucker.1 -
I think since this is a platform for coders, the number of healthy tips is restricted to boolean values, otherwise it wouldn't be healthy.
If you know what I meant.
#whoops -
Spending a whole morning on a problem with Selectize, on jQuery, on a problem where my values weren't displayed while they were stocked.
Tried a lot of things, even StackOverflowed it, no success. While I was desperating, I thought that should be the formatting of the String.
Bingo.
Gosh so much time lost -
So I'm working on an assignment for my Computer Science class, and we have to basically compute strings into hash values and then modulo it by 1 million and put it into the hash table. But the value keeps overflowing and turning into negative values, anyone know how I can calculate the key?
(BTW, the hashcode is the same code that is calculated by the .hashCode function in Java)5 -
I just wondered. What if we replaced every $ sign in the PHP source code with € (and of course also all the corresponding ASCII values etc.). Would that allow for the much better syntax of variables €myVar? Just curious...4
-
ISO floating point numbers are essentially wrapped in a hardware-level monad because the normal meaningful values aren't closed over basic arithmetic so conceptually wrapping everything in Maybe using the 'infectious sentinel value' NaN leads to substantial speedups.
With this in mind, I think high-level languages that have a Maybe should use those and have the language-type float refer to a floating point that isn't NaN.2 -
You need to have a personal definition of success based on your own values not what is defined by society, neighbours or even your family.
Just staying in your lane will relax you and you can then function instinctively without any comparisons,living your own life to the fullest.2 -
Javascript really needs a way to define consts for a block 1 level up.
So instead of
const el = wide ? els.wide : els.tall
You can do
if (wide) const el = els.wide
if (!els) const el = els.tall
// etc..
Just makes chaining and backup values way easier than inline conditionals 🤔15 -
Need opinions: When your knowledgeable colleague backend-developer chooses 1,2,4,8,16 as enum values instead of 1,2,3,4,5 (for roles associated with permissions, which may be cumulatable) in order to be able to do bitwise operations, is it a sound decision for this scenario? Is it a best practice, just as good, or pedantic?
I want to master bitwise but have a hard time grasping such operations as quickly as logical ones.11 -
And now I've run into a whole another issue which is really fucking strange.
Has it ever occured that a Object in java looses all it's values after being put into an array of same type?
My problem:
[code...]
Mat[] matArray = new Mat[totalFramesOfVideo];
videoCapture.open();
Mat currentFrame = new Mat();
int frameCounter = 0;
while(videoCapture.read()) {
currentFrame = (last read frame as a Mat)
matArray[frameCounter] = currentFrame;
frameCounter++;
}
then, after filling the array and accessing elements, they lose all their object values.
Eg. Before currentFrame's dimensions were 1080*1920, but matArray[index] dimensions are suddenly 0*0.6 -
Doesn't the existence of NULL in a language mean, that there cannot be a boolean type? Because a bool is defined by the fact, that it can have two possible values. Having NULL changes that.
Without NULL a variable of the type bool could be True or False, two possible values. With NULL is can be True, False or NULL, three possible values.
I hate NULL.18 -
This fucking IDE
You can't look at the Values you want by default. You have to add them manually. And when you add a too big number of Values at the same time that fucking garbage called Software crashes...
Holy shit -
My tech lead rookie mistake of the week. Makes ids in the MySql DB big integers.
Now react, python and pinecone are all converting them to scientific values resulting into invalid or missing values and lookups.
Fml I need to change companies.12 -
Fuck domain re-sellers who don't know what they're doing, you fucking moron you do not need DNS if the Service provider is same as domain and hosting, all you had to do was to change A record with @/${Insert IP Address here} values, it's taking you ages to do that, fucking idiots.
I will probably ask to transfer the domain name to my account if that is possible.9 -
“a stack-based language where pointers are poisonous and the interpreter doesn't do a good job of remembering non-constant values”2
-
Hi! Is there a complex join operation for “updating” values in Dataframe using before and after values of the Uodate?1
-
Why, oh why can I not just get distinct values in my query so I don't hit the goddamned list view threshold in SharePoint?
-
So I have spent the entire morning trying to fix null values in the database, because they keep fucking up my code.
I hate the fucking person who made the database at the place I work, dude has not heard of a thing called NOT NULL!!! -
Spent all not fixing someone's errors because they used XML and hard coded values, couldn't even work in the application I was going to work on1
-
Manipulating the spec by taking shortcuts and having certain config values do the same thing at a different place to cut down on code bloat. Let's hope the customer is happy with it.
-
Still wondering why Microsoft at some point removed this really cute UX to set the position of the form on your CRT monitor instead of writing the values manually. 😢1
-
"We would really prefer it if you didn't attempt to print time zone offset with your DateTime values (because that functionality is utterly borked and prints nonsense)."
From documentation of .Net DateTime. -
What is it with colleagues here not even thinking of making a comment in code that directly interacts with hardware.
They will write to the same register 4 times with different values, which is intentional I believe, but not bother to put one comment in there vagely explaining that it is in fact not a copy paste error...2 -
not only using a static factor to resize a freeform, user uploaded image into thumbnails, but also defining this "const" in every method that uses it ... with the same values ... gotta love working with this code ...
-
Just resolve an error by deleting the values that were causing it that I have no idea how they got there in the first place.
Can't wait for this to happen again.... -
I've been asked to release a project which has been written by someone else, then rewritten by another developer, and both have left the company.
I can't release it yet because there is an inconsistent bug throwing some values out.
We've got it running side by side with an older legacy system which it's going to replace. Before the 2nd developer left they added some logging to our live system to record both values so that they could be monitored to make sure there was no inconsistency.
There are some inconsistencies... however, when I run the same data through the new system and the legacy system in a test environment they both come out correct.
FML
I've considered quitting...2 -
Big innovation:
In a manual I changed a paragraph from "add registry values X & Y" to "click the .reg file in network folder Y"
Received big thanks about thinking of reg-files.
uhm... We are an IT company? -
are Helm charts supposed to be extended somehow by declaring them as the "base" in a new Helm chart? I'm trying to find documentation about how to refer a chart at https://artifacthub.io/ as base in a fresh Helm chart to overwrite the default values in the fresh values.yaml1
-
What’s a practical use case of the ES6 spread operator? I’m pretty fresh and would just like to see a real world example where you would need to destructure some array values and apply them to function Params.3
-
Just wondering if there is a way to read the things that are on the screen of desktop and get values. Eg if there are icon of My Computer and Recycle Bin my program should be able to read it.5
-
How someone can think that the best idea to store a vector of physical values, knowing perfectly in which unit measure it needs to be provided for the back end to work, is to couple a vector of strings with the units, is beyond me.
-
I really hate Tasks or features where you have to consider to persist calculated Values in the DB or not.
Pro: Faster Access to These values
Con: You'll have to make sure that everyone is reflecting changes on an Source of These values.2 -
since my favourite phone automation app llama is no more i discovered automate. you build your 'scripts' with functional blocks. it's quite fun but debugging is messy.
mildly interesting: implementing a guided setup instead of defining the values directly leaves me with 77% setup and ui vs 23% actual task.1 -
TypeScript has two levels of private values (at least in the beta):
private foo = false; // Cannot be accessed outside the object in TypeScript
#bar = false; // cannot be accessed outside the object in both TypeScript and JavaScript.2 -
There are 1 type of programmers. Those who understand how to use bits, and those who thinks it should be 10.4
-
When you are up with the lead dev debugging with a service isn't running and you finally realize he changed the config file values and didn't pay attention to what the code was looking for.
-
God damn it!
Tried to use scipy's UniveriateSpline on some (x,y) coordinates that I have and it throws errors because I have multiple x values with different y value. UniveriateSpline expects all x values to be incresasing. Problem is I want to use these values, otherwise the result might be different than expected. B-Splines shouldn't be dependent on this condition or have I missed something in my studies? Documentation doesn't tell me anything.🙄 -
this is my first actual rant. I am trying to learn es6 right now and have encountered switch statements for the first time. after a 26 minute video explaining how to do switch statements (which is literally just the same kind of information on them that you can get from w3 or mdn I am given a large task with no practice to create a switch function that hold four values two values containing positive integers and two values accepting strings. then I have to be able to pass days and minutes through it.
an example solution after input would be:
addTime(1,"hour",3,"minutes")
I feel like this is too complicated with 26 minutes of information and no practice exercises to prepare for that.
-end rant7 -
Pro tip for XAML binding:
Set your data context before you initialize the component!
Otherwise the component will render with the default values for the properties. -
Literally wasting a good cyberpunk mix.
I'm trying to extract and replace values in a string with regex [C (POSIX)] and listening to a really good mix during this.
I'm leaving the link here in case anyone wants to check it out.
https://youtube.com/watch/... -
Every time I am tired of writing default values for optional values (values that can be nil but HAVE to have some default value unless they break the app / program I just tell it to be any valid value instead of nil,and if it’s nil the app / program crashes the fuck up.
I test it by feeding it ONLY valid data.
Irresponsible, I know, but none of my projects have passed testing phases and all of them never really finished development.1 -
jQuery is a fucking garbage of the 21st century. Endless ugliest ever mapping of html element values to JSON and back. Every fucking time.3
-
Ugh, retrieving specific data fields nested within several arrays and objects in Javascript/Json jacks me up every fucking time!!!
Anyone ever fuck with the MapQuest geolocation/geoqueries api??
I'm trying to retrieve the lat/lng values out of responses generated from submitted address strings, and it's nested about 8 json layers deep.
I feel like I'm overthinking this?
I can access the values in my web console, and can reach them after using the console to assign them to a temp var, but can't get to the values from my actual js code. Only when I run some business logic from the console.
Here's a shitty example of me explaining the tree:
[{...}]
0:
locations: Array(3)
0:
latLng:
lat: <data here>
lng: <data here)1 -
When you write a crawler to scavenge through a set of sites but only compare their 'uniqueness' through an on-startup hash map which doesnt reflect values already in DB and now you've duplicate values coz you didn't define uniqueness in DB either :v
I need to not be sleepy rn. -
front end devs, do you put your dropdown values in a database or in the code? follow up question. if database, do you put all the dropdowns in one table?5
-
Reading job ads sometimes make me wonder... "You Deeply Identify with Core Butterfly Network Values: Efficient & Speedy - you get work done in a fraction of the time as industry peers".1
-
i'm trying to figure out how to work this;
The element now has an id of thumbnail. With this selector, use the example CSS values above to place a box-shadow on the card.
this is the css values;
box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
and this is the code i used;
.thumbnail {
box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
but it's mot working on the fcc site.2 -
How would you java spring guys write a JUnit test for a login controller? My controller works as followin: It checks the username and password values from the model and then either redirects to the home page or redirects to the login page with an error code. How am I supposed to test that behavior, when MvcMock can't capture the redirects?1
-
My understand of null
0,empty = values explicitly set
Null = variable exists but it's still virgin.
Undefined = variable doesnot exists9 -
Idea - possibly a bad one - visual studio extension that hits a database to display possible values to supply as a method argument. With caching of course..
I'm thinking along the lines of permissions in a database that at some point have to be hard coded against code to enforce them. Stuff like that.
Possible or beyond stupid?7 -
Does anyone have any advice for making api integration tests data independent? We have a few hundred tests firing against our seed data and they all check for hard coded values. But the problem is that this means adjusting seed data is really really slow as you have to fix integration tests too, which can be thousands of lines of values needing to be corrected.
-
Persisterising derived values. Often a necessary evil for optimisation or privacy while conflicting with concerns such as auditing.
Password hashing is the common example of a case considered necessary to cover security concerns.
Also often a mistake to store derived values. Some times it can be annoying. Sometimes it can be data loss. Derived values often require careful maintenance otherwise the actual comments in your database for a page is 10 but the stored value for the page record is 9. This becomes very important when dealing with money where eventual consistency might not be enough.
Annoying is when given a and b then c = a + b only b and c are stored so you often have to run things backwards.
Given any processing pipeline such as A -> B -> C with A being original and C final then you technically only need C. This applies to anything.
However, not all steps stay or deflate. Sum of values is an example of deflate. Mapping values is an example of stay. Combining all possible value pairs is inflate, IE, N * N and tends to represent the true termination point for a pipeline as to what can be persisted.
I've quite often seen people exclude original. Some amount of lossy can be alright if it's genuine noise and one way if serving some purpose.
If A is O(N) and C reduces to O(1) then it can seem to make sense to store only C until someone also wants B -> D as well. Technically speaking A is all you ever need to persist to cater to all dependencies.
I've seen every kind of mess with processing chains. People persisting the inflations while still being lossy. Giant chains linear chains where instead items should rely on a common ancestor. Things being applied to only be unapplied. Yes ABCBDBEBCF etc then truncating A happens.
Extreme care needs to be taken with data and future proofing. Excess data you can remove. Missing code can be added. Data however once its gone its gone and your bug is forever.
This doesn't seem to enter the minds of many developers who don't reconcile their execution or processing graphs with entry points, exist points, edge direction, size, persistence, etc.2 -
I know the ascii table values of lowercase and uppercase alphabet letters. I don't know whether to be proud or ashamed.
-
You know
When I first saw etherum talking about am distributed state machine i thought wow. Not very practical but NEAT. I envisioned being able to make a byte code that could be stored in transactions and run by individual clients in an async function and each step of the resulting execution and the values of managed ram would be stored at intervals so other clients could take over and execute a few more statements and compare what should always be expected results that are identical
A grand incredibly inefficient system however really neato from the theoretical computer nerd standpoint !
Boy was I disappointed lol all it is a basic contracts language but yet they state it could be like a word computer ! How ? I thought maybe if you had enough nodes participating maybe you could store registers and the like in transaction values ? Wouldn’t that be the way ?
Seems like as a word computer they’re stuck somewhere between very simplistic js and something prior to amptron in usability yet they advertised as a world computer
Am i missing something ? I mean you could create something that would translate higher level code into smal numeric statements and then send it additions values but what would it be useful for and how would you actually. Store anything ? -
What kind of developer you are? What you write first LHS or RHS while assigning values?
Step 1: a+b
Step 2 : const a = a+b;
or
Step 1: const a;
Step 2 : const a = a + b;23 -
How much of a security risk is it to serve static data from a json file on flask? Values are posted from a mobile device to a server to groom objects to return. My coworker is giving me a lot of shit for it as the file is accessed through a relative path, but the file names are checked and sanitised. He says the objects should be in a database.3
-
Why in god's name does protobuf treat all enum values in the same scope??
Who would have thought that multiple enums may have values like "Undefined" or "Automatic"?
It's current year and somehow C style enums still haunt me1 -
Hi devs just a simple question for people who use cheat engine or any memory editor if your looking for information of a gun like fire rate don't you have to search ammo to find other things related to that object?
and say fire rate is a few values close
is that because when programming the game they put the values close to each other and that is called offset (1 value is closer to the base value)? -
I just made this up but it seems true
There are only two ways 2 people can disagree about making a decision
One is if a person has more (or less) knowledge about the subject
The other is they both have sufficient information about the factors of the decision, but one person simply values a different set of principles than the other person
Have a good day3 -
I absolutely hate HubSpot's COS platform. It's glitchy and keeps setting CSS values to NaN. I'm primarily a JS/Node developer and this random project I'm having to do with HS is killing my brain.2
-
Today I build a box.
With a beautiful lid.
I wanted to put something in my box.
I forgot the case.
My reaction when I tried to put values in an uninitialized list. 😫 -
Urgent bug, some values are not getting displayed!! Frontend developer is always asked to debug, but don't we always know for sure it's Backend service not sending the value without having to debug
-
Where did all folks go who fell neatly within the acceptable continuum values between perverse and moral ?6
-
Alright, I found the root of the issue from my last project post.
It’s the damn MEM indicator.
In my project, I want to be able to load presets from an SD card in order to let the user switch from preset values to values determined and calculated from a potentiometer.
So it’s pretty hard to discern when you’re using the memory and when you aren’t without some kind of indication.
Every fucking time I try to put on that indicator (a red “MEM” at the bottom of the screen) it completely fucks the entire display.
I HAVE NO IDEA WHY!!!
Might be possible that there is a VRAM space issue... idk.
Will probably use a LED for indication instead. -
https://symfony.com/doc/3.4/...
Look at how they write docs:
"->atPath('foo')"
how can I fucking know what to pass instead of foo? I cannot make show fucking error message near the field.
Are they writing such doc so that we would spend more time searching how to make show fucking simple error message?
"The atPath() method defines the property which the validation error is associated to. Use any valid PropertyAccess syntax to define that property."
Property on my entity is collection of $values . Tried passing 'values' - no effect.2