Better HN
topnewbestaskshowjobs
Log inSign up

TacticalCoder

10,594 karma · joined Dec 4, 2013 (12y ago) · 4,862 submissions

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

comment 3y ago · link · parent

I tried it just for fun yesterday: transforming Git commit message whose subject are too long and that are not in the imperative tense into short title using the imperative tense.

For this kind of thing it mostly works.

comment 3y ago · link · parent

Oh the memories! I've spent countless hours on MacOS 8 and then 9 IIRC, running QuarkXPress to do professional desktop publishing. Mostly on a beige Powermac G3 tower. I still have that computer somewhere in a garage, don't know if it still boots and still has my software of yore installed.

Our physical tools of the trade were Iomega Zip drives and Iomega Zip disks (100 MB then 250 MB IIRC), Apple II Extended keyboard (the M3501, with ALPS switches: incredible keyboards for the time), HP LaserJet printers (600 and then 1200 dpi) and Sony Trinitron CRTs.

comment 3y ago · link · parent

> Pension funds and other 'non-bank' financial firms have more than $80 trillion of hidden, off-balance sheet dollar debt in FX swaps, the Bank for International Settlements (BIS) said.

Ah yup pension funds. In some countries they're mandatory: money is forcibly taken out of your salary to put into pension funds. Which may or may not give money back to you in 30 years once you retire. A few weeks ago the governor of the bank of England said pension funds were "hours away from collapsing".

Why the fuck was that? Can't pension just simply DCA reputable stocks and call it a day? No. They have to do crazy things. Like that Canadian teachers pension fund who put $95m into... FTX. Yup. FTX.

I don't know about you but I'd rather not have the state use its monopoly of violence to confiscate my money and put it in a pension fund, which I see as a complete and total ponzi.

I'd rather, instead, like to pay less taxes and be able to do what the fuck I want with that money. Like buying stocks, gold, Bitcoin or splurge at the casino.

I think about just anything I can think of, even lighting my money on fire, would be more moral than participating in the gigantic ponzi that pension funds are.

But I've got no choice as in the EU these ponzi are mandated and often run by the state and you cannot opt out.

comment 3y ago · link · parent

> ... while SD is. Innovation comes from such extensibility, and in a way, this just shows how right Stallman was.

The cat is out of the bag and it's not going back in. We'll have totally free model in no time, just like StableDiffusion. These models may take money to train but either a philanthropist billionaire like emostaque pays for the training or several people team up to fund the training.

If we've got a closed OpenAI (funny name for something closed and for pay right/) today, we'll have an open one tomorrow.

comment 3y ago · link · parent

> That there, though, also shows why AI-generated text is something completely different; calculators are deterministic devices: if you calculate 4,839 + 3,948 - 45 you get 8,742, every time.

ChatGPT is just a program. Given the exact same input and seed, its result is going to be 100% deterministic too. It's just that it's going to get the same wrong result in a deterministic way. Determinism may be hidden away from end user (I don't know about that) but there's just no way around it: it's a program and give the same inputs, it's fully deterministic.

And if the user / discussion trains it with more input, it's possible to replay these inputs, in the same order, and get the exact same answer from the AI.

StableDiffusion allows users to use it in a 100% deterministic way.

ChatGPT may or may not (I really just don't know) but that'd just be a detail / choice made by OpenAI. I can try it now and have ChatGPT tell me 1309849874 divided by 2 is 24891, being several orders of magnitude of. And then try it again and it give something else. But that's just because I got connected to another instance, using other seeds or a slightly different model.

At some point there's going to be a free model and it's going to be fully deterministic if the user wants it to be.

It's just code running on data. There's no magic.

comment 3y ago · link · parent

I just replace them once they reach 20% of "percentage (of their lifespan) used or so and then they become yet more drives on which I put on-site / offline backups.

They're so cheap I don't mind.

comment 3y ago · link · parent

> The ultimate sustainable living is a commie-block in a reasonable small, walkable city with a good public transport and services mixed with residential areas.

But sadly, as with most things commie, it's totally soul crushing. And fugly. If the goal is to pack as many people as possible in high-rises, where's the fun in living?

What is the end goal? Pack 100 billion people in high rises? What for?

I'm sorry but just thanks but no thanks.

P.S: this email sent you over 2 Gbp/s fiber to the home, from a rural area, seaside, seaview , surrounded by vineyards and fields of vegetables, while there's smoke coming out of the chimney. You know: the kind of place where are actually grown and produced the stuff the city dwellers do eat and drink. No neighbors close by and yet the neighbors all know each others.

What's not sustainable is places which are producing neither food nor drink nor trees.

comment 3y ago · link · parent

Sure... For a start I have my scratch buffer showing a few Unicode characters, one trailing spacing character on purpose (to be sure I can see it's highlighted), a zero-width-non-joiner 0x200C and an Hangul filler 0x3164 (may add some from TFA btw). This helps me quickly verify, upon startup, that my setup is working.

I configured all that literally years ago so I don't remember where's what but here's what I've got:

    ;; probably cargo-culted from somewhere
    (update-glyphless-char-display 'glyphless-char-display-control '((format-control . empty-box) (no-font . empty-box)))
    
    ;; See https://emacs.stackexchange.com/questions/65108
    (set-face-background 'glyphless-char "purple")
And then I've got this too (requires markchars.el):

    (markchars-global-mode)
With:

    (defface markchars-heavy
      '((t :underline "magenta"))
      "Heavy face for `markchars-mode' char marking."
      :group 'markchars)
It should get you started.

(and, yup, I know it's overkill but I like it that way)

comment 3y ago · link · parent

I agree with you.

I've got my Emacs set up to display in "bold, fluo foregound and a dark background underlined by a pink line" (yes, literally that obnoxious) any character which is not part of a list of characters I consider to be acceptable. And it's configured to show any "zero width" character as if it had a width. So any "invisible character" as well as any "invisible zero width character" does appear as a black square, underlined with a pink line.

And that for any buffer/file.

comment 3y ago · link · parent

I tried it... It's fun.

> I want you to pretend you're Rick Deckard. If you were Rick Deckard, what would you put on your Tinder profile?

If I were Rick Deckard, my Tinder profile might say something like: "Blade Runner in search of love. I'm an experienced hunter of rogue replicants and I'm looking for someone special to share my adventures with. Are you brave enough to join me?"

comment 3y ago · link · parent

Can this already be used to aid in investigative journalism?

Humans aren't good at analyzing / classifying / synthesizing petabytes of data. But this thing looks really good at that.

Can it find conflict of interests, for example? I mean: not by analyzing headlines / articles where journalists pointed out conflict of interest but by itself.

Is it capable of finding links between data related to criminal activities that no-one has noticed yet? (if it can I do believe public access to this tech is going to be pulled in no time)

comment 3y ago · link · parent

> So every day when I finish working I simply power off...

This. At least I'm not alone. It's not rocket science.

comment 3y ago · link · parent

I've got an old SSD with a dual Linux/Windows boot on an old laptop.

Being in Linux, issuing a reboot, picking Windows instead of Linux in GRUB and booting Windows takes less than 20 seconds.

The argument that people "suspend" or "hibernate" or "close the lid" or whatever because Windows takes "too long to boot" makes zero sense.

Just turn the fucking computer off. Windows boots in no time nowadays.

I hate Windows. I really do. It's a mediocre piece of turd. Every time I need to help a relative with their Windows issue I'm reminded how much of a turd it is.

But it's not slow to boot.

comment 3y ago · link · parent

> From absolute gold standard electric production/infrastructure in the 70s to barely able to light school rooms in 2022

And they voted, like the rest of the EU, the ban of ICE and hybrid vehicles sales by 2035.

2023, risks of blackouts.

2035: every single car sold is going to be 100% EV.

And the switch to EVs is already happening, which is already putting a shitload of stress on the network. If 0% of the vehicles in France were EVs, there would be absolutely zero blackout this winter.

I'm not saying we should not switch to EVs. What I'm saying is we're simply not ready at all.

comment 3y ago · link · parent

A bank which happens to be the centerpiece of the entire iFinex (tether/USDT + Bitfinex) thing (which may or may not be legit).

And SBF is not just a customer from that bank. He also bought another bank, in the US, which previously belonged to the owners of Deltec. And FTX's top lawyer happened to be a colleague of Bitfinex's top lawyer (they both worked for the same company which actively defrauded online poker players).

So there are ties that do go beyond: "customer of a bank".

It looks like it's a little circle of people who know very well each other.

To give an idea of the amounts involved: Tether emitted USDTs worth, so far, four times the entire GDP of the Bahamas.

Bahamas is so small (400 K people) that when the authorities stormed FTX's office and forced SBF to handle them the keys for various shitcoins, they froze an amount representing back then 5% of the Bahamas' GDP (now more like 1.5% because these shitcoins melted, but still).

The amounts in play are tiny and insignificant for a country like the US: QEs are in the trillions, bank bailouts in 2008 were done with $700 billions+, etc.

But for a tiny country like the Bahamas, we're talking about a lot of money.

I'm not saying that he's protected or that the authorities knew about his wrongdoings but you cannot rule that out (at which point many coincidences are not coincidences anymore?).

comment 3y ago · link · parent

> I find the collapse, the PR, puff-pieces, SBF chatting away during NYT DealBook summit, celebrities white-washing to be incredible to watch.

What I find way more incredible is that we've got someone who committed many crimes: wire fraud, running ponzis, pumping and dumping shitcoins which were considered for some as securities, funneling money out of the US to the Bahamas using tens if not hundreds of companies, naming his company "Alameda Research" to dodge banking restrictions, lying up until the very last moment when things blew up that everything fine, lying about US customers deposits being FDIC insured, bribing people (several people came out and said SBF downright offered them $1m to paint FTX in a positive light), using the stolen money to buy properties in the Bahamas to the tune of $300m, etc.

And yet... This is resumed by many with: *"Cryptos are all ponzis".

What's the reasoning? Everybody in crypto is a fraudster so investors and depositors all deserve to be wiped out by a scammer? And he should walk free?

While the guy who wrote "tornado cash" is in jail?

While Aaron Swartz got sentenced for putting online research papers (paid with taxpayers money btw)?

Is that what you're saying? That's it's all a gigantic fraud so it's on par for the course and SBF is not worse than the guy who bought two DOGE and three SHIBA INU coin?

comment 4y ago · link · parent

> The effort to paint over such blatant fraud and negligence and pretend it was all a mistake from a well-meaning kiddo is disgusting.

I agree and this thread is honestly plain disgusting too. Many here are happy and find it funny to see people's crypto being stolen by fraudsters.

From TFA:

"It is now clear that what happened at the FTX crypto exchange and the hedge fund Alameda Research involved a variety of conscious and intentional fraud intended to steal money from both users and investors."

And from the bankruptcy filings:

"On-chain analysis has found the bulk of movements from FTX to Alameda took place in late 2021, and bankruptcy filings have revealed that FTX and Alameda lost $3.7 billion in 2021. This is maybe the most befuddling part of the Bankman-Fried story: His companies lost massive amounts of money before the 2022 crypto bear market even started. They may have been stealing funds long before the blowups of Terra and Three Arrows Capital".

People may hate on Bitcoin, Ethereum, ape monkeys yacht club etc. (or whatever these NFTs are called) as much as they want, it's not reason to rejoice when thieves do scam people (including a canadian teachers pension funds' money).

There's also another angle: the very same who are cheering on people losing all their money to a scam were the first to say: "Pay your taxes on any crypto gain you made" (so that, in the end, they get their share of these winnings too through the state's spendings)...

If the state collects taxes on gain made on crypto, the state go after people stealing other people's crypto.

As simple as that.

P.S: and I hope people are happy that their politicians got greased by stolen funds and aren't giving these bribes (pardon, donations) back.

comment 4y ago · link · parent

OK so because, say, degens from r/wallstreetbet going all-in on GME make fortunes and kept repeating "have fun staying poor" to those not going all-in on GME, Madoff should be allowed to pull his Enron on those people?

Seriously what is wrong with you people.

comment 4y ago · link · parent

OK but what happened, for example, to journalism and these supposedly reputable publications like The New York Times that, instead of actually googling a little bit online (they'd have found in less than 30 minutes that SBF was fraudster and FTX a ponzi) and then exposing Ponzi boy decided instead to be complicit in the scam?

Is that funny too?

comment 4y ago · link · parent

> I thought it was pretty fun to watch

As in: "Fun to watch people losing money they sent to someone who they thought was honest because he was on the cover of many mainstream publications who were presenting him as an altruistic genius"

?

comment 4y ago · link · parent

> A related question is why would you want to reload the entire file/namespace every time you make a change?

Wait... What change does it make to evaluate a single function or to evaluate that single function plus re-evaluate all the other function in the same Clojure source file? It's not slow. It doesn't break anything?

Regarding figwheel, which I find very convenient (it reloads not just the modifications in .cljs files but also in HTML and CSS files AFAICT), where is the problem and would you reproduce what figwheel does without figwheel?

Most of my Clojure and ClojureScript source file have zero state, zero variable. And from what I can tell many Clojure projects are like that. So what change does it make if I define (or redefine) a function from a REPL or from the source file and have figwheel re-evaluate the whole source file?

Heck... I got "confused" at some point: if I modify a .clj file I need to eval what I modified (or the whole file), to have my REPL "synched" with the file. While with figwheel I don't need to eval but save the file for figwheel to update the front-end's JavaScript in realtime.

So what I did is this: I modified my shortcuts that does "eval buffer" to do "save + eval buffer" and modified my shortcut that does "save" to also do "save + eval buffer".

That way everything works in the same manner and I don't need to remember which one does what.

If I modify a .cljc source file (common to both Clojure and ClojureScript) and either eval the file or save the file, both REPLs see the new definitions and figwheel also hot reloads. I really like that.

And, yet, I still have my two REPLs at all times and I can directly eval stuff at the REPLs if I want to.

> My guess is that lots of those people never worked with a REPL where you eval single forms from the editor, so this auto-reload on each save seemed much better.

OK but for ClojureScript running on the front-end, how would I then go, without figwheel's hot reload, to make a modification and have the (transpiled) JavaScript be updated immediately?

> And it creates its own problems, like the one the OP solves in the article.

But the problem of ring routes not being updated have nothing to do with auto-reload? I may be wrong but wouldn't the problem be exactly the same if I were to re-eval the router var from the REPL (I'll try it and see later on)?

Anyway I'd say that, when worse comes to worse and you screwed your application's state / components lifestyle, a full restart one every blue moon ain't a biggie.

comment 4y ago · link · parent

I really only ever encountered this issue when working with ring routes, as in TFA. Love the macro at the end, may start to use it because why not.

Now I want to say this to Clojure beginners: launching Emacs with a very complicated, non optimized, init (3400 lines of custom elisp code I wrote over the years) takes 1.4s on my system. Now launching the app, with two REPLs (one for Clojure on the back-end, one for ClojureScript on the front-end I'm testing) and about 30 dependencies (including figwheel, which is kinda heavy) takes...

16 seconds.

So, from complete scratch, launching Emacs, opening a Clojure source code file, (which btw also triggers the launch of the Clojure LSP server) and then launching the webapp server, two REPLs and loading the main webapp page in a browser takes less than 18 seconds. Well, ok, it's not from complete scratch as source files that haven't been modified do not need to be recompiled, I'll grant that.

It's a 2019 AMD 3700X with 32 GB of RAM and a NVMe M.2 PCIe 3.0 x4 lanes SSD. Not a bad machine but not last gen either (I'm probably swapping it for a 7700X one of these days).

I'm pretty sure the startup time is going to go significantly down when I'll switch to the 7700X.

So even though it's great to not have to restart the app/REPLs it should not be a problem to restart the whole thing.

If your REPLs take two minutes to start, I'd argue there's an issue and it's time to fix that first. Move from lein to deps.edn (which launches one JVM less, which really helps as Clojure startup times on the JVM are slow), buy a faster dev machine. Buy a PCIe SSD. Use chrome/chromium instead of Firefox for testing your webapp (in my experience chrome is simply way faster for anything JavaScript and, oh boy, does ClojureScript generate lots of JS). Etc.

As a sidenote I'd say this specific "ring route not updated" is a variation of the age old issue of cache invalidation.

So basically: I love working at the REPL and keep my REPL(s) opened for a very long time, hot reloading everything (including ClojureScript on the client-side) without needing to restart everything but I don't lose sleep over the fact that I do sometimes relaunch everything for it takes not even 20 seconds.

comment 4y ago · link · parent

> Is there any way to have more glyphs for the same letter and choose one randomly?

Have the human write down not 1 but 50 times the font to be scanned and create 50 fonts.

Then pick one of these 50 fonts at random for each character.

I'd say that'd be the absolute simplest way (although not the most bandwith efficient).

comment 4y ago · link · parent

> Is it really much different from the UK attitude to prostitution?

It's actually quite similar I'd say. The hypocrisy behind that one is strong too.

comment 4y ago · link · parent

> UK financial industry brings $100 billion dirty money a year into the country.

Official estimates says, depending on the source, that from 1.5% up to 5% of the world's GDP is tied to criminal activities.

The GDP is about 100 trillion.

Cryptos are a complete insignificant drop in the bucket. Even if 100% of cryptos were linked to crime, it's still be absolutely nothing compared to the actual criminal activities ongoing (like drug trafficking) and the percentage of the worldwide GDP they represent.

comment 4y ago · link · parent

> 47% of UK banks don’t allow customers to interact with crypto exchanges

And yet the state asks you to pay your taxes when you make added-value on crypto.

There are literally people who have taxes on added-value made on crypto due but are unable to pay them because their banks are refusing their money.

Take 10 K EUR out: easy. Take 1 million+ EUR out: it's extremely difficult.

The hypocrisy here is phenomenal: "cryptos are scams" / "cryptos are only for money laundering and drug dealing" / etc.

But then: "don't forget to pay your taxes to the nanny state on your crypto winnings".

And it's really vicious for the state says: "Oh, crypto went up 10000%, you hence have lots of taxes due to the state!" but the bank goes "Oh, you have a 7 digits sum in crypto, you must be a fraudster".

Sneaky bastards.

comment 4y ago · link · parent

> I agree with your assessment that Alameda / FTX put customer deposits into “completely inappropriate investments”

And what about customers deposits that ended up in $300m+ real-estate in the Bahamas (including some for SBF's parents, which they now said they'd be giving back to FTX: how generous once caught with the hand in the cookie jar)?

And what about the $100m or maybe more in political donation? ($40m from SBF to dems, now he says he gave the same account to reps but kept it shadow for it'd ruin his woke image and there's one of his accomplice who gave at least $12m to reps too)

That's already $400m right there that haven't been wiped out due to a market downturn.

And then the naming rights, insane ads, etc.

"Oops sorry we fucked up, we used your funds to gamble with 100x leverage like degens and lost it all (but don't pay too much attention to all the money we actually siphoned out of the system)".

I don't think you can compare LTCM to FTX/Alameda (I'm not saying you explicitely did but it's dubious). We're talking about SBF guy describing his magic ponzi box and Matt Levine answering him (april 2022 I think):

"I think of myself as like a fairly cynical person. And that was so much more cynical than how I would've described farming. You're just like, well, I'm in the Ponzi business and it's pretty good.".

FTX/Alameda is more Enron than LTCM.

comment 4y ago · link · parent

> FTX actually had a solvency crisis, where he took deposits, put them in completely inappropriate investments (many of which are now worthless, all of which were speculative nonsense) and is now revealed to have done that.

Who was on the other side of these losing trades? People need to follow the money trail. Where did the money go?

There are people who called the Alameda / FTX scam from day one, before FTX was even created (Alameda already existed). Then there are others, like Marc Cohodes, who realized SBF / FTX was a fraud when they looked into it. It's these people we should listen to. They knew SBF was full of shit back then and he's still full of shit now.

I do not buy the "inappropriate investments" angle. To me it was defrauding both users and investors by any means possible and funneling the money into the Bahamian blackhole. While putting the blame on "leveraged trades without stop-losses gone wrong".

There are just way too many things that do not add up: SBF/FTX bought a bank which belonged to the owners of Deltec in the Bahamas (the bank behind the whole iFinex (tether+Bitfinex) fraud, except that one hasn't blown yet).

And the latest amazing development: the current Bahamas attorney general used to work for... Deltec.

There's only one thing to say: you cannot make that shit up.

I don't think any movie or book writer could ever come up with something that insane.

comment 4y ago · link · parent

> At this point those companies have moved to Dubai so not that useful anyway

Who's fault? People don't go start companies in Dubai to hide the UBOs (btw: when you open a company in Dubai they do KYC/AML and asks who the UBOs are... Dubai ain't the Bahamas). People go start companies in Dubai instead of the EU because both taxation and paperwork in the EU has gone off the rails.

comment 4y ago · link · parent

I'm 100% with you here.

People who need access to the UBO (for example because they are required, by law, to do KYC/AML on their customers) can still access it.

It's about restricting public access.

> Public UBO registries do not strike a good balance between protecting the privacy of honest business owners and exposing corruption or whatever.

This.

1
129130131
163