Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mark-r
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
62 ms
·
811.
▲
by
mark-r
6y ago
Sometimes the goal is just to change the color of an object while retaining the shadows, highlights, and textures. Suppose you had a picture of a blue car and wanted to know what it would look like in yellow.
812.
▲
by
mark-r
6y ago
If you code this right, there's no need for the two special checks at the start of the function - they just naturally get resolved.
813.
▲
by
mark-r
6y ago
Yeah, why worry about edge cases if you can't get the basic algorithm right?
814.
▲
by
mark-r
6y ago
You can change hues in RGB without having to use HSV. See https://stackoverflow.com/a/8510751/5987
815.
▲
by
mark-r
6y ago
I've noticed for a long time that in a color wheel, Cyan Magenta and Yellow are much brighter than Blue Red and Green. A couple of years ago it finally dawned on me why that was - the way our monitors are designed, Cyan Magenta and Ye
816.
▲
by
mark-r
6y ago
I've seen CIELab used to do color transformations, and it has a problem. This color space looks like it will suffer from the same problem. If you try to shift hues, keeping a constant luminance causes a problem. You can't transf
817.
▲
by
mark-r
6y ago
Does QR include some kind of error correction code? That would be far more sophisticated than a checksum, and lead to more salvageable results from bad scans.
818.
▲
by
mark-r
6y ago
I think some people just get tired of the stiffness and formality of "normal" fonts. Comic Sans just screams informality.
819.
▲
by
mark-r
6y ago
Ending it with the word "papyrus" in Comic Sans was the most brilliant part.
820.
▲
by
mark-r
6y ago
And by tomorrow I'll have forgotten both of you.
821.
▲
by
mark-r
6y ago
> 3. Things you use for a significant fraction of your life (bed: 1/3rd, office-chair: 1/4th) are worth investing in. The most brilliant invention I've seen in a long time is the MyPillow. Like a bed, it's something
822.
▲
by
mark-r
6y ago
I tried to tile a room in my basement once. Took forever and I only got half done. Hired a professional to finish the job, and it took him less than a day. Then he told me the things I had done wrong.
823.
▲
by
mark-r
6y ago
That's an interesting observation. I'd expect C128 to be good because the checksum character should reject most bad scans.
824.
▲
by
mark-r
6y ago
Unicode is about the characters themselves, not about the glyphs. Its fonts that provide the connection between them.
825.
▲
by
mark-r
6y ago
My code probably would have worked with good image quality, but I wanted something more robust that would work with a cheap webcam. I imagine the pi camera module is about the same.
826.
▲
by
mark-r
6y ago
There are many 1d standards. How many did you try?
827.
▲
by
mark-r
6y ago
The barcode standards themselves specify the amount of white space you need before and after the barcode proper. Even the cheapest scanners should work if you met that.
828.
▲
by
mark-r
6y ago
I tried to write my own scanner in Python, but couldn't get it reliable enough to release. Is there anything wrong with maintenance mode if it works?
829.
▲
by
mark-r
6y ago
I made the bar widths configurable in the functions I wrote. If you know the DPI of your printer and how big you want your barcode to print, it's simple division to get that figure. I printed both to laser printers and Zebra label pr
830.
▲
by
mark-r
6y ago
Good point, but that's probably too much work for a free font. Especially since you need to output a code to mode switch before you can use the 2-digit barcodes, the font won't have any way of knowing what mode you're in.
831.
▲
by
mark-r
6y ago
I just had a closer look and yes that's definitely the problem. Fonts require a 1:1 mapping between characters and outputs, there's no way to choose an output based on 2 consecutive digits so it needs to be mapped to an arbitrary
832.
▲
by
mark-r
6y ago
Code 128 has a mode where it can encode 2 digits for every code. It's probably related to that somehow.
833.
▲
by
mark-r
6y ago
When I've had to work with barcodes I found it easy enough to generate an image rather than using a font. Font mapping for things that aren't characters, like stop codes, is always a tricky business.
834.
▲
by
mark-r
6y ago
I know on the Control Data Cybers the time was measured by the second with 3 digits after the decimal. Might have been measured with even finer granularity, but that's what they displayed.
835.
▲
by
mark-r
6y ago
The FCC doesn't really care unless someone complains about interference. Given that the range of this is so low, the signal is unlikely to even reach your neighbors much less interfere with anything.
836.
▲
by
mark-r
6y ago
The first time I saw this trick, it was on a DEC PDP-8 in the late 1970's. There were a number of songs available.
837.
▲
by
mark-r
6y ago
Sensor size designations are very confusing. The 1/2.3 is based on the diameter of an old tube sensor, of which a large portion couldn't be used for imaging. The 35mm is based on 35mm film, which was actually 24mm x 36mm. The o
838.
▲
by
mark-r
6y ago
I still assert that the damage done limits the potential growth rate. It's going to be baby steps in the beginning.
839.
▲
by
mark-r
6y ago
Curiosity got the better of me, and I decided to look it up on Wikipedia. The board form factor itself didn't have a name, but it was tied to the bus that was used. The PDP-11s used the Unibus, and the LSI-11 and its variants used th
840.
▲
by
mark-r
6y ago
This seems far too optimistic on its face. Even if COVID were to disappear tomorrow, real economic damage has already occurred. That damage isn't going to disappear just because it stops getting worse. The people who lost their jobs
More ›