RSS Feed
  0 users browsing Discussion. | 2 guests | 7 bots  
Main » Discussion » I have yet to have never seen it all.
Pages: First Previous 27 28 29 30 31 32 33 Next Last
Posted on 19-09-29, 10:10 pm
Custom title here

Post: #715 of 739
Since: 10-30-18

Last post: 2 days
Last view: 3 hours
Posted by Kawa
PNG gamma information may be ignored, of course. The capitalization rules say so: "gAMA" is a non-critical, registered, copy-safe chunk.

Edit: misunderstood copy-safety. Gamma may only be blindly preserved if no other critical chunks were altered.

Well, yes, clearly. But somehow the only place where it is genuinely advantageous to ignore it(web browsers) is also the only place it is respected.

Just in case you thought something could EVER be straightforward, and needed someone to dash your hopes across the rocky shoals of harsh reality.
Posted on 19-09-30, 02:11 am

Post: #91 of 96
Since: 10-30-18

Last post: 14 hours
Last view: 18 min.
User is online
A mistake. A big, fat, huge mistake. The sRGB gamma curve should have been defined as a fixed exponent of 2 so that conversion between linear and gamma-compressed space was trivial, and so that it was different enough from displays that graphics vendors were required to actually convert if their monitor didn't actually follow the sRGB gamma curve.
Posted on 19-09-30, 02:33 am
Custom title here

Post: #717 of 739
Since: 10-30-18

Last post: 2 days
Last view: 3 hours
Wasn't sRGB kind of a shitty standard to start with?
As I recall it was an attempt to make a documented standard based on the typical display system of the time, which of course means it became a de facto standard because everyone was already using it, and makes the modern displays that can't even hit the entire sRGB color space all the more embarrassing since they're failing to meet a standard that was by design a representation of the mid-1990s mainstream.

Just in case you thought something could EVER be straightforward, and needed someone to dash your hopes across the rocky shoals of harsh reality.
Posted on 19-09-30, 03:05 am

Post: #92 of 96
Since: 10-30-18

Last post: 14 hours
Last view: 18 min.
User is online
Something like that. The worst part of it is the linear part of the gamma ramp, which just means that people implement it incorrectly (because an exponent is Good Enough™). The general idea is fine. If we're only storing 255 brightness levels per channel we should DEFINITELY gamma-compress them. The question is how much, with what curve, and how the representation is chromatically defined.
Posted on 19-09-30, 03:32 am
Custom title here

Post: #718 of 739
Since: 10-30-18

Last post: 2 days
Last view: 3 hours
Posted by wareya
Something like that. The worst part of it is the linear part of the gamma ramp, which just means that people implement it incorrectly (because an exponent is Good Enough™). The general idea is fine. If we're only storing 255 brightness levels per channel we should DEFINITELY gamma-compress them. The question is how much, with what curve, and how the representation is chromatically defined.
I say 8 bits per channel was good enough for 1995, but a quarter-century later we should DEFINITELY be seeing advancement. I'm outraged that for most systems 24-bit color is still the cap.

Just in case you thought something could EVER be straightforward, and needed someone to dash your hopes across the rocky shoals of harsh reality.
Posted on 19-09-30, 10:38 am
Lotus Eater

Post: #414 of 426
Since: 10-29-18

Last post: 2 days
Last view: 28 min.
User is online
Posted by CaptainJistuce
I say 8 bits per channel was good enough for 1995
System 7 from 1991 disagreed, even if this was only to define colors. The fact that it says 16, 256, thousands, or millions of colors in the mode window implies it's downscaled to 8 bits per channel.

Dumb DTP thing?
Posted on 19-09-30, 10:41 am

Post: #93 of 96
Since: 10-30-18

Last post: 14 hours
Last view: 18 min.
User is online
There's always dithering!
Posted on 19-09-30, 11:10 am
Custom title here

Post: #720 of 739
Since: 10-30-18

Last post: 2 days
Last view: 3 hours
Posted by Kawa
Posted by CaptainJistuce
I say 8 bits per channel was good enough for 1995
System 7 from 1991 disagreed, even if this was only to define colors. The fact that it says 16, 256, thousands, or millions of colors in the mode window implies it's downscaled to 8 bits per channel.

Dumb DTP thing?
I'm certain it was 24-bit color in the display path, as per hardware documentation. Hell, look at the color banding on that selector, that window's not even 24-bit.

Possibly for printing purposes, possibly just Apple being Apple.
Also possible they intended to go farther but RAM prices got in the way at the time.


Just in case you thought something could EVER be straightforward, and needed someone to dash your hopes across the rocky shoals of harsh reality.
Posted on 19-10-04, 08:29 pm
Not from my cellphone

Post: #569 of 574
Since: 10-30-18

Last post: 2 days
Last view: 11 hours
The once unhackable Wii Mini has now been successfully cracked wide open, ready for bricking some serious homebrew action:

https://github.com/Fullmetal5/bluebomb

Nintendo: "We've removed WiFi and SD for your security, good luck pirating games having fun on this family-friendly bento box"
Fullmetal5: "Hold my beer"

Unfortunately this hax is not for the random PokèRAWMz kid at home, as it requires access to a Real Computer running Linux with a Bluetooth adapter (ideally a laptop), the ability to build stuff from source (it uses vanilla Bluez userspace, albeit built with some deprecated features, hence you can't use the one shipped by your distro as you will have to disable it prior to using bluebomb - hope you are not using a BT keyboard! Thus, a VM with USB passthrough is highly desirable here), and following instructions ("butbutbut I am not a NASA hacker!!!")

As a bonus, bluebomb also works on older, uncrippled Wiis (I guess this should be the way to go if somehow you don't have a <4GB SD card handy yet you own a Bluetooth-enabled laptop and an USB stick)


Nice to see one of those "OOOH SCARY!!!" wireless vulnerabilities out in the wild being used for good and not for evil.

Licensed Pirate® since 2006, 100% Buttcoin™-free
Posted on 19-10-05, 11:28 pm
Post: #12 of 13
Since: 06-02-19

Last post: 10 days
Last view: 9 days
Posted by tomman


As a bonus, bluebomb also works on older, uncrippled Wiis (I guess this should be the way to go if somehow you don't have a <4GB SD card handy yet you own a Bluetooth-enabled laptop and an USB stick)




Str2Hax exists if you don't have a SD handy, but it requires using a random DNS that may go down at any point. So this is handy for that future.
Posted on 19-10-06, 12:25 am
Custom title here

Post: #735 of 739
Since: 10-30-18

Last post: 2 days
Last view: 3 hours
Posted by Lurking Star
Posted by tomman


As a bonus, bluebomb also works on older, uncrippled Wiis (I guess this should be the way to go if somehow you don't have a <4GB SD card handy yet you own a Bluetooth-enabled laptop and an USB stick)




Str2Hax exists if you don't have a SD handy, but it requires using a random DNS that may go down at any point. So this is handy for that future.

https://github.com/Fullmetal5/str2hax You SHOULD be able to set this up on a local system and point the Wii towards it, removing a dependency on outside servers. That's workable until Microsoft shuts down Github(any day now, right?).

Just in case you thought something could EVER be straightforward, and needed someone to dash your hopes across the rocky shoals of harsh reality.
Posted on 19-10-06, 02:05 am
Post: #13 of 13
Since: 06-02-19

Last post: 10 days
Last view: 9 days
Posted by CaptainJistuce
Posted by Lurking Star

Str2Hax exists if you don't have a SD handy, but it requires using a random DNS that may go down at any point. So this is handy for that future.

https://github.com/Fullmetal5/str2hax You SHOULD be able to set this up on a local system and point the Wii towards it, removing a dependency on outside servers. That's workable until Microsoft shuts down Github(any day now, right?).


I was going to mention that in my post, but it slipped my mind. Curse you, ADHD.
Posted on 19-10-07, 11:32 pm
Secretly, I'm Derpy Hooves

Post: #424 of 426
Since: 10-29-18

Last post: 2 days
Last view: 28 min.
User is online
So here's a thing I think I'll bait Tom with.

Adobe is deactivating all accounts in Venezuela
Posted on 19-10-11, 07:13 pm

Post: #207 of 207
Since: 10-29-18

Last post: 4 days
Last view: 12 hours
"If this weren't a livestream I would punch you!"

My current setup: Super Famicom ("2/1/3" SNS-CPU-1CHIP-02) → SCART → OSSC → StarTech USB3HDCAP → AmaRecTV 3.10
Posted by sureanem
I might be clinically insane
Posted by CaptainJistuce
use of the right analog nipple is mandatory for progression past a certain point
Posted on 19-10-12, 12:15 am (revision 1)
Custom title here

Post: #736 of 739
Since: 10-30-18

Last post: 2 days
Last view: 3 hours
Posted by Kawa
So here's a thing I think I'll bait Tom with.

Adobe is deactivating all accounts in Venezuela
Seems like that should hit a lot of services, not just the mud.

RIP Tomman's Steam account.



Edit: Except I just read the executive order and Adobe's just slinging mud. It calls for the seizing of venezuelan government assets, not banning everyone suffering under the dictator's yoke.

Just in case you thought something could EVER be straightforward, and needed someone to dash your hopes across the rocky shoals of harsh reality.
Posted on 19-10-12, 12:41 am
Not from my cellphone

Post: #571 of 574
Since: 10-30-18

Last post: 2 days
Last view: 11 hours
Posted by CaptainJistuce
Posted by Kawa
So here's a thing I think I'll bait Tom with.

Adobe is deactivating all accounts in Venezuela
Seems like that should hit a lot of services, not just the mud.

RIP Tomman's Steam account.



Edit: Except I just read the executive order and Adobe's just slinging mud. It calls for the seizing of venezuelan government assets, not banning everyone suffering under the dictator's yoke.


Yup, but then Adobe is not in the business of telling which Venezuelans are pro-communism and which ones are actually starving to death.
Plus, you can't buy software with our creditcards thanks to our never-ending currency exchange controls (you can now go to a bank and "buy greenbacks", but only in cash, and after jumping a vat full of flaming, acid-soaked angry cobras, but our Visas and MasterCards are forever barred from the global market), so I guess the number of impacted users is in the low thousands (mainly newspapers and some graphic designers that actually pay for their shit, instead of pirating everything like it has been done since forever).

This is a dire reminder that...

- DRM means that you don't own shit. You're renting a permission of use that can be revoked AT ANY TIME.
- "Sanctions" means jack shit, little more than useless token efforts. IF anything they cause the commies to become more bloody murderers than ever, because they will try their hardest to convince their slaves that "USA is the enemy!". But then, since when 'murica (or anyone else) has gave a shit about us anyway?
- This can also hit your beloved open source software. Remember, Microsoft now owns GitHub, and this means that if one of their useless lawyers decides to pull an Adobe, it means that I'll be out of a job, forever.

Not that I would care that much if my Steam account goes down the shitter, as I only get TEN MINUTES of DSL access every 3 days... if I'm lucky. Even DRM-free software is fucking useless if you can't even download the freakin' installers in first place!

Licensed Pirate® since 2006, 100% Buttcoin™-free
Posted on 19-10-12, 05:29 am
Not from my cellphone

Post: #572 of 574
Since: 10-30-18

Last post: 2 days
Last view: 11 hours
Never ever ever EVUR! neglect properly implementing equals/hashCode methods in Java (or whatever language you're using):
https://www.journaldev.com/21095/java-equals-hashcode
https://stackoverflow.com/questions/27581/what-issues-should-be-considered-when-overriding-equals-and-hashcode-in-java

If you're relying on your IDE to take care for you, that decision is going to come back several years later down the road and bite in yer' ass. HARD. No mercy! And the pain will not be a pleasure!

True story: this happened to me on a story that started in 2014, and should have ended in 2018, but due to $REASON$. I'm still giving service to $FORMER_EMPLOYER_APP, now as a sort of external contractor (I take service calls from customers, patch bugs, deploy patches when CANTV allows me for the two customers for which I have remote access, and get paid a slice of the pie so I can actually eat it and not starve). Last month I got a call from a customer near me, the system was eating some records on some module. Since this customer is actually on the same bus road I take to the same place I get my worthless banknotes for my collection (i.e. a bank), I went in person to see the problem in action, and after 2 hours of reentering the same records just to have the system reject them because the sums were off at the end of the process, I whipped out my copy of good ol' pgAdmin III, just to notice that there were duplicate records on the database... something that should have been stopped by the server-side checks!

After clearing the duplicate records and blaming cosmic radiation instead of PEBCAK (which usually is the source for ~80% of those service calls), I left the premises and went home. Tried replicating the problem at my setup, with no result: punching the same records at home failed to trigger any failure. Gotta love heisenbugs~

Yesterday, another customer calls. They had the EXACT SAME PROBLEM, but even worse as the app let them advance those records to a state they should haven't been (because the sums were off: on the first case that last server-side check actually worked, but not this time). After giving them a call after my DSL miraculously came back alive for enough time to remote in and pull the ~3MB PostgreSQL DB backup from the live production server, once again I failed to trigger any bugs.

Or so I thought. On the next phone call, most likely the planets aligned, because one of our users managed to trigger the "eat some, dupe others" issue live and in real time: just open your records, DO ABSOLUTELY NOTHING, click "Save", and watch the world burn right after your eyes. And sure enough, this time I was actually able to fall in the trap and face the bastard bug face to face. But that was just the beginning of a long debugging struggle...

In this specific setup, you have an ArrayList<SomeEntity>, and a bunch of SomeEntity objects. Said objects have a ID field, which is usually null until they're committed to the database, where an ID is autogenerated (and if you read them back to entity objects, you get a valid ID and not just "null"). So far, so good. On save, some validations are performed (we're dealing with money here, so it's the usual "input valid, non-zero amounts, and make sure your final sums are OK, because I'm not going to save mismatching amounts on your documents"). Since those record sets often involve large quantities of records, we let our lusers to save their progress every now and then and make all the edits they want until they're ready to commit their records to a final, immutable document. During this phase, our ArrayList<SomeEntity> is populated with copies of another ArrayList<SomeEntity> which are exact copies bar one field: the ID. The editable copy has their IDs set to null, and during save, we match those records through their other fields, discarding deletions and making new records for additions as required.

Long short story: why in the fuck when I tell you "List.remove(someEntityWithNullIDButValidData)", will you remove someEntitiyWithNullIDButACompletelyDifferentContents instead after having worked flawlessly for FIVE yars?! Because my name is Cirno, the king of bakas, it seems! It took me hours to figure out that it was my equals() methods (which were kindly autogenerated by Netbeans years ago, thankyouverymuch SunOrrible®) were as flawed as the whole premise of the Sonic The Hedgehog live action movie, that's why! The only field being considered was the ID, and what happens when you try to compare a null with another, different null? You get a match, and the wrong record gets the boot in the ass, which led us to this sticky situation! Records being deleted when they should haven't been, others being duplicated because the app thought they were NEW additions, and even the initial foolproof barrier of "sum all things and bail out if you see something fishy" was being nicely fooled by this glaring omission.

And sure enough, after strengthening my equals() methods to dive in the actual contents of the object when you happen to be comparing null IDs, all this disaster went away in a flash - from Clownpiece-tier all the way down to "random noname Stage 1 fairy". FUN. And of course, if you touch equals(), you have to also update hashCode() to keep things consistent. So yeah, this time computerizers weren't outsmarting me, because I wasn't exactly complying with the API contract ("thou shall evaluate all of the relevant fields in your comparisons") because someone thought it was a good idea to only consider primary keys when autogenerating entity classes from DB tables on whatever Netbeans wizard they use to generate JPA entity classes. Sure, this makes sense if you're consuming already existing records or generating the IDs yourself. But in the real world, the devil is in the details.

So... how did this obviously BROKEN code worked flawlessly for FIVE YEARS, until 4 weeks ago?! Why why why WHY!?!?!?!?!?!?! Man, that house of cards held quite strongly, but eventually it had to fall (and even then only a few cards fell down!). Fortunately (for me!), only two customers (out of five installs) were impacted, and only with a handful of recent records which were trivial to fix with a couple of SQL oneliners), but it could have been much much MUCH worse. I dodged quite a few cannonballs and nukes, just to end being hit by a Bart Simpson-level prank :/

Licensed Pirate® since 2006, 100% Buttcoin™-free
Posted on 19-10-12, 06:18 am
None of this makes any sense.

Post: #425 of 426
Since: 10-29-18

Last post: 2 days
Last view: 28 min.
User is online
But man do you make those ten minutes count.
Posted on 19-10-12, 06:41 am
Custom title here

Post: #737 of 739
Since: 10-30-18

Last post: 2 days
Last view: 3 hours
Posted by tomman

So... how did this obviously BROKEN code worked flawlessly for FIVE YEARS, until 4 weeks ago?!
Dark magics.

Just in case you thought something could EVER be straightforward, and needed someone to dash your hopes across the rocky shoals of harsh reality.
Posted on 19-10-12, 05:00 pm
Not from my cellphone

Post: #573 of 574
Since: 10-30-18

Last post: 2 days
Last view: 11 hours
Posted by CaptainJistuce
Posted by tomman

So... how did this obviously BROKEN code worked flawlessly for FIVE YEARS, until 4 weeks ago?!
Dark magics.

In other words, a schrödinbug.

TIL there is also a higgs-bugson. Yes, I've experienced those too. At least one of those remain unfixed at $PRODUCT, because it's simply impossible to replicate it under any test setup, and it doesn't even happen at some deployments.

Licensed Pirate® since 2006, 100% Buttcoin™-free
Pages: First Previous 27 28 29 30 31 32 33 Next Last
Main » Discussion » I have yet to have never seen it all.
you need to wake up michael