How come you know my IP !?
Disclaimer: I don’t represent KDE in any interaction with this account. I am just freeloading off of the kde.social server.
- 0 posts
- 66 comments
- ulterno@lemmy.kde.socialtoProgramming@programming.dev•Why I Prefer Exceptions to Error ValuesEnglish2 years
I was making a shared library at work and was recently asked to start throwing exceptions, because the users wouldn’t care to check my returned error and just continue with the empty returned data.
Well, now they will most probably have an empty catch block and continue doing what they did before.Nothing can fix a lazy worker.
- ulterno@lemmy.kde.socialto
Programmer Humor@programming.dev•Oopsie, Visual Studio License expired, so the build server stopped workingEnglish
2 yearsNext Up
Windows Server license on MS Windows Activation server has expired…
- 2 years
What if they got hashed by that cobalt system :P
- ulterno@lemmy.kde.socialto
Programmer Humor@programming.dev•The best love letters are written in C (apologies to the Rust fans)English
2 yearsAnd more de-obf:
#include <stdio.h> const char addarr1[] = { 0x40, 0x40, 0x0, 0x40, 0x40, 0x40, 0x40, 0x0, 0x40, 0x40, 0x40, 0x40, 0x0, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x0, 0x40, 0x40, 0x40, 0x0, 0x40, 0x0, 0x40, 0x40, 0x40, 0x40, 0x40, 0x0, 0x40, 0x40, 0x0, 0x40, 0x40, 0x40, 0x0, 0x40, 0x40, 0x40, 0x40, 0x0, 0x40, 0x40, 0x0, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x0, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x0, 0x40, 0x0, 0x0, 0x40, 0x40, 0x0, 0x40, 0x40, 0x0, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x0, 0x40, 0x0, 0x40, 0x40, 0x40, 0x40, 0x0, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x0, 0x0, 0x40, 0x0, 0x40, 0x40, 0x40, 0x0, 0x40, 0x0, 0x40, 0x40, 0x40, 0x40, 0x0, 0x0, 0x40, 0x40, 0x40, 0x0, 0x40, 0x40, 0x40, 0x40, 0x0, 0x40, 0x0, 0x40, 0x40, 0x0, 0x40, 0x40, 0x40, 0x40, 0x0, 0x40, 0x40, 0x0, 0x40, 0x40, 0x40, 0x40, 0x0, 0x40, 0x0, 0x40, 0x40, 0x40, 0x40, 0x0, 0x40, 0x40, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0 }; const char addarr2[] = { 0x9, 0x26, 0x20, 0x39, 0x2f, 0x35, 0x32, 0x20, 0x2c, 0x2f, 0x36, 0x25, 0x20, 0x2c, 0x25, 0x34, 0x34, 0x25, 0x32, 0x20, 0x29, 0x33, 0x2e, 0x27, 0x34, 0x20, 0x27, 0x29, 0x36, 0x25, 0x2e, 0x20, 0x29, 0x2e, 0x20, 0x34, 0x28, 0x25, 0x20, 0x26, 0x2f, 0x32, 0x2d, 0x20, 0x2f, 0x26, 0x20, 0x28, 0x29, 0x27, 0x28, 0x2c, 0x39, 0x20, 0x2f, 0x22, 0x26, 0x35, 0x33, 0x23, 0x21, 0x34, 0x25, 0x24, 0x20, 0x3, 0x2c, 0x20, 0x29, 0x33, 0x20, 0x29, 0x34, 0x20, 0x32, 0x25, 0x21, 0x2c, 0x2c, 0x39, 0x20, 0x21, 0x20, 0x2c, 0x2f, 0x36, 0x25, 0x20, 0x2c, 0x25, 0x34, 0x34, 0x25, 0x32, 0x3f, 0xa, 0x9, 0x20, 0x24, 0x2f, 0x2e, 0x27, 0x34, 0x20, 0x2b, 0x2e, 0x2f, 0x37, 0x2c, 0x20, 0x22, 0x35, 0x34, 0x20, 0x37, 0x28, 0x21, 0x34, 0x20, 0x9, 0x20, 0x24, 0x2f, 0x20, 0x2b, 0x2e, 0x2f, 0x37, 0x20, 0x29, 0x33, 0x20, 0x34, 0x28, 0x21, 0x34, 0x20, 0x9, 0x20, 0x2c, 0x2f, 0x36, 0x25, 0x20, 0x39, 0x2f, 0x35, 0x21, 0x20, 0x3c, 0x33, 0xa }; int main () { for (int i = 0; i < 152; i++) { char adder1 = addarr1[i]; char adder2 = addarr2[i]; char to_print = (char)adder1 + adder2; printf ("%c", to_print); } return 63; }I guess I should have kept the recursion and straightened it out in the next step, but now that it’s done…
The next step will just have an array of the characters that would be printed, so I’ll leave it here.
- ulterno@lemmy.kde.socialto
Programmer Humor@programming.dev•The best love letters are written in C (apologies to the Rust fans)English
2 yearsHere’s it with some amount of de-obfuscation:
#include <stdio.h> short i = 0; const long b[] = { 0xd60, 0x3200, 0x1ca8, 0x74e2, 0x9c, 0x66e8, 0x5100, 0x14500, 0x63b8, 0x49c6, 0xe0, 0x6200, 0x75e8, 0x57a6, 0xe8, 0x4300, 0x4500, 0x63b8, 0x49ea, 0xc6, 0x548e, 0x22, 0x75e8, 0x57a6, 0xc6, 0x2fae, 0x7486, 0x8a, 0xd72, 0x4f9c, 0x63c6, 0x4ea2, 0x809c, 0x66e8, 0x5100, 0x5c00, 0x71a2, 0x51b8, 0x4e9e, 0xc6, 0x6200, 0x70c4, 0x8022, 0x7d00, 0x439c, 0x63b8, 0x6ae0, 0x54c0, 0x47e8, 0xe2, 0x5192, 0x6fc4, 0x4900, 0x60e8, 0x100ca, 0x14fe8, 0x6000, 0x44e92, 0x6300, 0x57c4, 0xae, 0x4ecc, 0x62de, 0xc6, 0xafae, 0x70c4, 0x9e, 0x4ec6, 0x639c, 0x5100, 0x4ecc, 0x74a2, 0x9e, 0x54e8, 0x7100, 0x608a }; const long n = 9147811012615426336; long main () { if (i < 152) { char shifter; if (i % 2 == 0) { shifter = 8; } else { shifter = 1; } char adder1 = (b[i >> 1] >> shifter) & 64; char adder2 = (n >> (b[i >> 1] >> shifter)) & 63; char to_print = (char)adder1 + adder2; i++; main (); printf ("%c", to_print); } return 63; }Needless to say, the return value doesn’t matter any more. So you can change it to
0or69depending upon your preferences.
- ulterno@lemmy.kde.socialto
Programmer Humor@programming.dev•The best love letters are written in C (apologies to the Rust fans)English
2 yearsSome kind of Caesar cipher you made?
fIy uo rolevl teet rsi’n tigev nnit ehf ro mfoh gilh yboufcstadeC ,sii terlayla l vo eelttre ? Iod’n tnkwo ,ub thwtaI d onkwoi shttaI l vo eoy!u< 3%
- ulterno@lemmy.kde.socialtoProgramming@programming.dev•Which protocol or open standard do you like or wish was more popular?English2 years
Saving…
I made my first API at work last year (still making) and always saw myself looking for input on making a consistent way to return errors, with no useful input from the senior programmers or the API users. This is my second biggest problem, the first being variable and function names of course.
If I were to do anything related to HTTP, I now have something to look at.
- ulterno@lemmy.kde.socialtoProgramming@programming.dev•Which protocol or open standard do you like or wish was more popular?English2 years
The screenshot is of the website ietf.org , which doesn’t seem to be markdown.
- ulterno@lemmy.kde.socialtoProgramming@programming.dev•Which protocol or open standard do you like or wish was more popular?English2 years
Also, you can sort by ascending file names
- ulterno@lemmy.kde.socialtoProgramming@programming.dev•Which protocol or open standard do you like or wish was more popular?English2 years
7 digit years feels way to optimistic, but I’ll be rooting for us.
- ulterno@lemmy.kde.socialtoProgramming@programming.dev•Which protocol or open standard do you like or wish was more popular?English2 years
Ours is around 10°C to 40°C, or 15°C to 30°C depending upon your tolerances, so I guess that’s it.
- ulterno@lemmy.kde.socialtoProgramming@programming.dev•Which protocol or open standard do you like or wish was more popular?English2 years
my sense of temperature is much different than someone from somewhere warm
That’s probably the reason for this preference.
10°C for me means my PC doesn’t heat up the room enough and I need a heater. 32°F and I will be shoving my feet in the heater.
- ulterno@lemmy.kde.socialtoProgramming@programming.dev•Which protocol or open standard do you like or wish was more popular?English2 years
I use °C and I feel the need to use the places after the decimal. Also, I feel nothing wrong about it.
Also, I use °F for body temperature measurement and need to use the places after the decimal and feel fine with it.
Also, when using °C for body temperature, I still require the same number of decimal places as I require for °F.
I am not saying that °F is not useful, but I am invalidating your argument.
- ulterno@lemmy.kde.socialtoProgramming@programming.dev•Which protocol or open standard do you like or wish was more popular?English2 years
I don’t know much about “mostly”, but check out the channels on the server kde.org, where they do discussions regarding visual design, development, documentation and all that good stuff.
Sometimes, if you mostly find what you don’t like, you might be looking at it from the wrong angle. For instance, I found a few, very desirable communities on Reddit, so much that I am finding it hard to leave. And that is the few that I searched for. Only realised the toxic communities, when I read others’ rants on it [1].
and from the recommendations. Definitely don’t checkout the Reddit recommended communities or you will get said toxic stuff. ↩︎
- ulterno@lemmy.kde.socialtoProgramming@programming.dev•Which protocol or open standard do you like or wish was more popular?English2 years
deleted by creator, who realised their misunderstanding
- ulterno@lemmy.kde.socialtoProgramming@programming.dev•Which protocol or open standard do you like or wish was more popular?English2 years
Depends on HTTP 2.
Doesn’t work from the web.
Am I the only one who is weirded out? Requiring a web server for something and then requiring another server if you want it to actually work on the web?
How expensive do people want to make their deployments?
- ulterno@lemmy.kde.socialtoProgramming@programming.dev•Which protocol or open standard do you like or wish was more popular?English2 years
JSON5
Nice. I mostly use Qt JSON and upon reading the spec, I see at least a few things I would want to have out of this, even when using it for machine-machine communication
- ulterno@lemmy.kde.socialtoProgramming@programming.dev•Which protocol or open standard do you like or wish was more popular?English2 years
That’s “country-ist”. Nothing to do with the genes of people living over there.

The wall of text was the error message.
I just prefer using the parsed outputs from IDEs which also take you to the line of code on click.