HNHacker News
TopNewBestAskShowJobs

theincredulousk

446 karma · joined July 22, 2016

submissionscomments
theincredulousk··on Reverse Engineering Snapchat: Obfuscation Techniques
There are commercial products that largely automate these techniques through metadata. See Arxan.
theincredulousk··on 20yo Robinhood Customer Commits Suicide After Seeing $730K Negative Balance
They have several extra responsibilities: ensuring your trades are handled fairly, the price information you're provided is reasonably accurate, and reasonably ensuring that you are generally capable of understanding what you're doing and the risks involved.

Ensuring you don't lose money, or overreact to numbers on a screen, are not among them.

I feel terrible for the kid. Even though he should have been well aware of what to expect in this situation, it seems like common sense that RH (or any trading software) should have some UI indication when the balance shown is a partially settled trade. It is an accounting reality - yes for a bit his account is really -$700k - but even if you know that, opening the screen and seeing it without some caveat is like a prank. Got you! You're actually not bankrupt. Seems unnecessary.

theincredulousk··on Netgear 0-day vulnerability analysis and exploit
Predictably, the web servers are an afterthought for branding so that users don't have to edit configuration files and operate at a command line.

(a) 99%+ of people buying these things do not know or care about security, aside from someone stealing their WiFi bandwidth (b) the manufacturer does not care because of (a).

As follows, all they care about (WRT to the web server) is that they are easy enough for non-technical people to setup such that they don't end up on a tech support call or returning the device for a refund. That is it.

If you are the 1% that cares about security on your home network, it is far less stressful to simply conclude these products are not for you and move on with your life. You should be looking at enterprise hardware, open source router firmware, or rolling your own.

In any case, what surprises me is that over time the router manufacturers haven't simply built up a single, relatively patched-up, web server implementation that they re-use. Even without aligned incentives, you would think over years and years of development they'd have something at least as good as what you can clone out from from github for free.

theincredulousk··on Netgear 0-day vulnerability analysis and exploit
Get an enterprise router/firewall.

Also most of these vulnerabilities (as the article points out) are in the web server. If the web server isn't exposed,it isn't of much practical security concern.

I've also run DD-WRT for years with excellent results. Per the usual benefits of open source and active maintainers, it is generally going to (a) have the trivial stuff already addressed (b) keep up to a reasonable extent with security patches.

theincredulousk··on Database “sharding” came from Ultima Online? (2009)
Probably some UO players at Google then - UO was old by 2003.
theincredulousk··on Database “sharding” came from Ultima Online? (2009)
I've played a bunch of them a bit, and nothing comes close. Some of it probably has to do with timing - a true sandbox game when there was a cultural match with the desire for that environment.

Nowadays if you had a game with glitches that allowed people to steal your items outside of intended game mechanics, there would be an uproar on Twitter and punishing 1-star steam reviews. Back then it was infuriating, but part of the atmosphere. The night was dark and full of terrors, so to speak. Also the actual concept of real-estate, with a real house and your own vendors, was really next-level stuff for immersion. Exploits like duping that ruined the economy weren't beneficial to the atmosphere though, and actually broke immersion.

Nostalgia holds up a lot of it though I'm sure. Just like anything else, playing it again now probably wouldn't bring back the same experience.

theincredulousk··on Modern C++ gamedev: thoughts and misconceptions
I don’t think this really covers the whole topic, but yeah the Twitter thread is toxic in the exact way most threads are tbh...

I’ve been using C++ for about 15 years now, and also tbh, and dislike just about everything beyond 11-14. The cognitive load reading code has just skyrocketed. The simple basis of the issue was when the meaning of existing syntax elements being “overloaded”. &, &&, [] in my mind. It is not complicated or profound reasoning - simple as now you need to decipher more context to understand what is being expressed. I’ve been materially disappointed to spend 5-10 minutes reading a small bit of unfamiliar code only to learn that what it ultimately expressed was truly trivial. It just makes you feel like c++ has become like the toxic parts of academics/math where everything is expressed in the most complex way possible to establish superiority over others.

The comments about debug ability are true. STL sources/template stacks are absolutely terrible to work with. Luckily with the STL though, what 99%+ of the time, the bug is in your usage, so it doesn’t matter much. To be fair though that is a trade off - I feel like I’m on vacation debugging c# or Python, but that is (almost) an intrinsic benefit of interpreted languages, with the well-known associated costs. Just templates... the cognitive load of having to understand (simply read) and debug code from an abstract definition introduces significant pain in terms of debug ability and general usability.

“C++ is not the STL” - true but c’mon - whatever is built-in mostly defines the stuff that you can be sure is portable, and rely on as a standard practice/resource in large projects. Very few sane people want 5 different implementations of a vector or string from god knows where with god knows what bugs. In the industry for c++, there is serious need for the _option_ to “reinvent the wheel” of standard libs, but it shouldn’t be that this is necessary to achieve baseline performance or usability in common use cases.

I am of the same opinion as at least one other below - simplicity of implementation and readability of language are king in the “real” world. What’s better than the beauty of a meta-programmed, absolute masterpiece of modern C++ and zero-cost abstractions? A program that I can understand in 10 minutes two years after it was written, or better yet that can be understood and debugged by 90% of skill levels instead of 10%.

This conversation could, and does, go on without end. My net-net conclusion so far is that modern C++ has done more harm to itself than good because it is trying to be too much. When the creator of the language can’t even keep up with it enough to call himself an expert, it’s a pretty obvious red flag that things have gone off the rails.

theincredulousk··on Ask HN: Mind bending books to read and never be the same as before?
Surprised not to see Liu Cixin mentioned yet?

The Three-Body Problem & The Dark Forest.

theincredulousk··on GitHub Codescanning
It is typical enterprise sales. If the prices aren't listed, it usually means you're charged based on what they estimate you can afford for the value-add. It may be $12k/yr for a big company and $1.2k/yr for a small one.
theincredulousk··on How to get stock fundamentals data with Python
https://xkcd.com/1570/

The important math for understanding the foundations of finance and business isn't advanced math. It is accounting - primarily addition, subtraction and simple algebra or calculus 101 for things like interest calculations or discounted value modeling. This basic math also underpins the "fundamentals" of business used in objective, common-sense investing - the kind Warren Buffett is fond of.

Also, "stocks" and math are a classic "the map is not the territory" situation. Math describes stocks and business performance very well but does not define it. A machine learning algorithm trained on historical price data in concert with differential equations of 1,000 variables will historically do no better at investing than buying and holding index funds.

Technical Analysts "quants" would disagree, but alas: https://www.bloomberg.com/news/articles/2020-05-02/after-qua...

So the thing to focus on isn't going from math -> stock trading. It is to learn accounting and business and basic stock market concepts. Eventually a math background will help, but it's support not the foundation.

theincredulousk··on 0.999...= 1
great point. My thought on (1/3 = 0.3333...) * 3 = 1 = 0.999... was that it is intuitively obvious that the "problem" is that we use base-10 for decimals. There is nothing magic or unknowable about the quantity 1/3.

I've often wondered if there is some alternate base or mathematical system entirely that would be "better" in these respects. The thought usually comes up thinking about why pi is such an "ugly" number in base-10 decimal.

theincredulousk··on Our Government Runs on a 60-Year-Old Coding Language, and Now Its Falling Apart
Yes I do remember reading the one - maybe it was Google IRS - that they tried replacing cobol with Java.

Maybe in some cases they just need a new IBM mainframe instead of re-written software.

theincredulousk··on Our Government Runs on a 60-Year-Old Coding Language, and Now Its Falling Apart
COBOL isn’t falling apart, the systems are exceeding their design limits. “Oh if it were just written in a modern language everything would be fine”. Not true - we create modern systems every day that would choke and die if they had to scale several orders of magnitude instantly - in fact it happens about weekly when an unsuspecting link hits the HN front page. Also, I would wager 90%+ of software written today is 10-100x more fragile over time than whatever COBOL software is on these machines. What do you think the chances are of those 100 fancifully orchestrated micro-services running 10 abstraction layers up on 3rd party infrastructure are of running at all a decade from now, never mind within their original design constraints.

Old doesn’t necessarily mean worse and newer doesn’t necessarily mean better, but that logical foundation is easy to forget in a tech culture so often myopically focused on innovation(tm) and short-term profit or austerity above robustness.

The relative rarity of COBOL programmers aside, this is a just an garden variety f* up of keeping legacy systems around too long because they aren’t “broken”. And like technical debt, the money and effort to fix them, despite many warnings and pleas, is called a waste because there is no immediate benefit or profit.

Then something like this happens, and everyone forgets the shortsighted management or decision makers that ignored the risk and collected bonuses and praise for saving the Corp/taxpayers money. Those who warned about the debt coming due get nothing except being able to say “I told you so” for a few weeks until the whole thing blows over.

theincredulousk··on I am mesmerized by our new robotic vacuum (2019)
Thanks the burning question I had was how it finds the base station again after roaming.
theincredulousk··on Trading halted as U.S. stocks plummet
It isn't bad advice to hedge your position with options, although doing it short term as suggested here is an active trading strategy and inherently more risky.

Contrary to popular belief that options = gambling, this is the #1 real utility of them. If 90% of your investments are tied up in S&P 500, it makes sense to hedge that with put options which provide a clearly defined max-loss over the contract duration of the option.

So in a period like this when those put options become valuable due to price drop and general IV, you can do as suggested and sell them to re-coup losses and maintain capital. It doesn't change the lifetime performance of your money placed in the corresponding security, but it most certainly improves the performance of your portfolio as a whole and limits the damage that can be done in any given downturn.

If you only hold securities, index or otherwise, your only recourse is time. I certainly wouldn't recommend trying to time the market, just like I wouldn't buy an insurance policy the day before a loss. That doesn't mean you avoid insurance altogether because you can't predict when you'll need it.

theincredulousk··on The worlds worst IoT idea is almost fully funded
Yes, what they have here is akin to an IoT light bulb that you can turn on but not turn off, with the added bonus that in this case "on" is a safety risk.

Don't often see a true-to-life, physical embodiment of the phrase "half baked"

theincredulousk··on Ring Doorbell App Packed with Third-Party Trackers
Chances are low to identify someone (for the time being, but increased video quality and facial recog. vs. a simple driver's license/ID database may change that soon). Obviously like you said, nothing you can do with a face mask.

But at least if you know something is happening in real-time, motion triggers being the most important, there is at least some chance to intervene or call the police depending on the circumstances. Even if you can't stop them, speed is key, and if they are on foot they could be caught in the area afterwards with vague id such as clothing only. Capturing a license plate is probably optimal though, if they aren't on foot. Cameras are very good these days - HD and higher 30/60fps video - not the pixelated/blocky/useless recordings of 10 years ago.

Also good to know ahead of time if there is anyone snooping around looking for easy targets (as small-time burglars do). Some systems do also have monitoring services.

Otherwise yeah, cameras are at best a deterrent and source of evidence, nothing more as a passive device. Best security system I've ever had was a German Shepherd. Fully autonomous deterrent + active response if necessary :)

theincredulousk··on Full body teleportation system – Google Patents
big if true.

Also, humorously, cited by:

US10430379B2 2017-06-05 2019-10-01 Vmware, Inc. Identifying common file-segment sequences

Is that a referencing error?

theincredulousk··on 100% winrate trading strategy open sourced?
yes. You know the lower bound on price is 0, and the upper bound of infinity is probably of no practical value, so you can pick something like 10 or 100x max all-time. Volume is the same, 0 to infinity, but again you can pick a distribution that is much (10-100x) wider than the real one. The wider the better, as it will better uncover tail risks and payoffs for highly unusual or atypical events (see Taleb, Black Swan, etc.)

I'm not making this up - this is how model testing is actually done, in multiple domains. Simulation is a reason banks, HFTs, hedge funds, etc. use massive compute infrastructure - doing it the right way, with many millions of plausible data sets, requires orders of magnitude more computing resources than back-testing on one data set that just happens to represent one way things could have played out (i.e. reality).

Thinking that one historical data-set is somehow special (in itself, without context) is largely a delusion. In fact you can generate near perfect historically accurate price charts just using a random walk algorithm seeded with an opening price.

theincredulousk··on 100% winrate trading strategy open sourced?
"Random data" didn't mean a random data set from a different domain. It meant random data from the same domain - simulated price/volume data within a reasonable range. If it can't work well on that, then it isn't a trading algorithm, it is a glorified fit curve.
theincredulousk··on 100% winrate trading strategy open sourced?
It still just means you're finding parameters that match some subset of the relationships present in the data as a whole.

All sliding the window does is discover the parameters that work for the whole data set in chunks - it is an artificial distinction. It still regresses to: you've found some number space generated by some function that matches some percentage of the numerical relationships (correlations) present in the data.

It's circular reasoning because during creating the parameters you're testing it on the "future" data. It only "guarantees" success in the "future" because you discarded all the parameters that didn't work in the "future". No different from writing a model that uses the S&P 500 price "parameters" between 250 and 1000 and back-testing it on data from 1950-1996.

The only way to prove your algorithm's robustness is to generate random data and test it on that. Once you've tested against every one of the infinite possible realities of a single time window, then you can rightly assert that past results have guaranteed success in the future. Hint: it's impossible, but the random data testing is actually the correct technique to test algorithms at scale.

Back-testing on historical data is like a footnote compared to the thesis simulation can generate - the only value it contains is correlating relationships between market data and external variables not present in the numbers. Back-testing to tune an algorithm based purely on the numbers in the data is just an exercise in quantified hind-sight bias.

theincredulousk··on 100% winrate trading strategy open sourced?
Devising a set of parameters that backtests 100% means nothing - there are an infinite number of parameters and models (or more accurately, algorithms) that can backtest any data set like this 100%.

In that sense, the math and "indicators" are just an obfuscated, custom-fit version of another algorithm that backtests 100% - if price[now] > price[now+1] -> sell else -> buy.

Rather than looking up the prices via array in the data, clearly "cheating", a set of parameters is hunted down that encodes that relationship in a number space. It doesn't mean anything more than the meme: 79 beers - your age + 40 dollars = the year you were born (which backtests perfectly as long as you were born after 1900).

That said, by all means, keep running the algorithm on new data every day and see how long it stays perfect. I'd be interested in the results.

theincredulousk··on Options for Enhancing Video of a Burglary?
Not going to out OP's location by linking, but the actual video was posted in Ring (so publicly available). OP, if you want experts to help, maybe consider just posting the link.
theincredulousk··on Options for Enhancing Video of a Burglary?
Video frames can be composited to improve clarity the same way it is done in Astrophotography.

And your assertion that "any software technique...won't look like the face" is incorrect. Again using multiple frames, it's entirely possible to infer what clearer underlying detail would result in the less-sharp pixel values in the video, given the training data establishing the relationship. It's a specific technique for reconstruction, not just drawing in a realistic but synthetic replacement like Photoshop's content-aware fill.

theincredulousk··on Options for Enhancing Video of a Burglary?
It's mostly true, but your cynical experience is probably also anecdotal, unless you are in law enforcement dealing with these cases daily. It's also defeatist not to "stick up" for yourself when you've been done wrong, which consequently only serves to embolden the wrong-doer.

In fact I watched these two videos on Ring, since by insane coincidence this happened in a neighborhood less than 3 miles away. Someone there had already recognized seeing the person sitting outside a nearby Starbucks.

Facial recognition, image search, and the internet has come a long way. It shouldn't be long or far-fetched that local law enforcement can start leveraging these tools to pursue more of these cases. For all the fear-mongering, and true ethical issues, of facial-recognition and surveillance, this is a situation where it can actually pay dividends.

(and no they'll probably never get their stuff back, but that is what insurance is for. Hopefully it was nothing sentimental or otherwise irreplaceable and truly just "stuff")

theincredulousk··on Options for Enhancing Video of a Burglary?
Wow small world! I saw you post this on Ring. Hello from the greater Seattle area :)
theincredulousk··on Options for Enhancing Video of a Burglary?
wow small world - I saw you post this on Ring. Hello from the greater Seattle area :)
theincredulousk··on Kaggle Petfinder.my Contest: First Place Winner Disqualified
Seems like this would have taken roughly as much effort as a real solution...
theincredulousk··on What Will Happen in the 2020s
I think the next decade will see a radical change in the materials used to make a significant percentage of common goods. From biodegradable materials that equal the performance of petro/plastics, to graphene replacing steel, aluminum, carbon-fiber, etc. for many applications. Also potentially changing the game with respect to microchip fabrication and performance.

RE: Graphene though, there are so many military applications, that it’s hard to say what the lag will be to civilian technology. If history is any indication, and I hope it isn’t, there could be a decade or (much) more between first production applications and public knowledge that those applications even exist, let alone having access to products incorporating them.

theincredulousk··on Google Fires Four Workers, Including Staffer Tied to Protest
Bias maybe unavoidable, but trustworthy is an earned personal attribute. Context doesn’t affect it.

Some people have integrity and have earned their credibility. This exact kind of situation is when that matters.

← PreviousPage 3 of 5Next →