What is this fuckery in my thread, don't make me chmod o-w
this whole thing!
Besides, POSIX permissions are clearly superior because you can chmod 007
a file.
Filed under: Licence to be killed
What is this fuckery in my thread, don't make me chmod o-w
this whole thing!
Besides, POSIX permissions are clearly superior because you can chmod 007
a file.
Filed under: Licence to be killed
Code, I know you're trying to help, but now you're just bullshitting me:
Really? It does? Okay, sure, it's not as if this is just something I tacked onto the end of my manifest.json
file to disable it temporarily for testing purposes...
@ben_lubar said in For security purposes, customer service needs to see your password:
@Onyx said in For security purposes, customer service needs to see your password:
I need to know or have a note of at least one password, because I do need to be able to get my KeePass database from the backup somehow in the case everything goes TITSUP at some point and I lose the local files.
Why not just have a physical key for that? Store your backup "password" on a USB stick or something and then put it in a fireproof safe or something.
Password for what? Recovery email? Because something in a safe ain't gonna sync with my main database. Also, I have logins for servers that don't really have "send recovery email" option, it's more of a "contact the IT department in that company and ask for reset". If I need to access any of it when not at home/at the office it's way easier to be able to access my database file and use a portable version of KeePass to read it than anything else.
@dcon said in For security purposes, customer service needs to see your password:
Or have someone else convince the phone company that you lost it and the number transferred to a new phone. (And then my coworker had to change passwords on all his bank/credit cards. And change his phone number because the telco couldn't reassign it back.)
Well, they still need to know the password, but since it's not "FirstpetnameYearofbirth", and Google has at least some bruteforce prevention in place, good luck.
@Gąska said in For security purposes, customer service needs to see your password:
@sloosecannon if you could remember it, I'd either look for a better password generator, or a psychiatrist.
I need to know or have a note of at least one password, because I do need to be able to get my KeePass database from the backup somehow in the case everything goes TITSUP at some point and I lose the local files.
In my case it's my Google account password. I do have 2FA enabled, though (INB4 that bites me on the ass at some point when I manage to lose my phone or something).
@ben_lubar said in The nerdy jokes thread (bonus original title mode!):
Expanding on the old type conversion is borked factoid:
@blakeyrat said in Cleaning source code folders for uploading:
@Onyx In Visual Studio terms, it means include the
.sln
and.proj
files, but don't include the.user
files.I dunno how other IDEs do it.
We use VSCode but .vsproj
(or whatever they are called) don't really make sense given how we develop so even those are out. I don't upload the .user
file for the C++ portion of the stack, but I do upload the .pro
files because they are used by the build system as well, even if the IDE isn't involved at all (I assume that's how building works with .sln
files as well?).
The reason I asked about stuff like .eslint
which is IDE-agnostic is it's kind of an edge case, so I'm wondering what people do with those. We upload them, and if the IDE/editor you're using is configured to use eslint it will use it, otherwise it's just sitting there and bothering no one, imho.
@dkf said in Cleaning source code folders for uploading:
I recommend never uploading IDE configurations as such, but rather just those files that other people could reasonably use without modification.
I guess stuff like .eslint
files that include the style rules and such are in that latter group, for example. Or were you thinking about something else?
@Carnage said in EU schedules a task to get a lock on Daylight Saving Time:
My personal opinion is that everyone should just use UTC. But skipping DST is at least an improvement.
That ehe EU is being retards about a stupid idea they inflicted on all it's members in the 80ies is not entirely unexpected. DST is dumb in all the ways.
And since UTC == GMT, we should just remain on the "winter time".
I don't even understand why that's something that has to be decided upon, it's the most logical decision for anyone who looks at it for more than 10 seconds.
Or, 3610 seconds, if it's winter.
@dkf said in I'm sure the Gamergaters will turn this thread into garbage, but until then I have to post this:
No, you need to find someone with a glowing
!
over their head nearby first.
That shit always scares me.
https://thumbs.gfycat.com/AcidicHollowAmericancrayfish-size_restricted.gif
/* snip */
} else if($type == 'email') {
if(preg_match('/.+@.+\..+/', $val)) { // Close enough for government business
$val = (string)$val;
} else {
$val = null;
}
}
/* snip */
If I have to burn in hell, so be it, it's close enough for the shit this will have to handle. Anything outside of that would probably explode the minds of people using it.
Since we also discussed this on IRC:
[11/09/2018 15:53:33] <aygeeplus> won't that also work if you resize your window too narrowly?
[11/09/2018 15:53:38] <aygeeplus> why do web devs do this
[11/09/2018 15:54:57] <Onyx47_> that will do it too
[11/09/2018 15:55:13] <created> It's just responsive design
[11/09/2018 15:55:24] <Onyx47_> it's not even that
[11/09/2018 15:55:42] <Onyx47_> I forgot to mention, I had to reload it to switch to desktop mode after resizing
[11/09/2018 15:55:53] <aygeeplus> un-responsive design
[11/09/2018 15:55:59] <created> Well one-way responsive design, then
[11/09/2018 15:56:11] <aygeeplus> plus, you should advertise your mobile app as a toaster. period.
[11/09/2018 15:56:20] <created> Or does it not switch desktop->appstop either?
[11/09/2018 15:56:23] <aygeeplus> don't fullscreen your dumb mobile app
[11/09/2018 15:56:42] <aygeeplus> notification
[11/09/2018 15:57:01] <Onyx47_> well, there is no mobile version of the page
[11/09/2018 15:57:05] <Onyx47_> it's unusable
[11/09/2018 15:57:23] <Onyx47_> funny thing is, the "old design" is half usable
[11/09/2018 15:57:45] <Onyx47_> the player is in the sidebar so at least if you start some music, you can control it
[11/09/2018 15:57:59] <aygeeplus> we have react native and other bonkers shit like electron
[11/09/2018 15:58:05] <Onyx47_> in the "new design" it whined at me to apply, the player stretches along the bottom
[11/09/2018 15:58:21] <Onyx47_> it needed at least something liek 1000px to show all the buttons
[11/09/2018 15:58:33] <Onyx47_> because what's scaling?
[11/09/2018 15:58:35] <aygeeplus> you may as well have app=webpage
[11/09/2018 15:59:01] <Onyx47_> the funny thing is, their dekstop "app" is Electron
[11/09/2018 15:59:11] <aygeeplus> ohhhh my god
[11/09/2018 15:59:18] <Onyx47_> mobile app is probably HTML as well
[11/09/2018 15:59:24] <Onyx47_> so what the fuck, really?
[11/09/2018 16:00:40] <aygeeplus> seriously why do this
[11/09/2018 16:00:53] <aygeeplus> it's like you cut off your own leg to install a machine gun and forgot the machine gun
@mott555 said in 300px too narrow:
I seem to run into a lot of websites that always assume you're on mobile even at 4K.
Nah, that's just "modern" web design — huge images and slides, containing at most 3 words next to a generic icon. If you go down 17 menu levels, you might find a page with a more than a paragraph of text.
And menus always anchored at top. Because why have a menu on the side, those went the way of the dinosaur at just about the same time our aspect ratios started losing more and more vertical space (I'm still pining for the days of 16:10 screens, and you'll only convince me to use anything wider than 16:9 only by putting my balls in a vice).
For those who remember the great 3px too narrow wars, you may also remember I was against trying to use User-Agent sniffing and reading variables from the browser to determine how large the screen is. Not because that would be a bad idea, it's a great idea, but because browsers and browser makers are assholes, which makes webdesigners being assholes, which makes browser makers keep the old shit in for backwards compatibility later down the line (while still being assholes)...
But that was the argument for laying out the page. Not... well, not this
This is me trying to open Deezer (it's like Spotify, but works in Moonlandia) in a sidebar in Vivaldi. On desktop. And it's telling me to download the app.
Are you fucking telling me that the viewport size is the only fucking thing you're using to detect the device when deciding whether to tell me to download a fucking mobile app???
And no, it's not telling me to download their "native" Electron application for my OS (if there even is one for Linux, didn't check):
Oh, small screen and Chromium? Probably Android, here you go bud!
Goddamnit
EDIT: I forgot to mention: it also wouldn't change after I made it wider, I had to reload it manually (or force desktop mode in Vivaldi, thank fuck it has that option).
@Applied-Mediocrity said in Assembly Mnemonics You Didn't Know About:
TESTNFA - test if not Friday afternoon
You jest, but... https://wiki.asterisk.org/wiki/display/AST/Application_GotoIfTime
@Applied-Mediocrity said in Assembly Mnemonics You Didn't Know About:
And, of course:
WTFENTER
WTFEXIT
WTFFNF
I always knew 1366x768 was a weird not-really-16:9-but-close-enough resolution, but I really didn't need it that precise, game...
@blakeyrat said in Dawn: the SUBLEQ OS by Geri:
But what puzzles me is how do you keep mouse movement smooth in a cooperative multitasking environment without interrupts?
WaitNextMouseMove()
@blakeyrat said in Dawn: the SUBLEQ OS by Geri:
@Onyx Wait, did ScoliosisRHEA get banned? When did that happen?
I've no idea, I'm as confused as you are, from his ( @Schol_R_LEA 's) posts in that thread I linked, I understood that the original author was the one who got banned? On OSdev thing of course, not here. So... Not sure if the OP was made by the original author, someone who took over the project, or original author pretending to be someone who took over the project?
Fuck knows, I CBA to investigate that deeply, I'm here just for the
@blakeyrat said in Dawn: the SUBLEQ OS by Geri:
Come to think of it, I do think someone's posted this here before, because it's starting to look familiar:
Yeah, @PJH even linked to it in the OP, but someone edited it out. I make no buttumptions.
Either way, for posterity: https://what.thedailywtf.com/topic/24469/geri-the-subleq-guy
@PJH said in Dawn: the SUBLEQ OS by Geri:
@wger4 said in Dawn: the SUBLEQ OS by Geri:
@witchdoctor With this speed, i will be able to find and fix every typo.
.. and remove every moderator's comment...
MODUSER ABUSE!
@Jaloopa Last time I checked, the obvious ones worked fine. Though I think that overriding stuff like Ctrl+s from JS was still borked, as in the event got caught but preventDefault
did bubkus so it triggered the browser's Save
function as well. This might've been fixed, I'm too lazy to check right now though.
@Atazhaia said in `s/www\.//g`:
@antipattern Just wait until Chrome removes the ability to toggle that setting, because who'd want a customizable web browser?
sheds yet another tear for Opera 12
If you want customizable, your best option seems to be Vivaldi at this point. Which is an Electron based browser. Make of that what you will.
@dkf said in A fool and his not-really-compiler are soon parted:
e.g., because they want to match a specific environment at a customer
Oh come on, when has anyone required a case for anything like that? It says it's multiplatform already, what else do you want?
@hungrier said in A fool and his not-really-compiler are soon parted:
just pipe this Serbian url into shell
It only works on Macs. Then it sorts the entire filesystem.
@JBert said in The Pizza Store With the Most Slices in the World:
@Atazhaia said in The Pizza Store With the Most Slices in the World:
Every. Single. Letter. is its own .png. They dont even reuse the images!
I told you so in the OP:
all the characters are separate images
I think we all kinda assumed there's A.png
, not A_0_1.png
, A_0_2.png
...
@JBert said in The Pizza Store With the Most Slices in the World:
We could send them a proposal to use a CDN.
Filed under: Maybe we could even group some characters into 1024x1024 spritemaps, that way it'll load quicker
Site where all the text is written using Discourse default avatars, GO!
@Zecc said in How can this be so wrong??? (AKA the Discopocalypse thread):
@izzion said in How can this be so wrong??? (AKA the Discopocalypse thread):
Mmmmm, queries with multiple self joins.
For the benefit of people from the future, here's @izzion's current avatar:
He loves him some SpaghettiQL
@ben_lubar said in How can this be so wrong??? (AKA the Discopocalypse thread):
/uid/141534 is banned until 29395-08-10 15:39:06.306 (UTC)
/uid/140925 is banned until 2739923-07-19 15:38:41.98 (UTC)
No longer welcome here.
@xaade said in Well done, Blizzard, even *you* are officially promoting gambling:
@Onyx said in Well done, Blizzard, even *you* are officially promoting gambling:
Also, that's an example of a game, free to play no less, that takes all of this stuff seriously and cares for the customers more than for their bottom line:
No it isn't.
It's mandatory in other countries and they just don't bother to remove it.
are you on about? AFAIK Warframe has no lootboxes anywhere in it, and, to my knowledge, never did. Apart from that one thing described in TFA. And they removed it of their own volition. And that one, well:
drove studio Digital Extremes to quickly rethink the feature and patch it out with Hotfix 14.0.5 in the summer of 2014, a year after the game’s official launch.
That was in 2014. Years before this whole legislation thing ever happened.
@JBert said in Well done, Blizzard, even *you* are officially promoting gambling:
I wonder if there aren't some games with a built-in timer.
It won't straight out kick you out, but Warframe has this:
Also, that's an example of a game, free to play no less, that takes all of this stuff seriously and cares for the customers more than for their bottom line:
(Sorry for Kotaku out of all places, seemed to be the best source at a glance)
They don't even have lootboxes at all. And they seem to be doing just great financially.
Man, if only companies like Activision-Blizzard and EA had enough funds and developers to make compelling games that would make money without trying to manipulate people... Sadly, that's highly unlikely, poor bastards are still operating from their mother's basements and barely make the ends meet...
ETA: I don't even play Warframe, so I'm not fanboying here. I saw the appeal, just didn't grip me as much. Maybe because I kept playing solo.
@MrL said in A critical reflection on GDPR:
They added the spinner because it looks professional. It disappeared so quickly it wasn't visible, so now it's set to spin for
1045-90 seconds always.
FTFY. Because that's about how long it took.
HOW MUCH SHIT ARE YOU STORING IF YOU NEED A PROGRESS SPINNER TO SAVE ALL THE PREFERENCES?
That's Forbes, btw.
@Magus said in Well done, Blizzard, even *you* are officially promoting gambling:
@pie_flavor I'm pretty sure they aren't the first to ban lootboxes. Just the first one to make you angry by banning lootboxes you like. By the most ragingly evil corporation there is.
You made EA sad...
Status: Trying to find info on how QNetworkAccessManager
handles 100 Continue
replies on HTTP requests:
Goddamnit computer, I said 100, not 500!
Stupid thing.
@PleegWat Seems to be working fine so far! Hopefully it doesn't get obliterated by Windows like the stuff I installed for Alt-dragging and similar tends to be.
Thanks!
I know there's multiple solutions floating around, but I'm guessing at least one of you bastards are using such a thing, so, anyone have any suggestions on what to install?
My only requirements are that it works on Win10 and has sane defaults, or is configurable enough to fix the insane ones. For reference, I currently have it set up something like:
Right Ctrlc<= č
(the opposite order of letter - accent input is also fine)
on my Linux machines, I'd like to have something like that on Windows as well.
qint64 QIODevice::readLine(char *data, qint64 maxSize)
This function reads a line of ASCII characters from the device, up to a maximum of maxSize - 1 bytes, stores the characters in data, and returns the number of bytes read. If a line could not be read but no error ocurred, this function returns 0. If an error occurs, this function returns the length of what could be read, or -1 if nothing was read.
That's standard behaviour of all
read
andfread
functions throughout the Universe.It needs to mention where it stores the error code though, so the documentation is somewhat .
This was likely a cause of a bug I was hunting for. So, let me get this straight:
- if it reads a line without an error, it returns the number of bytes read
- if it reads a line, but there's an error, it still returns the number of bytes read
- if it can't read a line, but there was no error, it returns 0
- if ti can't read a line, but there is an error, it returns -1
Whose demented brainchild is this? What in the holy fuck?
Thompson's or Richie's, probably. Exists at least since the first version of Unix.
Anyway, changed
while(socket->readLine(buf, MAX_LINE_SIZE))
towhile(socket->readLine(buf, MAX_LINE_SIZE) > 0)
. Now, we hope. Because fuck if I can figure out why it fucking fails in this particular case (on an install that's been there for like 2 years and suddenly decided it's now the time to become a dick).You shouldn't indiscriminately end the loop on error, because certain notable non-errors, in particular
EAGAIN
andEINTR
, are considered errors for this purpose. You really need to add the case for -1 and at least log the condition, otherwise you'll never know.
I did add a case in the end. Also, fuck knows what's happening in there, and I would expect the readyRead
signal to emit again in such a case, so it should handle it fine either way (I have a buffer that persists between slot invocations).
I just expected more from Qt. Also, if it told you anything about errors being stored anywhere I'd be fine and whine less, but unless I need to read the entire docs for fucking QAbstractIODevice
, or what the fuck ever lower level than that, I haven't seen it referenced in there.
@anonymous234 said in Valve ports Bejeweled 2 Deluxe to Linux:
I mean, what system calls do most games even depend on? Read files, read mouse and keyboard, draw 3D graphics, open network sockets... what else?
Audio. Audio can be a PITA.
@pie_flavor said in Laptop bag recommendations?:
Dunno what you need a specially designed bag for.
I got a lot of comments that it "looks unprofessional".
Yes, same fucking argument people use for shoe laces. Apparently things that most people find more convenient and even superior in some ways (for example, using a backpack means I don't have to lug it around as a briefcase so my hand gets tired sooner, or have a strap that keeps digging into one of my shoulders because of poor weight distribution) is "not for adults".
Fucking humans.
@Jaloopa said in A bot that talks to you about your pictures:
@Onyx Typed. I was trying it in an incognito window yesterday, tried in a normal one today and after that screenshot I changed to https to see if that helped but nothing
Looks like there are socket requests timing out
Ah. NodeJS.
@Jaloopa did you paste or type? They seem to capture input
events and generate stuff as the text changes, but pasting doesn't trigger it.
Fucking webapps and their developers. Me included.
qint64 QIODevice::readLine(char *data, qint64 maxSize)
This function reads a line of ASCII characters from the device, up to a maximum of maxSize - 1 bytes, stores the characters in data, and returns the number of bytes read. If a line could not be read but no error ocurred, this function returns 0. If an error occurs, this function returns the length of what could be read, or -1 if nothing was read.
This was likely a cause of a bug I was hunting for. So, let me get this straight:
Whose demented brainchild is this? What in the holy fuck?
Anyway, changed while(socket->readLine(buf, MAX_LINE_SIZE))
to while(socket->readLine(buf, MAX_LINE_SIZE) > 0)
. Now, we hope. Because fuck if I can figure out why it fucking fails in this particular case (on an install that's been there for like 2 years and suddenly decided it's now the time to become a dick).
@Choonster okay, but they still link to Doom 2 and Ultimate Doom regardless.
I might try to install Doom (2016) through it, actually. And in Windows. And in my Windows VM with VGA passthrough. Wonder what performance is gonna look like comparatively. Though I'd need to fuck around with drivers to get my GTX 1060 working on Linux again instead of it being in passthrough... maybe I should just install Ubuntu on a different drive and save myself the trouble of doing that and convincing Steam to work properly on Debian... hmmm...
It's ok people, they have Doom, Doom 2 and Ultimate Doom on the list!
Because that's the way I'll run Doom, from Steam using tweaked Wine, instead of just using gzdoom or zandonorum...
I mean, I appreciate the effort Valve, but you have some weird priorities...
@Steve_The_Cynic said in Samsung plans to bring Bixby to everything it sells by 2020:
@Gribnit said in Samsung plans to bring Bixby to everything it sells by 2020:
@anonymous234 said in Samsung plans to bring Bixby to everything it sells by 2020:
No sci-fi author suspected that the AI would not take over the world by its own actions, but rather would be forced onto everything by big corporations.
Dick? Gibson (or whoever wrote Neuromancer)?
I'm flat out guessing at PKD but I'm still sure he covered that.
William Gibson.
I mean, PKD has some stories involving intelligent machines as well. It's nowhere Gibson level of course, you can hardly expect that given the time at which he wrote his stories as opposed to Gibson.
Filed under: In the future, all data will still be stored on punchcards and magnetic tape, don't you know?
@PJH said in The nerdy jokes thread (bonus original title mode!):
There's a local version of that joke which is at least 15-ish years old:
What's the name of the mountain 8 times the height of Velebit?
Velebyte
@anonymous234 said in The nerdy jokes thread (bonus original title mode!):
I pointed that out to the teacher, and he just said "yes, you can easily mess with anyone's computer, just don't do it".
A server on the university I was at that we got access to so we can write some code for a class about operating systems (it was a Solaris machine IIRC, they told people to use that since most of the stuff we had to do was 10x simpler on *NIX) had no limit on per-user processes.
They pointed out we can fork bomb the thing no problem and just instructed us not to do it. I wonder how many people did it on accident though (I didn't connect to it much so I don't know if it was ever down around that time, I used my local Linux install for assignments).
@blakeyrat said in Onyx' adventures in virtualization:
@Jaloopa said in Onyx' adventures in virtualization:
Apparently they're the only way to lock your screen on X11
Elephants are fish.
Weeeeel... Using modern cladistics... yes. All vertibrates evolved from fish so they technically are fish as well.
Ok, so, done for today because I need to leave soon, but...
Got a game working. Performance - not the best. That's the bad news. The good news is that Looking Glass works, so I can technically play with it now without an extra screen as long as I don't reinstall Windows.
Two steps I intend on trying: