HNHacker News
TopNewBestAskShowJobs

a_w

2,293 karma · joined September 30, 2011

submissionscomments
a_w··on Keep if clauses side-effect free
I do this often:

```ruby

if (user = User.find_by(email: 'abc@example.com'))

  user.update(status: 'active')
end

```

Is it better to do this instead?

```ruby

user = User.find_by(email: 'abc@example.com')

user.update(status: 'active') if user.present?

```

a_w··on Took part in Apache ceremonies. schools expelled them for satanic activities
Morality aside, I was hopping to see a discussion on the legal side of this issue.

1. Doesn't Title VI apply here?

2. Could a company legally fire an employee for practicing their religion/tradition on the weekends, outside of the office grounds?

a_w··on Ask HN: 16 yo Nephew, in E. Africa, wants to train an LLM with on disk Wikipedia
Unfortunately, it doesn't look like Starlink is an option.

https://news.ycombinator.com/item?id=40246021

a_w··on Ask HN: 16 yo Nephew, in E. Africa, wants to train an LLM with on disk Wikipedia
I have been thinking about that, but I haven't gotten around to researching its availability in the country yet.

I will do some research over the weekend. Thanks for mentioning it!

a_w··on Ask HN: 16 yo Nephew, in E. Africa, wants to train an LLM with on disk Wikipedia
Thanks for the detailed response.

I wasn't aware of Phi-3 - I will look into it.

a_w··on Ask HN: 16 yo Nephew, in E. Africa, wants to train an LLM with on disk Wikipedia
That's interesting. Could you expand on this a bit more? Which models, and I am curious about how the CS teachers/students will be using this?
a_w··on Ask HN: 16 yo Nephew, in E. Africa, wants to train an LLM with on disk Wikipedia
Thanks for the suggestion! I will look into this.
a_w··on Ask HN: 16 yo Nephew, in E. Africa, wants to train an LLM with on disk Wikipedia
Thanks!

I will try to download it and send it to him.

a_w··on Ask HN: 16 yo Nephew, in E. Africa, wants to train an LLM with on disk Wikipedia
I believe he has a laptop with an Intel i5 with integrated graphics.
a_w··on Ask HN: 16 yo Nephew, in E. Africa, wants to train an LLM with on disk Wikipedia
That is a great suggestion, thank you!

I think he wants to tinker, and learn more about how they work. What I neglected to mention is that he's already learned to program (developing Android apps, and he's also learned Python). He is a very bright and curious kid.

a_w··on Radios, how do they work?
Hmm... Unfortunately the site is infested with spam links - visible with ad blockers turned on.
a_w··on Meta disbanded its Responsible AI team
> How can it iterate? How does it test?

Honest/dumb question - does it need to test? In nature mutations don't test - the 'useful' mutations win.

Couldn't a 'super intelligent AI' do the same?

a_w··on Welcome to Fusion City, USA
Second to last paragraph:

> That matters because fusion research, with no risk of runway chain reactions and producing vastly less radioactive waste, is being conducted under existing regulations by individual states, rather than the federal Nuclear Regulatory Commission.

a_w··on The World is Built on Probability (1984)
https://mirtitles.org/2018/09/04/calculus-basic-concepts-for...

https://archive.org/details/LevTarasovCalculusBasicConceptsF...

a_w··on NPR cancels 4 podcasts amid major layoffs
"Name washing"? Is there such term/phrase?

I stopped watching a show on PBS once the API (American Petroleum Institute) began sponsoring it.

a_w··on Why Democracy Is Broken and How to Fix It
Thanks for the reply!

I have thought quite a bit about this over the past few of years, and I think it is probably the best method for replacing elected officials at least up to the senate level.

"Being able to select adequately competent participants can be a challenge depending on your source pool, and some point there would need to be a fair process, resistant to manipulation or gaming, in order to cull less qualified individuals."

I agree that it will initially be a challenge to find 'competent participants', but I think this can be solved by introducing/adding courses at the high-school level that the community/citizens believe are essential (I am thinking econ, history, the constitution, etc.)

I also agree that fairness is another an important issue - care must be taken to ensure that whatever 'competence' criteria are used don't turn into another poll-tax.

"There also exists problems with this method in highly polarized political environments, particular those in which exists two entirely separate information ecosystems such as the US."

Another excellent point. But I think we all have family members and friends who hold views that are the complete opposite of our own, or we may view are extreme, but we also find other issues we agree on and find ways to work/live together.

I think if a congressperson knows that they don't have to raise money or worry about a primary challenge, then I believe they will find ways to work with people from a different party, or colleagues who are independents.

The separate information systems will still be there, but I don't believe their influence on legislators will be at the level it is now.

a_w··on E-Trikes Are Coming to Rescue the Aging Suburbs
https://lectricebikes.com/products/xp-trike-graphite

https://electrek.co/2023/01/13/lectric-ebikes-xp-trike-specs...

a_w··on Why Democracy Is Broken and How to Fix It
Any thoughts on Sortition?

https://en.wikipedia.org/wiki/Sortition

a_w··on Why does the SARS-Cov2 genome end in aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa? (2020)
https://news.ycombinator.com/item?id=25598270
a_w··on NIH blocks access to genetics database if research enters “forbidden” territory
Would be nice if you could supply a none-paywalled link to download the research paper. Thanks!
a_w··on Ask HN: Best programming books in the last couple of years?
"Nobody ever taught me about a B tree. I had heard of it. When I went to write my own B tree, on the bookshelf behind me, I’ve got Don Knuth’s The Art of Computer Programming, so I just pulled that down, I flipped to the chapter on searching and looked up B trees and he described the algorithm. That’s what I did.

"Funny thing, Don gives us details on the algorithm for searching a B tree and for inserting into a B tree. He does not provide an algorithm for deleting from the B tree. That’s an exercise at the end of the chapter, so before I wrote my own B tree I had to solve the exercise at the end. Thanks, Don. I really appreciate it.

"Adam: That’s awesome. Did you pull anything else from that book?

"Richard: Well, it’s an amazing volume. I can’t give you a specific example, but from my era, everybody has to have read or at least skimmed through, at least browsed through The Art of Computer Programming, and know that algorithms that are there, maybe not Don’s exact implementation. I mean, I never took the time to learn MIX, which is his assembly language, but it’s useful to flip through and look at all the algorithms he talks about. I think that just a year or two ago I needed a pseudorandom number generator, and I was, “Let’s see what Don recommends.” You pull it off. You see what he does."

https://corecursive.com/066-sqlite-with-richard-hipp/

a_w··on Change the colour of grey text back to black on website using poor contrast text
Thank you so much! Just applied on hotwired.dev

hotwired.dev##p:style(font-family: "Jost", serif; !important)

a_w··on @hotwired/stimulus 3
I wish they would change the default font on the Hotwire/Stimulus Reference pages from "Bitter" to something a bit darker, e.g., "Jost".

https://stimulus.hotwired.dev/

https://turbo.hotwired.dev/

a_w··on If Software Is Funded from a Public Source, Its Code Should Be Open Source
I have always thought that all of the BBC's code should be open source.
a_w··on How to teach programming to your loved ones [video]
> What's greater than God. Meaner than the devil. Poor people have it. And if you eat it you will die? Nothing?
a_w··on Show HN: Learn and practice modern JavaScript
I find this MDN JS guide very helpful. Quickly scan the chapters/sections and pick ones you are not familiar with.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guid...

a_w··on Sinister 'hunger stones' with dire warnings have surfaced as water levels drop
I think it depends on when the record keeping of the event began. So in this case if they started keeping records 250 years ago and they haven't experienced this level of drought since then, then it is considered record breaking. It doesn't mean that there haven't been worse droughts say, 300 or 400 years ago. It just means that either the official record keeping doesn't go that far, or that there may not be scientific research available to show that worse drought did occur before the the record keeping began.
a_w··on Math from Three to Seven: The Story of a Mathematical Circle for Preschoolers [pdf]
Not exactly a game, but I made this app after watching a show on the benefits of doing daily basic math exercises. I think it is ideal for kids too as they get instant feedback and are able to pick operators and number ranges.

https://play.google.com/store/apps/details?id=com.brainmath

a_w··on The aging mind: neuroplasticity in response to cognitive training (2013)
According to this NHK medical frontiers show [0][1], Japanese researchers demonstrate that doing daily basic math exercises and reading aloud is good for the brain. So I built a basic math exercise generator app [2].

[0] https://www3.nhk.or.jp/nhkworld/en/tv/medicalfrontiers/20170... [1] https://www.youtube.com/watch?v=qr-5urj2WKY [2] https://play.google.com/store/apps/details?id=com.brainmath

a_w··on Why we never thank open source maintainers
I just wanted to thank NoScript maintainer Giorgio Maone, as he is currently working really hard to fix issues.

NoScript was my favorite add-on and I have no doubt that it will be once again, but it really is heartbreaking to read some of the reviews[1]. Constructive feedback is a good thing, but I just don't understand why some people feel that they have a right to use the f* word when reviewing the new version. Just simply describe what is broken and say you have disabled it until the issue is resolved, and thank the man for his hard work.

Thanks again, Giorgio Maone!

[1] https://addons.mozilla.org/en-US/firefox/addon/noscript/revi...

Page 1 of 2Next →