News for hackers. Stuff that matters.

jluxenberg

Wow yikes! On the one hand -- it's obviously a bad idea to use your current employer's laptop for a job interview.

But social engineering takes many forms and anyone could be suseptible.

Do we need to start carrying liability insurance (like doctors do)? There are so many hazards these days working in tech which can cause you to be liable for huge amounts of damage. Using agents seems fraught too; they can easily go "off the rails" and take actions you didn't intend.

Neat idea!

Fun fact; it's not as widely usable but data URLs work for this too.

Maybe you could add an option to copy the data URL for a page?

e.g. this one

https://bigwords.page/#%23%20Gate%2012%0ABoarding%20now&bg=0...

becomes

data:text/html,<!doctype html><meta name=viewport content="width=device-width,initial-scale=1"><body style="margin:0;height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;background:%230b3d91;color:%23fff;font-family:sans-serif;text-align:center"><h1 style="font-size:18vw;margin:0">Gate 12</h1><p style="font-size:9vw;margin:0">Boarding now</p>

(paste this ^^ into your URL bar)

Re:SF Microclimates API on Monday January 26, 2026 @06:31PM (#46773235)
Inspired by this, I made a map: https://climate-map--jaredluxenberg1.replit.app/

Kinda neat!

Re:It's 2024 and drought is optional on Wednesday May 15, 2024 @08:09PM (#40373843)
Huh; so desalinated water costs between $0.001 to $0.008 depending on the cost of the power.

I pay about $0.0136 / gallon so almost 10x the cost of producing.

Seems like (for non-agricultural use) we will be able to afford desalination -- I guess the real issue will be agricultural uses which are predicated on free water.

Re:Stripe's 2023 Annual Letter on Wednesday March 13, 2024 @04:09PM (#39696774)
If any Stripes are here: the link on this page to "2022 annual letter" goes to https://example.com right now.
Re:Speeding up the JavaScript ecosystem – Polyfills gone rogue on Thursday September 21, 2023 @04:07PM (#37603516)
For what it's worth; `eslint-plugin-react` has been around for a long time and seems to support running in very old versions of Node.JS (back to v4[1] apparently! tho I can't find anything documenting that for sure.)

I was surprised to learn that Object.values is only supported in Node >v7, Object.fronEntries was added in v12, etc. So for this project maybe the polyfills are needed.

[1] https://github.com/jsx-eslint/eslint-plugin-react/pull/1038

Re:Eggspensive on Wednesday February 22, 2023 @12:42PM (#34899468)
Tofu scramble might be a little more expensive than egg-based version but 5x seems an exaggerated figure to me.

A 14oz package of tofu is probably the equivalent of 4 eggs and costs $2-3. So maybe 1.5x the cost of egg-based version. (Here's a great basic recipe https://www.budgetbytes.com/vegetable-tofu-scramble/)

Also, if you examine your diet you will probably find that you don't need to replace eggs with tofu 1:1. There are plenty of other ways to get protein (e.g. lentils, nutritional yeast, even whole wheat bread has protein).

Re:Eggspensive on Wednesday February 22, 2023 @12:16PM (#34898930)
My wife and I started a vegan diet 6mo ago and while there was a transition period, it wasn't nearly as difficult as I expected.

If you're feeling the egg prices I'd encourage you to find ways to limit or remove eggs from your diet. It's easier than you think! Egg replacers work wonders in baked goods and a tofu scramble is similar to scrambled eggs.

This is a great survey of the many ways trees can be used in UX: https://medium.com/@hagan.rivers/interaction-design-for-tree...

My favorite is the Tree Table

Re:Colorado 'solar garden' is a farm under solar panels on Sunday November 14, 2021 @01:41PM (#29219391)
Storage will be a solved problem once everyone has an electric vehicle with a 65kWh battery sitting in their garage. Power your home overnight from your car, then recharge during the day when the sun comes out.

If you have a large home or need to always have a fully charged car, spend $15k on a home battery.

We need to get out of this mindset that electric utilities will provide unlimited power at a fixed price. With some investment from individual homeowners we can reduce peak to average ratios for utilities and make it much cheaper and possible to use intermittent green energy sources like wind and solar.

Re:“Design Patterns” Aren't (2002) on Monday March 08, 2021 @04:44AM (#26383848)
The keynote is a great read! Here's a link for anyone else who is interested: https://www.patternlanguage.com/archive/ieee.html
Site is down now; here's a working link courtesy of the Archive:

https://web.archive.org/web/20210215153656/https://bloodknif...

Re:Exploring Borland DBase IV for DOS (2020) on Thursday March 04, 2021 @06:35PM (#26350070)
Airtable (https://airtable.com/) and Coda (https://coda.io/) are two products which might fit the bill.
Re:Female Founder Secrets: Fertility on Thursday March 04, 2021 @03:00PM (#26347410)
Try this: s/women/people/g

If taking a break to focus on parenting was more acceptable, anyone (man/woman/nonbinary) who wanted to do this would benefit.

Many careers are built around this idea that you spend 5-10 years, with no breaks, in your late 20s and 30s working on something. What if taking a substantial chunk of time off was more common (for anyone)?

Re:The Rise and Fall of Bitcoin Billionaire Arthur Hayes on Saturday February 06, 2021 @08:07PM (#26051711)
I think the indictment is straightforward: BitMEX provided banking services to US customers without implementing Know Your Customer and other required anti-money-laundering safeguards.

Being a "fintech" product doesn't exempt an operator from the law: KYC is the law on the US.

I'm surprised there haven't been more indictments, since I'm sure other exchanges have operated fast+loose w.r.t. AML and KYC

Re:Raft Visualization on Monday December 07, 2020 @03:52PM (#25337344)
`etcd` is probably the canonical off-the-shelf solution. Other implementations are listed here https://raft.github.io/#implementations
Re:Factorio 1.1 is getting close on Friday November 13, 2020 @02:12PM (#25086155)
Pro tip: to build in a line before 1.1, click to place a belt and then move the character in a cardinal direction with one of W/S/A/D while holding the mouse button down. You can lay a straight line of any item this way (including e.g. pipe, etc)
Re:Ask HN: Is it me or PWAs are pretty much dead? on Monday September 21, 2020 @09:38PM (#24550049)
Web Push on Safari on iOS (works fine on desktop) https://onesignal.com/blog/the-state-of-ios-web-push-in-2020...

Safari on iOS deletes LocalStorage after 7 days of inactivity (https://webkit.org/blog/10218/full-third-party-cookie-blocki...)

Huh; I had no idea that the newer Prius models can get 50 mi/gallon or more in city driving. That does change the equation quite a bit, I think.
I think the IRS number might be spot on.

Quick math:

   ($25,000 cost to buy car new - 
    $4,000 residual value at end-of-life
   ) / 100,000 miles usable lifetime = 

   $0.21/mi depreciation of value

   $3.22 / gallon * (1 / (17 mi / gal fuel efficiency)) = 
   $0.19/mi for fuel

   Maintenance:
     $40 per oil change / 8,000 miles = $0.01 / mi
     $600 tire change / 60,000 miles = $0.01 / mi
     $1,186 average yearly repair / 16,000 average miles driven = $0.07 mile
That all adds up to $0.49 / mi and does NOT include insurance and DMV registration fees.
Tangent:

$6/hr sounds a bit low; actual costs are probably higher.

The IRS standard mileage rate (the amount you can deduct from your taxes for each mile driven) is $0.58/mi (https://www.irs.gov/tax-professionals/standard-mileage-rates)

$6/hr operating costs means the driver is driving a max of ~10mi/hour, if costs to operate are in line with IRS guidelines.

Re:Investor revolt and legal dispute delay Filecoin plans on Tuesday August 18, 2020 @02:20PM (#24202208)
I'm not sure how you would implement this, since there's no way to provide a proof of deletion. Proof of storage is possible since you can do some operation on the stored data and then provide the result.

However, I assume when a file is "unpinned" in IPFS you stop earning Filecoin for storing it? I'm not sure but I can't imagine why it would be any other way.

Re:People loved Nikola but not its warrants on Wednesday July 22, 2020 @03:36PM (#23920712)
Matt Levine's column is awesome! You don't need to be a Bloomberg subscriber to receive it. You can sign up to get it in your email inbox daily here, for free: http://link.mail.bloombergbusiness.com/join/4wm/moneystuff-s...
Re:Straightened Trees on Friday July 17, 2020 @05:14PM (#23875638)
If that's 1000 full charge-discharge cycles, that'd be completely acceptable (assuming that the usable capacity is still close to 100% at the end of the lifespan) for a car which typically has a lifespan of 150,000 miles or so.

(1000 * 500 miles / charge) = 500,000 miles

Re:How we test the TeamCity UI on Thursday June 25, 2020 @05:08PM (#23645724)
It's not quite the same as screenshot testing, but I've had success using snapshot testing in React. The idea is outlined here: https://jestjs.io/docs/en/snapshot-testing

Snapshots of the intermediate representation (e.g. JSX in React) will be less brittle than e.g. a screenshot of pixels. It also works best when your UI is a function of some easily-constructed state. Other frameworks sharing these features would also work well with snapshot testing.

Re:Show HN: Top, but for Nginx on Tuesday June 09, 2020 @03:21PM (#23469855)
Pro tip: you can make any command into a real-time one with `watch`:

  watch bash -c "topngx < /path/to/access.log"
Will run `topngx` against access.log every two seconds and display the output.

Older »