HN user

jzwinck

5,692 karma
Posts27
Comments1,353
View on HN
ericneyman.wordpress.com 1y ago

Finding Shawn Mendes (2019)

jzwinck
389pts56
practical.engineering 5y ago

What Happened at the Hernando de Soto Bridge?

jzwinck
3pts0
www.cnbc.com 6y ago

NYSE to temporarily close floor, move to electronic trading due to coronavirus

jzwinck
5pts5
www.bloomberg.com 6y ago

London Stock Traders Push to Shorten Their Day by 90 Minutes

jzwinck
3pts0
www.spokesman.com 7y ago

Washington Senate approves bill backing permanent daylight saving time

jzwinck
2pts0
www.bloomberg.com 7y ago

Wall Street Analysts Give Investors What They Want

jzwinck
2pts0
cointelegraph.com 8y ago

Bitcoin Classic Shuts Down as Staff Claim Bitcoin Cash Will Rule ‘In 6 Months’

jzwinck
2pts0
www.newyorker.com 9y ago

Whispered Warnings of Radiohead’s “OK Computer” Have Come True

jzwinck
1pts0
arstechnica.com 9y ago

Anglophiles: Hang up your VPN; BBC iPlayer isn’t for you anymore

jzwinck
2pts1
arstechnica.co.uk 9y ago

First Brexit, then Trump, and now, behold the smart hairbrush

jzwinck
1pts1
www.nytimes.com 10y ago

Man vs. Marathon

jzwinck
2pts0
arstechnica.com 10y ago

Deadlines, delays, and departures dog Tesla Model 3

jzwinck
46pts34
www.courant.com 10y ago

Six Face Charges In Scheme To Manipulate Lottery Game

jzwinck
18pts24
24hourtime.info 10y ago

Why do clocks show 12 hours when there are 24 hours in a day?

jzwinck
1pts0
www.nytimes.com 10y ago

U.S. Doesn't Know How Many Foreign Visitors Overstay Visas

jzwinck
3pts0
www.vanityfair.com 10y ago

Life and Death at Cirque Du Soleil

jzwinck
83pts18
arstechnica.com 11y ago

Bug in ultra secure BlackPhone let attackers decrypt texts, stalk users

jzwinck
4pts0
linux.die.net 11y ago

man ffs

jzwinck
2pts1
stackoverflow.com 11y ago

How can I test for how many significant figures a float has in C++?

jzwinck
2pts0
blogs.msdn.com 12y ago

Social interactions in two preschool classes, in graph form

jzwinck
2pts0
arstechnica.com 12y ago

San Francisco orders parking spot auction app to cease-and-desist

jzwinck
9pts0
time.com 12y ago

Up In Smoke: FBI Won’t Change Rules On Pot Smoking Recruits

jzwinck
1pts1
arstechnica.com 12y ago

Bug can cause deadly failures when anesthesia device is connected to cell phones

jzwinck
2pts0
ideone.com 12y ago

Lazy sequences in idiomatic C++ using iterators

jzwinck
39pts17
github.com 12y ago

wswatch: Unix watch(1) in the browser (Node.js, WebSockets)

jzwinck
2pts1
mobile.nytimes.com 12y ago

A Cheap Spying Tool With a High Creepy Factor

jzwinck
119pts83
gist.github.com 13y ago

An even faster way to delete lots of files in a directory

jzwinck
1pts1

Did Windows Phone solve the problem that Windows Mobile had where libraries like the .net runtime were incomplete? I remember trying to build an app for Windows Mobile 6.0 and not being able to use third party libraries because some of the basic functions of Windows were missing on mobile. I'm not even talking about UI, more like networking and other backend features.

In Europe if an airline does that they have to pay you a penalty of a few hundred euro.

But KLM (Dutch flag carrier) found a way around that: if a flight is overloaded by weight they will keep all the passengers on board but leave their luggage behind. There is no direct penalty for late luggage, so many customers will get nothing except perhaps a little free shopping if they feel like filing forms to reimburse for having to buy clothes at their destination. But that's cheaper than the penalty for not taking the passenger on time, so KLM "optimized" it.

Sound cards too. The Hercules website still proudly shows all their boxes from back when sound cards were popular for gaming and more: https://support.hercules.com/en/cat-soundcards-en/

Several models don't even have pictures of the card, but every one of them shows the crazy box.

They also still list all their old GPUs. Compare the wild boxes at the top with the TV tuner boxes at the bottom: https://support.hercules.com/en/cat-videocards-en/

If that were true it would also apply to C and C++. I have used Valgrind with Python + Boost C++ hybrid programs and it worked fine after spending an hour making a suppressions file.

If you care about network bandwidth you can compress before sending, as virtually all web applications do. Then you don't need to worry much about the space efficiency of the application format.

I find it somewhat unlikely, as this particular W hotel was not in a country known for personal injury lawsuits.

More likely it was sold to them by some interior design firm as a luxury feature. Unfortunately it's only helpful if you're alone--even if it worked correctly you wouldn't want the room lights turning on just because your spouse got up.

Not about smoking but I recently stayed at a W hotel and was woken in the middle of the night by the room lights turning on. They used electronic push buttons and I turned them off. Seconds later they turned on again. This repeated several times until I was fully awake and called the front desk.

"We can come put tape on the sensors."

"What sensors?"

"There are sensors under the bed."

"Oh, so you already know about this problem but haven't fixed it. Thanks, please don't send anyone."

I then looked under the bed and sure enough there was a motion detector on each side. I removed these from their brackets and let them dangle facing the floor instead of outward. This blinded them and solved the problem. I guess they were malfunctioning or they were able to detect motion above the bed via reflections.

The next day I reported this to the front desk, who were unsympathetic and unhelpful. They told me it was for my own safety. Apparently at other hotels I have just been incredibly lucky not to have fallen down when getting out of bed.

I will not stay at a W hotel again unless I can confirm in advance that they do not have motion detectors under the bed which spuriously turn the lights on at night. Maybe I'll add Hyatt to the no-go list.

I haven't seen the makers of Aeron (or anyone else) claim it's "orders of magnitude faster than plain UDP." Do you have a link to something about this? It doesn't pass the smell test for me unless you're talking specifically about using Aeron within a single machine (where it uses shared memory instead of the network)...but you said "Within a datacenter" not "Within a computer."

I came here to write something very similar. Visa and their competitors all have the ability to transport data about the payment. Most receipts are a fairly small raster image which could be sent as an extension. Visa could also offer a structured text receipt data format but the image may actually be safer to avoid a billion questions about how to represent unusual situations around surcharges, optional extras, custom discounts, split checks etc.

It would be important for the receipt to include the original broken-out list of items purchased, and not just the "credit card receipt" with the total paid. People need detailed receipts for returns and business expenses.

You say deque uses large-ish blocks but you provide documentation that it uses 512 byte blocks on GCC and MSVC is even worse. So if you're on Windows the blocks are so small the container degenerates into something like a std::list, and on non-Windows it only works well if your objects are a few bytes each.

This is one reason why code generation should run as part of the build process, every time. Even if you decide to check-in the generated code for visibility.

Postzegelcode 2 years ago

You don't need a full scan or a giant CSV file. You can do it with a single small file in a single directory. The file contains the state of a pseudo random number generator. On each request, generate a number, save the new PRNG state into a new temp file in a subdirectory, and rename the temp file over top of the original file. If renaming fails, try the whole process a few more times. This allows multiple processes to serve requests concurrently.

Exercise for the reader: avoid re-reading the PRNG state file on retries.

I'm not who you replied to, but I have such a story.

I was in southern China for a couple weeks, using Google Translate to try to talk to locals sometimes. The voice-to-voice feature seemed useful and more approachable than asking someone to type on my phone. I'd often start by saying "Talk into the phone and it will translate."

This did not go well. People seemed bewildered, utterly unwilling to try it out. Some people already knew what I was doing but the rest seemed to think I was crazy. One or two tried taking the phone and holding it to their ear like they were going to have a normal phone conversation with someone far away.

I later found out that Google had translated my phrase as something like "There is a phone call for you."

1/2:1 is not useless. Sometimes you want to pull a rope quickly and power is not a problem. One real world use of a 1/2:1 pulley system is in high performance sailing dinghies on the spinnaker halyard. You want to be able to hoist it as quickly as possible, before the wind puts pressure on the spinnaker.

If you use both upper and lower case, you are likely to eventually be surprised by some third party system or protocol that is case insensitive. I even found a commercial system which allowed users to choose IDs with case sensitivity (iD and id being distinct) but if you query it for one which does not exist they do case insensitive matching and return the wrong data.

When I reported this bug they said it was for convenience!

If you don't like returning an interface because the caller can't tell what it does, why is accepting an interface any better? Don't you end up in the same conundrum of not knowing whatever it is that you need to know about foo.IssueReceipt() if someone passed foo into your function?