WTF Bites
-
-
If itâs like similar tools in Photo it would just copy a patch verbatim from elsewhere with interpolation at the edges.
Wouldn't that be the
CopyClone tool?
-
@Gern_Blaanston said in WTF Bites:
Windows:
reg query <KeyName> /v <ValueName>If it successfully finds the registry key/value that you are looking for, it returns %errorlevel% = 0
If the registry key/value does not exist, it returns %errorlevel% = 1
Wait ... what? Isn't this backwards from the way everything else works? Isn't it supposed to be 0 for failure and 1 for success?
Fuxcking Microsoft. Consistently Inconsistent.
Um, no.
ERROR_SUCCESS
is 0 and indicates no error and is consistent with nearly everything.
-
@Tsaukpaetra said in WTF Bites:
ERROR_SUCCESS
is0502 OK
-
-
@Tsaukpaetra said in WTF Bites:
Um, no.
ERROR_SUCCESS
is 0 and indicates no error and is consistent with nearly everything.Somewhere, in my many travels and adventures, I encountered something or some program that returns 1 for success and 0 for failure and thought that was normal. But googling indicates that this is not common and I've been
Oh well, learn something new every day.
-
@Gern_Blaanston said in WTF Bites:
Windows:
reg query <KeyName> /v <ValueName>If it successfully finds the registry key/value that you are looking for, it returns %errorlevel% = 0
If the registry key/value does not exist, it returns %errorlevel% = 1
Wait ... what? Isn't this backwards from the way everything else works? Isn't it supposed to be 0 for failure and 1 for success?
Fuxcking Microsoft. Consistently Inconsistent.
Well, yes. This allows signalling one kind of success and 255 kinds of failure.
-
@Gern_Blaanston I mean, it can be a little bit weird in that in many languages, 0 is falsey and 1 is truey, so one might think of a program's "return value" as returning "did it fail" rather than "did it succeed" which may be backwards of how one would expect most boolean functions would work. But I'm pretty sure the convention for an application's return value goes back to before Microsoft's time, and was not really originally considered a boolean.
-
Well, yes. This allows signalling one kind of success and 255 kinds of failure.
And some of those failures may actually be success. Then we have COM/OLE's
SUCCEEDED
macro...
-
@kazitor this sort of bullshit is why I pay $9.99 a month for PS because it irks me less. Though PS is rapidly accelerating to a point where I might stop giving them money and find another tool (maybe Krita)
Now celebrating 12 years of CS6 Design & Web Premium!
-
@Gern_Blaanston said in WTF Bites:
Windows:
reg query <KeyName> /v <ValueName>If it successfully finds the registry key/value that you are looking for, it returns %errorlevel% = 0
If the registry key/value does not exist, it returns %errorlevel% = 1
Wait ... what? Isn't this backwards from the way everything else works? Isn't it supposed to be 0 for failure and 1 for success?
Fuxcking Microsoft. Consistently Inconsistent.
Well, yes. This allows signalling one kind of success and 255 kinds of failure.
In C, this can cause trouble with different return types. If you're returning the number of items read, or a linked list of those items, the return value on error tends to be
0
orNULL
. Which immediately turns 'no elements available to read' into an error condition.
-
Well, yes. This allows signalling one kind of success and 255 kinds of failure.
Except ⌠in POSIX, and the convention does come from POSIX, the C API can represent 255 kinds of failure and separately crashes, because the result from
wait
is the return code + 256 * the terminating signal, but shell transforms it to the return code or 128 + the terminating signal, so shell scripts can only reasonably handle 126 different errors from the command, with 127 meaning the shell couldn't find the command.
-
In C, this can cause trouble with different return types. If you're returning the number of items read, or a linked list of those items, the return value on error tends to be
0
orNULL
. Which immediately turns 'no elements available to read' into an error condition.⌠with
-1
being used instead if0
is a valid normal response.
-
Itâs graphics software. Every layer has an alpha channel, always. Why would it not?
Because itâs the background.
No idea (anymore) if GIMP works that way too, but Photoshop does for reasons Iâve never been able to fathom. It makes for slightly smaller files, though, perhaps that was originally a good reason to have a background âlayerâ?
-
GIMPď ź: âby programmers for programmers and you will like itâFTFY.
-
GIMPď ź: âby programmers for programmers and you will like itâFTFY.
That penguin isnât wearing a gimp suit though for the implicit âand you will like itâ
-
Well, yes. This allows signalling one kind of success and 255 kinds of failure.
And some of those failures may actually be success. Then we have COM/OLE's
SUCCEEDED
macro...It's our good friend
S_FALSE
!
-
@Arantor: It's Linux software. The suit itself is implicit.
-
he might try to brush off
He would try to draw a veil over it if the drawing functions didn't keep crashing. Blurring the public memory might work, there's a library for that.
-
Well, yes. This allows signalling one kind of success and 255 kinds of failure.
And some of those failures may actually be success. Then we have COM/OLE's
SUCCEEDED
macro...
-
Well, yes. This allows signalling one kind of success and 255 kinds of failure.
And some of those failures may actually be success. Then we have COM/OLE's
SUCCEEDED
macro...
-
@Gern_Blaanston what happens when you click Cancel?
-
@Gern_Blaanston what happens when you click Cancel?
-
I have a MacBook Air with 512GB SSD, out of which 297GB are currently in use. About 100GB of that are system stuff and applications. So about 100 GB of actual user documents and another 100 GB of phone backups. I also have a 512 GB USB memory stick, which I configured as a Time Machine backup location. I figured it shouldn't really need more than 300 GB for backups, since user data easily fits in there and doesn't change that often.
Well, a few weeks ago it told me that it couldn't complete the backup because no more space was available. Um?! Rolling backups, anyone? The configuration window itself says "The oldest backup are deleted when your disk becomes full".I thought I'd wait to see if it gets its shit together, but it has since started to annoy me with messages like "no backup since 35 days". So first I tried manually excluding Applications and System and stuff that I thought it shouldn't be backed up anyway, but that didn't free up anything. Then I manually deleted the backup from the TM volume and tried to let it create a new one, didn't work either.
So I said "fuck it", removed it from Time Machine, cleared the whole volume in the Volume Manager app (which then showed it to be empty), added it back and increased the quota to 350 GB this time. So let's run another backup.It ran for awhile before it failed. Doing so, it said it had completed 35% of the backup and has copied around 60 GB. But also that 17.75 GB are still available on the drive out of 350 GB. How does that add up? Would you please overwrite the old, deleted data already?
-
@topspin My first thought is to wonder whether that USB stick is still good.
-
@kazitor this sort of bullshit is why I pay $9.99 a month for PS because it irks me less. Though PS is rapidly accelerating to a point where I might stop giving them money and find another tool (maybe Krita)
Now celebrating 12 years of CS6 Design & Web Premium!
I have CS1 that I bought in college, but that was a horrible version (at least on Windows) and I would rather use CS2 that Adobe "released for free" (wink wink nudge nudge) due to breaking their update server or something
-
@Gurth It's relatively new, but I guess I should check.
But the OS didn't complain that it couldn't write, or anything like that. It currently shows 332.5GB in use for that 35% backup. Scaling that up, it thinks it needs 950 GB to back up a 512 GB SSD, even assuming all of that SSD is in use with local snapshots and nothing is excluded.
-
@kazitor this sort of bullshit is why I pay $9.99 a month for PS because it irks me less. Though PS is rapidly accelerating to a point where I might stop giving them money and find another tool (maybe Krita)
Now celebrating 12 years of CS6 Design & Web Premium!
I have CS1 that I bought in college, but that was a horrible version (at least on Windows) and I would rather use CS2 that Adobe "released for free" (wink wink nudge nudge) due to breaking their update server or something
My Photoshop and Illustrator, if I could find the installation disks are, IIRC, 4.5 and 4.0, respectively. Not CS4. Individual products from before CS existed.
-
@HardwareGeek Aside from CS that I used in college, I'm also quite familiar (or was, 20+ years ago) with Photoshop 4
-
@Bulb UNIX-type systems make this even weirder with command chains.
They too abide the convention that
0
is success and anything else is error, yet when you want a script to "execute program A, and if A succeeded, also execute program B", this is what you need to type:
./programA && ./programB
So the
&&
here isn't an actual short-circuit boolean AND operator, because it actually checks that program A returned0
.
-
@Medinoc
0
is true, and non-zero is false and&&
is a boolean short-circuit operator.It's the other way compared to most programming languages, but that's how it's defined in shell.
-
-
-
That's what, one semester?
-
-
That's what, one semester?
Depending on the college, maybe a week.
If you want us to care, you'd better be bringing at least half a million. That gets you real attention...
-
Not where to put this one. Saw it on Slashdot. I guess WTF Bites is good.
North Yorkshire Council to phase out apostrophe use on street signs
A local authority has announced it will ban apostrophes on street signs to avoid problems with computer systems.
-
That's what, one semester?
Depending on the college, maybe a week.
If you want us to care, you'd better be bringing at least half a million. That gets you real attention...
Yeah, but those look like primary and secondary school students with their parents. Could be a good program.
-
That's what, one semester?
It says "scholarships" so you can count on $3k being the total for like a dozen of those.
-
Now celebrating 12 years of CS6 Design & Web Premium!
I have CS1 that I bought in college, but that was a horrible version (at least on Windows) and I would rather use CS2 that Adobe "released for free" (wink wink nudge nudge) due to breaking their update server or something
I went from CS2 to 3 to 6. In theory I still have a license for CS2, so I grabbed a copy of no-license CS2 and put it on an XP VM with other publishing and productivity programs I used at the time, just in case I need to open a document from the past. Haven't had to use it much, but I'm glad it's there.
@HardwareGeek said in WTF Bites:
My Photoshop and Illustrator, if I could find the installation disks are, IIRC, 4.5 and 4.0, respectively. Not CS4. Individual products from before CS existed.
When I worked (briefly) as the tech helper for the college newspaper they had licenses for Photoshop 3, Aldus PageMaker 4, and one license for PageMaker 5. I got fired when, despite me telling them it wouldn't work, they installed PageMaker 5 on all their Macs and got mad when only one of them would run at a time.
-
@Gurth It's relatively new, but I guess I should check.
But the OS didn't complain that it couldn't write, or anything like that. It currently shows 332.5GB in use for that 35% backup. Scaling that up, it thinks it needs 950 GB to back up a 512 GB SSD, even assuming all of that SSD is in use with local snapshots and nothing is excluded.I formatted the whole thing as a single volume, then checked with
f3
. All good, could write and read the full capacity.
So I split it into partitions again, gave the Time Machine partition 350 GB, this time knowing all the previous data was definitely gone, and started again with a whole bunch of exclusions configured:(I saw that the last one had stuff from /System/Library backed up, even though /System was excluded, so I added that too. )
Well, it failed again. 331.5 GB written, 18.5 GB left available.
Who wants to take bets that if I give it the whole 512 GB, same size as the internall SSD, it still won't be enough?
-
-
@boomzilla said in WTF Bites:
That's what, one semester?
According to the poster, one day (today).
Oh, so that's why the "like there's no tomorrow" part.
-
it still won't be enough?
Do you happen to have large files? Do you have enough space for two of them in addition to the current space?
-
@boomzilla said in WTF Bites:
That's what, one semester?
According to the poster, one day (today).
Each student gets enough money to pay for lunch on their first day.
-
Personal WTF Act: Successfully reinvented the wheel on processing incoming XML. No, not the XML parser itself, the step after that.
-
-
Oh no! My PIN appears in that graphic. It's one of the orange ones.
-
@Zecc itâs a good thing PINs arenât uniquely tied to individuals, then, isnât it? Otherwise that diagram might have identified you!
-
@boomzilla What's with the black dots