HNHacker News
TopNewBestAskShowJobs

dsp1234

3,944 karma · joined September 11, 2014

submissionscomments
dsp1234··on Goto and the folly of dogma (2018)
> language injection where you write code and later on you inject a different language.

I (still) work with a Classic ASP code base.

I kid you not, that there are VBScript functions, which call JScript (not JavaScript) functions, which in turn call VBScript functions.

It is a terrifying and glorious mess.

edit:

I also worked with a system at one time that used node.js to create C# files on the file system, then use the C# compiler to create an executable and then run it. It was... not great.

dsp1234··on CPU.fail
The blog post is buried a bit deep, but has the actual technical information on the topic

https://www.cyberus-technology.de/posts/2019-05-14-zombieloa...

dsp1234··on Dear Client, Here’s Why That Change Took So Long
This isn't all on the non-developers. I've walked into two rooms this week, which contained several senior developers, and when I asked them about non-functional requirements, they had to ask what they were, and why they were important.

I've also seen teams where the Defintion of Done doesn't include any steps at all towards deployment. Done is when someone approves the pull request.

Not surprisingly, it takes longer for those teams to 'complete' a change. In the former case, they are continuously surprised, and angered, by 'requirements' that 'no one' told them about. In the later, they stop halfway, and wonder why everyone is waiting on them, because it's 'development complete'.

dsp1234··on India will soon overtake China to become the most populous country in the world
> The difference between China and Russia is 77x.

The population of Russia is ~146.7M [0]

The population of China is ~1,403M (~1.4B) [1]

This makes China ~9.6 times larger than Russia.

The US is ~327M [2], which makes China about ~4.3 times as large.

It's a big difference, but not as large as 77x.

[0] - https://en.wikipedia.org/wiki/Russia

[1] - https://en.wikipedia.org/wiki/China

[2] - https://en.wikipedia.org/wiki/United_States

dsp1234··on Type 2 diabetes: NHS to offer 800-calorie diet treatment
Per that study, "This analysis of 5-y weight-loss maintenance indicates, on average, that obese individuals maintained weight losses of 3.0 kg, representing a reduced weight of 3.2% below initial body weight. These individuals were successfully maintaining a weightloss averaging 23.4% of their initial weight loss at 5y"

Put another way, after 5 years, the average weight loss was ~3kg, with an average weight gain of 78.6% of the original lost weight.

Also, in general, an obese person who is obese before, and after 5 years has a weight that is ~3kg is likely still obese.

So this study basically just says that an average person isn't successful at keeping a large amount of weight, and gains most of it back. The specific statistics stated by the commenter above may not be correct, but the sentiment is definitely true.

That said, the study does confirm that very low energy diets (~800 meal replacement) beat out hypoenergetic balanced diet (~1200-1500 normal food) in long term weight maintence. Which is what the article is suggesting being implemented. So it's still not a great long term solution, but it's the better of the two non-exercise based solutions which this study evaluated.

dsp1234··on “So the silence from Facebook over the weekend is.. deafening.”
The closing price on Thursday was $168.84. The close yesterday was $162.44. That's a 3.8% decline.

I'm not sure where you got the $219 price from, but the stock price was nowhere near that before the breach.

dsp1234··on Proving our universe is one among many would be a fourth Copernican revolution
The load could be zero, it could be infinite, or anywhere in between. Infinite universes sending infinite work is inf/inf. It's not possible to know if that's going to tend towards something like 0 or something like positive infinity without having some way to measure. But it's an error to just assume it's zero.
dsp1234··on Zoho.com CEO says domain with 40M users suspended for abuse complaint
There are several layers where a registrar has control over DNS resolution.

Terms:

ICANN: The organization responsible for coordinating the maintenance of the domain name system (among other things).

Registrar: A company authorized to update ICANN database on behalf of registrants. Google, GoDadddy, Enom, etc are registrars

Registrants: An entity that wants to register a domain name. In this case, Zoho is a registrant, but it could also be an individual. This is your role if you 'own' a domain.

Authoritative Name Server: A domain name server that is considered authoritative for a specific domain.

Stuff registrars can do (among other things):

1.) They can update the ICANN database to disable a domain completely[1]

2.) They can replace your authoritative name servers with their own or someone else's (ex: botnet domains being reassigned to a security company for dismantling via court order)[2]

3.) If the authoritative name servers for a domain are owned by the registrar, then the registrar can merely change the DNS entries themselves to point to something other than the domain owner's wishes.

[0] - https://en.wikipedia.org/wiki/ICANN

[1] - https://www.icann.org/resources/pages/epp-status-codes-2014-...

[2] - https://www.icann.org/en/system/files/files/guidance-domain-...

dsp1234··on NewSQL databases fail to guarantee consistency and I blame Spanner
From the GetItem docs[0]

"GetItem provides an eventually consistent read by default."

This seems to meet the definition of "DynamoDB's default settings"

[0] - https://docs.aws.amazon.com/amazondynamodb/latest/APIReferen...

dsp1234··on Randomness in .NET
users should never have assumed it would be stable in the first place.

It's not an assumption. It's directly in the documentation.

"If the same seed is used for separate Random objects, they will generate the same series of random numbers."[0]

[0] - https://docs.microsoft.com/en-us/dotnet/api/system.random

dsp1234··on Why use GraphQL, good and bad reasons
There appears to be an on premesis version, which doesn't use AWS services.

https://www.datomic.com/on-prem.html

dsp1234··on Hydrogen derived from ammonia could open up new export market for Australia
The spec sheet at [0] claims:

Hydrogen storage is "Approx. 5.0 kg"

122.4L of volume (60L front, 62.4L rear)

pressure is between 70 MPa and 87.5MPa

Doing the math shows:

density of hydrogen at 70MPa equals 36.69 g/L [1]

122.4L at 36.69 g/L equals 4.49kg [2]

density of hydrogen at 87.5MPa equals 45.96 g/L [3]

122.4L at 45.96 g/L equals equals 5.63kg [4]

So the amount is somewhere between 4.5kg and 5.63kg, depending upon the final pressure after filling. Which seems to line up squarely with "Approx. 5.0kg".

[0] - https://pressroom.toyota.com/releases/2016+toyota+mirai+fuel...

[1] - http://www.wolframalpha.com/input/?i=density+of+hydrogen+at+...

[2] - http://www.wolframalpha.com/input/?i=122.4L+at+36.69+grams%2...

[3] - http://www.wolframalpha.com/input/?i=density+of+hydrogen+at+...

[4] - http://www.wolframalpha.com/input/?i=122.4L+at+45.96+g%2FL

dsp1234··on Cracking WPA-2 Just Got a Whole Lot Easier
Note that the beginning of the article quickly mentions the new attack that doesn't require the 4-way handshake. Then the rest of the article describes the 4-way handshake attack.

Here is the source for information on the attack that only requires a single EAPOL frame[0].

"This attack was discovered accidentally while looking for new ways to attack the new WPA3 security standard. WPA3 will be much harder to attack because of its modern key establishment protocol called "Simultaneous Authentication of Equals" (SAE).

The main difference from existing attacks is that in this attack, capture of a full EAPOL 4-way handshake is not required. The new attack is performed on the RSN IE (Robust Security Network Information Element) of a single EAPOL frame.

At this time, we do not know for which vendors or for how many routers this technique will work, but we think it will work against all 802.11i/p/q/r networks with roaming functions enabled (most modern routers).

The main advantages of this attack are as follow: No more regular users required - because the attacker directly communicates with the AP (aka "client-less" attack) No more waiting for a complete 4-way handshake between the regular user and the AP No more eventual retransmissions of EAPOL frames (which can lead to uncrackable results) No more eventual invalid passwords sent by the regular user No more lost EAPOL frames when the regular user or the AP is too far away from the attacker No more fixing of nonce and replaycounter values required (resulting in slightly higher speeds)" [0]

[0] - https://hashcat.net/forum/thread-7717.html

dsp1234··on Spotify GDPR data export: user receives 250MB containing every interaction
Party A records every interaction with Party B. Party B records every interaction with Party A.

Who owns what Party A recorded, and who owns what Party B recorded?

dsp1234··on Spotify GDPR data export: user receives 250MB containing every interaction
If I write down every song that I play through Spotify for a year. Does Spotify own that?
dsp1234··on Serverless, Inc. lands $10M Series A to build serverless dev platform
Want a debugger? Nope.

https://www.markheath.net/post/remote-debugging-azure-functi...

dsp1234··on A Trillion Worlds
What makes you say this?

About half of nearby stars that we can observe[0] have planetary make up that is different than our own Sun. By definition, the rest either have a make up that is like our own or not like our own. So let's assume that every single nearby solar system looks exactly like our solar system, we are just unable to detect that they are at this time. That still means that our solar system is distinctly different than half of the other solar systems. That ratio of difference will never go lower, it'll always be "The solar system is different than at least 50% of other nearby solar systems". But after we do more observations, it might be 60%, 70%, 80%, etc.

Or in other words, as the original commenter said, "It is certainly possible that the more we study the rarer it will become. (It can't really go the other direction at this point.)".

[0] - FTA, "Of order half of nearby stars have at least one (and often several) worlds with masses substantially greater than Earth and orbital periods ranging from mere days to weeks; in our system, the space interior to tiny Mercury’s 88-day orbit is entirely empty."

dsp1234··on The world's smallest desert is in Canada
Where did you get the precipitation data for those places, because the wikipedia pages for the two areas show that Carcoss[0] gets a bit less than Palo Alto[1] for example. 11 inches vs 16 inches respectively.

[0] - https://en.wikipedia.org/wiki/Carcross_Desert

[1] - https://en.wikipedia.org/wiki/Palo_Alto,_California

dsp1234··on How do dat:// sites interact with servers?
or content-type other than application/x-www-form-urlencoded, multipart/form-data or text/plain.

application/json is a content-type other than application/x-www-form-urlencoded, multipart/form-data or text/plain, and thus a request for it will fail unless the required CORS headers are present

dsp1234··on Wells Fargo Bans Cryptocurrency Purchases on Its Credit Cards
Buying an investment of dubious value... Nope!

Buying a non-investment of dubious value... Yes!

Buying a different investment of dubious value... Yes! (commemorative coins, stamps, comics, beanie babies, etc)

dsp1234··on Amazon Aurora Backtrack
Is this the modern day equivalent of "Nobody ever got fired for buying IBM"?
dsp1234··on Google Maps Platform
This is limited to Fire OS.

"The Amazon Maps API is a programming interface that enables you to add mapping capabilities to your app on Fire phone and most Fire tablets."

"The Amazon Maps API v2 is compatible with Fire OS 4.5.1 and higher, which is available on 3rd and 4th generation Fire tablets, and Fire phone. The Amazon Maps API v1 is compatible with the Fire phone and all Fire tablets except Kindle Fire (1st Generation)."

https://developer.amazon.com/docs/maps/faq.html

dsp1234··on Adding BigInts to V8
Isn't their solution Toom-Cook where the base is 2^32?
dsp1234··on We saved $50k/year with a Go microservice coded in a hackathon
"Some statements cannot be rolled back. In general, these include data definition language (DDL) statements, such as those that create or drop databases, those that create, drop, or alter tables or stored routines." [0]

[0] - https://dev.mysql.com/doc/refman/5.7/en/cannot-roll-back.htm...

dsp1234··on Scammers Using Fake News to Screw with Bitcoin Investors
I'm still not clear who the suckers are in these cryptocoin markets that are driving up the price.

It's my coworker who is HODL'ing because "it's got better returns than our 401(k)".

dsp1234··on It is not possible to detect and block Chrome headless
If I can navigate to it using a normal Chrome instance, then a headless instance is going to have all of the same information (accept-language) as far as the server can detect. Chrome headless is Chrome and makes network calls in the exact same way. That's why client side headless detection even exists.

So the only way in which what you suggest would work is if the system is so aggressive that it actually blocks a normal Chrome instance, which is more hostile that most systems are. But this allows a user to change settings until they do get a correct response back, and then just have the headless browser use those settings.

dsp1234··on Do You Have the Right to Plead Not Guilty When Your Lawyer Disagrees?
if the client tells the lawyer he robbed the bank

What reason would the attorney have for not believing the information that the client confesses voluntarily under the veil of attorney-client privilege?.

dsp1234··on Call of Duty gaming community points to ‘swatting’ in Wichita police shooting
The poster above comments on 'casual evil'. Can you identify what you think takes swatting out of the 'casual evil' bucket and puts it any other bucket? Because, it definitely stops being a 'prank' when multiple guns are involved.

There are literally no good consequences from a swatting, only bad consequences. I would argue that most actions that have literally no chance of good consequences, and high probably of bad consequences (minimum ruining a persons day and wasting police resources), are pretty good candidates for evil.

dsp1234··on Engineering Habitats for the Moon and Mars
much simpler designs

Simpler than a water reservoir and regolith sandbags? The former is required anyways, since people will need water, and the later is about as simple as it comes (we use sandbags here on earth all the time for impromptu buildings).

dsp1234··on The sorry state of OpenSSL usability
openssl(1) links to https://man.openbsd.org/openssl
Page 1 of 31Next →