WTF Bites
-
@LB_ At higher optimization levels, the code produced by compilers starts to look really alien. It ends up fast, but really hard to match back to the input. This is even more true for languages other than C and C++.
-
@WB_ At highew optimization wevews, the code pwoduced by compiwews stawts to wook weawwy awien. It ends up fast, but weawwy hawd to match back to the input. This is even mowe twue fow wanguages othew than C and C++.
So in other words, giving the machine back its language?
-
-
@levicki said in WTF Bites:
return strstr(TruthyValues, Value) != nullptr ? true : false;
This is stupid.
return strstr(TruthyValues, Value) == nullptr ? false : true;
Much better.
-
@levicki said in WTF Bites:
return strstr(TruthyValues, Value) != nullptr ? true : false;
This is stupid.
return strstr(TruthyValues, Value) == nullptr ? false : true;
Much better.
get rid of that ternary entirely why don't you?
return strstr(TruthyValues, Value) != nullptr;
even better!
-
@levicki said in WTF Bites:
get rid of that ternary entirely why don't you?
And then other "developers" complain the code is unreadable?
if they don't get how booleans work to the point they need that ternary to understand the code..... do I really want them on my team?
I thought not.
-
@levicki said in WTF Bites:
And then othew "devewopews" compwain the code is unweadabwe?
No need! I have a nifty free encoder that will ensure it!
-
get rid of that ternary entirely why don't you?
return strstr(TruthyValues, Value) != nullptr;
even better!
Meh.
return !!strstr(TruthyValues, Value);
Shortest amount of extra fluff to shut up VS about the conversion to bool (IIRC).
-
@Zerosquare said in WTF Bites:
It's still not fast enough. What we really need is a cluster of machines running a GPGPU-accelerated XML parser.
:but_why.pptx:
Cool. Now do a fully standards compliant C++ compiler on the GPU.
-
@Tsaukpaetra said in WTF Bites:
No need! I have a nifty free encoder that will ensure it!
You two are made for each other.
-
Coow. Nyow do a fuwwy standawds compwiant C++ compiwew on the GPU.
How far along was that CUDA thing?
Pretty soon we won't need a CPU at all! Just a PCIe bus to connect a USB-C controller (if for some reason you want to plug in a keyboard or something), and you've got yourself a computer!
-
-
get rid of that ternary entirely why don't you?
Not sure if whoosh or anti-humor.
-
get rid of that ternary entirely why don't you?
Not sure if whoosh or anti-humor.
Kyon?
-confused-
-
@Tsaukpaetra said in WTF Bites:
Pretty soon we won't need a CPU at all!
Not quite no CPU at all, but the footprint of the Co-Processing Unit needed to drive the main General Processing Unit can be minimized quite a bit:
https://youtu.be/6MqINkcg1RE?t=1m28s
-
@levicki said in WTF Bites:
Look at the TinyXML-2 code.
How about no. I don't exactly have a burning desire to parse XML at all. If for some reason I need to do that, I'm certainly not going to peek behind the curtain at the gory entrails of the implementation. I value my sanity too much for that.
-
I've been having issues joining Webex meetings and decided to reinstall the desktop app to try and fix it.
Cisco provide both an uninstaller and manual uninstall instructions.I tried the uninstaller and it told me it was successful. I rebooted. Webex Meetings launched itself when I logged in.
I tried the uninstaller again and it told me it was successful again. I tried the manual instructions. I rebooted. Webex Meetings launched itself when I logged in.It works now at least but still.
-
@Tsaukpaetra said in WTF Bites:
Pretty soon we won't need a CPU at all!
Not quite no CPU at all, but the footprint of the Co-Processing Unit needed to drive the main General Processing Unit can be minimized quite a bit:
https://youtu.be/6MqINkcg1RE?t=1m28sI'm actually in a personal project to mount one of those inside a 4-drive enclosure as a micro-NAS!
-
WTF of my day: So, this reverse tunnel/proxy/whatever does not work with Moodle.
I can reach the server just fine, I can serve files just fine, PHP runs fine (for the dubious values regarding PHP).
What does not work?
Easy: The goatfuckers decided that they care about the URL. Why? Who fucking knows. What for? I don't fucking know. But it's how they go about it that's absolutely precious:
So, you go to this config page. It presents you with three text fields - two of which are greyed out for unfathomable reasons. And one of those greyed out ones states:
http://localhost
Even though the address bar clearly states differently. And if you change that value later in
config.php
you get "Too many redirects" or some shit. And if you don't you get redirected tohttp://localhost/admin.php
later on. Lovely.WHY DO THESE PEOPLE FUCK AROUND WITH THE URL?
-
WHY DO THESE PEOPLE FUCK AROUND WITH THE URL?
Zoneminder also fucks with the URL. Which is lovely when you port-forward and then it immediately redirects you away for no reason whatsoever to the wrong port.
-
@Tsaukpaetra said in WTF Bites:
I'm actually in a personal project to mount one of those inside a 4-drive enclosure as a micro-NAS!
With or without the RTX2080? ;-)
The LattePanda seems pretty nice (the form factor is really nice). But, I'm currently considering a Udoo Bolt, mainly because I can't get hold of an AMD CPU or GPU, and I'd like to run some tests on those (well - potentially eventually run regular tests even). The Udoo would solve both of those problems in one relatively small device.
-
@Tsaukpaetra said in WTF Bites:
I'm actually in a personal project to mount one of those inside a 4-drive enclosure as a micro-NAS!
With or without the RTX2080? ;-)
The LattePanda seems pretty nice (the form factor is really nice). But, I'm currently considering a Udoo Bolt, mainly because I can't get hold of an AMD CPU or GPU, and I'd like to run some tests on those (well - potentially eventually run regular tests even). The Udoo would solve both of those problems in one relatively small device.
Without. There's room in this enclosure, but not enough for anything larger than a cut-in-third mini ITX with no fan. And basically nobody offers things that small that's x86-64 compatible...
-
@Tsaukpaetra said in WTF Bites:
I'm actually in a personal project to mount one of those inside a 4-drive enclosure as a micro-NAS!
With or without the RTX2080? ;-)
The LattePanda seems pretty nice (the form factor is really nice). But, I'm currently considering a Udoo Bolt, mainly because I can't get hold of an AMD CPU or GPU, and I'd like to run some tests on those (well - potentially eventually run regular tests even). The Udoo would solve both of those problems in one relatively small device.
I has the bolt. is nice piece of kit.
note: you can't use secure boot on windows (at least with the BIOS version that came with mine) because it comes with factory UEFI keys that lock it to using Windows 10 Edu, somehow with a particular microsoft account.... very weird. non secure book works flawlessly.
also if you get it. replace the fan that comes with it with something like a noctua..... the default fan is LOUD
and it's not a VEGA GPU (but it does have the architecture) so no AMD Link for you if that's what you wanted.
other than that is really nice bit of kit (if probably overpriced for the performance you actually get, if you don't need the nanoITX form factor)
-
*runs a thing at 60FPS*
Oh, you want this window focused now?
*runs the thing at 30FPS* hm, if the window is on the other screen, it runs at 60FPS whether it's focused or not
-
*runs a thing at 60FPS*
Oh, you want this window focused now?
*runs the thing at 30FPS*Sounds like someone implemented a caret in JS.
-
note: you can't use secure boot on windows (at least with the BIOS version that came with mine) because it comes with factory UEFI keys that lock it to using Windows 10 Edu, somehow with a particular microsoft account.... very weird. non secure book works flawlessly.
It's very likely going to run some linux anyway, so that's not an issue.
also if you get it. replace the fan that comes with it with something like a noctua..... the default fan is LOUD
Hmm. Ok - thanks, I'll keep that in mind if I decide to go for it (a review mentioned something similar). Is it standard AMD-somesocket compatible?
I have a homemade case "design" in mind, so it's not like anything can go wrong on the thermal front... Note to self: Buy fire extinguisher.
and it's not a VEGA GPU (but it does have the architecture) so no AMD Link for you if that's what you wanted.
What is AMD Link? [quick google] Nevermind that. Their GPU should support Vulkan 1.1, that's pretty much all I need. (Should be just the standard drivers, right?)
-
Is it standard AMD-somesocket compatible?
uhhhh........ standard compatible.... but not AMD something or other.
the included fan is 60x60mm 3 pin 5 volt fan
the Noctua NF-A6x25 5V will fit and work fine, but is taller so won't fit in the official case (not that that sounds like it'll be an issue for you)
-
WHY DO THESE PEOPLE FUCK AROUND WITH THE URL?
Usually because it is too hard to keep track of how many
..
s are needed to form proper relative URL (for which the server-relative path should be enough), but I think there are some cases where you simply can't use a relative URL at all.
-
Ansible has “excellent” error reporting. For example:
TASK [Gather Cluster facts] **************************************************** fatal: [10.1.2.3]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 10.1.2.3 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/home/openshift/.ansible/tmp/ansible-tmp-1573482085.51-17601529481442/AnsiballZ_openshift_facts.py\", line 114, in <module>\r\n _ansiballz_main()\r\n File \"/home/openshift/.ansible/tmp/ansible-tmp-1573482085.51-17601529481442/AnsiballZ_openshift_facts.py\", line 106, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/home/openshift/.ansible/tmp/ansible-tmp-1573482085.51-17601529481442/AnsiballZ_openshift_facts.py\", line 49, in invoke_module\r\n imp.load_module('__main__', mod, module, MOD_DESC)\r\n File \"/tmp/ansible_openshift_facts_payload_3DoMB3/__main__.py\", line 16, in <module>\r\nImportError: No module named ipaddress\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
- Why the can't it format the error object so you can see what is going on?
- It is an installation script. It should start with installing whatever it needs to execute the later steps.
- It might have actually tried, failed because sudo wasn't working, swallowed the error and tried to continue, or it might not have tried; I don't know.
- This is kind of representative of the overall quality of this “playbook” for installing OpenShift. For 's sake, it's all RedHat products; I guess expecting them to work well together is naîve.
-
Today's WTF: Blocked phone numbers can still leave voicemails! I hate robocallers!
-
FUCK EVERYONE WHO USES UNICODE MATHEMATICAL SYMBOLS FOR FUNCTION NAMES!!!!!
-
FUCK EVERYONE WHO USES UNICODE MATHEMATICAL SYMBOLS FOR FUNCTION NAMES!!!!!
so using emoji for function names is still a-ok, yeah?
-
Today's WTF: Blocked phone numbers can still leave voicemails! I hate robocallers!
You get voicemails??? Lucky!
-
FUCK EVERYONE WHO USES UNICODE MATHEMATICAL SYMBOLS FOR FUNCTION NAMES!!!!!
so using emoji for function names is still a-ok, yeah?
If it describes the code well, why not.
Filed under: U+1F4A9
-
@Tsaukpaetra said in WTF Bites:
Today's WTF: Blocked phone numbers can still leave voicemails! I hate robocallers!
You get voicemails??? Lucky!
It's just the last 5 seconds or so of a prerecorded message. I can't even tell what it's about since most of it is over by the time the voicemail begins recording.
-
@mott555 The past few days I've been getting blank (with background noise) five second messages from one number that Google identified as spam.
-
FUCK EVERYONE WHO USES UNICODE MATHEMATICAL SYMBOLS FOR FUNCTION NAMES!!!!!
But at least that leaves the space of people mentioned in books free for variable names.
mickeyMouse = franzKafka * jesusChrist + waldo / minaHarker;
-
The fact that .NET still has no built-in function to generate random strings, and other random stuff, is bizarre.
-
@anonymous234 said in WTF Bites:
The fact that .NET still has no built-in function to generate random strings, and other random stuff, is bizarre.
What's really funny is I just happen to be staring at some .NET code that makes heavy use of
System.IO.Path.GetRandomFileName()
to generate random strings.
-
makes heavy use of System.IO.Path.GetRandomFileName() to generate random strings
-
@TimeBandit said in WTF Bites:
makes heavy use of System.IO.Path.GetRandomFileName() to generate random strings
I also failed to mention it's my code.
-
@TimeBandit said in WTF Bites:
makes heavy use of System.IO.Path.GetRandomFileName() to generate random strings
I also failed to mention it's my code.
-
@TimeBandit said in WTF Bites:
makes heavy use of System.IO.Path.GetRandomFileName() to generate random strings
I also failed to mention it's my code.
Someone's gotta pick up the slack and create more TRWTF's to replace the two weeks of forum data we lost!
-
@levicki said in WTF Bites:
FUCK EVERYONE WHO USES UNICODE
MATHEMATICAL SYMBOLSFOR FUNCTION NAMES!!!!!
Because real programmers only speak English.
-
-
FUCK EVERYONE WHO USES UNICODE MATHEMATICAL SYMBOLS FOR FUNCTION NAMES!!!!!
so using emoji for function names is still a-ok, yeah?
If it describes the code well, why not.
Filed under: U+1F4A9
Yes, that is descriptive, but having the same name for every function in the codebase is a bad idea.
-
@pie_flavor said in WTF Bites:
@levicki said in WTF Bites:
FUCK EVERYONE WHO USES UNICODE
MATHEMATICAL SYMBOLSFOR FUNCTION NAMES!!!!!
Because real programmers only speak English.
Look at your keyboard. How many character-typing keys with non-ASCII symbols do you see? I don't care if it's in German or Cambodian, but I do care if I can write it. Point-and-click programming is very tedious.
-
@Gąska WinCompose
-
@pie_flavor hit WinCompose and nothing else. Did anything get written?
-
@Gąska no? What's your point? You can't push > with only one keypress either but nobody screams about that.