Search found 4861 matches

by EvanED
Mon Apr 03, 2017 4:14 pm UTC
Forum: Gaming
Topic: Mass Effect : Meet and Fuck
Replies: 274
Views: 45273

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: 274
Views: 45273

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: 274
Views: 45273

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: 40
Views: 11891

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: 274
Views: 45273

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: 9611
Views: 1369669

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: 3826

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: 648

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: 21
Views: 2739

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: 9611
Views: 1369669

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: 9611
Views: 1369669

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: 9611
Views: 1369669

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: 9611
Views: 1369669

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: 9611
Views: 1369669

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...
by EvanED
Wed Sep 21, 2016 4:25 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

for (SomeIterator iter = something; iter != end; ++iter) { SomeObject * p = *iter; #define wat continue if (p == NULL) wat; #undef wat foo(p); } That should pass code review, right? I have an iterator that "returns" pointers, of course. I have no idea why it's giving me NULL... I think it...
by EvanED
Wed Sep 21, 2016 4:09 am UTC
Forum: Coding
Topic: faster function than 1/x?
Replies: 18
Views: 2768

Re: faster function than 1/x?

I'm pretty sure using a union is also undefined behaviour? I think it may depend on C vs C++. In C, it is not UB -- rather, it just produces a perhaps-partially-un specified result. However, from what I can tell it does guarantee that, if you are converting from type A to B and A 's "object re...
by EvanED
Tue Sep 20, 2016 4:04 pm UTC
Forum: Coding
Topic: faster function than 1/x?
Replies: 18
Views: 2768

Re: faster function than 1/x?

Thanks for the excellent advice! @EvanED: No, singles are fine. I avoided using f(x1) <= f(x2), because then f(x)=constant is technically a valid solution. I should have said "floating point" rather than "doubles"... point is, you're not working with ints or fixed point. (Both o...
by EvanED
Mon Sep 19, 2016 8:54 pm UTC
Forum: Coding
Topic: faster function than 1/x?
Replies: 18
Views: 2768

Re: faster function than 1/x?

Input and output need to be doubles? Do the comparisons need to be strict? (i.e. would 'x1 > x2' but 'f(x1) <= f(x2)' be a sufficient condition)
by EvanED
Thu Sep 15, 2016 11:46 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

To the rest of y'all, JS is a pretty decent language. ... As a heavy user of both JS and Python, the two are extremely similar . Guido, and hence Python, knows what a type error is. :-) (Yeah, I know I cut out the "if you enjoy languages without strict typing" part, but you can probably g...
by EvanED
Thu Sep 15, 2016 1:53 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

Seemingly unpopular opinion: JavaScript has the cleanest type system of all dynamic languages. Prototype based inheritance just makes so much more sense for a dynamic language than classes. Ugh. I haven't used JS enough to have an opinion on the prototype system, but there is no way that, even if i...
by EvanED
Tue Aug 16, 2016 2:34 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

Are you telling me that Notepad and Microsoft can be misleading? gasp :P So for what it's worth, I actually feel a bit of sympathy for MS on this one because of its history. Windows adopted Unicode very early, back when it was (I think... this is my impression, and I might be wrong) synonymous with...
by EvanED
Thu Aug 11, 2016 3:05 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

commodorejohn wrote:(It was a joke on EvanED's post.
If it makes you feel better, I knew what you were doing. :-)
by EvanED
Wed Aug 10, 2016 5:32 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

I think I might have to work on my program's memory use. 353gb.png (You might think that this would be thrashing like crazy, but it was actually pretty well-behaved most of the time, as you can see from CPU% there. Though it is thrashing now as it's running destructors after program exit. I did have...
by EvanED
Wed Jul 20, 2016 8:44 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

Are there that many non-toy applications that use graphs but do not need high performance OR specialized structures? First, I'm not sure there are "that many", but I personally fairly frequently do one thing or another on a reasonably small graph (hundreds to hundreds of thousands of node...
by EvanED
Wed Jul 20, 2016 1:28 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

Graph data structures need to be tightly coupled to the problem they want to solve. Even something simple like DFS requires specialized data structures (i.e. a per-node flag that remembers if the node has already been visited yet). You wouldn't need to store that flag intrusively though. It might b...
by EvanED
Fri Jul 01, 2016 2:48 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

I don't know why you're adding the check to the initialization of stuff. stuff can be empty without problems. The representative is the problem. Unless some information was lost in simplification/anonymization of the code, that's where the check belongs. It's interesting you say that; when I was or...
by EvanED
Fri Jul 01, 2016 3:33 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

How terrible is this? struct Something { set<int> stuff; int representative; Something(set<int> const & s) : stuff((assert(!s.empty()), s)) , representative(*s.begin()) {} }; ? Would it be worth it to write something like: template <typename Container> Container const & ident_if_nonempty(Con...
by EvanED
Mon Jun 20, 2016 6:13 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

When linking to a compiled entity, you already need to find out or specificy its type, no? When adding exception inference to a language, the exception type will just have to be specified alongside the normal type. If you have to "specify" it, then it's not inferred. Or when it isn't, it ...
by EvanED
Mon Jun 20, 2016 5:46 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

Hmm, I wonder whether exception inference can solve the symptoms of checked exceptions. If type inference can transform the monstrosity that is Java into C++'s auto/Scala/Haskell, then surely exception inference can hide that complexity. Every expression is just a monadic function (Right? Am I righ...
by EvanED
Mon Jun 13, 2016 7:11 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

Pretty sure I've posted this before, but my absolute favorite DailyWTF is this "false detector" : public boolean checkFalse(Boolean bool) { if (bool.booleanValue() == Boolean.FALSE.booleanValue()) { return Boolean.FALSE.booleanValue(); } else { return Boolean.TRUE.booleanValue(); } } This ...
by EvanED
Mon Jun 06, 2016 1:54 am UTC
Forum: Religious Wars
Topic: Witches Vs. Wizards
Replies: 15
Views: 3209

Re: Witches Vs. Wizards

Baba Yaga is the epitome of a witch, and is pretty damn cool. She's basically a cranky old grandmother... a powerful witch with "Godfather" like connections across the world and spirit realms. And also the inspiration for maybe the best music of anyone mentioned in-thread. :-) (Harry Pott...
by EvanED
Wed May 25, 2016 11:23 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

Right. (defun add-one (x) (+ 1 x)) is analogous to function add_one(x) { return 1 + x; } var add_one = function() { return 1 + x; }; // (or perhaps to this) whereas var add_one = new Function("x", "return x + 1;") is constructing a function from a string at runtime. I'm not actua...
by EvanED
Tue Apr 05, 2016 5:49 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

C++ allows both, although the C style declaration is really only used in forward declarations as far as I know. Sure, that's why struct S s; works. But struct S() to create a temporary doesn't, and that's really my complaint. It's not really a practical matter, but in the name of consistency I thin...
by EvanED
Tue Apr 05, 2016 3:30 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

$ cat tags.cpp struct S {}; int foo(S s); struct S s; // including the tag is OK int i1 = foo(S()); // calling the default constructor is OK int i2 = foo(struct S()); // Calling the default constructor with the tag: Not OK?! $ g++ -fsyntax-only -Wall -Wextra tags.cpp -std=c++1y huh.cpp:7:14: error:...
by EvanED
Thu Mar 31, 2016 2:21 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

ucim wrote:wat?

Oh, that's very easy to explain:
ucim wrote:(in PHP)
[/troll]
by EvanED
Tue Mar 22, 2016 7:57 pm UTC
Forum: General
Topic: Offline installers are rarer now
Replies: 32
Views: 11497

Re: Offline installers are rarer now

First, wrong forum. [not anymore -phlip] Second, I suspect it's so that people will get the latest version of the software instead of installing something old just so that it can then go and be updated. So it's sort of a security issue, in the sense that installing an old version is generally a secu...
by EvanED
Thu Mar 03, 2016 1:26 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

redundant check for result.Rows.Count > 0 Why is that redundant? Is it not possible that result could exist but have zero rows? Yes, in which case the loop won't execute because of the test. But what if you omitted the test? Then the loop would execute zero times. Soooo... same thing! There's nothi...
by EvanED
Thu Mar 03, 2016 12:12 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

ucim wrote:What is even wrong with it? I assume you take exception to the (in this case unneeded) break statement
The break statement is needed (perhaps). What's not needed is the whole loop! Not to mention the redundant check for result.Rows.Count > 0.
by EvanED
Fri Feb 05, 2016 7:14 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9611
Views: 1369669

Re: Coding: Fleeting Thoughts

The illogic of using the word "implies" and the distinction from the typical English meaning may become clear when I make the following statement: (A implies B) implies (B implies A). From an English standpoint, this statement is false. The fact that A implies B does not in any way imply ...

Go to advanced search