Search found 4887 matches

by EvanED
Sat Apr 28, 2018 6:02 am UTC
Forum: Computer Science
Topic: Formally, What is P and NP?
Replies: 19
Views: 5680

Re: Formally, What is P and NP?

"Can a non-deterministic Turning machine solve a puzzle such that a function describing how long it will take the machine to solve the puzzle is not a polynomial?" Iff the answer is yes, then P =/= NP. Is this correct? Here are a two ways of looking at this definition, because no, not rea...
by EvanED
Tue Apr 10, 2018 4:34 am UTC
Forum: Coding
Topic: An amateur has tried to build a website in raw HTML
Replies: 56
Views: 10780

Re: An amateur has tried to build a website in raw HTML

Can you link to an example? (Of a "new feature" that's really a security update)
by EvanED
Tue Apr 10, 2018 12:59 am UTC
Forum: Coding
Topic: An amateur has tried to build a website in raw HTML
Replies: 56
Views: 10780

Re: An amateur has tried to build a website in raw HTML

I also don't think it's fair to say that Win 7 isn't usable any more. Even if you took a liberal definition of "unusable" to include that it's not safe to use because it doesn't get security updates, there's still almost two years left of usability.
by EvanED
Tue Dec 12, 2017 4:13 pm UTC
Forum: Hardware
Topic: After a decade it's time for a new computer
Replies: 24
Views: 8045

Re: After a decade it's time for a new computer

Maybe we just disagree on what "significant" means, but I think that qualifies. 22% over 6 years is not a significant increase. especially when you consider the fact that there has been no difference in IPC between the last 3 generations (skylake, kaby lake, and coffee lake), and you can ...
by EvanED
Tue Dec 12, 2017 12:29 am UTC
Forum: Hardware
Topic: After a decade it's time for a new computer
Replies: 24
Views: 8045

Re: After a decade it's time for a new computer

I'll add to this that while single-threaded performance hasn't scaled like it did in the 70s and 80s, there's still been fairly-significant improvement in the last 10 years from my understanding. it really hasn't. Intel hasn't made any significant improvements in IPC since sandy bridge (2011), and ...
by EvanED
Mon Dec 11, 2017 11:31 pm UTC
Forum: Hardware
Topic: After a decade it's time for a new computer
Replies: 24
Views: 8045

Re: After a decade it's time for a new computer

-CPU core speeds don't seem to have gotten much faster, but now there are many more of them. I'll add to this that while single-threaded performance hasn't scaled like it did in the 70s and 80s, there's still been fairly-significant improvement in the last 10 years from my understanding. I assume t...
by EvanED
Tue Aug 08, 2017 11:04 pm UTC
Forum: Coding
Topic: var == 'value' vs 'value' == var
Replies: 20
Views: 9560

Re: var == 'value' vs 'value' == var

2. == and != does *not* accept bools (instead it throws an error saying to just use the value itself, or negate it) You "can't" do this; if (b1 == b2) is a reasonable thing to want to say, and IMO making Booleans a second-class citizen is the wrong way to solve this "problem." I...
by EvanED
Tue Aug 08, 2017 6:56 pm UTC
Forum: Hardware
Topic: I'm looking for a device for drawing.
Replies: 12
Views: 10589

Re: I'm looking for a device for drawing.

* Tilt Detection -- iPad Pro and "Intuos Pro" have tilt detection, so that you can "paint" with calligraphy. Per a link posted upthread, the latest Surface Pro has tilt support as well. Tilt-detection is necessary for proper synchronization with the screen and maximum accuracy. ...
by EvanED
Mon Aug 07, 2017 2:10 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9878
Views: 1795471

Re: Coding: Fleeting Thoughts

The people that edit these files (non-programmers) are used to "Key = value" syntax: KEY1 = "string value" KEY2 = 123 ... What about INI syntax via configparser , part of the standard library? I, personally, would not expect to have to quote strings (at least absent special char...
by EvanED
Sun Jul 23, 2017 3:57 am UTC
Forum: Religious Wars
Topic: Graph theory terminology
Replies: 16
Views: 7535

Re: Graph theory terminology

chridd wrote:I prefer Latin suffices over English ones
I believe you mean English "onei".
by EvanED
Fri Jul 21, 2017 6:47 pm UTC
Forum: Religious Wars
Topic: Graph theory terminology
Replies: 16
Views: 7535

Re: Graph theory terminology

"Line" would confuse me; I think this thread is the only time I've heard that term used for what I've almost always heard called edges.
by EvanED
Thu Jul 20, 2017 1:28 am UTC
Forum: Computer Science
Topic: chess under duress
Replies: 27
Views: 9551

Re: chess under duress

Two more ideas on this. Sometimes players will hover their hand over a piece for a couple seconds before touching it, just as a last moment consideration. You can freely withdraw it and move another piece as long as you've not touched it. If you touch a piece, move it, and don't let go, you can actu...
by EvanED
Wed Jul 19, 2017 5:52 am UTC
Forum: Computer Science
Topic: chess under duress
Replies: 27
Views: 9551

Re: chess under duress

I went to look for the original motivation of the touch-move rule and didn't find a ton that I find very compelling (I guess it is either to nebulously try to stop being annoying, or make it more difficult to cheat), but this only slightly related thing is pretty hilarious: "At one time the rul...
by EvanED
Fri Jul 14, 2017 11:18 am UTC
Forum: Religious Wars
Topic: Graph theory terminology
Replies: 16
Views: 7535

Re: Graph theory terminology

No one going to try to start a holy war over "vertices" vs "vertexes"?

Vertexes all the way.
by EvanED
Tue Jul 11, 2017 8:48 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9878
Views: 1795471

Re: Coding: Fleeting Thoughts

Not "of their own accord". While the page is open, it can request that the SW be sent a sync event when you come back online ( explanation ). That might fire immediately, if you're currently online, or be queued for later if you're currently offline; then, because it's a SW, it can do the...
by EvanED
Tue Jul 11, 2017 8:06 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9878
Views: 1795471

Re: Coding: Fleeting Thoughts

So if a user connects to an unsecured wifi, can anyone just inject a service worker into any unsecured page and hijack it without the user knowing? Service workers (1) cannot be installed over HTTP, they require HTTPS, and (2) last a maximum of 24 hours before being redownloaded and compared with t...
by EvanED
Tue Jul 11, 2017 7:53 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9878
Views: 1795471

Re: Coding: Fleeting Thoughts

they don't just run whenever. They're not like page code, capable of doing anything it wants at arbitrary times. It's completely event-driven, and those events are things the browser controls. (Things like "the page wants this URL from your server, tell me what to return" or "a page ...
by EvanED
Thu Jun 29, 2017 4:25 am UTC
Forum: Religious Wars
Topic: Spaces in paths & filenames
Replies: 45
Views: 10884

Re: Spaces in paths & filenames

Does DOS/Windows allow single quotes at all? I seem to remember it only liking double quotes, and wine cmd says "File not found" when I try to use single quotes with dir and type. Looks like Windows 7 cmd doesn't like single quotes, though I'm not sure if that extends to the C runtime (wh...
by EvanED
Mon Jun 26, 2017 7:06 pm UTC
Forum: Coding
Topic: Multi-line Anonymous Functions in Python
Replies: 32
Views: 35066

Re: Multi-line Anonymous Functions in Python

What is the point of an anonymous function? Having written a function, why not give it a name and allow the code to be reused? There are a couple reasons you sometimes want to do that. The first is that very often, you don't ever need to call it more than once. This is especially true if your funct...
by EvanED
Sat Jun 24, 2017 7:29 am UTC
Forum: Religious Wars
Topic: Tabs vs Spaces
Replies: 209
Views: 128102

Re: Tabs vs Spaces

Wouldn't it be awsome if the (text) file used to hold the document had embedded within it the tab setting? Or is that heresy, de-purifying text and moving too close to word processing? So first, some editors can do this already. Emacs and Vim both support "mode lines" in your file, which ...
by EvanED
Tue Jun 20, 2017 8:12 pm UTC
Forum: Religious Wars
Topic: Tabs vs Spaces
Replies: 209
Views: 128102

Re: Tabs vs Spaces

Tabs are superior for indentation because you're free to set your own tab size locally and the best-paid coders know this. The best-paid coders also know when to trade off theoretical purity for practicality. They understand that while tabs to indent and spaces to align is the ideal, it's also easy...
by EvanED
Sat Jun 17, 2017 1:02 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9878
Views: 1795471

Re: Coding: Fleeting Thoughts

For the performance hit to be small, he needs his data to be large enough that cache misses are frequent, giving him enough CPU cycles to do the extra work. You're comparing however the performance hit to the mutable version. If you need the persistence, there's a lot of good stuff in the talk. Eve...
by EvanED
Tue May 23, 2017 4:17 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9878
Views: 1795471

Re: Coding: Fleeting Thoughts

... and have a for loop header (or, less commonly, other loops or if ) that's multiple lines, I do want the opening brace on a separate line or the body blends into the header. Hadn't thought about that. Then again, a multi-line for loop header screams reformatting (if it's a rare code style) or re...
by EvanED
Tue May 23, 2017 2:36 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9878
Views: 1795471

Re: Coding: Fleeting Thoughts

I hope modern Javascript editors warn you about that, I'd much rather get a syntax error than to have code parsed that way. My impression as an outsider to webdev is that jslint is both very popular and requires a semicolon after "every" statement. (There are exceptions, like loops and co...
by EvanED
Fri Apr 21, 2017 3:14 pm UTC
Forum: Religious Wars
Topic: are morals relative or absolute?
Replies: 20
Views: 7971

Re: are morals relative or absolute?

It could be said that {whatever} was always moral (or immoral), but people did not recognize it as such. I'd argue that absolute morality also isn't inconsistent with changing morality. Suppose God exists, and 2000 years ago said "X is immoral." That's pretty clearly absolute. But he coul...
by EvanED
Fri Apr 21, 2017 2:28 pm UTC
Forum: Computer Science
Topic: Logic for why NP is not closed under complement?
Replies: 2
Views: 5097

Re: Logic for why NP is not closed under complement?

Well said. I want to add another way to describe the first way of looking at the nondeterministic Turing machine (NTM) explanation: ⋅ A problem is in NP => there is some NTM M that can answer it in polytime ⋅  M returns a "yes" if there exists a path through M , given t...
by EvanED
Mon Apr 03, 2017 4:14 pm UTC
Forum: Gaming
Topic: Mass Effect : Meet and Fuck
Replies: 276
Views: 75391

Re: Mass Effect : Meet and Fuck

ME:2 was the most polished AAA game I can name. This is definitely one of the buggiest. ... and yet, I found ME2's issues way more frustrating than Andromeda's. I ran into a lot of lack of polish with 2, none of which has been fixed in patches. I routinely get the "press __ to end the mission&...
by EvanED
Sun Apr 02, 2017 8:14 pm UTC
Forum: Gaming
Topic: Mass Effect : Meet and Fuck
Replies: 276
Views: 75391

Re: Mass Effect : Meet and Fuck

HES wrote:I've had the same issue with a different quest elsewhere. If you want to go sniping, you have to get close enough to trigger the encounter first.

Great, now you've got me paranoid that I'm missing stuff left and right. :-)

Was it at least obvious that you missed something?
by EvanED
Sun Apr 02, 2017 5:11 am UTC
Forum: Gaming
Topic: Mass Effect : Meet and Fuck
Replies: 276
Views: 75391

Re: Mass Effect : Meet and Fuck

I'm playing through; if I had to take a wild guess I'd say I'm probably around halfway, but that's not based on an absolute ton of information. Just a guess. So far for the most part I've really been pretty happy; I won't say there haven't been annoyances and weaknesses, but on the whole they're pre...
by EvanED
Fri Mar 31, 2017 6:48 pm UTC
Forum: Hardware
Topic: I need a new desktop, might try building my own?
Replies: 41
Views: 23348

Re: I need a new desktop, might try building my own?

The other thing that's a mess, unless things have changed in the last couple of years, are all of the random little tiny headers like the power switch and hard drive lights. Where they go will be likely printed on the motherboard, but in abbreviated form; I'd look at the manual for those. Also you m...
by EvanED
Wed Mar 29, 2017 2:57 am UTC
Forum: Gaming
Topic: Mass Effect : Meet and Fuck
Replies: 276
Views: 75391

Re: Mass Effect

I'm a bit torn whether to discuss the game or try to stay away until I get through it, because I've really tried (and for the most part been successful) at going in completely blind. But whatever. :-) To be a bit contrarian, I'm enjoying it quite a bit so far. I'm not terribly far in (about 13 hrs, ...
by EvanED
Tue Mar 28, 2017 11:16 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9878
Views: 1795471

Re: Coding: Fleeting Thoughts

I've heard people draw a distinction between arguments and parameters , where arguments are the values passed at a call site and parameters are the variables that receive them in the called function, but I wouldn't trust that distinction to come across. Both of those terms are pretty commonly used t...
by EvanED
Fri Mar 03, 2017 5:42 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1806: "Borrow Your Laptop"
Replies: 57
Views: 11116

Re: 1806: "Borrow Your Laptop"

And the Windows key? Dude, the Windows key is awesome , and even more awesome on Linux than on Windows. :-) I have all my window manager keys set up to use the Windows key (mod4), so I can use simple shortcuts like mod4-<number> to switch virtual desktops or mod4-c to close the current window witho...
by EvanED
Fri Mar 03, 2017 5:34 pm UTC
Forum: Hardware
Topic: advice: external cd/dvd
Replies: 16
Views: 6358

Re: advice: external cd/dvd

KnightExemplar wrote:Internal slots are the ones that are inside the case.

I would describe that as "internal slots have no opening to the outside." I'd say the slot itself is inside the case for both. :-)
by EvanED
Tue Feb 14, 2017 3:18 pm UTC
Forum: Religious Wars
Topic: Steering showdown
Replies: 29
Views: 21203

Re: Steering showdown

If by "block" you mean that 10-2 hands lead down to forearms pointing down to/past 8-4, that seems awkward. By "block," plytho means that the airbag will break your arms when it deploys. ( Or worse. ) (OK, "will" is being dramatic, but "can and is more likely to w...
by EvanED
Thu Dec 22, 2016 7:23 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9878
Views: 1795471

Re: Coding: Fleeting Thoughts

Not to mention:

Code: Select all

> typeof []
"object"


which I guess isn't definitive but is suggestive.
by EvanED
Tue Dec 13, 2016 12:08 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9878
Views: 1795471

Re: Coding: Fleeting Thoughts

Yeah, C's "struct tm" uses a 0-based month number but a 1-based day number. And originally it used a two-digit year, but now out of backwards compatibility it uses "year - 1900". So today is 13/11/116 according to C. It is garbage, and every language that does the same and justi...
by EvanED
Wed Oct 26, 2016 3:02 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9878
Views: 1795471

Re: Coding: Fleeting Thoughts

30 seconds is nothing. Let me know when you've tried spending hours on obvious-in-hindsight mistakes like that. Oh, I definitely have, but it's usually like some = in an if somewhere, where yeah it's a dumb mistake but the location of the mistake isn't easy to find. (That hasn't happened to me in a...
by EvanED
Wed Oct 26, 2016 5:02 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9878
Views: 1795471

Re: Coding: Fleeting Thoughts

Brains have some weird failure modes. Makes me wonder if perhaps complex software can never possibly be bug free. I just did this: $ python Python 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for...
by EvanED
Thu Sep 22, 2016 1:37 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9878
Views: 1795471

Re: Coding: Fleeting Thoughts

There should not be a space between the * and the p on the variable declaration. But what if putting spaces on both sides is designed to annoy adherents of both Type* p and Type *p at once? :-) I'd expect in a software company that there'd be such a code formatter though. I wouldn't; I doubt most c...

Go to advanced search