Search found 2610 matches

by ahammel
Mon Jul 17, 2017 7:32 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1528914

Re: Coding: Fleeting Thoughts

I feel like it might have been suggested in the past, but I don't recall anything specific coming of it. Feel free to open an issue about it in csswg-drafts, with the usage examples you're citing (which are why Twitter doesn't actually do gifs; it transcodes them to videos so it can pause them >_<)...
by ahammel
Tue Jul 11, 2017 1:40 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1528914

Re: Coding: Fleeting Thoughts

Flumble wrote:I take it the browser will ask the user "do you want this site to drain your battery, waste your bandwidth and track you forever?" before running a service worker. Right? :roll:
Nope
by ahammel
Mon Jun 26, 2017 3:58 pm UTC
Forum: Coding
Topic: Basic Question Involving Functions (Python)
Replies: 18
Views: 3673

Re: Basic Question Involving Functions (Python)

can handle integers and strings and even arrays. if they are integers, it will add them as expected and return the result. if strings, it will concatenate them and return. if arrays, it will add the elements of the the arrays ([1,2,3]+[4,5,6] = [5,7,9]) This is not correct. While what you wrote arg...
by ahammel
Thu Jun 22, 2017 7:19 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1528914

Re: Coding: Fleeting Thoughts

If you really want to enforce that constraint in the database, stay with your current implementation, or consider this variation: That's a neat solution, thanks for your help. Problem: user FK's into user_team, which FKs into user. You cannot insert rows into either table unless you can convince yo...
by ahammel
Sat Jun 17, 2017 5:58 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1528914

Re: Coding: Fleeting Thoughts

For starters, you should have: users, teams, user_teams (many-to-many). Within user_teams, I would have a nullable integral type, is_primary, with a unique constraint on (user,is_primary) where null is treated as false and 1 is treated as true and a check constraint preventing other values. Oh neat...
by ahammel
Sat Jun 17, 2017 5:11 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1528914

Re: Coding: Fleeting Thoughts

Database theory question: what's the best way to represent a relationship between users and teams if every user has exactly one primary team and zero or more secondary teams? Our current schema looks like this: +------+-----------------+ +-----------+-------------------+ | user | | | user_team | | +...
by ahammel
Tue Jun 13, 2017 1:29 am UTC
Forum: Food
Topic: Controversial opinions about food
Replies: 917
Views: 149006

Re: Controversial opinions about food

Julia Child wrote:It is hard to imagine a civilization without onions.
by ahammel
Sun May 21, 2017 7:44 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1528914

Re: Coding: Fleeting Thoughts

What's the point of the switch statement? On the surface it seems like a neat and clean way to choose between options, but it is actually more limiting and costs an extra layer of indent. Falling through (a case statement) is a nice option, but is also a sneaky place to breed unexpected bugs. I do ...
by ahammel
Thu May 11, 2017 2:28 am UTC
Forum: Coding
Topic: Basic Question Involving Functions (Python)
Replies: 18
Views: 3673

Re: Basic Question Involving Functions (Python)

Functions, in Python, always return a value. That is to say, help(fn) returns some value. If you don't specify a value for the function to return (via the return statement), the function will return None (which is, mathematically, basically the equivalent of "undefined"). Spoilered for ni...
by ahammel
Fri Apr 21, 2017 1:42 pm UTC
Forum: News & Articles
Topic: The Thread To Remind Me We're Living In The Future
Replies: 1496
Views: 205699

Re: The Thread To Remind Me We're Living In The Future

I haven't seen a single protocol that wasn't made into a word/name/pun (some are pretty weak) Linear DNA Amplification? LinDA An RNA extraction protocol? RNEasy RNEasy is the name of a commerical product, though, isn't it? That's a little bit more forgivable The one the always bothered me is "...
by ahammel
Thu Apr 13, 2017 3:51 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1528914

Re: Coding: Fleeting Thoughts

*puts on refactoring boots*
by ahammel
Wed Apr 12, 2017 11:19 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1528914

Re: Coding: Fleeting Thoughts

I'm quite certain in this latter setup the call to higherOrderFunction is delayed until someFunction is called (the first time, and probably every time, because both thing.fn and higherOrderFunction change between calls for all the runtime knows, nullifying that const ), and thing.fn is filled in b...
by ahammel
Tue Apr 11, 2017 5:09 pm UTC
Forum: General
Topic: Let's Talk Money
Replies: 204
Views: 30457

Re: Let's Talk Money

Ahammel, half of my advice isn't so much massive Life style changes as simply being healthier. Dry mouth is a side effect of medication, but all the rest isn't so horrible. Don't eat dessert, don't snack, don't eat unhealthy sugary foods. Is that so radical? Eating less acidic foods is a bit rough,...
by ahammel
Tue Apr 11, 2017 2:53 pm UTC
Forum: General
Topic: Let's Talk Money
Replies: 204
Views: 30457

Re: Let's Talk Money

Dunno about the rest of you, but I'd lay out a fair amount of cash for even a marginally better chance of avoiding cavity drilling. Certainly I'm willing fork over the cost of a new electric toothbrush every few years. As opposed to brushing technically correct twice a day, eating less sugar/ acidi...
by ahammel
Tue Apr 11, 2017 2:39 am UTC
Forum: General
Topic: Let's Talk Money
Replies: 204
Views: 30457

Re: Let's Talk Money

Dunno about the rest of you, but I'd lay out a fair amount of cash for even a marginally better chance of avoiding cavity drilling. Certainly I'm willing fork over the cost of a new electric toothbrush every few years.
by ahammel
Tue Apr 11, 2017 2:15 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1528914

Re: Coding: Fleeting Thoughts

ahammel, does node simply complain about an identifier that was declared after the import statement? Or did you try to execute code while loading the dependencies? IMO the latter is usually a bad thing –rather load passive modules and, after they're done loading, invoke some function. The code look...
by ahammel
Mon Apr 10, 2017 10:36 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1528914

Re: Coding: Fleeting Thoughts

Node's handling of cyclic dependencies is probably the most maddening language feature I've ever had to deal with.

"Surprise! That function is suddenly undefined! Good luck figuring out why."
by ahammel
Fri Mar 17, 2017 1:57 pm UTC
Forum: News & Articles
Topic: Wikileaks Releases CIA Hacking Secrets
Replies: 21
Views: 4694

Re: Wikileaks Releases CIA Hacking Secrets

I honestly don't have a problem with the CIA having these capabilities. I'm not super computer-aided, but this sounds like the sort of thing I always assumed they could do. If anything it sounds a bit underwhelming. My only problem has ever been the insistence that companies should *cooperate* with...
by ahammel
Wed Mar 15, 2017 1:56 pm UTC
Forum: School
Topic: Should I major in physics?
Replies: 11
Views: 2463

Re: Should I major in physics?

Also, if you don't think that there's people stressing about how to make things that are aesthetically pleasing, please tell me why we spend a good deal of our journal club lambasting diagrams that are either misleading or ugly as sin. Because journal clubs are a vicious bloodsport and it wouldn't ...
by ahammel
Sun Mar 12, 2017 6:07 pm UTC
Forum: School
Topic: Should I major in physics?
Replies: 11
Views: 2463

Re: Should I major in physics?

I think it depends on your goal. You should consider these questions: What do you want to do after you graduate? and What is the job outcome in your place?? Stuff like that and then make your decision. It's a good idea to think about about career outcomes, but those can be very difficult questions ...
by ahammel
Thu Mar 09, 2017 7:45 pm UTC
Forum: Computer Science
Topic: A Compact Sized "Why?-BOOM" machine.
Replies: 7
Views: 2437

Re: A Compact Sized "Why?-BOOM" machine.

stopmadnessnow wrote:You know those machines in old sci-fi series which can be destroyed by asking them "Why?", don't you?

I...do not.
by ahammel
Thu Mar 09, 2017 4:24 am UTC
Forum: News & Articles
Topic: Wikileaks Releases CIA Hacking Secrets
Replies: 21
Views: 4694

Re: Wikileaks Releases CIA Hacking Secrets

Is there anything particularly surprising about the CIA's capabilities in the leaked documents? Wifi and auto-fill vulns are pretty commonplace. I don't find it particularly alarming or surprising that they have software to exploit that kind of thing. The InfoSec people I follow have been spending m...
by ahammel
Wed Mar 08, 2017 3:10 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1808: "Hacking"
Replies: 32
Views: 5349

Re: 1808: "Hacking"

Spambot5546 wrote:TIL you can have a space in your email address.

Fun fact: this_is(technically a perfectly valid address)@accordingtotheoriginalspec.com
by ahammel
Tue Mar 07, 2017 8:17 pm UTC
Forum: Food
Topic: Controversial opinions about food
Replies: 917
Views: 149006

Re: Controversial opinions about food

What do you mean by rancid? Usually that word means having a particular smell, and I've never opened a bottle of olive oil the smelled like rotting meat. Wikipedia tells me that 'rancidification' is the process of the decomposition of fats (like olive oil, for instance). More info on olive oil ranc...
by ahammel
Fri Feb 24, 2017 6:04 am UTC
Forum: Forum Games
Topic: What is the worst movie ever made?
Replies: 17
Views: 1507

Re: What is the worst movie ever made?

Manos was so bad that it's not even a particularly good MsT3K episode.
by ahammel
Wed Feb 22, 2017 9:28 pm UTC
Forum: Language/Linguistics
Topic: Regional Dialect and Idiolect Oddities (pronunciation)
Replies: 779
Views: 177335

Re: Regional Dialect and Idiolect Oddities (pronunciation)

I have an initial h in "herb" and "herbivore", and "an history" sounds weird to me.
by ahammel
Mon Feb 20, 2017 7:46 pm UTC
Forum: Language/Linguistics
Topic: Regional Dialect and Idiolect Oddities (pronunciation)
Replies: 779
Views: 177335

Re: Regional Dialect and Idiolect Oddities (pronunciation)

Do you pronounce "bazaar" and "bizarre" the same way? I do. /bəzɑɹ/. Dictionaries say that "bizarre" is /bɪzɑɹ/. I pronounce both with the schwa. Otherwise it ruins the pun. "Do you like my hat? I picked it up at a little bazaar." "Oh, that explains it.&...
by ahammel
Sun Feb 19, 2017 3:40 pm UTC
Forum: Serious Business
Topic: Voting on government spending via taxs
Replies: 25
Views: 4066

Re: Voting on government spending via taxs

There could be a wisdom of the crowds type of effect (for example: http://www.npr.org/sections/money/2015/08/07/429720443/17-205-people-guessed-the-weight-of-a-cow-heres-how-they-did) that allows uncoordinated masses to arrive at allocations that are just as good as the experts. That sounds more li...
by ahammel
Sat Feb 18, 2017 11:13 pm UTC
Forum: Language/Linguistics
Topic: Regional Dialect and Idiolect Oddities (pronunciation)
Replies: 779
Views: 177335

Re: Regional Dialect and Idiolect Oddities (pronunciation)

I have always pronounced the first r in February since I was instructed to do so by my second grade teacher.
by ahammel
Sat Feb 18, 2017 4:54 am UTC
Forum: Fictional Science
Topic: Plant Coloration On Exoplanets
Replies: 17
Views: 3523

Re: Plant Coloration On Exoplanets

Yes, that would be most efficient, but that would also cause a significant decrease in carbon dioxide levels, which would tend to kill of those kinds of plants in the long run. I doubt it. It's really hard to get terrestrial plants to be CO2-limited unless you grow them in a bell jar. And even if t...
by ahammel
Fri Feb 17, 2017 3:26 pm UTC
Forum: Serious Business
Topic: Why is dog fighting morally wrong?
Replies: 60
Views: 8177

Re: Why is dog fighting morally wrong?

Dogs can suffer, and therefore their suffering ought to be minimized, therefore it's wrong to torture them. Because dogs are rational enough to have preferences, they prefer not to be tortured, and the moral course of action is the one that maximizes the extent to which rational creatures can satis...
by ahammel
Thu Feb 16, 2017 3:50 pm UTC
Forum: Serious Business
Topic: Voting on government spending via taxs
Replies: 25
Views: 4066

Re: Voting on government spending via taxs

There could be a wisdom of the crowds type of effect (for example: http://www.npr.org/sections/money/2015/08/07/429720443/17-205-people-guessed-the-weight-of-a-cow-heres-how-they-did) that allows uncoordinated masses to arrive at allocations that are just as good as the experts. That sounds more li...
by ahammel
Thu Feb 16, 2017 3:35 pm UTC
Forum: Serious Business
Topic: Voting on government spending via taxs
Replies: 25
Views: 4066

Re: Voting on government spending via taxs

There could be a wisdom of the crowds type of effect (for example: http://www.npr.org/sections/money/2015/08/07/429720443/17-205-people-guessed-the-weight-of-a-cow-heres-how-they-did) that allows uncoordinated masses to arrive at allocations that are just as good as the experts. That sounds more li...
by ahammel
Wed Feb 15, 2017 3:55 pm UTC
Forum: Serious Business
Topic: An essay against competition
Replies: 50
Views: 8832

Re: An essay against competition

Let me try to describe the thought process more clearly. Imagine that some aliens drop an embodied thought process onto a planetthat is similar to Earth, but otherwise without life. It doesn't matter whether the embodiment is organic, robotic, or in some other form. What matters is that it is a com...
by ahammel
Thu Feb 09, 2017 2:43 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1528914

Re: Coding: Fleeting Thoughts

I agree that C or C++ would be a bit better if I could find a highly optimised library, but Python is the go-to language in my group, and the idea is that I write the code in a way that others could use it with very little introduction, so switching languages isn't an option. If you do find a C(++)...
by ahammel
Tue Feb 07, 2017 2:57 pm UTC
Forum: Food
Topic: Why is it hard to find "humble" glass tea cups?
Replies: 11
Views: 2093

Re: Why is it hard to find "humble" glass tea cups?

plytho wrote:
ahammel wrote:
Liri wrote:Edit: Ha totally ignore that, didn't see the 1000 order minimum!

Listen: I drink a lot of tea.


You know you can use a cup more than once right?

I don't like doing dishes.
by ahammel
Tue Feb 07, 2017 2:49 pm UTC
Forum: Food
Topic: Why is it hard to find "humble" glass tea cups?
Replies: 11
Views: 2093

Re: Why is it hard to find "humble" glass tea cups?

Liri wrote:Edit: Ha totally ignore that, didn't see the 1000 order minimum!

Listen: I drink a lot of tea.
by ahammel
Tue Jan 31, 2017 2:40 am UTC
Forum: Food
Topic: Beer is proof that God loves us and wants us to be happy.
Replies: 1738
Views: 278795

Re: Beer is proof that God loves us and wants us to be happy.

In Sydney, the cheapest 6 pack, VB, was $14 AUD, which at the time was about $13 USD. Sam Adams was something like $18. Sierra Nevada was at least $21. This is about right for Australia. A craft beer six pack from an Australian brewery will be about $15USD. A sixer from a large American brewery lik...
by ahammel
Mon Jan 30, 2017 3:07 am UTC
Forum: Serious Business
Topic: An essay against competition
Replies: 50
Views: 8832

Re: An essay against competition

Having more kids is only a small part of the behavior motivated by evolutionary competition. Think of all of the traits and behaviors studied by biologists. All of those came out of competition. Each of these traits and behaviors exists because it provided some kind of an evolutionary advantage in ...

Go to advanced search