Better HN
topnewbestaskshowjobs
Log inSign up

TacticalCoder

10,590 karma · joined Dec 4, 2013 (12y ago) · 4,855 submissions

email: I'll add a suitable email one of these days
Submissions

comment 5y ago · link · parent

This... I was an early MD adopter for music and I remember trying to find info as to how to use these for data but it wasn't possible. Funnily enough I totally forgot how I would record them: I know I'd transfer my songs from CDs to minidiscs, but I forgot how.

At approximately the same time, on my Mac, I was using the Iomega ZIP drives, ranging from 100 to 250 MB if my memory serves me correctly. These always felt heavy and bulky compared to the minidiscs.

The form factor of the MD was really cool and kinda still is.

comment 5y ago · link · parent

I've definitely been bitten by similar (not identical) stuff. I've seen data serialized and sent over the wire by I-don't-know-what where several parsers can't correctly parse/serialize and end up with the same thing written back. Be it 32 bit float/64 bit float/string parsed as 32 bit float/string parsed as 64 bit float/string parsed as big decimals: I don't care, the fact is there are buggy serializers, buggy parsers, and even sometimes buggy parsers going into infinite loop (the JVM is famous for that: there was a bug where Double.parseDouble could be sent into an infinite loop by feeing it a carefully crafted string).

The fact is: such kind of SNAFU does happen.

comment 5y ago · link · parent

> If the sort function decides those strings look like numbers it may coerce them into doubles (ints being too small to hold them).

You sometimes even see that with APIs inconsistently wrapping behind quotes or not (seemingly at random) some values. And then it gets trickier because you can have the parser correctly parse into, say, "big decimals" some of the values, while others may be automagically, imprecisely, parsed into floating-point numbers.

The problem is of course made worse by people overall overusing decimal numbers where integers would be totally fine.

One of the most beautiful floating-point bugs ever is this one (from about ten years ago as I recall it): language preference in browsers could be set as a decimal number between 0 and 1. Java (and other languages) had a broken floating-point implementation where parsing a certain floating-point number would lead to an infinite loop. So you could set one core of any webserver with that bug by simply requesting a page, with the language preference set to that floating-point number. Rinse and repeat a few times and all cores were spinning at 100%, effectively DDoS'ing the webserver.

comment 5y ago · link · parent

Roman aristocracy two thousands years ago was pretty much looking like people from northern Italy today no!?

If anything Augustus looks to be modern eastern european (from its famous statue).

What's not correct about "white" when depicting roman aristocracy? From all the statues we have they were certainly neither asians nor black nor from india nor descendants of, say, the aztecs.

Here's a reconstruction using AI of 30 roman emperors and I'd say 27 of them look totally white.

https://www.boredpanda.com/realistic-recreations-ancient-scu...

Heck, they even made Augustus with blond hairs and blue eyes (I have no idea if that's correct: all I can say his is marble statues looks like the modern easter european type to me).

Now I can understand they didn't sound british when speaking, but I don't see why you write "white, british actors". If anything, and there's nothing racist in there, "black british actors" would have been weird no!?

Or maybe you meant to say most of the aristocracy probably had the "mediterranean" type? (which I don't think is true and which, anyway, is classified under "white" I think?)

EDIT: TIL: Augustus' biographer, Suetonius, wrote that Augustus indeed had golden hair and clear eyes. This comes at a surprise to me.

comment 5y ago · link · parent

> I think without the special keyboard APL is a no-go these days.

Unicomp, the company who bought the rights and tools for the venerable IBM Model M keyboards, do still sell to this day both IBM Model M keyboards and sets of APL keys (!).

https://www.pckeyboard.com/page/product/USAPLSET

comment 5y ago · link · parent

> ... although I believe you need a positive PCR test for that, an antibody test is not sufficient.

Most countries in the EU just relaxed the requirements to travel before the summer vacations. You don't need a PCR test anymore to travel: just an antibody test (at least for Spain / France / Belgium but I take it many others are doing the same). And there's no requirement to be vaccinated.

They also raised the age at which you need a test from 6 to 12 years old.

Source: always living/traveling across France/Belgium/Spain.

Fun fact: when you travel by car in the EU they typically do not bother to check. You can cross several countries and they're not verifying anything. Another fun thing: test is supposed to be less than 72 hours old, so if you're traveling over more than 3 days, you need to get re-tested during your trip.

comment 5y ago · link · parent

> Everyone is surprised to find the government does shady stuff, but many of these operations are even acknowledged like Iran-Contra where the government sold arms to the embargoed Khomeini government to generate black money to fund the Contras.

Another one, maybe the biggest known one, is when the US sent 12 bn to 14 bn in the form of 100 bills (yup, in bills) using a military plane to Iraq and these bills mostly all mysteriously vanished.

12 to 14... billions.

At least 1.4 bn was found to have been stolen and stored in a bunker in... Lebanon (I don't remember if it was just located or seized). Overall an estimated 9 bn are unaccounted for I think.

(trying to insert the wikipedia and NY Times link to the story/stories but I get a "we have trouble processing your request, sorry" from HN)

There were wire transfer to the tune of billions too. But the 100 bills shrink-wrapped and flew in a military plane: you cannot make that up.

Shady stuff if any...

EDIT: like Iran-Contra, I'm pretty sure in the future movies are going to be made about these $100 bills.

comment 5y ago · link · parent

> on the good side of things, getting an Intel CPU to enter the red state is not easy to accomplish. In fact, it should never happen unless there are vulnerabilities in the Intel Management Engine (ME), an almost undocumented subsystem present in all Intel CPUs since 2008 that Intel says is required to provide full performance.

"unless there are vulnerabilities or backdoors in the Intel Management Engine (ME)".

There, fixed it for you.

comment 5y ago · link · parent

I probably have some very old code somewhere I wrote for fun where I modified the Levenhstein edit distance DP algo to take keyboard layout into account. For example if you have "doga", the edit distance with "dogs" and "yoga" is the same. But if you're on an QWERTY or AZERTY keyboard, "dogs" is a much more likely typo than "yoga" for "s" is close to "a" while "y" is nowhere to be seen near the letters you entered. Something like that. So basically by taking the keyboard layout into account suggestions can be ranked more efficiently.

Pretty sure the modification was relatively simply and the algo was still a dynamic programming algo. I probably still have the code somewhere.

EDIT: memory being fuzzy too but as I remember it the Levenshtein edit distance ain't that great for typos for a typo where you invert two characters counts as 2 instead of 1? It's probably overused for it's DP implementation is beautiful...

comment 5y ago · link · parent

It is great to see a trading strategy that actually make gains while short-selling, during mostly bull markets. "Everybody looks like a genius during a bull market". Short-selling is something else...

comment 5y ago · link · parent

It would work very well with Bitcoin, which uses a public ledger, but that wouldn't work with fully anonymous cryptocurrencies using zero-knowledge proofs to transmit messages and/or money.

Maths are funny like that.

comment 5y ago · link · parent

One of the problem is that a lot of devs have very good connections at home. I've got 600 MBit/s symmetric (optic fiber). Spain, France, now Belgium... It's fiber nearly everywhere. Heck, Andorra has 100% fiber coverage. Japan: my brother has got 2 Gbit/s at home.

My home connection is smoking some of my dedicated servers: the cheap ones are still on 100 MBit/s in datacenter and they're totally the bottleneck. That's how fast home connections are, for some.

I used to browse on a 28.8 modem, then 33.6, then ISDN, then ADSL.

The problem is: people who get fiber are probably not going back. We're going towards faster and faster connections.

It's easy, when you're on fiber since years and years now, to forget what it was. To me it's at least part of the problem.

Joel is not loading his own site on a 28.8 modem. It's the unevenly distributed future.

comment 5y ago · link · parent

> ... but most countries think they are entitled to some tax revenue from companies operating in their nations even if the company is wholly owned by foreigners.

Any individual in the EU buying anything from a foreign company operating in their EU nation pays the VAT on the good or service. That's usually 21% and up to 25%. And that's not on the profits.

That's already quite something.

comment 5y ago · link · parent

Is this really about taxing multinational companies or is this about establishing a "minimum 15% corporate tax rate" for every SME and mom and pop shop?

TFA says that Ireland is going to accept the change: atm they've got a 12.5% tax rate.

What about Hungary? Corporate tax rate at 9%.

Once this shall be in place, the one sure thing is this "minimum 15%" is only ever go up, never down. There won't be any incentive ever to make it go down as there won't be the risk of companies moving abroad to pay less corporate taxes.

And this says nothing about dividends or income taxation, so you'll end up with SME owners paying "minimum 15% corporate tax" and then on top of that 34% dividend tax, for example.

I really wouldn't be surprised if this was sold as "tax the FAANG" while ending up trouncing the SMEs owners a bit more.

comment 5y ago · link · parent

> Remember, Tether has no upside. There is no reason to ever hold Tether for any length of time.

It looks like USDC, issued by a company co-owned by Coinbase (YC incubated right?) and Circle, is quickly replacing tether. One year ago there were about 1/10th of USDC compared to tether, now it's half.

Apparently USDC are really fully backed by real USD and the smart contract for USDC can block any address containing USDC at any time (which eases some concerns regarding complying with authorities while it probably raises some concerns for others).

I take it for those concerned it wouldn't be unwise to sell your USDTs for USDCs.

For somehow I don't believe that Coinbase is pulling a ponzi scheme with USDC.

comment 5y ago · link · parent

But there's lots of truth in it. We thought a long time before having one kid. It doesn't make me happy to bring a kid in a world of state-surveillance, capitalism-surveillance, worldwide resource depletion and ever growing amount (at an alarming rate) of rules and laws.

We don't have high hope and I'm raising my kid telling him and preparing him for a world that may not be as easy as my boomers parent generation had it.

We still have some hope that said and I believe some places on earth shall be better than others. So I'm raising my kid in english so that at least it should be easier to live an expat life (like I do).

And I gotta say: when the states fuck up too much, that's the ultimate resistance. The last stand: saying "screw that, I'm not making kids in this broken state". I cannot fault these people.

comment 5y ago · link · parent

> I think the UK and EU should be looking at creativity of accounting

I think the EU should look into the crazy high tax rates people and companies can experience in the EU and set a hard cap, because it is out of control.

For a start it'd be fair games if it was legally disallowed to tax individual at a higher tax rate than what EU servants are paying (somewhere between 5% to 12%, while for "plebs" not working in the EU it can quickly go above 50%. 50% + 19% social wellfare tax in my case).

I've personally had enough. I'm an expat now. I just created a company with another expat, living in another continent, and we picked a business-friendly place to incorporate.

The EU could have had my business had they been showing some willingness to be nice to business. But it only ever seems to go in the way of more taxes no matter which EU country you're in. Screw that: I'm out.

> ... except that another cohort of politicians get rich

That said I'm not sure politicians in the EU get very rich. It's not the US nor Russia where you get politicians billionaires (at least it's really not common). I don't think the president of France, for example, is paid more than an average SV wage (I think it's actually half that). The uncovered bribing cases in the EU have mostly been very petty: it's really sad for how cheap votes can be bought (say a dinner and a week-end paid in a nice hotel). We're talking about EU member of the European Parliament cheating on "presence tickets" (pretending they're there to vote when they're not) to collect about 300 EUR everytime they cheat (absenteism is so big that they had to incentive MEP to vote by introducing tickets were they'd get a little bonus everytime they vote). MEPs are cheating by signing in the friday mornings (votes are typically done on friday), so they get their 300 EUR bonus, but then they go home for the week-end. That's petty mindset, to make petty money, not rich.

comment 5y ago · link · parent

And even on stuff like the 68000 on the Amiga/Atari ST we were using sin/cos tables for lookups were way faster than doing multiplication/divisions if I recall correctly. I have fond memories of tools allowing to create these tables for "sprites" movements (in either demos or games) but forgot how these little tools were called: maybe "table editor"?

comment 5y ago · link · parent

> Forney at one time had a stack of ten of her 1987 Toshiba laptops that she’d bought on eBay for $10 to $12 each. “We’re down to our last one,” she says.

I don't remember all the details but if my memory ain't failing me there was something similar with the software used to interface with the iconic McLaren F1 car. Only about 60 of those cars have been produced (at least for the road, maybe more for competition) and the mechanics servicing these cars had to stockpile old laptops because the proprietary software/interface had never been ported to modern technology. Eventually a few years ago McLaren assigned developers to the task and a new version was made. I think they did it because they were running low on the pile of old rusty dusty laptops ; )

comment 5y ago · link · parent

OK with your numbers but a $1k chair should last a decade easily. Mine is nearly 11 years old and looking brand new (and still under warranty for one year).

$1k screen: 3 years old and going.

MacBook Air here is from 2013 (beginning to fail so I'll buy a M1 soon I guess). Work is done on my six years old desktop (16 GB Ram / NVMe PCIe 3.0x4 SSD): not a speed daemon of a PC by today's standards but not slow either.

I don't cheap out on stuff: they just last years, and years and years.

comment 5y ago · link · parent

Same here. Where are the state tax computation?

comment 5y ago · link · parent

> "you’re only an alcoholic if you pour your own drinks” (apparently this is a meme in Japan?)

(source: I've got family in Japan). It's polite in Japan to serve others and then let someone serve you. Otherwise it's "tejaku" (pooring oneself's drink). In, say, France/Belgium it's different: the one who serves from the bottle serves everybody and ends up serving himself.

Now, obviously, when you're drinking alone there's nobody to serve you...

comment 5y ago · link · parent

> Why some devs try to avoid the mouse?

I use the equivalent of "easy motion" aka "ace-jump" or "avy" under Emacs to move to any character on screen about 4 to 5 keypresses. Two to invoke that "jump to any character on screen" command, one to tell which character I want to jump to, then one or two depending on how many occurrences of that character there are on the screen.

I'll put it simply: my cursor is where I want it before you have even grabbed your mouse. And that is the reason why I avoid the mouse.

Same for "menus" and commands: shortcuts are faster than using the mouse. Once a list of potential candidates shows up, I use the same "select any candidate using the minimal possible amount of keypresses" command.

comment 5y ago · link · parent

> I still use nano as my default editor for commit messages.

You don't work with Git as a DVCS? Or you work with Git and Emacs but don't use Magit!?

comment 5y ago · link · parent

> Second, it had the effect of ruining the lives of ordinary Americans living abroad who, while by no means wealthy, were working middle class. People like myself had our bank accounts closed...

Yup. Many banks in the EU simply said: "Screw that, we're not complying. We just kick all the US citizens out and close their account and refuse to ever deal with any US citizen now". I've had several bankers at different banks tell me the same. Now none of them told me they were consider these accounts as belonging to tax evaders: it's just that the complexity of complying was crazy.

You see the same on some website: some sites in the US simply don't want to bother complying with EU laws, so they just give the fingers to anyone coming to the site from an IP address in the EU.

That's the thing: a state or supranational entity like the EU can come up with any law it wants, private companies in other states aren't forced to comply. They can just give the middle finger and say: "if that's how you want to play it, then your citizens are out".

comment 5y ago · link · parent

> Since the politicians are so deeply involved in the banking sector,[3] the only real hope of change is that a higher power takes more control.

This is typical of a certain political mindset: too big of a state ain't working, but surely an even bigger state shall work. This time, believe us!

The answer is not "more of what doesn't work". The answer is less.

comment 5y ago · link · parent

US is "so much richer" than Russia. China is "so much richer" than Russia.

France is not "so much richer" than Russia. You chop 40% of France's GDP and that's the GDP of Russia. Sure that's bigger but then Russia has 2x the amount of people and... 30x the country size. 30x.

I have absolutely zero doubts that Russia is going to overtake France's GDP in a not so distant future.

Since losing the Waterloo battle France went from world's 1st superpower (debatable) to 2nd, 3rd, 4th, 5th (in the eighties and maybe still in the nineties?), then 6th and now 7th. And the path seems pretty clear to me.

(I'm not russian btw and I don't approve what Russia is doing here but I know how "cocorico" french people can be and I wouldn't want others to be mislead so I simply present facts: chop 40% of France's GDP and you've got Russia's GDP. Russia has 2x the population and 30x the land of France)

comment 5y ago · link · parent

> Bad ones (pathological ones) - we just try to get rid of them ASAP and no refunds.

A customer "not buying much" is not "bad". If you accept his money for cheap stuff, he is your customer. There's a difference between an honest customer who usually doesn't buy much and then buys something expensive and is getting sadly scammed and a customer trying to rob you.

If you accept the customer for cheap stuff but refuse to help him when he gets scammed on an expensive item, you are the bad, pathological, person/business.

comment 5y ago · link · parent

That is true but in french at least "informatique" means both "computer science" (for example you can study "informatique" at university) and "anything related to computers". "What's your line of work?": a DBA, sysadmin, software developer, computer scientist, etc. may all answer simply "informatique". A series of books for beginners about Excel, Word, Internet, etc. may be called "Collection informatique".

Or if, say, you have issues delivering something on time to a client (no matter the domain), you can always invoke a "bug informatique".

So "informatique" means and is used, at least in french, much, much, much more than just "computer science".

In a way it's even worse than in english: at least "science" is added to "computer" in english and it's kinda self-explanatory. In french everything is in the same basket: from someone doing its Ph.D. to someone having a lesson to learn how to use the mouse... It's all "informatique".

comment 5y ago · link · parent

When I'm in the zone, here's something that happens: SO asks a question and somehow I hear the question but I don't process it, the question/event goes on some kind of stack. Then 5 or 15 minutes later I answer the question.

External stimuli is simply processed differently. There can even be a phone ringing for minutes, driving SO and kiddo mad. Yet I don't hear it: or at least it doesn't disturb me.

It even happens, rarely, that I get out of the zone and notice SO is gone and I'm a bit lost then I have to "focus" on the stack now: "ah yup, she said she went to pick her mom for she eats with us tonight".

I honestly don't know how to describe that as something else than being in some kind of zone.

I've seen friends studying for exams being in the same kind of state.

I like being there and I'm convinced I'm doing better work when I'm there.

EDIT: and there's something I do like in TFA: I separate my computer in "virtual desktops" assigned to different things. The main coding virtual desktop / workspace is ads-free for example (got a browser open but only for dev / for testing the (ad-free) thing I'm working on). I've got a "private email" virtual desktop, a "professional email" one (which is separate from the main coding virtual desktop), etc. It just makes sense to me.

1
152153154
162