Dave Stokes (@stoker) header
Dave Stokes (@stoker) profile picture
Justin, TX
Joined January 2008
Photo by Dave Stokes (@stoker)Photo by Dave Stokes (@stoker)Photo by Dave Stokes (@stoker)Photo by Dave Stokes (@stoker)Photo by Dave Stokes (@stoker)Photo by Dave Stokes (@stoker)Photo by Dave Stokes (@stoker)Photo by Dave Stokes (@stoker)Photo by Dave Stokes (@stoker)Photo by Dave Stokes (@stoker)
Dave Stokes retweeted
Lewis Hamilton got a $4 million tax refund on his private jet by renting the jet to himself. This week he told reporters that kids are starving because the world's money is "in all the wrong places." He meant the trillionaire, and there's only one of those. Elon crossed $1 trillion in June when SpaceX went public. Hamilton's jet is a better place to start, though, because the way that deal worked is kind of amazing. He bought a red Bombardier Challenger back in 2013 for £16.5 million, a little over $20 million. If you bring a private jet into Europe you owe 20% VAT on it, unless it's a business asset. So his company in the British Virgin Islands leased the plane to his company on the Isle of Man, which leased it to an outside firm that handled the crew, which leased it right back to Lewis. Now it counted as a business. Leaked documents showed he planned to use it privately about a third of the time anyway. The tail number was G-LCDH, as in Lewis Carl Davidson Hamilton. He flew to the Isle of Man one time to sign the customs paperwork, and he got the whole £3.3 million back. All of that was legal, by the way. His lawyers said Isle of Man customs signed off on it, and a 2019 UK Treasury review found the island had applied VAT law correctly. Nobody broke a rule. A team of very expensive advisers just moved millions away from a government on purpose, which is pretty much the exact thing he's upset about. UNICEF says it costs about $100 to treat a severely malnourished kid from start to finish. That buys six to eight weeks of a peanut paste that pulls them back from the edge. Divide the jet refund by that and you get around 40,000 kids. One tax trick on one plane could have nursed 40,000 starving kids back to health. And the jet's the small number. He lives in Monaco, where there's no personal income tax, and Ferrari reportedly pays him around $60 million a year. He's worth over $500 million. His girlfriend is Kim Kardashian, who's a billionaire. He does give back. He put £20 million of his own money into Mission 44, his education charity, in 2021. It's a real gift, and it still works out to under 5% of what he's worth today. Right after the trillionaire line, he added, "There's nothing I'm going to be able to do necessarily to change that."
F1 legend Lewis Hamilton directly called out the richest people in the world. "There are kids that are starving today when there’s a trillionaire out there. [...] There’s clearly plenty of money, but in all the wrong places."
425
2,483
151
13,534
460,173
“Ain’t That A Shame” - Cheap Trick Fats Domino reportedly considered Cheap Trick’s version his favorite cover of the song and even gave the band his gold record for the 1955 original (it’s held by guitarist Rick Nielsen).
50
216
18
1,585
111,957
Dave Stokes retweeted
Replying to @CatKingForgets
We know. Feel free to ask us 👋
1
3
114
Dave Stokes retweeted
Thank you for stopping by the DBeaver booth at @awscloud re:Invent and taking part in the raffle! It was great to meet so many of you in person and hear how you use DBeaver Community and DBeaver PRO in your day-to-day work. In our raffle survey, 58 out of 98 respondents said they already use DBeaver. A free trial to explore at your own pace was the most popular follow-up option. 🎉 Congratulations to the raffle winners pictured here! We hope you enjoy your beaver plushies. #AWSreInvent #AWSreInvent2026
2
10
496
Dave Stokes retweeted
⌨️ Shortcut of the week: Find and replace. To change repeated text in multiple cells at once, press Ctrl+F (Cmd+F) in the Data Editor to open Find and Replace. Then use the Replace All option.
3
14
604
Dave Stokes retweeted
Holy shit! How is this not a massive story. Need more deets! I hope @Kash_Patel is all over this.
10
27
186
3,720
Dave Stokes retweeted
Dear Mr. Comey @Comey, My name is Everett Stern, and you should know who I am. In 2010 I was a compliance officer at @HSBC. From a back office in New Castle, Delaware, I watched money move for drug cartels, sanctioned regimes and terrorist financiers. I flagged it. I was ignored. So I went to the @FBI and the @CIA. I handed the FBI my evidence. I expected agents to raid the building. Instead, an FBI agent told me their hands were tied. Fourteen years ago this month, on December 11, 2012, HSBC admitted that at least $881 million in drug money for Mexico's Sinaloa Cartel and Colombia's Norte del Valle Cartel had moved through it. It admitted moving money for Iran, Cuba, Sudan, Libya and Burma. It paid $1.92 billion, about five weeks of its profit that year. Not one banker was charged. Blowing the whistle cost me my career, my savings and my safety, as I was targeted by the cartels and terrorist organizations whose money I exposed. I was blacklisted from the only industry I had trained for. I say that not for sympathy. I say it because I risked and sacrificed everything to protect the United States, and I would do it again in a second. I made that sacrifice because I believed it would change something. In March 2013, Attorney General Eric Holder told the Senate some banks had become so large that "it does become difficult to prosecute them." That same week, you joined HSBC's board, on the committee created to fix its financial crime failures. Six months later, you were Director of the FBI. You led it for most of HSBC's five-year probation. Our paths split. You went from HSBC's boardroom to the head of the FBI. I went from HSBC's compliance desk to waiting tables at P.F. Chang's. I slept on a camping cot because I could not afford a bed. I had no money. I struggled just to live. I lost it all. You ran the FBI. This month marks fourteen years since that agreement, Mr. Comey, and I want to say plainly that this bothers me. It has bothered me for years. The trouble did not stop. The FinCEN Files later showed HSBC moving money for shell companies linked to alleged criminal networks while it was on probation. Five weeks after that probation ended, HSBC signed another deferred prosecution agreement with the Justice Department, this time for fraud. Its Swiss bank admitted helping Americans evade taxes. British regulators fined it for money laundering controls that failed through 2018. In 2018, I was called into the FBI's New York field office. Agents and prosecutors from the Southern District of New York questioned me. They were looking at charging HSBC again. Nothing happened. This was never paperwork. That money came from cartel drugs that killed Americans. The families of those Americans never got a hearing. The bankers never got a trial. To many Americans, a path from that boardroom to the FBI looks like corruption. I want to believe it was not. Help me believe that. This is not about politics. It is about national security and corruption. And it rests on a fact: you served on HSBC's board before you became Director of the FBI, while I was still blowing the whistle. My lawyers asked the government to reopen the case against HSBC. Four things would settle the question. First, what happened to the evidence I handed the FBI? Was it still in the Bureau's files when you became Director? Who decided their hands were tied? Second, tell the public whether you recused yourself from FBI matters involving HSBC, and who approved it. Third, call for the release of the court-appointed monitor's reports on HSBC. They were written to tell the public whether the bank changed. In 2017, an appeals court kept them sealed. You sat on the committee that was supposed to make that change happen. Your voice would matter. Fourth, tell us what you saw inside. You were in the room in 2013. Was HSBC fixing itself, or managing its way through probation? You wrote a book about a higher loyalty. I believe you meant it. That is why I am asking you, and not someone else. I was able to rebuild. HSBC set me on a course for the rest of my life: to prevent the next HSBC, to stop corruption, to promote justice, and to fight for what is right. I built Tactical Rabbit, a private intelligence agency, so the next person who sees what I saw has somewhere to turn. Being the HSBC whistleblower has been the greatest honor of my life. I gave up everything I had to stop this. You were one of the few people with the power to finish it. Fourteen years later, I am still waiting for your answer. Respectfully, Everett A. Stern HSBC Whistleblower Founder and Intelligence Director, Tactical Rabbit
319
3,701
213
8,331
193,654
My dog has an enthusiastic if slightly off putting smile.
56
Dave Stokes retweeted
👋 You can meet the DBeaver team at AWS re:Invent 2026! 📍 Stop by booth #644 to see how DBeaver works with @awscloud data sources, check out what’s new, or just say hello. #AWS #AWSreInvent #DBeaver
1
2
19
853
there_i_ruined_it 🎄Christmas album
91
461
72
2,395
183,241
Dave Stokes retweeted
Postgres 20 development moves faster (by commit count) than it was for previous versions
3
1
32
2,002
Dave Stokes retweeted
⌨️ Shortcut of the week: comment out lines of code. Test a query without one of its conditions by turning that line into a comment instead of deleting it. Put the cursor on the line or select several lines, then press Ctrl+/. The database skips the commented lines, and pressing Ctrl+/ again brings them back.
1
3
16
827
Dave Stokes retweeted
1999年,《雷神之锤3》发布。 画质炸裂,但奇怪的是,破电脑也能跑得很流畅。 几年后源代码开源,全世界程序员冲进去扒拉。 想看看id Software到底用了什么黑科技。 然后大家就发现了这么一段东西: ``` float Q_rsqrt(float number) { long i; float x2, y; const float threehalfs = 1.5F; x2 = number * 0.5F; y = number; i = *(long*)&y; i = 0x5f3759df - (i >> 1); // what the fuck? y = *(float*)&i; y = y * (threehalfs - (x2 * y * y)); return y; } ``` 我当时看完这段代码,愣了好一会儿。 这函数干嘛的?算 1/√x,平方根的倒数。 你可能会问,这有啥难的,调个sqrt再除一下不就行了? 问题是,那个年代CPU算浮点开方慢得要死,一次要几十上百个时钟周期。 而3D游戏里算光照、算反射,每帧要归一化几万个向量,每次都要求这玩意儿。 按正常写法,直接卡成幻灯片。 然后就有人整出了上面这段代码。 核心就一行:i = 0x5f3759df - (i >> 1) 看到这你肯定懵逼——把浮点数的二进制当整数读出来,右移一位,再用一个莫名其妙的常数去减它,结果居然就是平方根倒数的近似值??? 这不是玄学,是数学。让我给你掰扯清楚。 首先你得知道浮点数在内存里长啥样。 一个32位float,内存里分三块:1位符号、8位指数、23位尾数。表示的值是: (1 + 尾数/2²³) × 2^(指数-127) 比如8.0,就是 1.0 × 2³,指数存130(就是3+127),尾数存0。 现在来个骚操作:把这个浮点数的二进制直接当整数读出来。 你会得到一个整数 I = 指数×2²³ + 尾数。 关键来了。 浮点数的真实值取个对数,大概是: log₂(value) ≈ I/2²³ - 127 换句话说,浮点数的"整数形式"和它的对数基本成正比。 这个性质太重要了。因为我们要算的是 y = x^(-0.5),取对数就是 log(y) = -0.5 × log(x)。 对数之间是线性关系!那我直接用整数运算不就能算对数运算了吗? 具体推一下。设 Ix 是 x 的整数表示,Iy 是 y 的整数表示: Iy/2²³ - 127 ≈ -0.5 × (Ix/2²³ - 127) 解出来: Iy ≈ 1.5 × 127 × 2²³ - 0.5 × Ix ≈ 0x5f400000 - (Ix >> 1) 诶,算出来是 0x5f400000,但代码里用的是 0x5f3759df,咋回事? 因为上面的推导有近似误差。0x5f3759df 是有人通过数值方法调出来的,能让最大误差最小。 后来有数学家专门写论文算过,理论最优值是 0x5f375a86,跟这个就差一丢丢。 到这里,我们就用一次整数减法和一次移位,搞出了一个粗糙的近似值。 但粗糙不够用啊,游戏还是会穿帮。
72
286
21
2,092
232,428
Dave Stokes retweeted
🏗️ With Visual Query Builder, you can build a query with joins without writing a single line of code. Drag and drop your tables onto the canvas, and DBeaver automatically joins them using their foreign keys. Select the columns you want to include, and the SQL updates in real time. Visual Query Builder is available in DBeaver PRO editions, CloudBeaver Enterprise, and DBeaver Team Edition.
1
2
34
1,219
Dave Stokes retweeted
Huh. I thought everybody understood this by now. Okay, I'll explain why Huang Jensen is an open source proponent in detail. People don't buy products, they buy outcomes. Like, unless you're a car collector, what's your actually buying with the car is the ability to get places you want to go. It's part of a service stack that includes gasoline, mechanics and so forth. One of the things you have to do as a business strategist is understand what service stacks you are part of. And one of the rules of making more money is, you want every part of your service stack other than you to be as cheap as possible. Cars get used and valued more when gasoline is cheap. Demand for the services of mechanics goes up as cars become more affordable. This is true of every good that is substitutable for more expensive goods. Back around 2002 I realized this this means one of the laws of business strategy is "commoditize your co-factors". I never wrote a paper about this but I talked about it in my roadshow. Later, other people wrote papers. The phrase that seems to have stuck is "commoditize your complements". Huang Jensen understands that he will sell more GPUs if the other co-factors in his value stack get less expensive. He wants all *other* computer hardware to be dirt cheap. And, he wants access to AI to be dirt cheap and available locally so people will buy their own GPUs to get it. This is why Jensen supports open-source AI. It undermines all attempts by the would-be monopoly providers to keep a high price floor under AI services. It increases demand for his product by making people want to buy lots of GPUs for their local compute. The man is not in business for his health. He doesn't open-source CUDA because he thinks he can extract more rent from its secrecy then he can gain from opening it up and spreading the development costs and improving it faster. He is almost certainly wrong about this, but it's a normal and non-insane way to be wrong.
Replying to @esrtweet
If Huang is a "proponent for open source", why is CUDA proprietary? Answer: because he is probably not "pro" open source, but pro whatever strategy that currently maximizes money and power flowing into Nvidia and his pockets.
46
112
8
1,111
25,646
The story behind “Spirit in the Sky” is one of those extremely rare miracles of spontaneous composition. Norman Greenbaum wrote this massive hit in just 15 minutes. Thanks to its constant airplay on the radio, in movies, on television, and in commercials over the decades, he has been able to live comfortably off the royalties from that single, immortal song for more than half a century.
31
82
2
715
33,593
Dave Stokes retweeted
Claude just found this in pgBackRest: if (!strEqZ(actualValue, expected[expectedIdx].value)) What utter stupidity. Even a minor bugfix is enough to completely break backups and WAL archival unless you roll it out across your entire fleet.
1
1
4
435
Dave Stokes retweeted
Dude makes the most ubiquitous database of all time, still advocates for nuance when choosing a database. King
Replying to @hboot0230
PG gives you more features and concurrency but with higher latency and more drama. SQLite has low latency and drama, but fewer features and less concurrency. There is no one correct answer. It is an engineering tradeoff. Choose what is right for you.
26
20
1,072
64,162
Dave Stokes retweeted
A toothpaste company has quietly killed the entire market research industry and nobody is talking about it. Colgate published a paper showing you can predict real purchase intent by simply asking LLMs to roleplay customers. And this is beyond insane. If you ask an AI, "Rate this product from 1 to 5," it gives safe, middle-of-the-road garbage. So researchers invented a method called Semantic Similarity Rating (SSR). Instead of asking the AI for a number, they asked it to roleplay. They gave the LLM a demographic profile. They showed it a product concept. And they asked it to write down its raw, unfiltered thoughts. Then, they used a semantic model to translate those written thoughts into a numerical score. The results are staggering. Tested against 57 real personal care product surveys and 9,300 human responses, the synthetic consumers hit 90% of human test-retest reliability. They perfectly mirrored how different age brackets and income levels react to price changes. And they provided detailed, qualitative feedback that was deeper and more critical than what actual humans wrote. This destroys the economics of traditional market research. You don't need to wait a month to see if a product will sell. You can simulate 1,000 hyper-targeted customer interviews overnight. You can A/B test pricing across every demographic instantly.
683
2,945
828
29,935
3,086,129