Search found 8004 matches

by phlip
Thu Dec 24, 2015 4:24 am UTC
Forum: Coding
Topic: c++ namespace question
Replies: 12
Views: 4575

Re: c++ namespace question

To answer my own question, the spec does say "Two declarations for a function with C language linkage with the same function name (ignoring the namespace names that qualify it) that appear in different namespace scopes refer to the same function." So you could have <math.h> have extern &qu...
by phlip
Thu Dec 24, 2015 2:25 am UTC
Forum: Coding
Topic: c++ namespace question
Replies: 12
Views: 4575

Re: c++ namespace question

Is it guaranteed by spec that two extern "C" functions with the same name in different namespaces will link together? I'm too lazy to go check.
by phlip
Thu Dec 24, 2015 12:03 am UTC
Forum: Coding
Topic: c++ namespace question
Replies: 12
Views: 4575

Re: c++ namespace question

That's implementation dependent. The standard guarantees that importing <cmath> declares std::sqrt and explicitly leaves undefined whether it declares ::sqrt... and it guarantees that importing <math.h> declares ::sqrt and explicitly leaves undefined whether it declares std::sqrt. I've seen implemen...
by phlip
Wed Dec 23, 2015 9:50 am UTC
Forum: Coding
Topic: c++ namespace question
Replies: 12
Views: 4575

Re: c++ namespace question

Ah, thanks. So I guess I should be using #include <cmath> and std::sqrt instead. Yep. In general, for functions in the C standard library that you want to call from C++, the preferred method is to include <c whatever > and call std::somefunction(). But you can also import < whatever .h> and just ca...
by phlip
Mon Dec 21, 2015 3:40 am UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 513608

Re: The "IT DOESN'T WORK!" thread

Please bash my head in if I ever so much as think of using MSSQL. varbinary ought to be a simple binary blob, not the monstrosity microsoft turns it into :shock: You think that's bad, wait until you find out it also has an "xml" data type, and you find code using XPath predicates in WHERE...
by phlip
Sun Dec 20, 2015 11:09 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 513608

Re: The "IT DOESN'T WORK!" thread

A single varbinary(max) or varbinary column can store many types of documents. SQL Server supports any document type for which a filter is installed and available in the operative system. The document type of each document is identified by the file extension of the document. For example, for a .doc...
by phlip
Fri Dec 18, 2015 6:03 am UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 513608

Re: The "IT DOESN'T WORK!" thread

... MSSQL pls. Pls. create table tst(id integer not null, data varbinary(max), content_type nvarchar(10), constraint pk_tst primary key (id)); create fulltext catalog tst_catalog; create fulltext index on tst(data type column content_type) key index pk_tst on tst_catalog; insert into tst values (1, ...
by phlip
Thu Dec 17, 2015 12:59 am UTC
Forum: General
Topic: The "I can't find a particular XKCD comic" thread
Replies: 156
Views: 102354

Re: The "I can't find a particular XKCD comic" thread

Devotion to Duty. (First Google result for xkcd sysadmin.)
by phlip
Wed Dec 16, 2015 11:46 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9862
Views: 1765529

Re: Coding: Fleeting Thoughts

My first guess when I heard the term "snake scrolling" was that you'd read the first column top-to-bottom, then the second column bottom-to-top, so you don't have to scroll all the way back up to the top each time. But that sounded terrible, so I assumed (apparently correctly) that I was m...
by phlip
Tue Dec 15, 2015 3:22 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9862
Views: 1765529

Re: Coding: Fleeting Thoughts

Here's a question: would you accept decimal floating point for currency? I'd still say "probably not", but it's much less objectionable than binary floating point... To what end, though? What's the advantage? Using float instead of fixed is a tradeoff, of accuracy for range. Storing numbe...
by phlip
Wed Dec 09, 2015 6:18 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9862
Views: 1765529

Re: Coding: Fleeting Thoughts

(Speaking of prophylaxis... in case anyone is considering getting feisty about the topic in the near future, I'd just like to point out that there is a thread of relevance over in Religious Wars. Not that anyone has said anything inappropriate here as of yet, just that I've seen how this discussion ...
by phlip
Wed Dec 09, 2015 4:30 am UTC
Forum: Mathematics
Topic: The minimum wins access to playoffs in NBA
Replies: 4
Views: 1943

Re: The minimum wins access to playoffs in NBA

Is it possible for an individual game to be a tie? How does that affect the rankings?
by phlip
Wed Dec 09, 2015 1:19 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9862
Views: 1765529

Re: Coding: Fleeting Thoughts

P.P.S.: Yeah, I think I wouldn't really be happy learning one of these ultra-high-level languages unless I at least had some notion of how I could implement all of its features using smaller building blocks like C. I don't like black boxes. My standard recommendation is still: learn a high-level ab...
by phlip
Wed Dec 02, 2015 12:50 am UTC
Forum: Mathematics
Topic: How does changing a bet alter the odds?
Replies: 6
Views: 2340

Re: How does changing a bet alter the odds?

Well, it's still poker, so at level 1 it's more like: 1) estimate my odds of a winning hand (based on cards known, and current estimates of cards unknown) 2) calculate the ratio of bet:pot I'd have to make to stay in the game If (1) > (2) I'd be OK with calling (not that calling is necessarily the c...
by phlip
Mon Nov 30, 2015 12:13 pm UTC
Forum: Movies and TV Shows
Topic: Doctor Whom
Replies: 4917
Views: 658683

Re: Doctor Whom

there had to have been a first time when he blundered through and found room 12, buried the message, managed to set things up within the Confession Dial thingy so that they reset in the way he wanted The impression I got was that the rooms-resetting thing was just a feature of the dial, not somethi...
by phlip
Mon Nov 30, 2015 12:08 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9862
Views: 1765529

Re: Coding: Fleeting Thoughts

PM 2Ring wrote:(except when you do explicitly want word splitting etc)

Hint: You don't explicitly want word splitting. If you think you do, you probably still don't.

I don't think I've intentionally used word-splitting of a variable interpolation in bash since I learned how to use bash arrays...
by phlip
Thu Nov 26, 2015 10:07 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1608: "Hoverboard"
Replies: 140
Views: 66301

Re: 1608: "Hoverboard"

I just visited as much as I could with Safari (MB Air), but could not get into lots of places due to people standing in my way. I went in with FireFox, and lo and behold, I could go right through people (and lots of other objects). As a random guess... what are your display settings? Is it possible...
by phlip
Thu Nov 26, 2015 10:42 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1608: "Hoverboard"
Replies: 140
Views: 66301

Re: 1608: "Hoverboard"

phlip wrote:So, I made a thing...

Still bumbling through the api to show markers where the coins are. Also considering updating my Click and Drag page to use this...

Alright, coins are now viewable. Also, fixed a swathe of images I didn't notice didn't upload properly.
by phlip
Wed Nov 25, 2015 7:02 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1608: "Hoverboard"
Replies: 140
Views: 66301

Re: 1608: "Hoverboard"

So, I made a thing...

Still bumbling through the api to show markers where the coins are. Also considering updating my Click and Drag page to use this...
by phlip
Wed Nov 11, 2015 3:38 am UTC
Forum: News & Articles
Topic: In other news... (humorous news items)
Replies: 14779
Views: 2289275

Re: In other news... (humorous news items, etc)

No, just spent so much time getting the terms wrong myself, and being annoyed at how confusing they are... it's grown into a pet peeve of mine.
by phlip
Wed Nov 11, 2015 3:34 am UTC
Forum: News & Articles
Topic: In other news... (humorous news items)
Replies: 14779
Views: 2289275

Re: In other news... (humorous news items, etc)

Naturalisticity? After the naturalistic fallacy. The naturalistic fallacy is, also, a different thing ... related to naturalism (specifically, the applying of naturalism to ethics, which many hold as fallacious). The two fallacies are so commonly confused that the Wikipedia pages about Naturalism h...
by phlip
Tue Nov 10, 2015 10:50 pm UTC
Forum: News & Articles
Topic: In other news... (humorous news items)
Replies: 14779
Views: 2289275

Re: In other news... (humorous news items, etc)

(Naturalism is the other thing... meaning as opposed to supernaturalism. I don't know of a good "-ism"-style word for what you meant, though... I've heard "chemphobia"/"techphobia" but not really a fan of those.)
by phlip
Tue Nov 10, 2015 1:23 am UTC
Forum: General
Topic: The "I can't find a particular XKCD comic" thread
Replies: 156
Views: 102354

Re: The "I can't find a particular XKCD comic" thread

I give it approximately 3 years until every comic ever made has been misattributed as xkcd. 2 more years until "xkcd" becomes the new genericised term for "webcomic".
by phlip
Thu Oct 29, 2015 5:29 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1595: "30 Days Hath September"
Replies: 132
Views: 24028

Re: 1595: "30 Days Hath September"

What we need to do instead is to remove leap seconds from UTC and implement a different "daily living" time standard which I will call "UTS", for "Universal Time, Solar". UTS would continue to implement leap seconds in order to stay synchronized with the Earth's rotati...
by phlip
Wed Oct 28, 2015 6:08 am UTC
Forum: General
Topic: Blistering blue barnacles
Replies: 28488
Views: 3026088

Re: Rant Thread : For all your obscenity screaming needs

Do they not have context in your country? Once you start dealing with the sort of person who asks these kind of dumb "gotcha" trick questions, concepts like "context" and "implication" and many other vital communication shorthands get thrown out the window, because any...
by phlip
Mon Oct 19, 2015 1:23 pm UTC
Forum: Movies and TV Shows
Topic: Doctor Whom
Replies: 4917
Views: 658683

Re: Doctor Whom

...why doesn't the Doctor get spares of those, and use them on companions? Then he might not work his way through so many, and wouldn't have to be this tragic hero doomed to loneliness etc. etc. Honestly, I wouldn't be surprised if it turns out in the season finale that he was able to r...
by phlip
Mon Oct 19, 2015 3:28 am UTC
Forum: General
Topic: Thoughts for ships
Replies: 90010
Views: 7815735

Re: Inspirations

Seth Boyer, on the other hand, is an artist who creates only perfection.
by phlip
Mon Oct 12, 2015 2:27 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9862
Views: 1765529

Re: Coding: Fleeting Thoughts

I'd recommend learning Python3... most of the changes in it are for the better, and it's a friendlier language to use in a lot of respects. However be aware that there are still many libraries and such that only support Python2 and haven't gotten ported across to the new version... but I still think...
by phlip
Thu Oct 01, 2015 1:33 am UTC
Forum: News & Articles
Topic: In other news... (humorous news items)
Replies: 14779
Views: 2289275

Re: In other news... (humorous news items, etc)

Don't see why everyone is so bothered about the idea of rating people. This seems like an awesome avenue for research. I don't have the stamina to go into detail about all the myriad of ways this idea is completely fucked up, but the short version: what do you think, to pick a random example, Anita...
by phlip
Sun Sep 27, 2015 11:27 pm UTC
Forum: Religious Wars
Topic: Tabs vs Spaces
Replies: 209
Views: 125172

Re: Tabs vs Spaces

When I used Notepad++ I had visible whitespace turned on. Since switching to Sublime, I've moved to the mode of "whitespace is visible while selected", which is a bit cleaner, to look at, but still makes it very easy to check all the tabs/spaces are correct...
by phlip
Thu Sep 24, 2015 6:01 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1581: "Birthday"
Replies: 59
Views: 11426

Re: 1581: "Birthday"

Also, I'm sure I remember the short film Wallace and Gromit and the Wrong Trousers had a musical birthday card which played the tune of Happy Birthday - I have strong memories of such - but the version on Google Play which I watched this year had the tune of For He's a Jolly Good Fellow. Don't worr...
by phlip
Tue Sep 22, 2015 1:49 pm UTC
Forum: News & Articles
Topic: Police misbehavior thread
Replies: 6347
Views: 924044

Re: Police misbehavior thread

I could wrote "bomb" on a paper bag, leave it somewhere and probably still get charged with some sort of "hoax bomb" thing. Sure, but you wouldn't be arrested just for possession of a bag and a pen, on the assumption that you could do this. Or maybe you would, in American school...
by phlip
Mon Sep 21, 2015 1:56 am UTC
Forum: Mathematics
Topic: Monty Hall oddity - is this right?
Replies: 15
Views: 2558

Re: Monty Hall oddity - is this right?

When the host is opening doors randomly, so it can reveal different things, it no longer makes sense to just come in with a blanket strategy... that is, the pure strategies are no longer just "always switch" or "always stay". Rather, the pure strategies are now "if the host ...
by phlip
Wed Sep 16, 2015 11:36 pm UTC
Forum: Logic Puzzles
Topic: Anti-Gambler's Fallacy
Replies: 162
Views: 23613

Re: Anti-Gambler's Fallacy

In the same way, either the 8000 flips happened by chance, or they didn't, and if they happened by chance, it's irrational to try to find a different explanation That would be true if and only if you actually know that they happened by chance. The whole point of this entire discussion is that, in a...
by phlip
Mon Sep 14, 2015 6:47 am UTC
Forum: Logic Puzzles
Topic: Anti-Gambler's Fallacy
Replies: 162
Views: 23613

Re: Anti-Gambler's Fallacy

Because, the people reading the puzzle in the "interesting" way didn't really discuss with each other about their stopping points or why are theirs better than the others, because they accept that it's a personal choice. It's not (just) a personal choice. It's a choice that depends wildly...
by phlip
Mon Sep 14, 2015 5:37 am UTC
Forum: Logic Puzzles
Topic: Anti-Gambler's Fallacy
Replies: 162
Views: 23613

Re: Anti-Gambler's Fallacy

Can you imagine a perfect coin that always lands on either head or tails, half the time? As an abstraction, I can imagine a perfect coin that lands on heads or tails exactly 50/50. However, I can't imagine an actor in that scenario who is holding that coin and knows that the coin is exactly 50/50, ...
by phlip
Wed Sep 09, 2015 3:29 am UTC
Forum: General
Topic: Thoughts for ships
Replies: 90010
Views: 7815735

Re: Inspirations

by phlip
Fri Aug 28, 2015 1:09 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9862
Views: 1765529

Re: Coding: Fleeting Thoughts

Huh, that's even weirder.

But it does suggest the easy workaround of swapping b and c in the tree... since b is absolutely positioned that doesn't affect the layout at all, and now it works...
by phlip
Thu Aug 27, 2015 2:33 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9862
Views: 1765529

Re: Coding: Fleeting Thoughts

So, a question for the seasoned profeCSSionals out there... I have this, a minimal test case heavily trimmed from a bug I'm looking into at work: <!DOCTYPE html> <title>Overflow test</title> <style> .a { overflow: hidden; text-overflow: ellipsis; } .b { position: absolute; } .c { display: inline-blo...
by phlip
Mon Aug 24, 2015 1:31 pm UTC
Forum: Logic Puzzles
Topic: Who is What?
Replies: 21
Views: 3363

Re: Who is What?

There's a difference between "implicit false assumptions" and "sentences that only make sense if you make false assumptions", such as a statement about "the engineer" would be if there were more than 1 engineer...

Go to advanced search