News for hackers. Stuff that matters.

kfoley

For anyone looking to disconnect their Samsung appliances from the web while keeping local control through Home Assistant, there's LocalThings[0].

I found it after learning that Samsung is planning to start charging $5 a month for API access but another benefit is reducing the risk of something like this.

[0]: https://github.com/mbillow/localthings

For anyone looking to get started I highly recommend the StrongLifts program and the associated app, both free [1].

I neglected strength training for a long time because every time I tried to get started I would feel overwhelmed. Then I tried StrongLifts and loved the fact that it's just 5 exercises, but provides pretty much a full body strength workout.

The guy who developed the program has put a ton of effort into making sure it's detailed and accessible so that pretty much any question you could have is answered.

[1]: https://stronglifts.com/5x5/

Re:Teflon is still toxic to birds on Sunday November 05, 2023 @01:31PM (#38154047)
Interesting, I've also got a Lodge. I use a low heat with a longer preheat, usually somewhere between a 3 or 4 out of 10 for for I'd say 2-3 minutes or so to preheat (not sure if that's relatively long or not).

Maybe it's the seasoning? I haven't seasoned ours in a long time but the last time I did I used flax seed oil.

Re:Teflon is still toxic to birds on Sunday November 05, 2023 @11:57AM (#38152918)
We use seasoned cast iron for eggs with very few issues. We used to use butter which led to some sticking, however recently we've been using olive oil and it's much better, with little to no sticking depending on what style we're cooking the eggs.
I think French people, especially younger ones, are much more open to the use of English than stereotypes suggest. My favorite example is the French name for the movie "The Hangover", which is "Very Bad Trip". Not "Very Bad Trip" translated into French, but the exact English.
Re:How mobile apps illegally share your personal data on Thursday September 14, 2023 @09:47AM (#37508982)
> You would think at least some of those issues could be avoided by living somewhere “more expensive”, but it seems like affluent areas actually have more ads.

For whatever reason there are no (or very few) billboards in Northern Virginia, so that's one option. I wish there were more places like that, it's so refreshing driving through and not being bombarded with ads fighting for my attention (which is supposed to be on the road...).

But in general I think you're right it's extremely hard to get away from. I think the main reason it's hard to "buy out" of advertising it that the very fact that you can afford to "buy out" makes you that much more valuable to advertisers.

> Nb: I recently took a trip to the USA and was appalled that they play full volume video advertisements while you’re filling up with gas. At least that’s not a practice that’s caught on elsewhere.

In case you visit again or it comes up for others, you should be able to push the second button from the top on the left to mute the video.

There are extensions that will automatically redirect you. I use this one [0] for Firefox and haven't had any issues.

[0]: https://addons.mozilla.org/en-US/firefox/addon/old-reddit-re...

Re:Ask HN: Who Got Hired? on Friday June 02, 2023 @08:02AM (#36163986)
I got hired from a "Who's Hiring" post about 5 years ago and it's been an amazing experience. I've been able to work on interesting problems without having to deal with a bunch red tape as I had become accustom to in previous roles. I also got to go through a successful IPO which has been incredibly gratifying.

I later found out that the company doesn't regular post to those threads and someone did it on a whim which made me feel even luckier for having happened to come across it.

Then, early in the pandemic when lots of companies were laying people off there was a thread for companies still hiring. I posted something and we got a ton of applications but sadly none of them panned out. Later I was talking with some coworkers about how we all found the company and someone mentioned they found it via HN. Turns out it was actually my post and I just didn't realize someone had gotten hired from it which was pretty cool.

> Is there a browser that has that feature yet? I spent a few hours trying to figure out if Firefox did. It did not appear to.

I believe this will be supported by manifest v3 extensions in Firefox[1] which is one of the features I'm looking forward to for the same reason.

[1]: https://blog.mozilla.org/addons/2022/10/31/begin-your-mv3-mi...

I used to have the same issue understanding the benefit. One simple example that helped it clicked for me was considering the `when` or `unless` macro.

They're just very simple macros based around the `if` special form. Because they're macros, they can just treat the body as data, i.e. it's not executed as part of argument resolution.

If you wanted to make a `when` function in Python, the "body" would have to be a callable like a lambda or named function.

I know this probably isn't the most compelling use case but I found it to be a really simple way to understand some of the benefits of macros and how they could be used elsewhere.

> When Buffalo NY's Tops International Market fired their baker for literally urinating in the cake batter used to make the store cakes, the union stepped in to defend the employee because as part of the union contract employees were not supposed to be on camera to perform their duties. They fought hard to get their baker reinstated and won.

Do you have a source for this? It's a rather serious claim to make without any evidence and I haven't been able to find anything other than your comment when searching.

> so maybe it’s normal to immediately record anything out of the ordinary?

It does does seem to be fairly normal today. I once witnessed a woman struck by a car on a busy street. It was shocking to see how many people had their phones out and were filming the poor woman on the ground. There was thankfully some people trying to contact an ambulance and assist her.

Likewise I'm always amazed how many videos there are on the news from kids in locked down classrooms during school shootings. It's a different situation obviously since they're filming their own suffering as opposed to someone else's but it's still surprising to me.

Re:Firefox 91 introduces enhanced cookie clearing on Tuesday August 10, 2021 @12:57PM (#28131207)
The only problem is that there is often an option to allow cookies to "store site preferences" or something along those lines.

My experience is this also includes your cookie preferences which means if you don't enable that single option, you'll have to go through the steps to disable cookies pretty much every time you visit.

Re:I tracked down my impostor on Saturday March 27, 2021 @03:10PM (#26604648)
Reminds me of something I experienced on HN and Reddit, though my case was a far less significant level.

I posted a comment on HN in response to some article about Emacs. Later that day I saw someone had copied my comment word for word in reply to the same article on Reddit.

I still have no idea why someone would do that. I thought at first it was some kind of karma farming operation but the post history of the Reddit user didn't really fit that profile. Plus,it seems like r/emacs would be a really poor choice for that.

I've always been curious to know why someone would do something like this. It's interesting to read about it happening on a way larger scale.

Re:Migrating to SQLAlchemy 2.0 on Thursday February 18, 2021 @06:38PM (#26187394)
Here's[1] the CSS I use on my blog to treat the table of contents differently depending on screen width. I'm probably also "unqualified to be touching" this stuff so take it with a grain of salt.

[1] https://gitlab.com/kevinjfoley/assorted-array/-/blob/master/...

Re:Emacs in odd places on Monday November 16, 2020 @02:25PM (#25115879)
You can navigate to files in Emacs using `find-file` (C-x C-f with standard key bindings).

That should prompt you to enter a path, which, without any customization, should perform very similar to a shell prompt in terms of using tab for file completions.

A huge improvement to this in my opinion is the use of a completion framework package. I use ivy[0] but helm is also popular and there are others.

The main draw in this case is instead of having to tab through completion candidates, they appear as a vertical list which is updated as you type. It also allows more advanced filtering, for example by regex which I find a lot easier to use than shell completion which only supports prefix.

For example say I want to navigate to a directory called `the-project` but I always forget whether it's named `the-project` or `a-project`, it doesn't matter because I just type `project` and would see `the-project` as an option so I'd navigate to that and select it (using `C-n` and `C-p` to navigate the list).

If that isn't what you're looking for then another option is `emacsclient` [1] which let's you open files in an already existing Emacs process.

[0] https://github.com/abo-abo/swiper

[1] https://www.emacswiki.org/emacs/EmacsClient

Re:Ask HN: Who is hiring right now? on Monday March 23, 2020 @12:56PM (#22665927)
Doximity | San Francisco, CA | Full Time | REMOTE | Multiple Roles

We develop products to connect health care providers and keep them informed of the latest developments in the medical world.

One of our products that's gotten a lot of attention during the current pandemic is Dialer[0]. It allows providers to display their office number in the caller id when contacting patients from their own device, preventing their personal number from being shared without having to block it.

We're hiring for many roles including Software Engineer, Data Analyst, Data Engineer, Product Manger, and more.

View open roles at https://grnh.se/13ff44ba1

[0] https://blog.doximity.com/articles/goodbye-67-hello-doximity...

Re:Consider: Email 2.0 on Sunday March 15, 2020 @06:06PM (#22587247)
> otherwise it’s just another walled garden that will wither and die out in a few years

Or worse it's another walled garden that doesn't die out in a few years. Not because what it offers in trade for locking you in is worth it, but because the inertia it creates makes sticking with it seem more appealing than migrating to something that could be even worse.

Re:Hacking up your own shell completion on Friday March 06, 2020 @09:47AM (#22503933)
Had a similar issue with an in house tool and learned that `click`, the framework we use for CLI's, has built in support for generating auto completions[0].

Could be worth it for others to check if such a feature exists for the framework they're using.

[0] https://click.palletsprojects.com/en/7.x/bashcomplete/

Re:Show HN: MDAnki – convert Markdown to Anki cards on Saturday February 22, 2020 @07:53AM (#22390744)
This would change a lot of the current design but one option is to use AnkiConnect[0], it provides a network interface for interacting with Anki and creating/updating cards.

There's a somewhat similar project[1] that lets you use Org mode to make cards. It uses Emacs so there may not be too much you can apply but could be useful to take a look at.

[0] https://github.com/FooSoft/anki-connect [1] https://github.com/louietan/anki-editor

Re:Building a walkie-talkie for remote work on Friday January 24, 2020 @08:13AM (#22137832)
I think there's a place for synchronous communication as long as it's followed up by sufficient asynchronous communication such that people aren't left out.

Sometimes it's a lot faster/easier to be able to get on a 5-10 minute call to discuss something and be able to look at it together instead of sending messages back and forth for a week trying to get a point across / understand someone else's point.

Re:Show HN: Zero-Config Documentation Websites for Python on Monday August 26, 2019 @03:02PM (#20802664)
Sphinx should support Markdown, we're using the instructions at https://www.sphinx-doc.org/en/master/usage/markdown.html for our project and haven't had any issues.

Haven't tried it yet but you should also be able to enable rst blocks through recommonmark so you get the best of both - https://recommonmark.readthedocs.io/en/latest/auto_structify...

Re:The Fireplace Delusion on Tuesday December 25, 2018 @07:34PM (#18759816)
It sounds like you are already an "atheist" of the wood burning debate, in which case the metaphor isn't intended for you and it's understandable you didn't relate.

I think shortening it would lose the effect on the intended audience. Your proposed replacement doesn't really contain any compelling evidence, so someone who does enjoy fires can easily dismiss it without getting the point. I think it's a good summary having read the article but not really enough to get the point across for the intended audience.

Re:France might be losing its first big information war on Thursday December 06, 2018 @07:56PM (#18624156)
Sincere question, is this really France's "first big information war"? I feel like there was a lot of similar activity leading up their election last year try to get Le Pen elected which wasn't successful but I'm not sure how accurate that is.
Re:Why Is College in America So Expensive? on Tuesday September 11, 2018 @04:02PM (#17962820)
It's not even necessarily cheap debt. A lot of my undergraduate loans were at rates of 6.8% which I consider somewhat high.

The problem is it's easily accessible debt to people who have no concept of what tens of thousands of dollars is really worth. You see the amount you're borrowing on the form and it's really nothing more than a number.

Re:Setting Emacs theme based on ambient light on Tuesday April 10, 2018 @07:27PM (#16806628)
I really like this idea, it's something I've been wanting to try out for a while now.

I'm curious if using `run-with-timer` causes any performance issues in emacs. If so one option is to watch the value outside of emacs and then change the theme using `emacsclient -d "(load-theme 'my-dark-theme t)"` from the script.