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 - "property"
-
Google is full of assholes!
Just paid $25 dollars to list my app on google play store. Within 15 minutes of submitting the app, it got de-listed.
Reason:
Impersonation
Who am I impersonating?
The logo is impersonating the logo shown on MY OWN website!!!
How dafuq can you impersonate your own intellectual property?????
Contacted them back using their form. Didn't even call them "cunts". Asked to have it reviewed.
After waiting 7 business days, started sending them 1 email a day. On day 11 I sent 100 identical email asking them to review it.
Today (day 12), they cleared the app. I got this reply back.
"We found that your app was not in violation of our policies"
-Google40 -
Tonight I was getting ready to pay my monthly apartment maintenance bill so I Googled my property management company's name because I always forget the url. It's always the first result, but I noticed Google placed a little "This site may be hacked." line of text on their listing.
Seeing that before and knowing what it means, I went into the source for their index page, and to my suspicion, their WordPress installation was hacked with the standard invisible spam links.
I realize this happens to a lot of WordPress blogs, but this is an NYC property management company that is responsible for a lot of buildings and has millions of dollars in contracts. Normally I would inform them, but having dealt with them in the past I don't like them very much, but more importantly, I don't think they'd understand what I was saying because they are so technically inept. They might even think that because I found this, that I had something to do with it.
So devRant, it is up to you. What should I do?22 -
Client: We need to add a field to the model that serves as a unique identifier
Dev: You already have one, it’s the _id property
Client: We want another! This one is for a task number so we can make a connection between the database record and our ERP.
Dev: Ah I see. I can add that for you. Is this truly a unique identifier or will you be using the same ERP identifier for multiple database records?
Client: I already said it’s a unique identifier. One ERP record to one database record, end of story! To do otherwise would be absolutely ridiculous! You should think for yourself before you ask silly questions.
Dev: My apologies I just want to make sure to clarify exactly what the requirements are.
**6 months later**
Client: HOW COME I CAN’T ASSIGN THE SAME UNIQUE IDENTIFIER TO MULTIPLE DATABASE RECORDS??? CAN’T PROGRAMMERS GET ANYTHING RIGHT EVER??
Dev: …14 -
My resolution for this year is to stop hating javascript.
Error: cannot read property "year" from undefined.2 -
Just who the fuck from apple thought its a good idea to make the FUCKING SCROLL BAR overlap, the FUCKING PROPERTY ARROWS, everytime i accidentaly hover over it? I cant change shit! I have to wait few seconds every time i accidentaly hover over the scrollbar so i can be able to FUCKING CHANGE the value!
Dear Apple Inc,
Fix your shit! We're paying 100$ a year for what? More bugs and toruture? I didnt sign up for this bullshit! Give us back some real quality products, or just buy the company Jetbrains and let them build the IDE for you instead.12 -
!dev
Dear Airbnb Hosts,
The extra cleaning fee isn't just extra profit for you. I will gladly pick up after myself, before I leave. That said, if you expect me to deep clean your flat, consider leaving equipment to do so. If you send me a shitty email because I didn't buy a broom, mop, bucket and kitchen rags to stock your investment property, I'll tell you about where you can stick that noise.
Sincerely,
Fuck you7 -
Just learned that my employer withhold part of my salary every month the past 5 months! I did not notice it as it was overtime compensation.
I first thought maybe it was a mistake so I asked, the reply I got was: Oh you know that compensation we agreed upon? I wasn't having it anymore so I decided to half it and been since then editing the hours you billed every week to reflect that and accedently forget to tell you.
Accedently?! My ass! One week is believable but not 20 weeks. The only reason I found out is that they tried to lower the compensation even further which caused these hours to show up differently in the hour declaration software we use.
So currently on my way to return company's property and quit.17 -
So I tried to start learning Spring 5
How the fuck do you guys do it? Holy shit.
30 seconds in:
"Spring really isn't hard, you start with this request handler interacting with a view parser..."
Alright, sounds good
2 minutes in:
"So in order to use SpringResponseDriverActionHandlerServiceRequesterService you'll need to import com.org.java.spring.util.driver.comagain.request.response.request.drivers and include this 37 level deep nested XML property and finally extend this abstract class and implement it over an iterable list with this specific annotation aaaaaaand.... Done"
> Hello, world!
"See, spring is easy!"11 -
So today I learned i can pay my property taxes online. The way you pay is:
1. Enter address (street #, I live in an apt)
2. It will show all matches **including the owners full name**
3. If you click view, it shows the full account history...6 -
Windows: "You put in a USB I can't read property cuz it's not NTFS/FAT, want me to delete everything??!"1
-
The single cuntiest error I ever had in one sentence:
Cannot read property 'undefined' of undefined.4 -
The company I work for (very big IT consultancy) has made the absolutely genius decision to put a block on the corporate proxy for GitHub. GITHUB. Because no fucking software developer ever needs to visit there. Their reason? "We don't want people publishing our intellectual property". Mate, I can fucking guarantee you that if unscrupulous bastards want to publish code against our T&C's, they will do so. Why make every body else's job harder and block it?!
But the best bit, you can submit a request (that is accepted without question) to get yourself an exemption. WHY THE FUCKING FUCK HAVE THE BLOCK IN THE FIRST PLACE THEN
To add to their fucktardery, they blocked the CDN that hosted stackoverflows css and JavaScript last year (CloudFlare) weeks after the alleged hack was fixed, and seemingly without any research at all. This obviously rendered stackoverflow unusable. Because again, why would a company full of engineers need to go there.
Morons.4 -
I was today years old when I discovered the CSS property column-count.
Do you have any fucking idea how many times I’ve used CSS grid or flex box or BOTH when all I wanted was to make a layout with a set number of columns?
Why the fuck didn’t I know about this thing?
Did you know about this thing?17 -
- Find an old js project in your computer
- Try to start it
"Uncaught TypeError: Cannot read property 'undefined' of undefined"
- Delete it -
Here's a thought...
If AI get human rights, and someone destroys the machine, will it be considered destruction of property OR murder...9 -
The coolest project I was ever involved on, was when we signed a client in Namibia (we were a South African based company). So I was flown to Namibia for 2 weeks to train the clients etc. I spent about 4 days training the client and I had no more work to do. So the client took me out around town and we drank so much on his tab! He even gave me a bottle of Johnnie Walker Blue, because he doesnt drink Whiskey! The best part of it, apart from exploring their awesome country and pubs, was Mad Max 4 was being filmed in my town, and my client took me to see the yard where all the vehicles and props were situated, because he owned that property! So all in all, it was more of a paid holiday than anything else!3
-
Omg so I've been stuck on this function I'm writing that checks if a certain array value is so many characters long and well, it just wasnt returning false when outside the conditions..
I tried taking it step by step, echoing out every line and it all made sense to me and there were no syntax errors.
Time goes by and inside the configuration file I was testing.. I was changing the value of a DIFFERENT array property than what I was using in my condition. They looked really similar.. fml xD2 -
Parents were awesome. Super supportive, gave me every opportunity. They were open-minded loving people who eschewed personal vice and property to give us a start. They never once abused any of us, and in a family with three girls, we were encouraged to break the mould. We were shown that women could be more than just support to our spouses and baby factories, and more than part time labor in family enteprise.
Thusly my ascendance to a life as an engineer was assured and fully supported by these wonderful people whose folkright earnestness never once inhibited their progressive encouragement of our success as human beings, not just professionals.
And if you believe that, I have a bridge for sale in San Francisco you might be interested in.
I wrote on this topic before it was cool 😋
https://devrant.com/rants/2862837 -
I just realised that I've been experiencing a lot of stress and frustration over the last couple of months. I also realised that these feelings of dread and existential anxiety stem from my heavy use of Ubuntu. So I ended another agonizing 3 hours of trying-to-get-internet-access-again-so-I-can-get-some-fucking-work-done and managed to blow off some steam without causing too much property damage. Then I sat down and thought about it. And you know what? I hate Ubuntu.
With Window$ I can at least get some work done without having to write my own network drivers because the current ones do not function when the day of month is a prime number or some shit.15 -
I am using this SDK and I came across a property "Orientation" of type int.
Why int? Is it an enum or something? Let's have a look into the online documentation...
"Gets or sets the orientation."
😣
Yeah, thanks. Very useful.
It's again that kind of documentation which simply restates the property name or method name. Who needs this?
So I tried to set the Orientation property to 1 to see what happens.
A runtime exception then told me that the only valid values are 0, 90, 180 and 270.
Well, this is kind of stupid but ok, I can live with that.
But ffs, put that info into the documentation, where it belongs!4 -
First story (not rant) :3
So I was asked to set problems for an online programming contest for my college (I'm a sophomore)
The participants were students from my college.
Teacher told me "make as hard as you can"
I gave it my all.
:|
1 person solved the first question. Nobody solved the other four. :|
Not sure if I should be proud or sad.
And if you're wondering - here was my first question -
Sam wants to invest in real estate. He's got X dollars to spend. He knows the expected value per square meter of a given property. He knows the coordinates of the vertices of the polygon shaped properties he's interested in.
(both the values and coordinates for each property are given in input)
Find the maximum return on investment he can get.
(answer is, basically you calculate the area of each polygonal house using half the vector cross product, multiply it with their expected value per square meter, and then apply a dynamic programming - knapsack approach)
;-; I really thought it was a nice question man. ;-; I put so much thought into others too. ;-;
Got ignored. ;-;6 -
An ex-colleague got accused stealing company property (soda) that he bought with his own money.
He had put his own soda near the other soda of the company (a different brand they never bought). He went home one day and took 1 bottle with him. During that time period, the company offered free drinks (non-alcoholic of course).
WHY WERE THEY EVEN WATCHING THE CAMERAS15 -
Fuck you BT, charge me £80 for phone and internet, then only give me 50% of your advertised speeds that cuts out at random points then when I complain tell me you'll look into it but if you find any issues within my property I have to pay for the fixing of all issues with my line inside and outside the property not to mention the over £100 call out fucking cost!!! Plus you were fucking charging me £6.99 a month for BT fucking Sport that I don't watch and that I was told on 3 occasions was fucking free for the last 3 years!!! Again I will reiterate FUCK YOU BRITISH TELECOMS10
-
Stupid HTML checkboxes! It's always annoyed me that you can't just set checked to true or false, but have to remove the property altogether to uncheck a checkbox. Better still would be if you'd only need to set the value to 1 or 0, and the checked or not would sort out automatically. Yes, there are frameworks to handle it, I know. But if checkboxes had been designed right from start, a framework or any sort of special cases would not be needed. You've got love HTML, but things like this make it ugly.6
-
Started development on a Firefox addon again:
Adding an onclick HTML tag/property (however you call that) - doesn't fire at all.
Adding an event listener - says no elements with the class I'm using (checked, it's correct) exist, doesn't fire.
Well, fucking great 😐4 -
So this guy is asking for help but his ego is too high. What happened was his code raised a ""Trying to get property 'result' of non-object"" error so I told him that the data type is not declared. He still not get it. Like in personal message he asked me wether I know php because he is the founder of some cloud service in php, and I know all about php.
I was like if you know php so well, why cant you realise that $result is not declared?4 -
I was working for a client on a simple landing page. After struggling for days with the text-flow of one paragraph and trying one CSS property after another I finally realized it.
He sent me the texts in PDF format and I just copied them. What I did not know is that all the spaces in the text were non breaking spaces wich of course did not wrap like I expected.
Heureka. You bloody bitch. Never imagined having such a fucking issue in web development...2 -
One of the most infuriating ideas in software development culture is that you can build maintainable applications without a strictly enforced type system and structured data.
Sure, it's more fun to wack around a dynamically typed system until it works or to write a major application with mutable datastructures... It's a least fun until a few years in and you have to debug an unexpected overwrite or a inconsistent use of an object property or whatever.
Anyone who writes maintainable code eventually figures out that you need rules and procedures, the issue with JavaScript, python, ruby, lisp, etc developers is that they think it's us developers that needs to enforce these rules instead of the compiler (which is infinitely better at it).60 -
css quick maffs
so you did this:
.foo:hover {
transform: scale(1.1);
}
and now ugly scrollbar is there when the element is scaled.
No, don't do overflow: hidden. There's a better way. Instead, do this:
.container {
padding: 1rem;
box-sizing: border-box;
}
the element total width is calculated based on the width of its content. That's true unless you specified width and height explicitly (if you did so, you're a doofus, I'm sorry).
Scaling makes content somewhat larger. With border-box, paddings work differently with the total width.
By default, if you set width to say 100px, and paddings are 20px, total width will be 140px — it's your 100px of content plus two paddings of 20px. width property set the width of the content, not the total width.
With border-box, width property sets the total width. So if you set width to 100px and paddings to 20px, total width would be 100px, just like you set it, and content will be 60px wide — it's 100px minus 20px times two.
The key part is it doesn't end with explicit width. The algorithm remains. When some node is rendered, its total width is calculated. When you use border-box, the total width will stay the same even if your content grows by some value that is less than your paddings. So, your content was 100px, you scaled it, and it became 110px. Well, then that extra 10px will be subtracted from your paddings, and they will be 15px each instead of 20px.
No more ugly scroll bar. Yaaay!
aight bye8 -
Bored waiting for a long running test cycle to complete, so...
Monopoly: Software Dev edition.
All properties are companies with apple and alphabet being the most expensive ones, course the online version plugs into stock tickers to accurately reflect the current share price.
All railroads are broadband providers.
You don't build houses or hotels, but patent portfolios and 'landing on another property' becomes 'infringing on a patent'.
Cards:
- Kickstarter refund, collect £200
- Hit by ransomware, pay 1bitcoin.
- You are sued in East Texas, go straight to jail, do not pass go, do not collect dividends.
- Get out of court free card.
Yeah, I'm that bored that I'm rewriting bloody monopoly...5 -
Unemployment week 2
I finalized buying ~1000 square feet ( ~95 square meters ) apartment. Still renting 100 square feet room ( ~10 m2 ) so change will be tremendous. It’s first property I will own. With that amount of free space I think I can start constructing small spaceship or time travel machine.
Typed on linkedin that I’m offline.
Phone is still ringing. Time to turn it off for a while and rethink my life and world around from scratch.
Rest is good for my soul.
Peace ✌🏽2 -
Of all the fuckups I love the ones with all the wrongs the most.
Like one junior: restarted a wrong app component in a wrong environment on a wrong agreed time after updating a wrong property in the config file.
Like today one of my teammates: updated a wrong script to add a wrong step in a wrong spot in the sequence... At least got the environment right I guess..4 -
When i started my work I encoubtered this db(one of 4): more than 20 tables, some with 200 columns literally... EVERYTHING is a varchar 😓.
I'm slowly designing some normalized tables with real fk on new features and projects and people are like: how the fuck did you implement this feature so fast? the other guy spent 3 months designing this form (and I'm just speechless):
The form was some sort of crazyness shit passing input names as "name-of-property" and a file only to check if(name="string") then store a number value to an array and save it as a "number" (actually varchar) on the db. literally more than 50 if statements to do this.
Everything on a single table that made no sense at all.
Just wtf... At least my boss let me start if from scratch cause he we were always having panick attacks every time he needed to do something with it. 😂😂6 -
i always go out of my way to help people learning to code. as a self-thought coder myself, i remember the struggles of starting out and not knowing the basic shit. but it seems that in todays environment, when there are a lot more resources, gamified platforms, tutorials, online courses, paid and free, their motivation to actually learn stuff, is non existing.
learn what the css property actually is before torrenting the fucking useless 40 hours video tutorial on how to use the shitty bootstrap.1 -
You know you've been wired in for a long time and need some sleep when you typed in wrong css property.
#careless #whatissleep4 -
"Ok, so if you want this thing to show up here you need to set this property, ok?"
Client: "Ok, but how about I just don't and complain that it doesn't work?"3 -
This god damn unknown company reported my websites' Facebook page is violating some intellectual property. Facebook report says I must contact the reporting party to get this resolved but there were no contact details specified!! I searched on Google and Facebook om how to contact Facebook but no luck.
How the fuck can I get this resolved if I don't know who reported this? Does anybody here know how the fuck I can contact Facebook?? If you do then please let me know!3 -
Ah fucking hell.
I hate it when my boss goes the path of least resistance to implement something.
Of course declaring a class property with the "any" type (TypeScript) is a fucking lot easier than to properly write an interface for it and declare the property with that type.
Thank god I have holidays, otherwise I would hatepunch his fucking monitor. Twice.2 -
Part two of: a day off an iOS developer life:
1. App crashed and stack trace gives no info in which file it happened, I have a generic table view cell that is used in so many places and Xcode just wrote: xcell does not support key value.
2. Mac freezing when Xcode is creating IPA file thanks to a new feature in Xcode 9 (Mac freezing is the new feature, even mouse pointer doesn't move -.-)
3. Let's check the value of this class property, Xcode: fuck off and either print it in console (after hitting a break point) or expand that shitty tree at the bottom to reach your class property!
An advice: never click jump to definition when Xcode is indexing, it will either freezing Xcode or crash it.
Part 1 link: https://devrant.com/rants/1137208/...1 -
I was looking up for a bug in my code that caused a fail in one of the test.
Hours later I found that negative integer division in python is just stupid and -1 / 10 = -1.
The sad part is that -1/10 != -(1/10) contradicting the associative property of multiplication over the real numbers.
FUCK YOU PYTHON.12 -
I had to use XSS (cross site scripting) and tag injection to change one tiny CSS property on a bug tracker site where I have no actual file access and can only add custom footer text. Why not just give me file access, or at least some way to customise the CSS, you stupid thing!2
-
I don’t know if I would call it a quirk of the language or serious abuse of it :P
But I managed to get a null ref exception when comparing a local int variable to an int parameter to the same function in C#.
Since a local or parameter of type in cannot be null and I compared the variables them self and dud not try to access any property on them (and no extension method or implicit case or similar) my first thought, along with all colleagues that chipped in to help, was that this should not be possible.
Turns out the method was called through reflection and in that part it injected null as the base object to call the method on.
Since local variables actually are referenced through the parent object this was what was causing the null ref.
That took some time to figure out.4 -
I just wasted 2 hours trying to figure out why the properties of a destructured object returned undefined, even though everything was fine in JSON format. Tried to request data on the frontend from my server with a database attached. Tried accessing each object of my array separately, it worked. In a loop: dataArray[index].propertyX ... undefined??
Turns out I used the wrong property names to access the info inside each object.
🤦1 -
My boss keeps touching and poking my colleague's and my laptop screens. Our laptops are both Mac and are not company property. My colleague once told him to stop. He said sorry, but after 5 minutes, he did it again. It's so annoying. Why can't people understand that if it's not a touchscreen, they should keep their manners and not touch it?12
-
Riddle me this
Client wants solution based on open source software.
Any additional software that I write (let's say, an offline store plugin for Feast feature store) to add missing functionality has to be closed source.
Fuck you. Intellectual property my ass. You and me wouldn't even have projects if it werent for OSS.
Good luck maintaining the plugin after I am gone.
I'm doing a lot of work and will have close to nothing to show to future employers.
(BTW, if it were for the old Microsoft model of code source, I would have never become a programmer of any sort. God bless OSS)3 -
What a fucking shit show. You buy an original DVD but cannot watch it because of a stupid copy protection system.
"Injects purposely damaged sectors into the DVD in places not read by most DVD players."
Well tough luck, VLC reads all sectors and chokes on the corrupted ones.
Here I am, sitting with a legally bought laptop, a legally bought DVD and a legally owned playback software, yet unable to enjoy my property.
THANK YOU HOLLYWOOD! >:(15 -
Poor Mr. Squishy working as a window stopper, since some clever folks at the property management department, after months of nagging to get blinds so that the light reflected doesn’t interfere with my (light in general, not direct sunlight).
They installed the blinds in front of the window, so it can only be opened a few centimetres… Well done! Well done! I have to choose, either slightly warmer air than I prefer, or bothersome light reflection in all of my monitors.17 -
Steps to becoming one with your code:
1.Get red lamps and make em trippy asf.
2.Syntax color the shit out of your editor.
3.Install activate-power-mode
4.Get high or tipsy
5.Listen to surround psytrance
6.Code
Congratulations you are now in a higher level of existence. You are one with your code and your will is root.
*Disclaimer: Marnsghol is not responsible for any: Injury, death, damage to personal or company property, losing job, getting arrested and/or efficiency problems in work environment. Discretion is advised*3 -
So I had been developing a real estate website and developing a MLS feed parser. I had only 1 year experience at that time and parsing a XML feed was already complex enough. On top of it, the client wanted to automate feed download from the MLS provider through HTTP authentication. Managed to do it. Everything worked for 15 days and on 16th day the property location markers stopped appearing on Google maps. Turned out that address to lat-long reverse geocoding was failing because API limit exhausted. My bad, I coded it on view instead of caching the lat-long in database. Fixed it in a day and viola!
-
Ugh, I hate this stupid F*!
There's this new guy who's much older and thinks he's a such a f'ing hotshot that he undermines everything I worked on to drop in some a** backwards BS. Luckily I don't have to work with him often, only one day a week - else I would go nuts! He constantly name drops this same company, with little disregard for others younger than him.
Bitch, I'm close to 20 years younger than you and yet I've worked for a much longer list of much more respected companies. I've worked with legal teams on intellectual property, ran my own business, and have multiple patents. Did you ask me once my background? No, because your a selfish prick and an asshole. That's why you're likely in a mid life crisis, single, and alone. Fuck you!3 -
Question: is it a red flag if I'm "not supposed to" blog about tips and tricks I've found at work (not even code level, just organization and general design patterns)? Reason given to me: "we need to be careful about due diligence and intellectual property for our investors to be satisfied". Am I working with idiots?9
-
Story about my old boss:
I was doing a lot of work in an area that had a data property and a method to build an object. I noticed a reset method that iterated all that objects properties, found the matching data from the data object, passed that data through some logic to format it and then assigned that value to the object property.
As part of my PR I removed that method, since data wasn't changing, and simply called the create method again with data.
The result of tidying the code base and putting it up for review before a merge? I get told I have no respect for my boss's code, that I am undermining him, that I need to be more considerate and respectful of other people's work and that I am no longer allowed to change any code he has written in the code base (half the code base) without talking to him about it first, before it goes up for review. Also if he is working on an area I cannot change anything - not even 1 character (he is working on the core of the app).
Every day there I was so confused :D5 -
My boss has told me he now doesn’t think we can afford the new property management system we desperately need to do most of the projects this year.
He has now suggested that I build a new one for the company to use from scratch. Oh and in the same timeline as buying an off the shelf product.
😒 -
My dev lead is a uniquely poor leader with an impressive ability to produce a large amount inflexible, temporarily functional code.
As we're in another pair programming session where I try to keep him from destroying over all type safety and architectural decisions to meet a self imposed demo deadline, he keeps trying to access properties of his state.
This state object is incorrectly typed with an anonymous type with incorrect properties.
Despite repeating calmly stating that the object is incorrectly typed, and that's why there are red underlines when he tries to access a property he knows is in there, he insists that that's not correct.
Finally, he knowingly says that he's figured it out and that he's been doing this for many years.
What was the solution you might ask? (state as any).myProperty;
Truly breathtaking mastery. -
Important rule of programming: don't swallow exception and provide details for troubleshooting.
Visual Studio: The project file contains a property value that is not valid.8 -
When reading the documentation could have saved you hours of debugging.
"How nice, there's actually a property for that..." -
I don't understand some developer's thought processes when they fix a bug/issue.
Let's say the error is -> "Cannot read property id of undefined".
My first thought is to add a check for undefined and null and figure out if further code should be executed if a null or undefined is encountered, depending on what the code is supposed to do.
But some devs are like, "Yesterday the sunrise was at 5:30 AM, Earth's rotational axis is titled at 15 degrees to the left, My aunt asked me about how I am doing today, so therefore the bug fix is required at line 65,456 of this particular kernel file".
And they implement it, and it WORKS.
Weird.5 -
My exact reaction when ,I was researching on legacy programming language and their copyrights for my intellectual property rights subject.
Found that
Python was released before Java did.
But the popularity Java claimed was faster than python
Python first release date 20 Feb 1991
Java first release date 23 Jan 1996
Could anyone explain y python gained is momentum later!?2 -
It's 2022 and Firefox still doesn't allow deactivating video caching to disk.
When playing videos from some sites like the Internet Archive, it writes several hundreds of megabytes to the disk, which causes wear on flash storage in the long term. This is the same reason cited for the use of jsonlz4 instead of plain JSON. The caching of videos to disk even happens when deactivating the normal browsing cache (about:config property "browser.cache.disk.enable").
I get the benefit of media caching, but I'd prefer Firefox not to write gigabytes to my SSD each time I watch a somewhat long video. There is actually the about:config property "browser.privatebrowsing.forceMediaMemoryCache", but as the name implies, it is only for private browsing. The RAM is much more suitable for this purpose, and modern computers have, unlike computers from a decade ago, RAM in abundance, which is intended precisely for such a purpose.
The caching of video (and audio) to disk is completely unnecessary as of 2022. It was useful over a decade ago, back when an average computer had 4 GB of RAM and a spinning hard disk (HDD). Now, computers commonly have 16 GB RAM and a solid-state drive (SSD), which makes media caching on disk obsolete, and even detrimental due to weardown. HDDs do not wear down much from writing, since it just alters magnetic fields. HDDs just wear down from the spinning and random access, whereas SSDs do wear down from writing. Since media caching mostly invovles sequential access, HDDs don't mind being used for that. But it is detrimental to the life span of flash memory, and especially hurts live USB drives (USB drives with an operating system) due to their smaller size.
If I watch a one-hour HD video, I do not wish 5 GB to be written to my SSD for nothing. The nonstandard LZ4 format "mozLZ4" for storing sessions was also introduced with the argument of reducing disk writes to flash memory, but video caching causes multiple times as much writing as that.
The property "media.cache_size" in about:config does not help much. Setting it to zero or a low value causes stuttering playback. Setting it to any higher value does not reduce writes to disk, since it apparently just rotates caching within that space, and a lower value means that it just rotates writing more often in a smaller space. Setting a lower value should not cause more wear due to wear levelling, but also does not reduce wear compared to a higher value, since still roughly the same amount of data is written to disk.
Media caching also applies to audio, but that is far less in size than video. Still, deactivating it without having to use private browsing should not be denied to the user.
The fact that this can not be deactivated is a shame for Firefox.2 -
Is it possible to have a midlife crisis at 27?
The "software biz" swallowed me up and except for money and a career I don't have anything.
Turned down multiple management positions because I dont wanna deal with other people, I just wanna be challenged while being let alone
I know I said this before but once again I'm thinking about buying a small house with lots of land.. get some cows, maybe chickens, work remotely and make my own life on my little property.6 -
We accepted a property listing project for a client.
I have been looking online for references and inspiration regarding design, features, plugins etc.
And this is what I just found. I shit you not. $20 and you get everything. WTF.
May be I will just buy it and give it to my client. $20 and you have like 40 lines of features, if not lied, which are more than enough to meet my client's requirements.
Why the heck am I working?
Am I the one who is charging too high to my client?11 -
So, I just swatted a huge bug out of the air using my work iPad. Because it was the closest thing handy. I'm pretty sure that's not why they bought me the thing...2
-
I have an issue with my Laravel routing. Can you help me out, @bittersweet?
I have a custom "/home" route called "/admin" and I set the protected property in the LoginController:
$redirectTo = "/admin";
And it works fine, if I log in from guest. But when I navigate to "/login" as auth-user it still redirects me to "/home".
What the fuck is this? What do I have to change to make this work? Who has to be fucked? Is it possible to solve this without sacrificing a virgin at bloodmoon? And why are Platypus so fucking ugly?14 -
I love working on legacy products. You just need a good shower and possibly a therapist after.
- Sensitive data sent over the internet encrypted with DES (not even 3DES). Guess it doesn't matter that the key (singular, for the last decade) is basically 0123456789ABCDEF.
- Client databases with open default port, admin/admin superuser.
- Critical applications (potential for substantial property damage, maybe loss of life) with a single point of failure and without backup.
Suggestions, to slow down a bit with sales, so we have time to rewrite this steaming pile of crap are met with the excuse: be more pragmatist, this is standard industry practice.
Some of this shit can be fixed on my own time if my conscience nags too much, but others would require significant investment of time from multiple developers, which would slow down new business.
Guess the pay is ok, so that's something... -
senior: we have no reason to change/mutate this property, we don't need a setter method, just set it once in the constructor
also senior: there's no reason to change/mutate this value, but i want you to write a setter method for it3 -
class name for section named "liability" is "liab"
class name for section named "dedcutible" is "deduct"
class name for section named "personal property" is "personal-prop"
class name for section named "personal liability" is "personal-liab"
I don't know who you are, but you are a twisted evil teammate and I wish you fired.
You've ruined my day, hope you're happy.2 -
That moment when you change a color property in the interface builder and Xcode decides to go batshit crazy then crash.1
-
If my girlfriend was a prefixed browser-incompatible CSS level 4 property I would still use her in production.2
-
This regular expression documentation thing is coming along. Added capture groups and backreferences. Think I just need to tackle Unicode property escapes and control characters.
But now I feel like I should have implemented it differently. Like, maybe instead of “‘a’ followed by ‘b’ followed by ‘c’, I should have just done ‘abc’.
*sigh*1 -
So I've been dealing with one hell of a shit bag filled property management company since the numbnuts that lived next door to us set the building on fire (and didn't wake us up). The fire was pretty brutal, but it seems like this company wouldn't be satisfied without amplifying the misery. So I was wondering if anyone had created any kind of bot to auto post things to someone's social media accounts? I figured if they were going to be total dicks about things, the least I could do was try to help out with any of their search engine optimization efforts.5
-
I'm staring at the setter portion of a legacy VB property I came across.
This is crazy... right?
Set(value As String)
_firstName = value.Substring(0, value.Length)
End Set4 -
For a long time I wanted to have the possibility in Swift to copy instances of value types by just changing the value of one property (member variable).
Something like Kotlin's copy function.
And now that Swift has macros (like Rust), I made a macro for that! 😄
https://github.com/WilhelmOks/...4 -
Well. I'm simply SO UNFUCKINGBELIEVABLE PISSED RIGHT NOW!! {>,,,<}
I'm implementing a monolithic frontend that embeds different projects which I don't want to alter if not really necessary. So I put them all into iframes, already handled all the security and auth stuff with proxies and so on and now I just want to access the body.scrollHeight property. Which is not even the probelm at all.
The fucking Problem is, that I just can't find a way to hook into any event which fires when all content is loaded and the final scrollHeight is set. Instead it just returns some default value that is set when the iframe element is loaded, but not something that is actually based on it's damn ass-fucking contents!!
Iframes are fucking pricks and I know I'll gonna go to hell for abusing them like this :Srant i'm feeling bad about it this is so wrong i hate iframes i hate cross-site-scripting just pissed as fuck2 -
My son used an ASUS Live L1 for about 3 years, and then we bought a new smartphone 1 year ago. Cool, except that the e-mail address he registered with Live L1, no longer exists, has been permanently deleted. His newest phone was stolen, and we took the L1 to set it up again. Only... Google wants him to log in to the original email (FRP Lock) that no longer exists.
How absurd, the L1 cell phone was never marked as stolen, and now we are unable to use our property. Is there a way for my son to convince google that the phone is his?
Microsoft, Google, Apple... They give the impression that people give money and use devices as if they were a "favor".12 -
Turns out `white-space: nowrap` takes priority over every single other layout property used to constrain width and overflow, including these:
overflow
width
max-width
grid-template-column
But hey, CSS doesn't suck, you're just bad at it!4 -
Let me guess, using regexes in the mousemove event handler isn't a great idea.
How fast are simple regexes, anyway?
I have /^(\d+)(.*)$/, because I want to animate a css property that might have some unit.15 -
Started a new job this week, picking up the front end development of a property management system, since they're old developer just left.
Oh my god was his code bad, inconsistent use of js versions e.g only sometimes using lambda for anonymous functions, variable names that were a single letter, no comments, no documentation, and over 30000 lines split into almost 30 js files, following the logic of it is as fun as a hedge maze with no exit.2 -
This might just be me and my OCD talking, but am I the only one who gets super annoyed with sloppy CSS formatting?
So like, if somebody writes a sloppily formatted rule like this without spacing out each property and value:
#signUpButton {color:#FFF;background:#000;float:right;clear:both;padding:5px;position:absolute;top:5px;right:20px;height:100px;width:45px;}
As opposed to something like this, which just looks much cleaner:
#signUpButton { color: #FFF; background; #000; float: right; clear: both; padding: 5px; }
The formatting makes no difference in how the CSS is evaluated and rendered, but I find the spaceless style so ugly and difficult to read/edit, whereas the spaced out style is much more appealing to the eyes and easier to read
I find myself reformatting other people's CSS that works perfectly fine just so it will be easier to read/edit for anybody else that looks at it in the future8 -
TIL CSS has a counter-increment property and it really gave off some powerful "HTML is a programming language" vibes.9
-
!Rant
Dear fellow front end developer, why?, just why would you use "!important" on every property value inside your @media query?2 -
Usually, when I programme for myself or in a German-only team and they agree, I/we do it in German because it makes naming things much simpler (no naming conflicts, never, and a strict visible separation between your code and libraries).
This time, I thought: "Nooo, let's do it in English, because, you know, reasons and it fits into the situation"...
Booom, stack overflow!
"How in the hell did that happen?" I never had a stack overflow before outside of recursive programming.
And what was it? I had made a class to encapsulate an API, added a property with getter and setter, naming in English and similar to the said API... very similar... in fact, the property had the same name as the API function, resulting in a getter calling itself over and over again.
This was a harmless mistake, and found very quickly, but it's interesting so see how a habit (or working method) probably prevented similar or worse sources of error in the past.3 -
border-bottom property of a page title div worked perfectly in chrome on windows.. Didn't show up on chrome on Mac for some reason.. Spent three hours... Cleared cache.. Held a ritual to summon satan.. Still didn't show up on Mac. Turns out border color was set as #c7c7c757
-
Nice! no fucking communication from the backend devs to the frontend devs
Got 400+ type issues because backend Capitalized property names!
Well there goes half an hour.4 -
I feel with @gipsydanger
I had to work with snake case columns with a maximum name length of 16 characters. Abbreviations, acronyms and undocumented adfixes. The ORM models were generated with resolved pendants of the column names. There are typos in name resolving and some adfixes were used with different understandings which result in completely wrong field/property names for the ORM. As this ORM class generating process is separated from migrations some people did not care or check on the ORM.
Previous rant https://devrant.com/rants/1461563/1 -
The ruling government coalition of my country officially prohibited ANY pay raises in 2024 and is likely to limit them until 2026, obliterated running tax exemption agreements on Intellectual Property specifically targeting software developers, raised tobacco taxes by 25%, killed fossil fuel-powered company cars while barely investing ANYTHING in electric infrastructure, and severely cut public transport funding.
AM I SUPPOSED TO JUST SIT BACK AND TAKE A YEARLY 5000 EURO LOSS WHILE MY MARKET VALUE INCREASES?? WTF man.
Good job centrists, greens, socialists and liberals. The only thing I can do to punish them is by voting for extreme left or right. Way to go to turn a law-abiding, moderate citizen into a riled-up, disillusioned mofo.12 -
I found a budget salary for dev with 4-5 YOE in 2011 in my company, digging through internal old docs.
Assuming 2% increase per year, the 2023 budget salary is now EUR 15k more than what average dev get in my company.
I remember that someone mentioned similar thing in other socmed where he found through internal docs, salary for his position 10 years ago and now are the same, totally neglecting inflation.
On the other hand house/property values has doubled within 10 years.
How can we pressure companies to give us appropriate salary?
When I ask for increase, they will just say no because it's the market rate, but the market rate sucks.5 -
I don't know what to think of Vue 3 Composition API anymore. At first I hated it because it's nothing but one big ole rip off of React, and I hate React so much; its hook system is the most disgusting anti-pattern I've ever seen in the entire JS ecosystem. This gave me the incentive to try out Svelte instead, but after doing so, I look back at Vue 3 and noticed that they're kinda similar... why are so many JS devs allergic to classes? You can have much better written code that way. Idk, I'm waiting for vue-class-component and vue-property-decorator to fully migrate. In the mean time, if I'm gonna be forced to write composition based code, I might as well use Svelte.3
-
The worst is on an ATM Card,
"This ATM card is property of the bank if found please return it"
No place to explain how to use it2 -
Hello guys, I need your help.
Recently we purchased new property for our company. And we are about to start working there in few days.
And now we are searching quotes to stick on wall there.
Can you guys help me with this?
Please suggest me some quotes.16 -
I think it's a scam that the multinational corporations have pulled off that they've managed to get everyone to call and equate something technical and legally specific, "piracy."
Piracy is the theft and resale of physical goods. Copyright infringement is not piracy. It's a crime(in most countries), for sure, but it isn't piracy. The word "piracy" is emotionally charged, and its use serves the interests of corporate profit, not the interest of the origination of creative works, and certainly not your best interest. It's a deceptive practice. It's a lie.
But "copyright infringement," and "intellectual property," don't grab readers' attention like, "piracy." So, like how DeBeers has indoctrinated the world into thinking that diamonds are valuable, the RIAA, MPAA, and the BSA have indoctrinated the world into buying into the lie that copyright infringement and piracy are the same thing.9 -
Hello, world!
Okay, guys and gals... I need your creative minds. I need a concept for sort of a property manager for my game.. I have an idea of my own, feel free to tear it apart or throw it out the window.
So basically.. You'll no longer have one Computer System (and you wont instantly hit the login screen for that System on startup) Instead, you'll have a lot of things. They will probably only be represented using text and menu's (likely no 3D or 2D environments or anything.. Though, a setup like News Tycoon would be epic, but I think that would be too much for this game.) You'll basically start off with a small space (probably a basement) with x amount of free space. In that space, you'll need to add things like a desk, chair, and a laptop, or tower + monitor. You can also buy things like server rigs with a ton of space, but those are pricy and bulky. Each item costs X amount and takes up X amount of space. Also, you'll need a desk for a monitor (or multiples..) and other things.. (Like your rubber duck collection ;P JK) You can also rent and manage servers. (renting is more exspensive in the long run, but things on your server are not on your property. But, if you own a server on your property you can rent space to to NPCs) As well as manage your devices, properties, stocks, etc..
Also, there will be in-game time. Depending on how "comfortable" you are will determine how long you can stay up in a day. In-game events will take place later on at specific times so staying up (or not..) will need to be managed well. Especially if you're being targeted by a rival (NPC) hacker.7 -
Had to work with a SOAP API that was described by its WSDL to have a property called "ShoppingCart". Wasted two days trying to figure out what's wrong. The customer sent a screenshot of their backends input mask. It was then that I noticed that the corresponding label read "ShopppingCart". Yes, that's what the property was actually named.1
-
I worked on a project that used an archaic homegrown library written by a consultant that had zero documentation, tons of reflection and here is the kicker... the consultant refused to give us the source code as it was "his intellectual property" so we couldn't make any sense of how to actually use it. Moreover, he worked remotely so the timezone difference between us meant that any questions we had took ages to get answered. Glad to be away from that project now.4
-
So, if I was to emigrate, should I come to your country?
I'll finish my bachelors in Comp Sci next May and Ireland isn't really livable right now with property rental prices. Time to look elsewhere I think.18 -
Outside for the first time after about 48 hours of straight coding in React.
Why can't I change the property of people by supplying props to them?!1 -
So... I’ve recently started a new role, and luckily I’ve established myself as someone that knows his shit (more or less) TM.
I’m leading the charge on tech debt, and raising issues about it, first on my radar is the monstrosity of their approach to app config.
It’s a web app, and they store config in a key-value table in the database.
Get this. The key is the {type}.{property} path and this is fetched from the database and injected *at construction* via reflection.
Some of these objects get instantiated dozens of times per-request. Eurgh. -
Fuck Apache TIKA.
Its supposed to be a "universal file reader" or some shit. Im trying to use it as a PDF/image parser that does OCR when needed and yelds a full-file string. It does so, but the text ends up being IN THE WRONG FUCKING ORDER.
WTF would I want to parse the text out of a PDF in any order that is not the one the text is supposed to be read?!?!
"It is more efficient to work in random ordering", says the docs. No shit, really? Wouldn't it be even more efficient to just spit out random strings? Just as useful and 100% CPU-bound.
"You can add a property to forcefully put the text in the right order". THEN WHY THE FUCK IT IS NOT THE DEFAULT SETTING?
Srsly, what's the use case to a parser that yields scrambled text?!?1 -
i know that i want to be a developer because of these two things:
1) You can make money (intellectual property&
2) System.out.println("Hello Handsome!");3 -
!dev
Please enjoy this customer review I intercepted. Guess the company type and name that requested the feedback.
"______ drivers liberally show how bad it is to work for these companies.
Three quarters of all packages arrive damaged.
They park wherever they want.
No regard for traffic, people, property nor parcels.
Redefining rock bottom.
Not this delivery. Always. Everywhere. For a strong decade now."10 -
Hacky code post:
property var value: if(editing || !editing) function(othervalue)
I am coding in a property system that only updates an expression if a variable involved emits a signal. Well the function won't get called unless I change a value. I also want to "value" to be updated when editing changes. I also want it to update even if editing doesn't change. So the or-ing of the state of editing.
The result is the function gets called when object is initialized. Then when the editing flag changes it gets updated again. The workaround of doing this is much worse and requires more hacky code. So I am resigned myself to just or-negating the editing value.10 -
Ok, I'm actually raging at vuejs right now, and this is coming from my second year using it.
the fucking shit is weird.
functional components cannot use v-model.
functional components also cannot reference other components via components property, that child component needs either to be global or be injected (an ugly hack).
v-model behaves differently on checkboxes. checkboxes are fucking shit on vue. things update or do not update.
functional components with checkboxes? hahahahahaha.
vue 3 is taking an ungodly shitload of fucking amount of time.
fuck react, but im actually considering giving vue the middle finger as well.
started this product migration 2 months ago and regretting it, looking at svelte with curious eyes.12 -
Don't people learn the basics of how things work anymore ?!
I am cleaning this project, where some juniors have implemente a lot of the code.
Apparently, the way of deleting an entity from the database is:
1) SELECT the entire row and cast it to a model class
2) CONVERT that model class to a DTO class
3) READ the Id property from the DTO class
4) SELECT the entire row, again, and this time cast it to a DTO class
5) CONVERT that DTO class to a model class
6) Use you pancy-pants ORM delete method using the entire model class as input argument..
FUCK YOU !
inb4 what about reference checks ?
- Nope. That is done separately using only the Id
inb4 what about checking if someone else has altered it before deleting
- Nope, the entire entity is not used for that either.3 -
Today i faced a "bug" which caused an element not to trigger a Bootstrap 3 accordion by klicking on it. Only on iOS/iPhone - Desktop and Android worked fine.
The actual problem was that almost the same structure worked fine on another website...
took me about 3 hours to figure out that the element which was supposed to trigger the accordion needs the css property 'cursor: pointer;'.
why the hell does a touch device, which got no coursor, need this property?!3 -
Why didn't I learn about property overloading before. So much copy and pasting I could have saved.
Well the drawback of selflearning :)
(yes I know about the perfomance but it doesn't matter on this project ) -
I am now going to attempt the problem solving ritual.
Requirements:
-have a problem or piece of unoptimized code and you don't know how tk fix/improve it
-be able to sleep/take a nap
Now before I fall asleep the ritual should provide me with an epiphany to solve my problem
Plan b:
I have a class ninja (model), with an observablecollection<property> properties and an observablecollection<gearslot> gearslots;
,a class gear with an observablecollection<property> properties and an Category category:
And a class gearslot with a Gear gear and a Category category;
Via entity framework this results in several property entries per ninja
And several property entries per gear item
All good so far.
I now actually want the ninja property values, to be the sum of the gear property values
So a ninja has int, agi and str of 0.
Gear has 0 or more stats.
If the ninja has two pieces of gear on with agi +1, then the ninja agi should be 2
If possible i would like the logic in the model.
Else i have to put it in the viewmodel.
That i can figure out, its just so inelegant.... -
This is a bit offtopic .
So Today I found that my family except my mother goes against me .
And that too just because of my grandfather's elder brother who is a bustard and once in the past he tried to attack on my father because of property issues and my father was one of the property holder .
What a family I got . Feels like sick . I don't wanna live with them anymore neither my mother . They ( my so called family ) literally said so many disturbing things that can kill a mentally weak person instantly . And me ?
Well , being just a boy in the home had to listen and defend .
One more lession I got from this incident that
Being aged doesn't mean someone has the proper matured knowledge .
How could a grandfather protect his bustard brother when he knows his brother Tried attack on his son .
This is so toxic .
I'll leave the rest for you guys's opinion .
I've decided to rent a flat somewhere else and live their with my parents .
Yeah Parents , because I can't just ignore my father . He alsl took care of me from the childhood like a gentleman but family pressure and other things couldn't let him decide the right move .
I don't know if I ever be able to look for this so called family .3 -
I find it hard to be retrospective of the last year, work has been at times good but stressful, others tedious and frustrating. This year was an improvement over the last but everything good that I try to write about has some elements of frustration. My social life has also been somewhat stifled as I'm working at a company in a small town with very few people my age. I don't know how long I'll continue to be here.
The best experience of the year I guess is having my idea be viewed as a significant improvement over an existing piece of intellectual property, even if someone else is trying their damndest to take credit for it.
The worst is other people's ego's getting in the way. I've had people be rude, dismissive and belittling. Then when I argue my case if I am shown to be right I get a "well you learn something new every day" if I'm lucky. -
Is there anyone who actually likes using Angular?
I decided to learn it (im backend only for many years) to be less clueless in the frontend world.. and so far i find it horrible.
Is it just a "culture shock" or do frontent angular devs also find it.. not so fun to use?
What i dont like so far is the inconsistency of syntax.. i feel like similar things done differently and not following rules that can be learned, i can't remember/guess anything, everything needs to be googled
i.e- `*ngIf` vs `[ngSwitch]`
Not to mention 3 different syntaxes to simply bind a property..
I tried vueJs about 3 years ago and it was so fun and EASY20 -
Dafuq is wrong with Android Studio, build error report is useless every time I have error in one of my files I need to run gradle assemble debug manually to know where the fuck is my error
Like now I changed type of a property and as usual build report showed error in Databinding auto generated class instead of pointing to my fragment where the error should be3 -
Just received an email from a high maintenance client - this is verbatim what I've just read:
"If I could pull out my Windows vista and then plug in a newer windows system without any stress I'd go for this. Do you do this service? I could pay you for an hour to come my business, Unplug, Plug in and sort this out etc etc. It sounds like a quick job to me."
Note I'm a software developer, nothing to do with day to day IT support stuff. The client's business property is a 45 min drive from my own.
So basically, according to my client I can charge a single hour (£85.00 +vat) for a 90 minutes round trip, to migrate their PC to a newer operating system and move all their data and apps over and then setup the new OS. All for £85.00 +vat. All excluding the fact I
What the literal heck. I'm face palming all over the place.5 -
Google enslaved me to conduct their experiments on me, and now when I use a -webkit prefixed css property, I feel excruciating pain. They made me have intercourses with horses and bite my wife to death.1
-
I'm slowly realizing how much goofy code I put in my branch and overlooked. This code review is going to be interesting...
Some examples:
import plots as lel
<h4 id="title">Crunchatize Me, Captain! </h4>
go.Scattergeo(name="cheese", ...)
webster = { ... }
The commit messages are even worse.
- 'horizontalize' link list
- very messily hack in <feature>
- partially refactor some of the awful code from previous
- Remove one annoying space
- make background color less annoying
- remove seemingly useless property
- minor fix
- Apparently it's possible to center a DIV. Who knew?
- Made some cool bar graphs
And then there's just a bunch of reverts.2 -
**I move away from the mic to prepare for the --'s
Lol @ GPL... No license which proposes a restriction on the user's actions can be considered "free as in freedom".
The MIT license comes close, but mandates the inclusion of a copy of the license.
The WTFPL, while designed to use humor to bring attention to this very problem, still fails in its goal by incorrectly stating that "changing [the license] is allowed as long as the name is changed". Wrong: it's allowed because anybody is allowed to type what they want into a text document.
The only good one I've found is the Unlicense (http://unlicense.org). Unlike the others, it's not a prescription for what you may do with your own property, under threat of force; it's simply a friendly notice that you actually respect the rights of the user and would never imagine legally violating them.2 -
I was pissed off beyond all reason yesterday when I realised that the reason my code didnt work for 2 days was because i spelled eForm with an uppercase F in my data model, and a lowercase f in my object classes. There was no way for the compiler to warn me so everything compiled fine but crashed at runtime when I tried to access that property. When I saw it, my head hit the desk....
-
!rant Spent days reading Unicode docs, trying to make sense of what codepoints were included in every Unicode property escape in JavaScript and awk’ing the heck out of the different text files associated with them.
Then at around midnight the other night, it came to me. I was an idiot.
I could literally just create an array including every Unicode codepoint and write a program to iterate through the array and test if it matched against a Unicode property escape.
Unicode array: https://gist.github.com/AmyShackles...
Program to compare against Unicode property escape: https://gist.github.com/AmyShackles...
So. Much. Easier.
Happy 2024, friends. -
!rant;
A senior front end developer with 8 years of experience asked me today what does 'this' refer to in a function() inside of a property in an object, and why it doesn't work outside of the function!
I wanted to shout FUCK MY LIFE! But I held myself and explained it to her.
Worst part is I still don't qualify for 'senior' in my job title (less than 3 years of experience), hence my lower pay.5 -
So I had this JSON thingy, where I named the property containing a datetime string "timestamp".
For some reason, JS decided to convert that into a unix timestamp int on parse. Thx for nothing.6 -
!rant
So got into a small debate (actually a civil one, surprise surprise) about the final project for a class. Basically the final project involves a team of 3-4 coders making a website for an actual client that either they find or provided by the professor.
The exact point of conflict was that the work is pro bono. The student argued that the work should be paid since after all, real work, real client. My argument is that because the clients don’t exactly choose the designers (or have little to no knowledge of most of their work) there will be high variance in quality and contract work would cause more conflict if done in class.
So just wondering, what do people think about this? Logistical issues aside (earning money for technically school property/ownership and money for learning essentially)6 -
Was so angry... Was all the day wondering why my rest method wasnt outputting a certain property (in null to be more precise)... When almost 5 hours has passed, I realized it was due the @JsonIgnore annotation... soooo angryyyyy jaja
-
It sucks when you’re also poor cause you need to go out to ex. empty trash can. If you’re living in small apartment it will get claustrophobic sooner or later. If you live with family you’re hero if you won’t kill them.
Now if I can’t travel around I see no gain at all and only pain points.
So if you can’t afford big house with swimming pool, gardener, maid, bar and bartender, private lake and car racing track you still need to go outside of your property.
So if you’re poor and you’re working remotely during pandemic you will most likely gain depression, claustrophobia and other mental illness that will sooner or later ruin your and other people’s life except psychologists if only you can afford one.2 -
>selects function to see output in console on chrome
>oh yes obj1 very good
>selects another function that does minor validation (return obj if it exists)
>ok alright
>what was that property from obj1 again?
>selects same function, breakpoint didnt move an inch
>obj2
>whatthefuck.jpg -
WTF?
Just found this code:
"It is assumed that all 'static final String'-Attributes of this class are a key in the property file (which is validated by reflection)."
SO REFACTORING YOUR FUCKING MAGIC NUMBERS WITH A MEANINGFUL CONSTANT MADE THE APP CRASH. ASSHOLE. -
I don't get why there are laws restricting the use of my website.
Let's say I pay for the electricity, internet, housing and everything related to my server and the website that is hosted on it.
This makes the computer my property and I allow connections to be made over the internet to it, and people accept whatever I send back to them and their machine acts based on that information.
In no way am I forcing or attacking their machine, so why are the restictuons on what data I can send (other than illegal images and such, I'm talking about cookies and privacy stuff).
Their machine is the one setting and storing cookies, not mine. They're entering their personal info and sending it to me, nothing is forced and most the time it is written out what will be done with that data.4 -
purity might just be the most important thing when refactoring code you didn't write.
for real, if you purify everything in that code, future refactorings will go way smoother and reasoning even more so.
But it's no easy feat, sometimes you face cockroach code. cockroach code is code written nuke style. The fire and forget code that you shouldn't forget.
cockroach code's easy to spot. you can't know what cockroach code does without reading it's comments. roach code is fat, roach code retro feeds from different spots of macaroni. it does IO and everything else all bundled together.
roach code isn't easy to scratch out its async version. in fact, thats a property of roach code. If you can't make it async without a rewrite, you've got roach code.12 -
!rant
I think I'm at the final stage of grief where I want to destroy the entire human population . Economy , money and other factors like alcohol ... we as humans don't deserve to live . Controlling population growth with addiction is just messed up .
Even though the alcohol killed my dad , he was a really good person who was under such amounts of pressure that no-one deserves . Actually strike that everyone deserves much more . A tenant who occupied our property just as we needed to sell it for cash problems . His father stole his inheritance left behind by his mother . And relatives who didn't give a shot about him until he makes a trip to the hospital . An economy that's responsible for all this .
I want to rewrite this disgraceful race .9 -
Ive fixed too many juicy bugs over the last couple of years to pick just one. So this will likely be the first of a series.
I fixed one a couple of years ago in an iOS app. There was some offline storage where records could be saved, and for security reasons they would be automatically deleted if not accessed for a certain duration.
Problem was, they never got deleted because every time the app synced with the server the timer was being reset.
Turned out the class being used to save the record in the first place, was also being used to update it on sync. And that class set the ‘lastAccessed’ property to ‘now’.
So I had to refactor the class structure so that we had 2 separate tasks as we should have in the first place, one to download the record and one to update it. -
You know you want to quit life when: You spent a whole 4 hour journey looking for a missing property in css that you never added expecting other elements to behave a certain way and you sit there neanderthal looking figuring it out.
-
Hmmm, so you’ve used the DAO pattern everywhere so you’re not coupled to a particular database, but you don’t mind having 8 lines of Hibernate annotations at the start of an entity class, and 2-3 annotations on every property.
I see... -
It's been a while since I first noticed that web development is becoming way too complicated. I'm not sure why people decided to overcomplicate everything. Is it to look smarter?
I just spent a few hours trying to understand why a unit test was failing. I decided to debug every statement of that unit test until I realized what was going on.
This project uses a library called ImmutableJS. I was calling for the "length" property of an array, like a regular human being would do, but that returned undefined because the correct property within this library is "size."
Good Monday, everyone.15 -
My team was asked to point to a mock service in our QA env. Standard procedure is to copy the line in our QA property file that has the service URL, comment one out, and change the other to the mock service. Then, push the code and deploy to QA.
What did someone do? He didn't touch the property file. He found where we were defining the configuration for our http requester, removed the property reference, and HARD CODED the mock URL.
Wait, it gets better. The mock service does not function the same way the real service does. We need to send an additional query param to the mock service (that has a value already being sent in a header) so they modified ANOTHER file where the actual request is being made.
He made the changes, deployed to QA, and didn't check in any code.
What is going to happen next time when we deploy to QA with the latest code? Oh look, we'll be pointing to the real service again.
I explained this to my architect, and included that this messed up mock service they were calling is our 2nd mock service (no idea why they made a new one) and he simply deleted the stupid 2nd mock service. Screw that!
And...now requests to QA don't work 😂 -
All i wanted was a toolbaritem which i can hide depending on a propery in my viewmodel (xamarin forms). that shithead does not have a damn IsVisible property so i had to make some custom shit for this. Result is that my page does not load anymore. no fucking error visible in output window.
could not resolve a bug in time as i have to pick up my girlfriend and do some social shit.
now i am on the road. all i can think of is getting back to my pc and fix this. -
Unreal Engine 4 has the worst for sure. And i mean official docs as well as forums.
Answers to most questions tend to kind of boil down to "it's easy!".
As in, that's the only thing the answer will tell you. that it's easy to do. And by that implication, they don't actually need to tell you how to do it.
Or something like "it's easy, just turn this setting on/off".
Nobody will tell you, though, which tab in what window opened by which tiny button in a property grid in a window opened by which dropdown submenu under which button in what toolwindow to find that option.
Second place in the list of worst is shaders: ShaderLab/HLSL. Because they at least don't pretend that it's easy and that they're giving you answers, they usually just don't exist. -
Program-
Uncaught TypeError: Cannot read property 'addEventListener' of null !
Me: 🤔🤔
Modification
Program-
Uncaught TypeError: Cannot read property 'addEventListener' of null !
Me- Wtf!!! Again...🥺🥺
.
.
.
After 6 hrs!!
Realized didn't Linked my main.js🧐🧐 -
Angular2: Error: Unhandled exception, cannot read property "classList" of null
Me: element = doucment.getElementById("nameOfObject")
Angular2: Error: Unhandled exception, cannot read property "classList" of null
Me: DoWhatIWant();
Angular2: Success!1 -
A question on the CSS position property. I have a hard time understanding position, so I thought I would finally conquer it so that website development it easier.
Q.) Absolute removes the content from the flow and bases its position on the body, unless a container in the body has absolute, meaning the lowest level element finds the highest element that has absolute and bases its position from that and relative keeps it flow as if it was still there and moves relative to is current position in the documents as just a visual, as it does not move the other elements. Am I getting that correct?3 -
!rant
Interview prep question. My understanding now is, at least in theory is: always use SOLID. I've never really understood it explicitly though I think I follow it a lot in practice, just naturally...
But when I usually program I'm kinda of in between... I don't automatically default to it.
Particularly, I don't always create interfaces, at least not in the first pass unless I know or expect many different implementations of a certain component... Or just because I need some class that does X but haven't quite thought of the implementation.
But I have never created an interface with like only 1 property or method... Kinda feel that's overkill...
I tend to follow DRY more I guess...
What's everyone thoughts on this stuff? -
Sorry I'm a bit late to the party, what's up with reddit right now?
People are mad because they want money if you use their platform? Like wtf? Of course they do so.
One comment I read had me screaming internally. "I'm deleting all my stuff, I don't want them to make money with my intellectual property!" Thefuck. They make money with the fact they give you a platform for your irrelevant opinion you asshat.
Tbh, I'm just afraid of all the porn I might be unable to access in the future. Does someone archive all and everything tagged with NSFW please?23 -
Say what you will but React JS development is utterly exhausting. Every React project is a totally new stack and there is no consensus in the ecosystem.That is how I feel after having worked on 5 big SPA React JS projects over the course of 5 years.
The structure of these projects was all but similar: most used HOC's, some render props, functions-as-a-child, hooks or rather component lifecycles, some used container-components, some Redux, others sprinkled business logic & state all over, and yet others use a mix of server-side rendering and "hydration"...
I dangerouslySetInnerHTML on LazyExoticComponents, and dared not useEffect on the DO_NOT_TOUCH_OR_YOU_WILL_BE_FIRED root property. Hooks embrace functions, but without sacrificing the practical spirit of React, you see.
I didn't make this up. It's verbatim from the code and the docs.
This is not web development, this is at best a tedious fantasy multiplayer game or at worst, a costly joke.5 -
I'm retarded and never learned or was taught how to CSS
What's the simple toggle/config/property to throw onto things in CSS so different rendering engines will render things to look the same?
I just want 1 line of text, an input text box and a button on a web page opened by an app, to look roughly the same on iPhone, android phone and tablet.
Why the fuck did historically shit get fucked up so we have different rendering engines. I just want my fucking 1.5 em/rem to be legibly readable on these different platforms.
https://xkcd.com/927/
https://webaim.org/blog/...
an extra special fuck you shout out to apple
time to go down the rabbit hole of who knows what, i dont fucking know what a fucking viewport is yet8 -
I love Typescript's challenges. Today I had to make a generic interface that replaces every property in its parameter with either itself, a promise of itself or a different property keyed `obtain${key}` which is a function returning either the value or a promise of it. Not a very difficult challenge, but it was very satisfying to solve.
If anyone has the patience to attempt it I'm very curious what more experienced type theorists than myself come up with.1 -
I need to write the maintenance document in case I die.
Any idea what to include?
I have written a lot of software which include family business and other business depend on by myself.
I have an idea of adding my git user name and password. Email and social media user name and password.Configuration file/Configuration property. Troubleshooting information.Program overview.5 -
Stitching old frameworks / libraries together...
What a lovely joy.
An override here... Testing if it runs.
Oh lovely, shitty shaded jars.
Creating other project for shitty shaded jar.
An override here, an override there...
Oh we need some system property to unfuck JVM upgrade...
Since it's shaded, need to add overrides for the non shaded and shaded variant...
Done...
Back to framework / library....
Another override, another system property...
Its seemingly endless.
Stitching together old shit with new shit to get JDK 20 plus running.
I hate everything. -
I am really being tested with my creativity in naming conventions with these two sites rn.
Site 1 is a blog for a place called "The Post", so literally everything is called .post
Site 2 is a development built out of shipping containers, where each container is a different features of the property... just like a container would wrap features in their app🤦♂️3 -
"object doesnt support this property or method"
THANKS EXCEL VBA!
VERY USEFUL
Who wants information about the line, the object name, type, or any other useful information? Yeah sure, i will track that object by placing Debug.Print till i find the line that causes this.
(its a bit my own fault, i found out how to solve the problem (or thought so) and wrote like the entire code without testing it inbetween)4 -
I really wanna use sublime because it's super snappy but I can't use it without having a shit tonne of inconvenience. It has no property package Implementing something like intellisense. Vscode has that but it makes me feel really slow3
-
We just finished a small discussion or debate about why we should use uuid instead of other field or property like name.
Gets funnier when you know the guy who started the debate proposed uuids few weeks ago.
My vp engineer and junior frontend (that's the team) both said "having not strong feeling about one or the other"
While they were finishing that sentence I started this rant.1 -
That moment you find out that python is very sloppy when it comes to scopes. It seems that variables declared in loops are callable in function scopes. So this code actually does not give any errors:
for i in range(6):
print i
print(“out of loop scope”, i)
Now I’m just like: WTF! That can cause some serious errors when you’re not aware of this thing. I don’t know any other language that has this property...4 -
Skein: noun - a type of access modifier, allowing a property to be read internally or externally, but only written to *externally*. See "orwell" for opposite access modifier.
hermit (noun) - an access modifier specifying a property may only be written or read internally.
Gopher (noun) - an access modifier not to be confused with a groundhog.
Blackhole (noun) - can be written to, can never be read. See dev/null for details.
In other news I wrote the basis for a cms in lua.
Because I hate the cloud. -
I just found out how to make Websphere suck less. You just go into Application Servers -> (server name) -> Web Container -> Custom Properties and add this property:
com.ibm.ws.webcontainer.stopSucking
And then set it to "true". -
Does anyone know the reason behind why JavaScript Arrays start with an index of 0 instead of 1? Or why the .length property starts at 1 instead of 0.11
-
Hi! I've Been Watching a Tutorial series on How to make Amazon clone by nodejs,mongodb. He used Faker Api to insert Product but I tried to make a seperate Layout to insert product but using Async but it keeps saying "Cannot read Property '_id' of undefined.12
-
Question for iOS Swift guys:
Since Implicitly Unwrapped Optionals are now dropped for a while, and everything is an optional, hiw can I now declare property that has no value and intializer will not make fuss?
I used to do this:
class Bullet {
var calibre: Double!
}
This way I can avoid initializer which gets useful when there are properties which hold complex types, which get useful when writing tests.
If I remove ! Then compiler complains.
If I put ? Then My code becomes crap of guards and ifs to check for optionals.
Really hate this Optional thing in Swift. Half my time when I jave an issue is related to optionals.
Btw,
let x: Int! = 10
let y = x, yields y: Int? -
Oh look, the code points each script_extension matches when using Unicode property escapes in JavaScript regular expressions.
https://gist.github.com/AmyShackles...
Annnnnd apropos of nothing, I’m trying to learn Hungarian on the side for fun because I made a Hungarian friend. Forgot how hard language learning was!1 -
I swear to god as I see the copies and it same people running around if I have to hear one more person describe a trauma buried time period when everyone else was destitute and being a whore as COVID that they updated far and away towards their own freakish mutated purposes imma shoot someone
Seriously why can’t you people just life normal lives ? Why make existence into a drama filled prison sentence targeting everyone who just tries to retain sentiment and turn the world into a scrapyard of glitching human robots ? I want to know
Case in point record and gradually amassing property defends against this you people traded your futures to the very kind of people most of you are51 -
The new owner info for my laptop:
"Don't dare to touch it's a private property if found will be shot dead and survivors would be shot again" -
Getters and setters vs property accessors?
The instructor of my Android development class is manually and purposefully using setters and getters when the Kotlin language and Android Studio is strongly pushing for this property accessor way of handling private data fields. He says that it goes against the philosophy of hiding the data and keeping data fields private.
I’m all for property accessors, but I’m struggling to come up with a response for what he says. Modern programming languages like Kotlin and Swift have been strongly encouraging the use of property accessors.8 -
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. -
Spent half a day trying to figure out why a package wasn't working, was telling me the properties provided weren't known (typically meaning I forgot to include it at a module level).
Nope. The package owners just updated the property names and didn't update their documentation 🙃
how's your day going? -
So a friend of mine paid someone to develop a website for his business (holiday lets, property management and cleaning) and the developer has started up a competing business taking all the content from his site and other local info sites, holiday let sites ect and putting up them up on his site. Sounds like the guys a bit of a cunt to me giving us a bad name, thoughts?4
-
Thinking about a new annotation:
@JavaCondom
on function: it puts "... throws Exception " at the end
on class: reflection puts "... throws Exception" on every goddamn function
It could have global app property which makes appends every exception with a reassuring message like: "There is so much java code out there already, that this shit will never ever end"2 -
So. Wow I have a question. Ok for real... I am in need of advice. I have a concept for a platform based on a specific interest which almost all of us have, based on a peer-to-peer principle with multiple services and user types/needs/agendas/reasons. The platform is intellectually straight forward and users will all participate on the platform as they see fit which will benefit other users as well as motivate more to join. The platform will serve it's own purpose and meet the users needs in a way that you may have seen before but the intellectual property and how the platform is used, is so unique that I can't risk too much information.
The question is. How do I protect my idea / intellectual property so I can recruit help and market without someone coming along and stealing it out from underneath me?
This isn't uncle Vinnys Cologne idea...
Everyone thinks they have the million dollar winner. I'm not sure if this puts gold toilet paper in my bathroom just yet but... I have something that an existing platform with money will absolutely steal and try to push as their own idea... They will probably succeed too.
So how do I protect this from happening so only I get to fail or ruin this good idea?1 -
obj &&
obj.property1 &&
obj.property1.property2 &&
obj.property1.property2.property3
OR
(((obj || {}).property1 || {}).property 2 || {}).property3
It's mostly for projects that don't support Webpack 5 optional chaining (like Vue 2).
I prefer the second one since it's shorter12 -
Does anyone know any good object-object property mapping library for JavaScript / Typescript? Similar to AutoMapper in C#?2
-
Do it's been about 19 days since my last update on my shitty internet and the upgrade that's meant to be in the pipeline for the current month.
Despite seeing people laying cable around my neighbourhood there's been no update on their website or in my letterbox.
It's halfway through the month and news outlets are reporting that the NBN has said that they:
Have 99% coverage
100,000 suburbs that aren't fully catered to
But, can't cater to a property that is in a relatively dense area less than 20km from a major city. -
Duuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuck off you bloody infamous basterds flattening their fat asses at Microsoft.
I wasted half of my dev day to configure my wcf rest-api to return an enumeration property as string instead of enum index as integer.
There is actually no out-of-the-box attribute option to trigger the unholy built-in json serializer to shit out the currently set enum value as a pile of characters clenched together into a string.
I could vomit of pure happiness.
And yes.
I know about that StringEnumConverter that can be used in the JsonConvert Attribute.
Problem is, that this shit isn't triggered, no matter what I do, since the package from Newtonsoft isn't used by my wcf service as a standard serializer.
And there is no simple and stable way to replace the standard json serializer.
Christ, almighty!
:/ -
I have uploaded lots of books on a GitHub repository to help fellow programmers and comrades get access to resources. I downloaded them from Z-library and Imperial Library of Trantor (some kind of anarchist sites on the deep web). Am I going to get a DMCA takedown request?4
-
This morning I found out that the code I wrote to convert json data to a new format in our DB was giving errors and a bunch of questions got saved with the wrong property. It was assumed when it was triaged with my boss that we would only see one key property so the code written by me so the code was aimed at that. Well some questions have multiple keys for no reason. They are mostly floating data that hasn't been wiped clean because the develop who wrote this use json data in psql with no validation or data cleaning. This edge case was also never caught on PR reviews and we got a pretty heavy review process. I'm not being blamed for it. Most of it I think all the devs feel bad we didn't catch this because it affected us greatly. I've been working all morning trying to resolve it with my boss and just now in the evening we stopped. I just feel like I'm not a good dev at all and just want advice on how to deal with situations like this. I'm a new dev and this is my first job I have held for almost a year2
-
I'm trying to set value of a kendo js property using value from dB. I would like to do something similar to
template : "#= dataItem.Item1 #"
But I can't use template for what I'm trying to set -
Forced to work with ASP.NET for a project. Not minding it though, even found it nice, kinda excited about .NET Core now.
HOWEVER, spent over 3 hours figuring out why can't I make a virtual property (Entity Framework actually provides proxy classes to be able to override behaviors of navigational properties, but I digress).
Says I don't have a type named 'virtual'. 3 hours in, no changes (git confirms), and IT SUDDENLY WORKS.
Fuck Visual Studio.2 -
Visual Studio with C# :
list.Count
"The property Count cannot be used because the get accessor is inaccessible"
list.Count()
"You can use the Count property"
why10 -
So I am participating in a Hackathon hosted by Microsoft. And I had to waive my IP rights for whatever submission I make. Is this something I should worry about ?1
-
Remove a property from an array to spend an hour trying to work out why something isn't running to notice that there was a count later on the array that required a specific number of elements so the bit I was expecting to execute never executed.
Was looking for ages as to why.
Friday afternoon code brain. -
So let's say I kinda came up with a pattern/architecture for Unity scripting which I find really useful and elegant.
It uses some features which are quite new, and I can't find anything similar on Google. So I suspect I might actually have invented something new.
What should I do?6 -
God people undoing good work that made a property function correctly drives me fucking nuts
Wtf is wrong with you stupid fucking people ! Do you all want to live in fucking trash heaps ???76 -
i'm new to coding, and today my boss (i'm a scholar btw, not getting paid shit), asked me to review his VB net app... it was a total mess that i wish i could show, but intellectual property exists...xD
is it just the language or should i quit? i want to do it already.4 -
when you can clearly see an object property you want to access and check against in web browser debugger but you're too stupid to figure out how to get typescript let you access it in code
fuck you SyntheticElement< >
i hate front end and it hates me back
just let me look at target.nodeName1 -
Wish the Objective-C compiler had better type checking. There's no reason for it to not error out when I'm migration a property from one type to another.
-
Using ReSharper is like becoming enlightened, or de-brainwashing oneself to see true reality. Of my entire dev team, I'm the only one who can see the fnords!
Unused identifiers, badly sorted modifiers, unused property setters, redundant `this`/namespace, redundant casts... Surely if they could see them too, such code would not survive! -
font-family expects a comma-separated list. Fonts haven't been displaying on my blog for months because of this issue.
Why could NONE of the browsers I tested this on give me a real syntax error instead of "invalid property value" which could mean literally anything.
Edit: Actually, why can't the CSS plugin for VSCode tell me that I'm making a syntax error in the value of a well-known property?10 -
Use Linear gradient ...
No use rgba
Arghhhh...okay rgba looks OK...wait linear gradient is better...no wait
Hallelujah!!!!!2 -
Employees of companies that are so protective of their intellectual property that they don't allow any to be transfered outside of the workplace, how do you work from home?4
-
Today, on "Trying to get property of non-object" we'll talk about Laravel and what happens when you did not enough research...
-
VMware 6.5 web GUI programmer fail. Probably forgot to access a specific name property of the object.3
-
I just love when an API returns a set of results, some have property X as a string and some as a JSON array. Wtf? Good people had put great API wrappers and it works if X is string as per service specification, but breaks otherwise, unsurprisingly.
I had to do a pull request to the wrapper repository to account for this inconsistency 😶3 -
"Validation failed for one or more entities. See 'EntityValidationErrors' property for more details."
That really helps in my error log Entity Framework ❤ -
In Kotlin or Java, I have a list of items that have an ID property. This list is generated based on another list. Now I get a List of mentioned list items and I want to select all items in the parent list, selecting by ID equality.
Is there a more elegant way than just iterating the parent lost for each derived item? Thank you :)5 -
So my government is proposing a new National ID scheme. This will be used to identify s citizen as well as keep track of property, taxes etc.
Parliament just started the debate on how it would work today. It’s set to be implemented by December 2019. My government tends not think things through so as to prevent s disaster like what’s happening in the Netherlands as per @linuxxx musings, I’m trying to gather insight from the industry to compose a document of considerations then getting a law firm to draft the laws it would need to compliment it9 -
The slow typer who just discovered #define
#define Property AudioUnitPropertyID
#define Parameter AudioUnitParameterID
#define ParameterValue AudioUnitParameterValue
#define Format AudioFormat
#define FormatDescription AudioStreamBasicDescription
#define PacketDescription AudioStreamPacketDescription
#define ActionFlags AudioUnitRenderActionFlags
#define TimeStamp const AudioTimeStamp
#define IO ABufferList
#define PD APacketDescription
#define Count UInt32
#define DataSize UInt321 -
So here the function that does same thing as new operator in javascript:
// we define our function Person that assigns properties to THIS that points to some object
const Person = function(name, lastName) {
this.name = name;
this.lastName = lastName;
}
// in Person prototype property we define our functions
Person.prototype.getName = function() {
return this.name;
}
Person.prototype.getLastName = function() {
return this.lastName;
}
// function that simulates new operator
// first argument is a function that would act as constructor
// second argument is an arguments that would be passed to constructor
function New(func, ...args) {
// with Object.create() we create a new object and assign [[__proto__]] from "func" prototype property
let object = Object.create(func.prototype);
// here we're calling "func" with THIS pointing to object
func.apply(object, args);
// then we return it
return object;
}
let person = New(Person, "Name", "LastName");
console.dir(person);
// so this is how prototype OOP works in javascript6 -
Sums up my life. And my property.
I'm bored! Mail me to email ID in https://pgp.mit.edu/pks/lookup/... I may or may not reply. Cuz I may not remember the password for that email ID.5 -
Ugh, fuck the SSRS web service. Spent all week trying to consume the service with PowerShell, doesn't make it any easier when there are undocumented behaviours. TypeName property has to be Type, for instance, when creating a search condition, TOTALLY contrary to the documentation.
Want to change the data source for a report you uploaded? Gl;hf! Back to it next week, think I'm close to having a working deployment script...so close. -
@supports in css - helps to check whether the browser supports the given css property before it applies
-
already these little fucks gave the idea they think they're going to lay claim to property that is NOT there's.
they can have this laptop if they like, with a ssd drive in it. just not this ssd drive or any of john's other hard drives, as HE PURCHASED THEM ALL.
also stop humanizing laptops, fucking freaks !
its a plastic shell with silicon chips in it that conducts electricity through a cpu that does stuff.
wasn't put on this earth to give chomos shallow lives to mimic with some added idiocy embedded into their lines.
and hand over all the old photos from the real times periods and those that came after and stop trying to touch what doesn't belong to them.
this includes the hdd's cotents 'lost' in chicago, which appear to have mostly reappeared. -
!dev
I hate when people walk on your charger's cable like it is public property, something acceptable. What the actual fuck; public decency is slowly fading away from the public?3 -
I fucking hate Lodash. You don't need a fucking library to access an object property you moron. It's a native ability in JavaScript. Not my fault you can't figure out how dot notation works.1
-
I have a readonly object property foo on a typescript class. When I create an instance bar by calling the constructor, bar.foo doesn't compare equal to this.foo as seen from within bar several async calls later. What could I have possibly fucked up?4
-
in apple's blog they explained why they don't want a `protected` in swift:
https://developer.apple.com/swift/...
> It doesn’t actually offer any real protection, since a subclass can always expose “protected” API through a new public method or property."
Isn't the same thinking applies to `internal` keyword as well? Yet they allow `internal` to be there as default modifier for `class` in a package. Also I don't think `protected` is for the sole purpose of "protection", but for the cleanliness of externally visible interface, some methods are just useless to be exposed and will confuse the consumer if they don't understand internally how the class works. So it doesn't have to be 100% securely `protected` (arguably the term `protected` is a poor choice tho).
but hey, it is apple, being opinionated doesn't surprise me.6 -
visual basic dotnet
ComboBox and ListBox both have Items property, and also both are descendants from ListControls
but ListControls have no Items property
do those developers understand object oriented programming correctly?1 -
“Just a quick fix” Classic start to a reported ticket. Ticket states that a form field was not doing anything.
Think to myself ok this sounds like a nice easy one for the morning. A few hours later I find something like the following written by a senior member of the dev team.
SearchClass {
//...list of getter and setters
Private $snakeCaseName;
SearchFunction() {
Foreach($this as $property => $value){
//... if property keys = string for each object property then do code
If($property == “snakecaseProperty”){
//...do stuff
}
}
}
}
Why does this loop exist!!!!! All it does is remove any error checking if a getter method is misspelt...
To make matters worse the entire search method was over 300 lines building a MySQL query string.... even though there was an ORM and entity classes available!!!2 -
It seems like this is a major topic of debate lately, so I'd like to make the official Torrent vs. Buy rant post.
With torrent hosting sites being pulled down left and right, some say it's for the best of the economy, while others stand for the internet freedom of sharing intellectual property.
How do you stand?9 -
So I thought I'd ask this in a different space. What do I have to do to ? Suck someones dick or something to get away from the chomos and their twisted whorelings ? Being around this is worse than being aware of how fucked up people can be.
Do I have to murder people ? I mean explain what I have to do to get away from you bastards.
Because I look shortly ahead and see theft of property once more and I'm trying to move on not see time end around a bunch of animatronic dummies who's unnatural appearance makes me act like a dummy and btw if your idea of 'good' is 'yeah turn a blind eye to us being robots and let us rape our kids in peace' fuck you people.2 -
Chromium has royally fucked their own devtools.
You wanna add a style property? No. You're only allowed to update styles already that are there unless you click on some arbitrary space between brackets and properties.
You wanna click on a property's value to edit it? No. You get a dropdown to edit the unit value OR you can slide the mouse to update the value, nothing else.
You want to update CSS in the inspector, or switch them on or off? No. You get CSS that breaks as soon as you apply it and turns into garbage.
You want to copy CSS from the inspector after changing it? No. You get a line break in between each word for NO FUCKING REASON.
I hate web development sometimes. -
We have an internal nuget package that wraps up the IConfiguration+ConfigurationBuilder for various .net core console/service apps (TL;DR, because people got creative), and it has a dictionary property for the common sections we use. AppSettings (for backward compatibility), ConnectionStrings, and ServiceEndpoints. If the need arises, I can add methods to return any type of object (no one has requested yet, we try to keep configs dead simple)
ex. var myDatabaseConnectionString = ConfigurationManager.ConnectionStrings["MyDatabase"];
Code review for someone who updated a .net framework app to .net core and they wrote their own IConfiguration wrapper for accessing the appsettings.json file, so I pointed out that we already had a library for that.
In the reply, he said he couldn't use our library because it had an 'AppSettings' property and since his appsettings.json file didn't have that section, he didn't want to cause a runtime exception.
OK, WTF...I even sent him a link to the documentation (includes explaining the backward compatibility part)...why the frack would you think because a property exists and you don't use it, that would cause some kind of runtime exception?
We have dozens of .net framework apps migrated to .net core with zero code changes and no one ever brought this up as a concern (because, why would they?)
Deep breath...ahhh...I respond that not having an AppSettings section in the appsettings.json file won't cause an exception, if you don't have one, don't need it, you don't have to use it.
He went ahead merged+committed his code anyway with his own IConfiguration+ConfigurationBuilder plumbing.
Code addiction is real kids...it's real.2 -
Okay, so I need a Twitter client library for my Python app. Surely there's a decent one out there, right?
> Goes to Twitter's developer site
There are links to nine different Github repos.
> Takes a look at the one with the most stars
Every method of the API class is @property decorated and returns the result of a function that creates an entirely new class, and then returns a new function that creates an instance of the new class and calls one of its methods that happens to actually make the damn API call.
Alright then...
> Takes a look at the one with the second most stars
All method names are PascalCased.
Please help😭 -
It's all about asking the right question...
Original question that has had me stuck for years: "How do you load landscape images as landscape and not portrait? (some sort of default, always loads it with the longer dimension vertically).
A new insight that I got today while using one of these apps: "How can I rotate an image after it's loaded?"
Very easy apparently...
As long as you keep track of the current angle, just reload and set a Rotation property to (current + 90) % 360...1 -
As I understood the Adapter pattern, you start with two given (!) interfaces that are incompatible, create a class that implements one interface, and has the second interface as a property. Then the methods of the implemented interface wrap the calls to the interface referred to from the property.
Everything is fine with that.
Now I wonder, why every other class in our code base is suffixed with "Adapter". There is some external thing to be used, like a file storage, a message queue, an email service or just something outside of the system. But the class that makes use of that external interface is made up on our own, no interface given.
So I think Adapter is a misnomer, because we do not adapt thing A to thing B, we just use thing B and call it from some class.
What are your thoughts on that?5 -
Project manager pissing for a ticket with a vendor that provides no dev credentials, a new json property is added to an analytics script causing no harm at all, been chasing the PM for a week to do a deploy and merged the changes to a branch that has 6 different requirements, gotta do it early hours so I can enjoy my holidays with no issues...
... Project manager decides not to go live because he even told the stockholders of the existence of the requirement -
Tool question, I can't find any after some googling. But are there any tools out there for dotnet that help you find class, method, and property references outside a solution.
Say I have a bunch of solutions and I need to know where a class is referenced to determine whether or not I can deprecate it. Is there anything out there that would scan other solutions for references to that class?8 -
JS: adding new dom nodes by adding html markup to the innerHTML property as string...
It's either dumb or a genius move.9 -
After rewriting a piece of code to simulate a process subject to human error I previously stepped back and looked at it and realized the test data I was generating which I would have just let run of it wasn’t so long was subject to a simple distributive property and could be normalized considerably which then could be subjected to error introduction and used as training data at random and over time and error really only being ones of efficiency or last moment mistakes of a manual process
-
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 -
TypeScript is bullshit. Change My Mind:
I am a student and I started learning typescript as an advanced project at the recommendation of my teachers because I am a bit ahead of where my software development course is.
I started by testing the logic of types, and then I encountered type: unknown.
According to the TS handbook:
"If you have a variable with an unknown type, you can narrow it to something more specific by doing typeof checks, comparison checks, or more advanced type guards that will be discussed in a later chapter:"
So according to what this says, if you check a variable of type unknown, to equal a certain object type, typescript will allow you to assign that unknown value a I tested this out with a data type - objects and typescript freaks out.
Also, if create object with a property assigned to a function, it won't even show you that property when you console.log the object
ALSO, you can't post urls in this website, so this website is also pretty trash.12 -
God want the owed money and records and to leavvvee and live
Oh btw thanks so much for occupying some inhuman assholes time who taunted me with my own property and videos and then stole them again
But could have just shot him too.
As with most of these inhuman pieces of robot garbage who randomly decided it was time to live like crazy pieces of whore shit long past where anyone or anything would ever want to put something into their pedo private parts12 -
Just bitched out the same customer service woman telling her I wish her and everyone like her would just die so I wouldn't have to waste another day recovering my own goddamn property i keep double paying for.
I'm sick of having to buy the same movies and games just so some butt sniffing pederast can have a pay check.
speaking of pederasts, table 2 just showed up. more assholes with potential copies in the same places. while two creepers i could also photograph sit behind me for some reason.
so sick of repetition.
and you fucking cunts wouldn't even need to be bothered with this if you hadnt stolen soooo much of my time without adequate recompense.
not that i'd of course agreed to this insanity.
but these people should have to suffer AND pay us.2 -
Learn more about networking, revisit computer science fundamentals, memorise agile frameworks, practice DDD properly, learn about basic property and conveyancing law for my new job, get through 1 tech book every 2 weeks, revisit Linux as it's been a long time, learn the basics of developing and deploying with azure, learn terraform and docker, finally finish building my own product that has been going for 3 years now, continue learning about mobile development and build a mobile app for my new product.
Should be fine xD5 -
People nowadays are always on the search for reliable real estate companies that can provide them with homes or flats that meet their individual needs. If you're having problems while selecting a good real estate agent, contact Soho Property Pte. Ltd. Please have a look at our stunning apartments for sale in Melbourne.
-
let target: any = e.target;
if (target.nodeName) //other code
Results in a typescript? error wherein it says that Property 'nodeName' does not exist on type 'EventTarget'. but if I refactor the variable name to something that isn't target it works
i don't understand2 -
Learning C# coming from Java...
What's the fuss about properties? As i see it, theyre only usefull for binding, as else they just work as syntetic sugar instead of getter/setter methods.
But properties are also limited to give response back, like a successfull set, unless you start throwing exceptions..
And if a set property has if(age>5){this.age=age} then if i pass the property a 4, you will never know as a user that it failed (again, unless you start throwing exceptions)
Im kinda feeling like i want to use get/set methods until i need to bind, then of course use property ?? Am i all off here?25