```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?
```
2,293 karma · joined September 30, 2011
```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?
```
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?
I will do some research over the weekend. Thanks for mentioning it!
I wasn't aware of Phi-3 - I will look into it.
I will try to download it and send it to him.
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.
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?
> 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.
I stopped watching a show on PBS once the API (American Petroleum Institute) began sponsoring it.
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.
"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."
hotwired.dev##p:style(font-family: "Jost", serif; !important)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guid...
[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
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...