Search found 5355 matches

by Xanthir
Wed Sep 07, 2016 2:17 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9762
Views: 1571414

Re: Coding: Fleeting Thoughts

You want the Combinators section of the Selectors spec.

The answer is just a space. ".foo .bar" selects all .bar elements that are descendants of .foo elements. If you want only direct children, ".foo > .bar"
by Xanthir
Wed Sep 07, 2016 7:30 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9762
Views: 1571414

Re: Coding: Fleeting Thoughts

Yes. There are a few minor things it can do that Selectors never picked up (and at this point, quite a few things Selectors can do that XPath never picked up) (I'm really talking about XPath 1, which is the only version that got anywhere near the web; XPath 2 has lots more crazy stuff), but as far a...
by Xanthir
Wed Sep 07, 2016 7:02 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9762
Views: 1571414

Re: Coding: Fleeting Thoughts

Xeio wrote:

Code: Select all

driver.FindElementsByXPath(...);

Code: Select all

driver.FindElement(By.XPath(...));


?????

Also: using XPath?????????
by Xanthir
Wed Sep 07, 2016 5:43 am UTC
Forum: Gaming
Topic: Pokemon Go
Replies: 117
Views: 18602

Re: Pokemon Go

The next update will include "Pokemon Buddies" : you assign one of your pokemon as your buddy, it'll show up in your stats screen with you and, most importantly, will grant you bonuses like candies when you walk with them. In other words, your starter will finally have a chance to grow wi...
by Xanthir
Fri Sep 02, 2016 5:06 pm UTC
Forum: Gaming
Topic: Board games anyone?
Replies: 855
Views: 178989

Re: Board games anyone?

Not really related to Pictionary. Reasonably related to Dixit.
by Xanthir
Fri Sep 02, 2016 2:33 pm UTC
Forum: Gaming
Topic: Siralim 2
Replies: 15
Views: 3643

Re: Siralim 2

Woah, this sounds like it's exactly up my alley. I'll check it out this weekend.
by Xanthir
Fri Sep 02, 2016 2:31 pm UTC
Forum: Gaming
Topic: Board games anyone?
Replies: 855
Views: 178989

Re: Board games anyone?

rmsgrey wrote:It's not an ideal party game ... once you get above about ten people, it can start to get a bit unwieldy

You and I clearly throw very different parties.
by Xanthir
Thu Sep 01, 2016 4:23 pm UTC
Forum: Mathematics
Topic: How to Calculate Pi without a Calculator?
Replies: 66
Views: 8776

Re: How to Calculate Pi without a Calculator?

And if you really feel like it you can just bake a starting point into the algorithm so there's zero "guessing" at all, it just means you'll spend a few iterations wandering toward the vicinity of the answer rather than starting there in the first place. The point of the "guess" ...
by Xanthir
Thu Sep 01, 2016 4:05 pm UTC
Forum: Gaming
Topic: Board games anyone?
Replies: 855
Views: 178989

Re: Board games anyone?

Yeah, it's a great party game for the boardgame-newbie crowd, as it's easy to learn and play but still has good depth and fun for experienced people. It also won the Spiel this year. ^_^
by Xanthir
Wed Aug 31, 2016 12:01 am UTC
Forum: Science
Topic: What is the largest possible artificial lake we could make today?
Replies: 16
Views: 3021

Re: What is the largest possible artificial lake we could make today?

As has happened in our relatively recent geologic past, and will happen again. It'll become an anti-lake, tho - gradually drying out and salinating as the water level drops due to evaporation.
by Xanthir
Tue Aug 30, 2016 8:04 pm UTC
Forum: Language/Linguistics
Topic: Annoying words, and Words You Hate
Replies: 1931
Views: 366915

Re: Annoying words, and Words You Hate

My wife's family uses the "needs" + past participle pattern; it was completely ungrammatical to me at first (I'm a gerund kind of guy), but I've started occasionally using it by accident. I've also noticed a smattering of other people using it; there doesn't seem to be a geographical conne...
by Xanthir
Tue Aug 30, 2016 5:46 am UTC
Forum: Language/Linguistics
Topic: Words you think English should have or bring back.
Replies: 643
Views: 116211

Re: Words you think English should have or bring back.

(I suppose "dreamt", which is less common but doesn't sound ungrammatical, is an exception in the other direction, where the vowel does change but the -ed form is still preferred.) Nah, it's perfectly regular per your previous rule, just exploiting both branches at once, unless you pronou...
by Xanthir
Tue Aug 30, 2016 5:38 am UTC
Forum: Language/Linguistics
Topic: Miscellaneous language questions
Replies: 510
Views: 48810

Re: Miscellaneous language questions

I only say "vacuum", but I wouldn't look askance at someone saying "vacuum clean".
by Xanthir
Mon Aug 29, 2016 3:19 pm UTC
Forum: Gaming
Topic: Kickstarter Thread. Everything Goes Here.
Replies: 422
Views: 141236

Re: Kickstarter Thread. Everything Goes Here.

I've seen similar sets before - they're fun-looking, but practically useless to actually roll with. Never use "cylindrical" dice, they take way too long to stop rolling and are hard to read when they do stop. Only back this if the novelty/display value is high enough for you; you won't wan...
by Xanthir
Mon Aug 29, 2016 3:10 pm UTC
Forum: Computer Science
Topic: How to decode a code when I have pairs of (coded, decoded)?
Replies: 7
Views: 3804

Re: How to decode a code when I have pairs of (coded, decoded)?

Tub is being obtuse. To answer the question in the spirit of what it's asking: it depends. If the ciphertext is generated by any decent encryption/hashing algo (off-the-shelf and readily available in all major programming languages for the past decade), statistical tests won't find any connection. T...
by Xanthir
Mon Aug 22, 2016 5:59 am UTC
Forum: Science
Topic: Alternate clock
Replies: 31
Views: 4146

Re: Alternate clock

[The 13 month year is] also completely devoid of nice numbers, which biases me against it personally. ^_^ 7, 28, and 13 are *terrible* numbers for mental math. Gimme 5/30/12 plz. They are only "terrible" because you don't know the times tables for 7 and 13. It's just memorization, and if ...
by Xanthir
Mon Aug 22, 2016 1:47 am UTC
Forum: Language/Linguistics
Topic: Regional Dialect and Idiolect Oddities (pronunciation)
Replies: 851
Views: 187117

Re: Regional Dialect and Idiolect Oddities (pronunciation)

Yeah, same for me. (Houston-raised.)
by Xanthir
Sun Aug 21, 2016 11:05 pm UTC
Forum: Language/Linguistics
Topic: Words you think English should have or bring back.
Replies: 643
Views: 116211

Re: Words you think English should have or bring back.

On the other hand, "these mushrooms cook well" is standard. I think there's just a set of verb usages that are okay in this context.
by Xanthir
Sun Aug 21, 2016 10:38 pm UTC
Forum: Science
Topic: Alternate clock
Replies: 31
Views: 4146

Re: Alternate clock

That one's got a nice correspondence, and having only 1 (or 2 on leap years) extra days to deal with is pretty sweet, but it has 13 months. There's enough superstition out there that I think the 13-month calendar is even *less* likely to be accepted than the "modified French Republican calenda...
by Xanthir
Sun Aug 21, 2016 9:07 pm UTC
Forum: Science
Topic: Alternate clock
Replies: 31
Views: 4146

Re: Alternate clock

Why do we need months even? Can't we just number the days? Compare these: How many days are between March21 and May3? How many days are between 80 and 123 ? All such calculations become much easier, and I don't see much lost? People can still tell what general season it is from the number. Also you...
by Xanthir
Sun Aug 21, 2016 2:18 pm UTC
Forum: Mathematics
Topic: Misunderstanding basic math concepts, help please?
Replies: 338
Views: 52601

Re: Misunderstanding basic math concepts, help please?

...what? No, "subjective experience" has nothing to do with waveform collapse. Like, at all, that wheelhouse is miles away. Subjective experience is just something that pops out of our brain patterns. There's zero need to invoke quantum mechanics at all, and most scientists afaik believe t...
by Xanthir
Sun Aug 21, 2016 2:14 pm UTC
Forum: Coding
Topic: Bettering vs Bloat?
Replies: 19
Views: 4610

Re: Bettering vs Bloat?

Uh, no, those are both terrible and frankly incorrect ways of putting it. Avoiding UB in C requires nearly superhuman levels of knowledge and detail; blaming people for being merely human is terrible. And I'm talking about *all* compilers, good compilers that everyone uses. They all exploit UB, for ...
by Xanthir
Sun Aug 21, 2016 2:04 pm UTC
Forum: Science
Topic: Alternate clock
Replies: 31
Views: 4146

Re: Alternate clock

That one's got a nice correspondence, and having only 1 (or 2 on leap years) extra days to deal with is pretty sweet, but it has 13 months. There's enough superstition out there that I think the 13-month calendar is even *less* likely to be accepted than the "modified French Republican calendar...
by Xanthir
Sun Aug 21, 2016 1:56 pm UTC
Forum: Mathematics
Topic: Misunderstanding basic math concepts, help please?
Replies: 338
Views: 52601

Re: Misunderstanding basic math concepts, help please?

Like, water isn't a gas even though hydrogen and oxygen are gases. Are you seriously arguing that basic physics is unable to explain that fact? Emergent properties are a 2000 year old philosophical problem and yes, I'm arguing that they exist and reductionism fails. In the example I gave taste is t...
by Xanthir
Sun Aug 21, 2016 4:53 am UTC
Forum: Coding
Topic: Bettering vs Bloat?
Replies: 19
Views: 4610

Re: Bettering vs Bloat?

I've got lots of anecdotes, which are *like* data if you pile them up and squint. In particular, everyone I know in the security community is convinced of this, because most security vulns are due to people writing bad C (where "bad" ranges from "omits obvious buffer checks" to &...
by Xanthir
Sun Aug 21, 2016 4:17 am UTC
Forum: Science
Topic: Alternate clock
Replies: 31
Views: 4146

Re: Alternate clock

I mean also, if the week is only 5 days long then how do you break up for weekends? Switch to a 1 day out of 5 off? 2 days out of 10 is harsh. That is a legit issue - I certainly don't want to go from a 5on:2off ratio to a 4on:1off. The best reformation I've seen so far is for it to be standard to ...
by Xanthir
Sun Aug 21, 2016 4:09 am UTC
Forum: Coding
Topic: Bettering vs Bloat?
Replies: 19
Views: 4610

Re: Bettering vs Bloat?

That's kinda true, in the same way that it's true that The Gun That Also Shoots Backwards Whenever You Fire It doesn't require you to shoot yourself, since it's possible to hold it in such a way that you'll rarely do so. But I'm still comfortable blaming TGTASBWYFI for the increase in self-inflicted...
by Xanthir
Sun Aug 21, 2016 4:00 am UTC
Forum: Mathematics
Topic: Misunderstanding basic math concepts, help please?
Replies: 338
Views: 52601

Re: Misunderstanding basic math concepts, help please?

Uh, the fact that taste is based on chemical reactions and molecular shapes, not directly experiencing the individual atoms? Like, we can explain mathematically why kids liked to eat lead paint - lead oxide has a particular triangular shape that mimics the shape of parts of the sucrose molecule such...
by Xanthir
Sat Aug 20, 2016 12:13 pm UTC
Forum: Coding
Topic: Bettering vs Bloat?
Replies: 19
Views: 4610

Re: Bettering vs Bloat?

Note that I said "to a first approximation", and your counter is one of the most highly-eyeballed pieces of code in the world. ^_^
by Xanthir
Sat Aug 20, 2016 12:11 pm UTC
Forum: Science
Topic: Alternate clock
Replies: 31
Views: 4146

Re: Alternate clock

Sure, but is it really that much of an issue? In our current calendar, everyone's birthday falls on a weekday 5 out of 7 years. If weekday birthdays are ruined, then 70% of your birthdays are already ruined.
by Xanthir
Fri Aug 19, 2016 11:37 pm UTC
Forum: Science
Topic: Alternate clock
Replies: 31
Views: 4146

Re: Alternate clock

as an acquaintance once put it, "the year [continued] to have 365 days (no matter how often the revolutionaries threatened to have it guillotined if it didn’t behave more logically.)" Which is pretty dumb, since the French Republican Calendar definitely had 365 days in it. Like my suggest...
by Xanthir
Fri Aug 19, 2016 10:40 pm UTC
Forum: Coding
Topic: Bettering vs Bloat?
Replies: 19
Views: 4610

Re: Bettering vs Bloat?

wisely written C is a short step from such an optimum yet does not drag invisible object-handling into the equation. I don't object to the handling, but I like to know what goes on[..] Then instead of avoiding OO, why don't you spend some time understanding it? Figure out how the compiler transform...
by Xanthir
Fri Aug 19, 2016 10:30 pm UTC
Forum: Science
Topic: Alternate clock
Replies: 31
Views: 4146

Re: Alternate clock

I'm not interested in trying to figure out what those cesium radiation cycles map to in reasonable timescales. I'm going to be angry if that's approximately 1e-5 of a day. However, your original question is easy to answer - it'd be just like a normal clock, except with 10 big numbers instead of 12, ...
by Xanthir
Fri Aug 19, 2016 2:46 pm UTC
Forum: Mathematics
Topic: How to Calculate Pi without a Calculator?
Replies: 66
Views: 8776

Re: How to Calculate Pi without a Calculator?

They meant to say "arctan()". Which is a fun and simple Taylor series, being "arctan(x) = x - x^3/3 + x^5/5 - x^7/7 + x^9/9 - ...".
by Xanthir
Fri Aug 19, 2016 1:43 pm UTC
Forum: Gaming
Topic: Gaming fleeting thoughts
Replies: 587
Views: 68464

Re: Gaming fleeting thoughts

On the other hand, I didn't read much of anything about NMS beyond the initial hype, and what was delivered seems to match what was promised. So yeah, bad press, and a little shame on the dev for not being explicit enough that they were talking about theoretical ideas.
by Xanthir
Thu Aug 18, 2016 10:42 pm UTC
Forum: Gaming
Topic: Pokemon Go
Replies: 117
Views: 18602

Re: Pokemon Go

Zohar wrote:(or that you would want to eat lox every single day).

You doubt our dedication.
by Xanthir
Thu Aug 18, 2016 10:40 pm UTC
Forum: Mathematics
Topic: 1 is Not Prime
Replies: 17
Views: 3945

Re: 1 is Not Prime

1 not being a prime is purely a matter of definition. And what you wrote in the OP, jewish_scientist, is just as valid as saying "A prime number is a natural number whose only divisor is 1 and itself, and is not 1". I mean sure, it's fine as a definition, but it still treats 1 as a specia...
by Xanthir
Wed Aug 17, 2016 2:08 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9762
Views: 1571414

Re: Coding: Fleeting Thoughts

One thing with UTF-32 is that even with it, it still isn't possible to take arbitrary substrings or count characters by simple address calculations (assuming the data is in an contiguous array), because one on-screen "character" may be composed of several code points. And when you have al...
by Xanthir
Tue Aug 16, 2016 8:21 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9762
Views: 1571414

Re: Coding: Fleeting Thoughts

Yeah, Unicode itself has some problems. Could definitely be improved in a number of ways if we had a time machine, but it's deep into worse-is-better dominance so can't be displaced now - no possible improvement is worth the cost of replacement. And yeah, UTF-32 isn't terrible these days, but you st...
by Xanthir
Tue Aug 16, 2016 5:17 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9762
Views: 1571414

Re: Coding: Fleeting Thoughts

Regarding encoding: can we just decide for once and for all to make UTF-8 the universal standard encoding? It's already the de facto standard in many applications, but there are also lots of dissenters. Meh, the dissenters are dying. New Web APIs tend to mandate UTF-8, or at least default to it if ...

Go to advanced search