Details
Joined devRant on 8/1/2019
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
-
Well, it's your choice: stay or leave.
Company does not care about you, like at all.
But, a fair warning, you need to embrace AI at some level (I'm liking using Cursor for everyday tasks, for example, it's still bad at coding, but it does help me do some of it faster).
Anyway, good luck with your decision, but you won't be able to avoid AI (in some form). -
All sand people terorist should be prrogibited from even enter USA or EU
-
@CoreFusionX I agree. For most people on this website :)
But I have seen plenty of times where people at work go for lunch without even locking their screens. It's a paid job for them, and they don't care if company data gets stolen. They think it's the company's responsibility to "protect" them.
That's why disabling all USB ports, except for specific device IDs for keyboards and mice, should be mandatory in all workplaces!
People (e.g., those working in accounting, sales, planning, etc.) don't care about these things. For them, a laptop is NOT a tool; it's an annoyance they are forced to use.
It will be radically different for dev teams, sys admin teams, or other technical teams. -
Yeo :p XSS is fun!
And your example is perfect: the user won't even ask themselves to log in another time.
It's still difficult: you need some original access to the platform.
I just finished a pen test of our platform (No XSS, but a couple of interesting things found).
But I DO know how to make an XSS hack of my own platform (It's just so obscure, pen testers won't find it). -
@HazarthNo, it is a bug.
Win+F11 is not F11!!
(Or Ctrl+F11)
But 85% of applications have the same bug because developers cannot possibly fathom that users MIGHT have other software using control keys.
Basically, 85% of all Windows developers are lazy and don't think enough. 9Same thing is present in Word, Excel, Visual studio, Notepad++ and I can cite many others). -
Nothing new here ;p You should look in leaked doc from CIA.
They can do SAME THING but with YVs lol ! Insane the doc ! (I don't have a link unfortunatly). -
@Root I would be open to mailing you some.
I always wonder how "good" weed detection is in mailing. With proper packaging and some anti-odor measures, could it go through the post from Canada to the USA?
(For research purposes only.)(Until figure out packaging and then money money money) -
@Demolishun Unfortunately, there is a missing comma between the two :) But I hear you!
-
Did they fix it?
Edi: Can't upload images anymore lol
Went from 128 SNAT to... 0.5 ! -
@retoor Ok, I simplified a lot.
‘Connection’ in this context is an outbound SNAT connection, which is different from opening a socket.
SD, even if our “blazor” server and “ApiServer” are both living inside the same Azure subscription, they use outside connection, which is limited.
More info:
https://learn.microsoft.com/en-us/... -
@iSwimInTheC Brief version, very simplified:
`services.AddScoped<HttpClient>()`
Vs what it SHOULD BE:
`services.AddSingleton<HttpClient>()` -
@retoor Outbound yes, but not "calls."
Connections.
So when a user connects to the platform, there is 1 connection created from the platform to the API server (I simplify a bit). During this user's usage (any API calls), everything goes through this 1 channel.
The limit was 128 channels opened, not 128 parallel requests.
The RIGHT solution is " Only have 1 chanel for ALL connected users. -
@Chewbanacas Oh yes, lol. When you just get a white page, you F5, still a white page, well, you notice.
Except for users who, by chance, were on a non-loaded server, and they were like, "Everything is fine!" -
Public transport is a service.
It costs money; it does not generate profit.
If they can match salaries with ticket sales, it's already good. -
WinUI has limitations, such as requiring store integration to share your tool.
So, WinForms is preferred by some! (Me writing a very custom app for myself and 1 friend. Total market cap : 2 people)
Fun fact after a couple of hours of searching:
You *can* modify the status bar of an app,
you just need to import DLLs you may not have heard of before.
[DllImport("dwmapi.dll")]
private static extern int DwmSetWindowAttribute(IntPtr hwnd, int attr, ref int attrValue, int attrSize);
private const int DWMWA_USE_IMMERSIVE_DARK_MODE = 20;
private const int DWMWA_MICA_EFFECT = 1029;
Never heard about this DLL before in my life. -
WinUI has limitations, such as requiring store integration to share your tool.
So, WinForms is preferred by some! (Me writing a very custom app for myself and 1 friend. Total market cap : 2 people)
Fun fact after a couple of hours of searching:
You *can* modify the status bar of an app,
you just need to import DLLs you may not have heard of before.
[DllImport("dwmapi.dll")]
private static extern int DwmSetWindowAttribute(IntPtr hwnd, int attr, ref int attrValue, int attrSize);
private const int DWMWA_USE_IMMERSIVE_DARK_MODE = 20;
private const int DWMWA_MICA_EFFECT = 1029;
Never heard about this DLL before in my life. -
Update ! I got my picvk up, while Amazon was saying for 72 hours "pick up is not possible"
-
It's a retry mechanisme ! Ahahaha
-
Update : Actually it rebooted with no problems. Win for Linux lol.
-
Wanna code Mars ? ;p
https://en.wikipedia.org/wiki/...
(Aaaaannnnd I'm pretty sure one actually did it already) -
@priyanshu-kun I would say it should not be possible. It's a security risk for user.
-
@Lensflare Oh and even now. So here is a question number 3. Which actually has a one line code solution. It can literally be resolved fast and "just with a bit" of overhead in 1 line of code .
ChatGPT weill produce something like 30+ lines of code and people will just copy paste it. This one I just retested. And it's still the case today.
Rotating numbers: Write a function which takes 2 integer parameters n and x. This function should return n numbers after x which are read the same after rotating them by 180 degrees. Examples:
101
609
1111111111
8
Additional information: digits: 2,3,4,5,7 cannot be “rotated”
Or small edit : The part when you "rotate" the number is a one liner. Still needs couple of lines of code :) -
@Lensflare So bare in mind. It was around 18 months ago. here is the FULL question defintion :
What is the output of the short program below? Explain your answer.
class Program
{
static String location;
static DateTime time;
static void Main()
{
Console.WriteLine(location == null ? "location is null" : location);
Console.WriteLine(time == null ? "time is null" : time.ToString());
}
}
And back in the day (Not true now), chatGPT was producing wrong response.
But out of 50ish people, 45 or more were wrong on this question. I strongly suspect copy/paste in chatGPT. Which really was not so great at the time -
@gitstashio Actually I'm limited by HDD speed for torrents. It's rarelly gores above 750 Mbits/s.
In my plex server I have 2 very old (more than 10 yars) HDDs a1TB each and 7200.
Also I found out the linux kernel or at least 10 Gbits driver has a memory leak.
If I let connexion run on 10 Gbits after couple of weeks I'm forced to reboot server Or maybe it's a card it self. I'm not saying I'm 100% certain it's linux, but if I switch port on router to 1 Gbit port, it does not happen.
So Most of the time i'm just running 1Gbits. To avoid rebooting server lol
But it's to know that if I want to host some app I can potentilly do it at home. -
That's because 95% of candidats can't answer a "hello world" type of question. So yeah, first screening line is to ask the dumb, easy question.
here is an example to you :
DateTime date;
Console.Writeln ( date == null ? "Null" : date.ToString())
Just ask what is the output ? 95% of 'people applying can't answer. -
** making a second roll of Indica in the past 2 hours : He get's it !
-
@gitstashio Still the case :)
-
@Ranchonyx YES. You are right.
My current stack, for the simpliest request ever (Which commes from cache, NOT ONE SQL querry) is a minimum of 30 ms.
This is overhead to make every thing generic, using reflexion a LOT etc.
But the average stats are around 300 ms per request. 9Some requests are VERY VERY slow and drive average, but these requests usually requires like 200 SQL requests).
And the server is perfectly capable to manage it in parallel mode.
So basiclly front end will do 10 to 20 querry at the same time. All 10 will get back in less than 300 ms. So total time to load all nedded data for dfron is 300 ms.
And with rest, sometimnes we needed to wait a retuern on a request to get somedata to do a second request REST.
Bref, just my experiance lol -
@Ranchonyx I agree. Same for me, finding time to learn a new techno is difficult.
But this one I do not regret investing time in !
My back end went from soemthing like 25 controller files REST and around 3K lines to only 1 controller, 1 entry point and like 700 lines of code total -
Ever heard of graphQL ? Seems like you are redoing the job already done