News for hackers. Stuff that matters.

grossvogel

Re:Understand and fix issues with Phoenix.Socket origin checks on Thursday December 04, 2025 @03:28PM (#46152583)
It’s a little thing, but one that keeps coming up again and again with new apps, so I thought I’d get down some thoughts about how the origin checks performed by Phoenix to protect websocket connections from cross-site attacks.
Re:Fly Kubernetes on Monday December 18, 2023 @07:57PM (#38690482)
I'm excited about this as a way to configure my Fly.io apps in a more declarative way. One of my biggest gripes about Fly.io is that there's a lightly documented bespoke config format to learn (fly.toml), and at the same time there's a ton of stuff you can't even do with that config file.

I love Kubernetes because the .yaml gives you have the entire story, but I'd _really_ love to get that experience w/o having to run Kubernetes. (Even in most managed k8s setups, I've found the need to run lots of non-managed things inside the cluster to make it user-friendly.)

Re:Design lessons from guitar pedals on Friday July 01, 2022 @09:24PM (#31955122)
Also, motor-driven pottery wheel, and old school transcription machines, where the pedal controls the rate and direction of audio playback
Re:Ask HN: Which are your favorite developer docs? on Monday June 06, 2022 @08:00PM (#31648148)
My favorite feature is the way source code links are added automatically and consistently. Just look for the little </> links to the right of the module / function / macro name!
I send links to specific lines or chunks of code pretty much every day (using a similar VS Code plugin), usually to show an example of a pattern or show where / how a particular piece of logic is implemented. Or sometimes to give an idea of a possible home for a new piece of logic
Re:Why everyone’s hoarding Mason jars on Sunday November 29, 2020 @10:19AM (#25245578)
I thought the article was pretty careful to attribute the rise of canning more to psychological factors than to household budgets:

In times of economic insecurity like the last recession in 2009, when McClellan started her Food in Jars blog, people turned to canning to soothe their fears, and mason jar sales took off.

...

“When there are these big downfalls of trust in systems of government or economy or institutions, there’s this desire to retain control wherever we can find it,” she says.

Re:Type in the exact number of machines to proceed on Tuesday October 27, 2020 @09:27PM (#24914003)
I always do destructive SQL commands in two steps: first run a select using the WHERE clause you intend to use and verify which records will be affected, then hit the up arrow and edit the beginning of the query leaving the WHERE intact.

I also like adding redundant conditions to the WHERE so a typo in any single one of them won't sink me.

Re:Can we know what animals are thinking? on Saturday August 26, 2017 @12:38PM (#15106182)
Just because it's not enough doesn't mean it's delusional.

I'm a vegetarian partly out of compassion for the animals who might be eaten and partly because of the other harmful effects of industrialized meat production.

In addition, I don't own a car and try to avoid non-human-powered transportation in general, I use air conditioning extremely sparingly despite living in Louisiana, I avoid buying crap I don't need online or in person, and I choose my foods and their sources carefully.

These are all personal choices, and I'm sharing them not to lecture or to be holier than thou. I'm just trying to say this: Maybe the correct reaction to "being a vegetarian alone won't save the world," is "I should be thoughtful about all the ways my choices impact the world" rather than "I'll have the 72oz steak."

Re:Be Kind on Friday October 14, 2016 @04:20PM (#12710785)
never, ever push changes on a Friday.

I think this goes a little too far.

I personally push code every Friday morning, and keep my Friday schedule relatively open so I have time to deal with any surprises.

Many successful companies brag (justifiably) about their continuous deployment systems and speed of deployment. I can't believe they suspend all of that every Friday.

http://product.hubspot.com/blog/how-we-deploy-300-times-a-da...

https://github.com/blog/1241-deploying-at-github

https://www.wired.com/2013/04/linkedin-software-revolution/

https://www.facebook.com/notes/facebook-engineering/ship-ear...

Re:The future is fewer people writing code? on Friday July 22, 2016 @03:50PM (#12146290)
I don't think it's being taught adequately to lots of people who aren't destined for careers in tech or academia. Look at the nearly universal disdain for math and especially "story problems," as well as the mystical aura of "coding" outside of those tech / academic circles.

In that context, I do think early encounters with programming might be a great entry point to "computational thinking" for some who aren't well served by existing curricula. It certainly makes more sense to me than trying to train every child to write code for its own sake.

Re:Why I won’t give talks about being a woman in tech on Wednesday July 20, 2016 @06:33PM (#12133049)
> clearly the deciding factor why that person got the talk was because she was a woman

Wow, what a coincidence! Every time I'm disappointed by a talk at a conference, I just know intuitively exactly why that person was chosen to present. Until now, I thought I was the only person with that super power.

I'm sorry for being obnoxious, but it's worth thinking about why it's so easy to reach this kind of conclusion. Maybe it's a bias that's so pervasive in our culture that we don't even realize it's there.

Re:'I'm a Student-Debt Slave.' How'd We Get Here? on Tuesday July 12, 2016 @06:44PM (#12082778)
Slightly OT: An entertaining perspective on student debt from New Orleans artist Dee-1 https://www.youtube.com/watch?v=JqbXQa05Z6c
Re:Declaration of Independence in American (1921) on Tuesday July 05, 2016 @04:18PM (#12039245)
That section struck me like a brick when I heard them reciting the Declaration on NPR yesterday morning. Later I saw this NYT opinion piece: "Did a Fear of Slave Revolts Drive American Independence" [1]. The article doesn't quite support the sensationalist headline, but it's interesting nonetheless.

[1] http://www.nytimes.com/2016/07/04/opinion/did-a-fear-of-slav...

Oops: "...economic success equals human worth"
In fact, I'd say the unspoken premise of the article is that economic success equals human wealth. From there, it argues mainly that economic success is increasingly determined by intelligence.

Strangely, the article ignores the strong anti-intellectual undercurrent in American culture, which may be a byproduct of these economic changes, and which seems to be the focus of many comments here.

Re:The Stunning and Expected End of Gawker on Monday June 13, 2016 @10:22AM (#11894103)
I don't know who originally voiced that critique, but Glenn Greenwald has been harping on 'stenographer jounalism' for a long time.

https://www.google.com/webhp#q=glenn%20greenwald%20stenograp...

Re:Salary Negotiation on Friday June 03, 2016 @07:03PM (#11833866)
What about a simple policy of revisiting the salary discussion on a regular (annual?) basis. As long as it's transparent and universal (not just for people who ask for a raise), it seems like it'd be in line with your philosophy.
Re:Scaling to 100M: MySQL Is a Better NoSQL on Tuesday May 24, 2016 @02:04PM (#11764003)
By "taken hostage their images," do you mean that literal graphic files uploaded to Wix servers were somehow made inaccessible to the user?
Re:Scaling to 100M: MySQL Is a Better NoSQL on Tuesday May 24, 2016 @02:01PM (#11763965)
Some kind of master-master replication, probably: https://dev.mysql.com/doc/refman/5.7/en/mysql-cluster-replic...
Re:Ask HN: Pick startups for YC to fund on Wednesday April 06, 2016 @05:44PM (#11442396)
"Apply HN: Apply HN voting bots as a service"
Re:Ask HN: Pick startups for YC to fund on Wednesday April 06, 2016 @05:33PM (#11442318)
"I'm concerned that your business model relies on regulatory arbitrage and/or your hosts' willingness to violate local ordinances.

Not only would that make you vulnerable to changes in the legal / enforcement landscape, but there's also a growing backlash in some quarters (including on HN) against this type of business.

Can you provide any assurances that this business would be sustainable if you were forced to rely on 100% legal and taxed host properties?"

^^ YES ^^ I live in New Orleans, and this is my chief concern about short-term rentals. The guests can be obnoxious, sure, but that alone wouldn't have made this such a hot city-wide issue. The rental market has been changing very rapidly here, partly due to a recent influx of well-off young people, and it's causing a lot of anxiety about what the city will look like in the future.
Re:The Myth of Gentrification on Friday December 11, 2015 @11:35AM (#10718037)
> It's actually only happening in three cities...

The article does seem to be trying to imply that, but I don't think the census data they cite support such a strong conclusion.

"just three cities—New York, Chicago, and Washington—accounted for one-third of all census tracts that saw poverty rates decline from above 30 percent in 1970 to below 15 percent in 2010"

The criteria and timing seem to suggest that we're looking at neighborhoods that were done gentrifying by 2010. Neighborhoods currently undergoing gentrification could be much more widespread.

And because of their size and demographics, those three cities would account for a large chunk of gentrification even if every single impoverished neighborhood in the US were to gentrify. https://xkcd.com/1138/

Re:The Myth of Gentrification on Friday December 11, 2015 @11:22AM (#10717950)
I assumed the 'editorializing' accusation was targeted at the assertions behind the question: That gentrification is rare and helps existing residents.
"Bloomberg Businessweek" does sound like the name of a serious publication...
Re:Airbnb Raises Over $100M as It Touts Strong Growth on Friday November 20, 2015 @04:40PM (#10604062)
Unfortunately there are two different concepts of "we" at play. The "we" who get pushed out of our neighborhoods by tourism-driven rent increases will most certainly not be the "we" who decide what's more important.
Re:Ask HN: How best to break up with cofounder? on Wednesday November 18, 2015 @11:18AM (#10588587)
Maybe OP's co-founder should see this thread, too.
Re:Didn’t Homejoy Shut Down? on Wednesday October 28, 2015 @06:56PM (#10468005)
Third party processors will store the card info securely and then provide only parts of it back to you via an API call. Stripe's API includes the last 4 and expiration date, as you can see here[1], so Fly Maids may not have all of that data.

[1] https://stripe.com/docs/api#cards

Older »