Joined devRant on 8/1/2019
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Am I the only one ?
15+ years in c# / .net dev and I still google "c# string compare ignore case" each time. Its just fucking faster than to remember exact syntax of the "StringComparison.OrdinalIgnoreCase"9
Every single linux tutoriel ever :
Do theses steps :
Ste p 1:
Ste p 2:
Step 3 :
Reboot your system.
System doesn't boot anymore
AT THE FUCKING END in SMALL TEXT : "Oh you can't follow these instruction if you are applying changes to system disk. here is the right wasy : <link>"
Stupid linux communty. Warning ashould be AT THE FUCKING begining.8
For all you complaning about Windows updates.
The last one requires you to accept new Terms of Service.
So just don't accept the : no updates EVER.3
How the fuck you people do load testing ?
Don't tell me JMeter, it's useless as it doesn't represent an actual browser session...
I'm not taliong "test APIs" but the whole user experiance....
Can't find a single tool which does it at 1000+ sessions....7
Problems with redis... timeout everywhere...
30k READs per minute.
Me : Ok, How much ram are we actually using in redis ?
Metrics : Average : 30 MB
Me ; 30 MB, sure ? not 30 GB ?
Metrics : Nop, 30 MB
Me : fuck you redis then, hey memory cache, are you there ?
Memory cache : Yep, but only for one instance.
Me ok. So from now on you Memory cache is used, and you redis, you just publish messages when key should be delete. Works for you two ?
Memeory cache and redis : Yep, but nothing out of box exists
Me : Fine... I'll code it my selkf witj blackjack and hookers.
Redis : Why do I exist ?2
Each time I see THAT, there is 50% chance that server will not reboot :(
Why, just why we don't have roll backs and all nice things we have in windows ?8
We have pretty fast and lean dev process between QA/Design/Devs.
But sometimes, it's going to shit ;p
An option "ROLE" is missing for grouping in that table.
So 5 min to create ticket, assign someone from design on it
Design : Yeah, this is true. We missed that option in our design.
Proceds to modift figma by adding an option "Role" to a drop down.
Reasigned to Junior dev.
Junior dev : I have no clue how grouping works with graphql.
So at least 30 min.
Reasigned to me.
Me after 1 min of looking at it : PR chhanges on screen shot :
Facepalm... Everyhtibng was already in place, someone forgot to add id AND name, not just name.
Git blame => Or never mind... it was me..
that feeling when you reuse a compoinent you wrote 1 year ago and all bizzare magic still applies and everything just works as expected.4
Just to show you.
The overhead between actual SQL requests and the stack :
.Net 6 =>
Web API =>
EntityFramework core 6 =>
(middleware) GraphQl.EntityFramework =>
Seems a lot ? Yep. But actually... that shit just scales. More sql requests will not cost much. And this stack will take care of generating optimal querry better than me by hand.
(These querries on screenshot are fairly complex).
I like it. So, so much checks done for me and front end people love it too ! They don't need to open a tiocket when they need a new field.
So, /adpoted by me.
PS : And pair it with Blazor, miam.1
Question about cache (Redis or other distribuated cache).
So I would like to find a solution with “Partioning”. But without code it my self (ofc)
Ok, example :
In the application you have clients, each client has users, each user has role.
So right now it’s in the cache with the keu “User:<userId>” = role
Sometimes, when you change client settings, all entries should be removed.
So what I would love to have :
Client_Id/UsersRoles/UserId as a key
And I would love to be able tp delete “all keys after /” :
Basiclly delete client_id/ would delete everything in cache for this client
Delete client_id/UserRoles will clean up all saved roles.
I’m pretty new working with redis, but it doesn’t seem possible out of the box.
Any reading material I could read ?4
Anyone has a better way to calculate / display advancement % ?
I';m using that by habit for the past 15 years. But it's kind of boring to write every time.24
Me 5 years ago : "Guys we are gonna have a perf..."
CEO : "Not now, we need to deliver that functionality asap"
Me 3 years ago : "Guys, performances/scalibiluity will hit us like a trucK'
CEO : "Not nowem a new functionality needs to be done ASAP"
Me 1 year ago : "We are gonna be hit by a tank. We won't even understand what happens"
CEO : "I'm sure we can manage"
2 Days ago : Plateform quasiment down, response time in MIONUTES instead of milliseconds, database on fire.
CEO : "WHAT THE FUCK !!! GO FIXC I ASAP WE CANNOT HAVE THAT SHIT HAPPEN".
This is a brief summaru of working in a startup.11
IE is dead ?!
NOT SO FAST.
The whole singin in Visual 2022 uses... Internet explorer renderer and... doesn't work on a Windows Server 2022 because of... "Enchanced internet explorer security policy".
I'm dying inside.7
After YEARS of research, I couldn't find a single working load testing tool
So this weekend I created my own. With blackjack and hookers.
It's limited to my app, so not reusable, but wow in 1 weekend I got more data and found more infra problems than in the past 3 years.18
Rule number 1 in performances debug :
It's always I/O.
If it's not IO, then the code should be REALLY bad.12
Let’s play a game :
With some spare part you have somewhere in the boxes, what can you build “best” and what’s missing ?
I’ll start. With unused parts in my boxes I can build :
• Core I7 3770k on Sabertooth motherboard
• 16 GB of RAM
• GTX 770 as video card.
• 4K Asus screen
• Creative sound card
• The case
• Hard drives/SSD17
After couiple of hours (Yes, apprently it's insane how hard is to add a new NIC to a linux machine and make it start on boot), I finally got my connexion working !
Server has original MB 1Gbits card. Internet connexion is 1.1 Gbps. So 1Gb card only picked at 940 Mbits download
I bought a 2.5 Gb card (new nic)
Pluged it in : Nothing
Couple of ifconfig -a etc, bring device UP : Yeah working !
Reboot : Nothing
/etc/interfaces : nothing
And why it's not eth0 and eth1 etc as before but some thing cryptic like enp3s0.
Well, at least now everything working (Apperently there is a new "network plan" config file in yaml... what a waste, DO FUCKING JSON YOU RETARDS)
Ping is awsome tho ! Same cable on windows Machine, I get 5 ms.4
Now I'm a bit impressed by auto complete of VS2022.
The full text in grey is auto complete proposition.
Back story :
I have a table where datetime is stored as nvarchar(max).
I'm trying to convert that shit into a proper datetime2 column
But there are dates in ISO format, there are in MM/dd/yyyy, dd/MM/yyyy and there are some with hours/minutes parts.
So i'm making a little script to clean of all that up.
Ofc, not a perfect result, like 01/02/2022 will be considered as dd/MM/yyyy (98% of values are. But still cleaner than before1
I'm creating a "bring with you" Linux install. So I got a 512 GB USB key. (You know, to even have some persistance).
Linux flashing tool : are you sure ?
I think I have a slight problem in my API.
Snapshot 1 : API entrey point
Snapshot 2 : on "return" statement from API.
No biggies, 8 GB of RAM used.
The API ? Adds 1 ligne in database.
That's gonna be a fun debug8
I’m fucking done….
I don’t even know what to tell.
I’m a CTO in a startu. We have pretty good traction, my salary is about average senior dev salary (plus 10%).
I’m good financially.
But I have no more pleasure in work. Like at all.
“This API call performance is bad”
Yeah I know, maybe you shpuldn’t try to call it for 1000 objects at the time ?
“We need to reduce Azure cost”
Yeah I know, but are you ready to live with performances downgrade it will generate ?
“I don’t understand on what thing you worked past week, where is a devops card ?
Fuck you, I’m in extenuating fire mode, I don’t have time for a fucking devops card
Thank you for your imput, Blazor WAS created to avoid JabaScript
“The client has only 1.000.000 records and API doesn’t return them all”
Use fucking paging moron. And BTW, I’m adding “number of authorized requests” shortly.
I can go on and on and on for hours. But the idea is : I completely lost the will or motivation to do anything. I’m considering just to quit and go back to be Junior dev for a random company.9
I find still very funny that Desktop outlook (So Microsoft) doesn't support MFA from Office 365.
I'm kind of tired to tell user go and geerate "app specific" pass which bypasses MFA.
Specially when even default Windows 10/11 mail client supports MFA just fine and fucking faster than outlook.
This is the part of my job I hate : Administrating users, search how to make thier PC/MAC work (Btw Mac client does suppoort MFA ironicly).
Can I just get back to Infrastructure, redis caches, step in Q# ? .4
Does anyone have a better way to implement throttle on value changes in c# ?
I'm using this right now and I find it a bit "too much lines"
.Select(e => ((string)e.Value)?.Trim())
quisckSearch = x;
InvokeAsync(async () => await LoadFirstPage());
Dear uber eats drivers, I usually tip 4 to 6$. But if I see that you are doing another stop "in route" the tip is automaticlly 0.
I was a bit drunk.
But I wanted to improve security of the company. So, I went in Azure and activated “Security defaults” which forces MFA for all users in the company. (Because RH always forget to enable MFA for new employees, and I actually care about security)
Then I went in office 365 management and instead of resetting MFA for all users (Forcing everyone to redo MFA setup), I (by mistake) clicked on reset all passwords.
I tested my own account it was fine and went to sleep.
Got a call from CEO at 7am, all 30 employees cannot login in, cannot work.
What a shit show I made…
I have a call with CEO in about 2 hours, I don’t even know how to justify myself…
So children: don’t activate company wide options while drunk. Ever.23
Not bad vs 2022. Not bad !
I wanted to write that (really, not a joke).
Sometimes, auto complete just works.
april fools of Windows 11 :
Decided to connect me at 100 mbps instead of 2.5gbps to local network, I'm still looking how and why.31
People : We have cache problems, nothing works !
Me looking at 2 GB cache : Well, ok here you go : (Screen)5
VS2022 is an abomination......
I was forced to put the whole team on 2019 ansd remove all .net 6....
VS2022 is NOT USABLE AT ALL !
It's like vs2010 which we all skipped.
I'll wait for VS 2024 at this point...
can't work. "Changed a file" ? Oh wait i'll just recompile whole solution for 3 minmutes at EACH FUCKING FILE CHANGE.
VS2019 9Same project) : 0.2 seconds.8