## Search found 8012 matches

Wed Apr 13, 2016 12:19 pm UTC
Forum: Mathematics
Topic: Pi from the Menger Sponge
Replies: 9
Views: 4760

### Pi from the Menger Sponge

Time for some completely-useless recreational number-crunching... So, I was watching this YouTube video about pi and the Sierpinski Carpet/Menger Sponge , which talks about this interesting fact: Say you build a Sierpinski Carpet, starting with a 2x2 square, but instead of always cutting the square ...
Sun Apr 10, 2016 11:25 pm UTC
Forum: Religious Wars
Topic: Is 1 prime?
Replies: 31
Views: 22364

### Re: Is 1 prime?

↶ You need to allow negative primes in order to appropriately generalize the concept of prime to rings which don't have a notion of "positive" and "negative". But you still need some restriction there, or you have (-2)*(-3) = 2*3, and 6 no longer has a unique prime factorisation...
Sun Apr 10, 2016 9:11 am UTC
Forum: Religious Wars
Topic: Is 1 prime?
Replies: 31
Views: 22364

### Re: Is 1 prime?

↶ They define a prime number as "a number that can only be exactly divided by itself and by 1". By this very official declaration by THE official source, I conclude that 1 is considered prime since it can be divided exactly by itself and 1. But then, the primary examples of using language...
Thu Apr 07, 2016 11:43 pm UTC
Forum: School
Topic: Forum Migration
Replies: 412
Views: 1114598

### Re: Forum Migration

The Snide Sniper wrote:
So if it's phpBB3 now, does that mean we can request new BBCodes?

It's been phpBB3 for many years. This upgrade was from 3.0 to 3.1.

Also: you can request things. Just don't necessarily expect that request to be fulfilled.
Wed Apr 06, 2016 7:30 am UTC
Forum: The Help Desk
Topic: Diagnosing a Dead Dell Inspiron Touchpad
Replies: 9
Views: 6848

### Re: Diagnosing a Dead Dell Inspiron Touchpad

Honestly, I think Occam's Razor is currently pointing towards something being broken in the hardware. Could be a broken connection, or it could just be dead. Seems more likely than software troubles at this point, given what you've tried so far...
Wed Apr 06, 2016 12:18 am UTC
Forum: School
Topic: Forum Migration
Replies: 412
Views: 1114598

### Re: Forum Migration

mosc wrote:
so no chance for prosilver_left?
davean wrote:
You can all suggest themes from https://www.phpbb.com/customise/db/styles-2 or create a custom one for this board. Or use the 'Allan Style - SUBSILVER' option.
Mon Apr 04, 2016 3:51 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2000243

### Re: Coding: Fleeting Thoughts

Had a fun one today... Daylight Savings just ended here, so yesterday had 25 hours, which confused a piece of code that added timedelta(days=1) to a datetime and assumed it would be the next day. It wasn't. This then flowed through to another piece of code which got confused and tried to schedule so...
Fri Apr 01, 2016 2:20 pm UTC
Forum: School
Topic: Forum Migration
Replies: 412
Views: 1114598

### Re: Forum Migration

↶ In Chrome I see the favicon in incognito mode as well as when I do a hard refresh, so it's not a cache issue. I think Chrome is just way more aggressive about caching favicons than other things. Like, if I go into Incognito, and load up the forum page with the Network tab open, I can see it speci...
Thu Mar 31, 2016 3:01 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2000243

### Re: Coding: Fleeting Thoughts

block-local vars are tricky to do in a language that doesn't use variable declarations... you can't easily define exactly which block it should be local to. Like... everyone who's used Java will be familiar with the enjoyment of writing this: int a = somefunc(); dostuffwith(a); except then they need...
Tue Mar 29, 2016 12:07 am UTC
Forum: Mathematics
Topic: Math without even numbers?
Replies: 40
Views: 10138

### Re: Math without even numbers?

5x5 is 25. 2 gets bumped up to 3. So 5x5=35 Which means that multiplication doesn't satisfy our normal expectation, that multiplication is like repeated addition, and that it should distribute over addition. 5 = 1+1+1, so by distribution we'd expect 5x to be x+x+x, if it were to satisfy distributio...
Thu Mar 24, 2016 4:24 am UTC
Forum: School
Topic: Forum Migration
Replies: 412
Views: 1114598

### Re: Forum Migration

Speaking of good changes: go into your User Control Panel and update your timezone information, pick your actual timezone from the list. Then you don't have to update it any more when DST changes. And it'll show your timezone correctly on posts, instead of claiming to be UTC. And it'll handle daylig...
Thu Mar 24, 2016 3:10 am UTC
Forum: Mathematics
Topic: Math without even numbers?
Replies: 40
Views: 10138

### Re: Math without even numbers?

Well, my first impression (based on the few examples in the OP) that we were defining a new "addition" over the odd numbers, which is their normal sum plus one. "Subtraction" would then be their normal difference minus one. The resulting group would be isomorphic to normal additi...
Thu Mar 24, 2016 12:35 am UTC
Forum: School
Topic: Forum Migration
Replies: 412
Views: 1114598

### Re: Forum Migration

Why not just use a client-side rendering library, like what if does? That's exactly what it did do (though it was a different library to the one what-if is using). Problem was, it was spread across like 20 separate JS files, and each one took a second or two to load (and were loaded in series). So ...
Thu Mar 24, 2016 12:16 am UTC
Forum: School
Topic: Forum Migration
Replies: 412
Views: 1114598

### Re: Forum Migration

[bibliography]Bibliography[/bibliography] seems not to work (but I don't know the format). Bibliography and Cite have been complicated since their creation... I can never remember how to use them properly.  I found the post that explains them , and they seem to be working fine. Imath and Math...
Wed Mar 23, 2016 11:20 pm UTC
Forum: School
Topic: Forum Migration
Replies: 412
Views: 1114598

### Re: Forum Migration

As another data point: the first time I went to "view your posts" (which was, incidentally, the first time I loaded the new forum - my bookmark goes to the "view your posts" page), it showed the full list, or at least what looks like the full list (though it still says "Sear...
Fri Mar 11, 2016 8:18 am UTC
Forum: General
Topic: Lucky Ten Thousand (TIL)
Replies: 13421
Views: 1744000

### Re: Today I Learned

The primary association I have with the descriptor "flatscreen" these days is people pearl-clutching about people on welfare and/or foreigners and/or refugees owning them, where they always specify "flatscreen TV" as if that's somehow more of an affront. Those poors are living ab...
Thu Mar 10, 2016 11:16 am UTC
Forum: General
Topic: It has Endginned. (Mod Madness 2016)
Replies: 220
Views: 70735

### Re: It Begends. (Mod Madness 2016)

bentheimmigrant wrote:Egosearch-chan

I read this post going in a rather different direction at first.
Wed Mar 09, 2016 11:28 pm UTC
Forum: General
Topic: It has Endginned. (Mod Madness 2016)
Replies: 220
Views: 70735

### Re: It Begends. (Mod Madness 2016)

SecondTalon wrote:Build a time-machine and Internetmeme from giving us the idea.

Good plan, but it would be better to do so accidentally.
Tue Mar 08, 2016 9:17 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2000243

### Re: Coding: Fleeting Thoughts

Had a weird glitch today, did a Google search to see if anyone else was having it...

Found 3 results... all of them were the same guy, back in 2012, asking in a bunch of different places, and in all of them getting told to ask elsewhere instead.
Mon Mar 07, 2016 1:15 am UTC
Forum: General
Replies: 12
Views: 4113

### Re: Do Not Read This Thread.

Sun Mar 06, 2016 1:21 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2000243

### Re: Coding: Fleeting Thoughts

I feel like you're going to need to fill in all the missing points eventually, anyway... like, say you had 100 points, irregularly spaced between 0 and 1000... then no matter what you do, after you run the filter, I'd expect you to have a dataset of 1000 points. So if expanding your input dataset to...
Thu Mar 03, 2016 6:18 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2000243

### Re: Coding: Fleeting Thoughts

What if the reason a list was empty mattered? For example, "there were no results that matched" is a legitimate empty list, Well, in the specific case I'm talking about, these were legitimate empty lists, it was just returning null instead. That is, the code was full of stuff like: void a...
Thu Mar 03, 2016 5:03 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2000243

### Re: Coding: Fleeting Thoughts

Sounds like an eminently sensible convention to have... I've worked with a project that returned nulls instead of empty lists, it just meant more work for the caller and more work for the callee, and no-one really benefited.
Thu Mar 03, 2016 4:30 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2000243

### Re: Coding: Fleeting Thoughts

I don't know much about C# but I know it's a statically typed language (or at least, it normally is, iirc it has a dynamic option but you have to be explicit about it). So "result" is either going to be null, or be an instance of whatever the database result class is. So if result is not n...
Tue Mar 01, 2016 9:57 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2000243

### Re: Coding: Fleeting Thoughts

So, here's a fun thing I recently discovered, thanks to this thread ... Say you have a JavaScript file which is served without any encoding information in the content-type header. Say it has some UTF-8 encoded text in string literals, rather than using \u escapes. Then say you include that JS in an ...
Mon Feb 29, 2016 12:10 pm UTC
Forum: Coding
Topic: xkcd Phone: Application Programming Language
Replies: 21
Views: 8893

### Re: xkcd Phone: Application Programming Language

Code: Select all

`ungetc('\a', stdin);`
?
Mon Feb 29, 2016 3:56 am UTC
Forum: Site/Forum issues
Topic: Incorrect encoding on JSONP API
Replies: 5
Views: 9760

### Re: Incorrect encoding on JSONP API

Thu Feb 25, 2016 5:45 am UTC
Forum: The Help Desk
Topic: Install ncurses 5.9 and 6.0 on the same FreeBSD box?
Replies: 2
Views: 4851

### Re: Install ncurses 5.9 and 6.0 on the same FreeBSD box?

From my searches, it looks like ncurses 6.0 is source-compatible with 5.9, but not binary-compatible. So if you're building GT.M from source, it should still work, but if you've gotten an old binary build from somewhere, you'll have troubles. I had a very quick scroll through the code you linked to,...
Thu Feb 25, 2016 5:21 am UTC
Forum: Science
Topic: is Chicago ever the "front" of the planet?
Replies: 30
Views: 7223

### Re: is Chicago ever the "front" of the planet?

And the front point of the planet is 90 degrees west along that circle from the point directly underneath the Sun at a given time. An alternative phrasing: from the centre of the Earth, the cross product of the vector towards the sun, and the vector towards the north ecliptic pole (or possibly sout...
Thu Feb 25, 2016 4:21 am UTC
Forum: Religious Wars
Topic: Plural of "Octopus"
Replies: 89
Views: 63260

### Re: Plural of "Octopus"

Also: words where we only imported the latin plural and now pretend it's singular (I'm looking at you, "criteria", "agenda", "data"...)
Wed Feb 24, 2016 11:35 am UTC
Forum: Site/Forum issues
Topic: Incorrect encoding on JSONP API
Replies: 5
Views: 9760

### Re: Incorrect encoding on JSONP API

To be specific, in the info.0.json for the strip, the word "forté" is encoded as "fort\u00c3\u00a9", which is definitely messed up.  And the transcript (which is, as separately noticed , in the json for 1649 ) is even worse: "transcript": "Typed letter: Attac...
Wed Feb 24, 2016 2:24 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1638: "Backslashes"
Replies: 62
Views: 12795

### Re: 1638: "Backslashes"

If you don't want to take our word for it, you can always ask Wikipedia. Or Unicode.
Mon Feb 22, 2016 12:57 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1638: "Backslashes"
Replies: 62
Views: 12795

### Re: 1638: "Backslashes"

Ironically, there's not a single backslash in that comic. It's all forward slashes. I guess Randall is not immune from the bizarre confusion over the two kinds of slashes that sometimes crops up in the computer world. Hmm? No, those are all backslashes. The normal ("forward") slash is / ....
Tue Feb 09, 2016 12:58 am UTC
Forum: The Help Desk
Topic: Strange Internet Connectivity Issue
Replies: 15
Views: 6849

### Re: Strange Internet Connectivity Issue

Having aboutNetError.xhtml throw a parsing error is a problem I used to have in the past, though not for some time. Is that a current version of Firefox? The extra "<style>" tags in the <parsererror>, though, is not something I've seen before, and smells of adware to me. Some Fx extension/...
Sat Feb 06, 2016 2:31 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2000243

### Re: Coding: Fleeting Thoughts

F->x isn't "N/A" and it's not being "defaulted" to anything... The motivation makes more sense when you consider "for all" conditions... for instance, a statement of "all A's are B's", or "if anything is an A, then it is a B" can be formalised as &qu...
Thu Feb 04, 2016 1:36 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1638: "Backslashes"
Replies: 62
Views: 12795

### Re: 1638: "Backslashes"

Regarding the -E "In GNU grep , there is no difference in available functionality between basic and extended syntaxes." No difference in functionality, but a difference in backslash usage. With plain grep, these are metacharacters: "*", "\+", "\(\)", "[]...
Wed Feb 03, 2016 11:16 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1638: "Backslashes"
Replies: 62
Views: 12795

### Re: 1638: "Backslashes"

I feel like re-sharing my excessive-escaping story from the last time this topic came up: STR="`sed <<<"\$STR" "s/\\\\(.\\\\)/\\\\1('\\\\\\\\s*\\\\\\\\+\\\\\\\\s*')?/g;s/('\\\\\\\\s\\\\*\\\\\\\\+\\\\\\\\s\\\\*')?\$//"`" Takes a word, say "foo", and builds a rege...
Wed Feb 03, 2016 4:46 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2000243

### Re: Coding: Fleeting Thoughts

...which to me is an abuse of the word "implies". To be more specific, it's material implication , and your description of what it means (and the truth table) is correct. The motivation makes more sense when you consider "for all" conditions... for instance, a statement of "...
Thu Jan 28, 2016 3:04 am UTC
Forum: What If?
Topic: What-If 0143: "Europa Water Siphon"
Replies: 53
Views: 35071

### Re: What-If 0143: "Europa Water Siphon"

Honestly I don't get it. If you filled the tube with water at the start, earth having a 6,379km gravity well should act as a pump to Europa's 2,500km. The gravity pull is the pump. Put the ends of tubes deep underwater, atmosphere irrelevant. What am I missing ? It doesn't matter how deep underwate...
Tue Jan 26, 2016 12:28 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9990
Views: 2000243

### Re: Coding: Fleeting Thoughts

What is REALLY annoying is crazy bit numbering. In the RFCs describing IP and related protocols bit 0 is the most significant bit. I.e. bit 0 equals 0x8000. Except for 32-bit fields where it is 0x8000'0000. Or 48-bit fields where it is 0x1'0000'0000'0000. Yeah, that totally makes sense. Wait, reall...

Go to advanced search