Search found 2869 matches

by Xenomortis
Sat Oct 28, 2017 6:42 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9739
Views: 1551080

Re: Coding: Fleeting Thoughts

https://en.wikipedia.org/wiki/Adoption_of_the_Gregorian_calendar#Adoption_in_Eastern_Europe The USSR switched from the Julian to the Gregorian calendar in 1918 - the 30th Jan 1918 (Wednesday) was followed by 14th Feb (Thursday). Not quite "two sequential Thursdays", but a date-time complic...
by Xenomortis
Mon Oct 09, 2017 2:25 pm UTC
Forum: Religious Wars
Topic: Automatic updates
Replies: 9
Views: 977

Re: Automatic updates

To be fair, most malware goes unnoticed. Being part of a botnet is unfortunate, but at least it doesn't force a machine restart. ;) There's an old, old meme (memory puts it as refering to Windows 95) comparing a typical computer virus (of the time) vs Windows, with on one side statements of "w...
by Xenomortis
Mon Oct 09, 2017 2:23 pm UTC
Forum: Science
Topic: Uranium more Common than Zinc
Replies: 10
Views: 1208

Re: Uranium more Common than Zinc

My guess is that lead and zinc deposits are more common in sedimentary layers (limestone, etc), so you're getting a warped view when you only look at the composition of igneous rock.
by Xenomortis
Mon Oct 09, 2017 11:42 am UTC
Forum: Religious Wars
Topic: Automatic updates
Replies: 9
Views: 977

Re: Automatic updates

How many people actually leave their session open overnight? I used to, before I installed Windows 10 and now my computer cannot wake up from sleep, forcing a reboot (or several). Forced restarts, even in the Win 7 days, where therefore an annoyance (albeit very minor). Goes to show that either you...
by Xenomortis
Mon Oct 09, 2017 11:36 am UTC
Forum: The Help Desk
Topic: Computer Dying Randomly [Seems it was the PSU]
Replies: 12
Views: 1870

Re: Computer Dying Randomly

Over heating is the obvious one - check all the fans for dust, etc, particularly for the PSU and CPU. It could be the power supply - if it's old and your computer already pushes close to its rated limit then it may no longer be able to provide enough juice. Of particular note is that once the PC shu...
by Xenomortis
Fri Sep 15, 2017 3:28 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1890: "What to Bring"
Replies: 65
Views: 5041

Re: 1890: "What to Bring"

praetor_alpha wrote:But Counterstrike taught me that a knife in a gun fight can be very useful!

Certainly it helps you run faster. ;)
You should definitely bring a knife to a race.
by Xenomortis
Fri Sep 15, 2017 11:47 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1890: "What to Bring"
Replies: 65
Views: 5041

Re: 1890: "What to Bring"

Agreed, I had this one pot lid in college that I always thought would serve well as a buckler. Alas, my fencing coach viewed such improvised fighting implements as more of a liability than anything else, legally, if not practically in a bout. Maybe useful in a sword fight, but I don't think it'd be...
by Xenomortis
Sun Sep 10, 2017 2:29 pm UTC
Forum: Science
Topic: Why is there red on both sides of digital rainbow images?
Replies: 25
Views: 2108

Re: Why is there red on both sides of digital rainbow images?

While looking for an alternative image with an uptick for the 'red cone' sensitivity, I started to question its validity and the validity of any of those diagrams. One diagram in particular caught my attention (if it lists sources, I tend to believe those sources exist and are reputable): http://we...
by Xenomortis
Mon Aug 07, 2017 4:17 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9739
Views: 1551080

Re: Coding: Fleeting Thoughts

Is the goal here to allow people to enter arbitrary expressions in the config file? Or are you just trying to make it so they can enter numbers/strings/etc and have it load in as the appropriate types? Because in the latter case, it's probably going to be a lot cleaner to just read the values in as...
by Xenomortis
Mon Aug 07, 2017 1:45 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9739
Views: 1551080

Re: Coding: Fleeting Thoughts

So I need some configuration files that basically store key-value pairs and these need to be parsed. Values are typed (might be strings, ints or floats). The people that edit these files (non-programmers) are used to "Key = value" syntax: KEY1 = "string value" KEY2 = 123 ... The ...
by Xenomortis
Fri Jul 14, 2017 11:30 am UTC
Forum: Religious Wars
Topic: Graph theory terminology
Replies: 16
Views: 3415

Re: Graph theory terminology

No one going to try to start a holy war over "vertices" vs "vertexes"? Vertexes all the way. No, because we all know the correct answer there. Vertices, you heathen! I tend to say "node", but that's because I usually deal with graphs in a programming context. I was def...
by Xenomortis
Thu Jun 29, 2017 12:02 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1856: "Existence Proof"
Replies: 38
Views: 3509

Re: 1856: "Existence Proof"

Flumble wrote:Does an x with x^2=-1 really exist?

Yeah, but it's not unique.
by Xenomortis
Tue Jun 27, 2017 4:04 pm UTC
Forum: Religious Wars
Topic: Spaces in paths & filenames
Replies: 45
Views: 4136

Re: Spaces in paths & filenames

spaces_should_be_abolished_and_we_should_all_type_like_this
by Xenomortis
Thu Jun 22, 2017 4:36 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9739
Views: 1551080

Re: Coding: Fleeting Thoughts

Yeah, the version isn't changing anytime soon. There is a solution: ... except Exception e: raise MyException, MyException(e), sys.exc_info[2] # traceback But I still think "what's the point"? Just let the exception bubble up - stop wrapping things up in useless exception classes.
by Xenomortis
Wed Jun 21, 2017 9:55 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9739
Views: 1551080

Re: Coding: Fleeting Thoughts

Code: Select all

try:
    # some lines that might raise an exception
except:
    raise SomeUselessExceptionClass("Some useless message")

Thanks for hiding what went wrong - you've made everyone's life so much nicer by squashing that pesky error trace.
by Xenomortis
Tue Jun 20, 2017 9:23 pm UTC
Forum: Religious Wars
Topic: Tabs vs Spaces
Replies: 209
Views: 107730

Re: Tabs vs Spaces

Why are you aligning with tabs?
Don't align with tabs - bad things will happen when you align with tabs.
I heard that it was people aligning with tabs that drove some employees to madness and despair, causing them to release the dinosaurs and ultimately end all operations.
by Xenomortis
Sat Jun 17, 2017 9:40 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9739
Views: 1551080

Re: Coding: Fleeting Thoughts

Tub wrote:Please advise. I'd prefer to refactor this before I have to commit a "SquigglyLine" class into the eternal git history.

I think the term used at work is "LinePlot". Or maybe it's "Trace".
I actually have no idea how that shit works.
by Xenomortis
Fri Jun 16, 2017 7:13 pm UTC
Forum: Religious Wars
Topic: Tabs vs Spaces
Replies: 209
Views: 107730

Re: Tabs vs Spaces

Computer programmers who use spaces as part of their coding earn $15,370 (£12,000) more per year than those who use tabs, a survey of developers has revealed. Programmers who use spaces 'paid more' Even when I'm using tabs, I still have spaces in my code. Maybe they get paid more because they take ...
by Xenomortis
Thu Jun 15, 2017 12:03 pm UTC
Forum: News & Articles
Topic: British Snap Election - Theresa, Meh; Corbyn near-win; So long, Farron, auf wiedersehen goodbyeee
Replies: 127
Views: 10661

Re: British Snap Election - Theresa, Meh; Corbyn near-win; So long, Farron, auf wiedersehen goodbyeee

Not the first time a Liberal Democrat leader has had conflicts stemming from their faith.
Charles Kennedy (Catholic) frequently voted against abortion and euthanasia - motions that received support from LD front-benchers at the time.
by Xenomortis
Sun Jun 11, 2017 6:39 pm UTC
Forum: News & Articles
Topic: British Snap Election - Theresa, Meh; Corbyn near-win; So long, Farron, auf wiedersehen goodbyeee
Replies: 127
Views: 10661

Re: British Snap Election - not a re-referendum?

You're referring to the "Shy Tory factor". It is true that the Conservatives have beaten the polls more often than Labour (by about 2:1?), but I suspect the "shy Tory" effect is overstated. I would have to look back at the various polls before previous elections to really argue f...
by Xenomortis
Sun Jun 11, 2017 12:37 pm UTC
Forum: News & Articles
Topic: British Snap Election - Theresa, Meh; Corbyn near-win; So long, Farron, auf wiedersehen goodbyeee
Replies: 127
Views: 10661

Re: British Snap Election - not a re-referendum?

↶ Until 10pm on Thursday, pretty much everyone thought the Tories were going to have a majority of anything from 50 to over 100. The yougov poll was basically the only one that had made substantial enough changes to their calculations and was the main one I was following so I was expecting a reduce...
by Xenomortis
Sat Jun 10, 2017 1:26 pm UTC
Forum: News & Articles
Topic: British Snap Election - Theresa, Meh; Corbyn near-win; So long, Farron, auf wiedersehen goodbyeee
Replies: 127
Views: 10661

Re: British Snap Election - not a re-referendum?

http://www.bbc.co.uk/news/uk-40231107 So May has sacked two of her close aides Two of May's aides have "resigned" following the result. The understanding is that some Tory MPs threatened a leadership contest if they were kept on. Her position is tenuous - if there were an "obvious&quo...
by Xenomortis
Fri Jun 09, 2017 11:39 am UTC
Forum: News & Articles
Topic: British Snap Election - Theresa, Meh; Corbyn near-win; So long, Farron, auf wiedersehen goodbyeee
Replies: 127
Views: 10661

Re: British Snap Election - not a re-referendum?

Labour say they're looking to form a minority government, the only way I can see that being possible is this coalition: Labour (261) + SNP (35) + Lib Dems (12) + DUP (10) + Sinn Fein (7) + Green (1) = 326 That would be... mad. I don't see how that could work. I think we're looking at either Con + D...
by Xenomortis
Fri Jun 09, 2017 8:11 am UTC
Forum: News & Articles
Topic: British Snap Election - Theresa, Meh; Corbyn near-win; So long, Farron, auf wiedersehen goodbyeee
Replies: 127
Views: 10661

Re: British Snap Election - not a re-referendum?

Interesting picture in Scotland. It's not clear if the SNP losing almost half their seats is just a regression to the mean (they could only go downhill after 2015) or a genuine rejection of neverending talk of another independence referendum. A bit of both, perhaps. 11(?) Scottish seats went to the...
by Xenomortis
Thu Jun 08, 2017 11:25 pm UTC
Forum: News & Articles
Topic: British Snap Election - Theresa, Meh; Corbyn near-win; So long, Farron, auf wiedersehen goodbyeee
Replies: 127
Views: 10661

Re: British Snap Election - not a re-referendum?

The first few results (mostly Labour safe seats) have the Tories generally doing better than exit polls suggested, so we may see them cling onto their majority.
This still isn't really good news for May - she needs to do a *lot* better than the exit poll to come out of this looking good.
by Xenomortis
Thu Jun 08, 2017 9:55 pm UTC
Forum: News & Articles
Topic: British Snap Election - Theresa, Meh; Corbyn near-win; So long, Farron, auf wiedersehen goodbyeee
Replies: 127
Views: 10661

Re: British Snap Election - not a re-referendum?

Yeah, I've read the 538 articles on this election. Before today, we were "within expected margins" for either a Tory landslide or Labour becoming the largest party. That the exit polls suggest we've landed on the "wrong side", according to common expectations, is not that surpris...
by Xenomortis
Thu Jun 08, 2017 9:39 pm UTC
Forum: News & Articles
Topic: British Snap Election - Theresa, Meh; Corbyn near-win; So long, Farron, auf wiedersehen goodbyeee
Replies: 127
Views: 10661

Re: British Snap Election - not a re-referendum?

I tried to place bets on a hung parliament, but in the end I settled with spread bets on various people that weren't Theresa May for PM after this election.
Maybe I'll see a return on my £10. :D
by Xenomortis
Tue May 23, 2017 11:52 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9739
Views: 1551080

Re: Coding: Fleeting Thoughts

I don't know much javascript but I am guessing line breaks act as statement separators(like semicolon), so the first one acts like return; essentially returning nothing, while the second one has an opening brace so it returns everything until the closing brace. I am guessing that's because javascri...
by Xenomortis
Tue May 23, 2017 9:10 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9739
Views: 1551080

Re: Coding: Fleeting Thoughts

That's just because Javascript is the work of Satan.
by Xenomortis
Sat May 20, 2017 7:17 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9739
Views: 1551080

Re: Coding: Fleeting Thoughts

Could anyone find any reason at all why you would write a simple, concise description of that function, and not just write this for randrange which is right next to it: Return a random integer N such that a <= N < b. Because it's not accurate. The declaration for randrange is def randrange(start, s...
by Xenomortis
Sun May 14, 2017 9:42 pm UTC
Forum: Gaming
Topic: Quake Champions
Replies: 0
Views: 1776

Quake Champions

So the beta tests for the latest iteration of Quake continue, and now the NDA has been lifted. Mostly it's standard Quake - same weapons (although the Grenade Launcher has disappeared), same power ups, strafe jumping, etc. The physics appears to mostly be the same as Quake 3, but the maximum speed y...
by Xenomortis
Wed Apr 26, 2017 3:51 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9739
Views: 1551080

Re: Coding: Fleeting Thoughts

Descriptive variable name my fucking arse.

To be honest though, the code isn't "bad" - I just hate the dense prose-like code overly long names result in.
And getters.
I fucking hate "getX" methods.
by Xenomortis
Wed Apr 26, 2017 9:54 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9739
Views: 1551080

Re: Coding: Fleeting Thoughts

I am looking at my future and it's all "reallyFuckingLongNamesManager" and "noIdeaWhatThisThingIsComponent.getOtherThingSource(what_is_this)" and my eyes just glaze over...
by Xenomortis
Mon Apr 24, 2017 8:02 pm UTC
Forum: News & Articles
Topic: British EU referendum in June [update: Leave wins 52% - 48%, politics ensue]
Replies: 1100
Views: 106618

Re: British EU referendum in June [update: Leave wins 52% - 48%, politics ensue]

There are 59 seats in Scotland. The SNP hold 54 of them. The Conservative, Labour, and LibDem parties have one each. There are two independents (previously SNP). Only one party has anything to lose in Scotland. The Tories used to have a pretty good showing in Scotland, but I understand that disappea...
by Xenomortis
Wed Apr 19, 2017 2:19 pm UTC
Forum: News & Articles
Topic: British EU referendum in June [update: Leave wins 52% - 48%, politics ensue]
Replies: 1100
Views: 106618

Re: British EU referendum in June [update: Leave wins 52% - 48%, politics ensue]

I'm surprised by her statement that she won't do one. Perhaps she thinks it could only cost her votes?
I suspect she'll do one in the end, not doing one just seems "poor form".
by Xenomortis
Wed Apr 19, 2017 1:59 pm UTC
Forum: News & Articles
Topic: British EU referendum in June [update: Leave wins 52% - 48%, politics ensue]
Replies: 1100
Views: 106618

Re: British EU referendum in June [update: Leave wins 52% - 48%, politics ensue]

May wants to call a General Election for the 8th June. It used to be that the Monarch PM could call an election whenever they wanted; now it requires a two-thirds majority in Commons or a vote of no confidence. So this isn't "definite", but I doubt there'll be huge resistance in Parliamen...
by Xenomortis
Tue Apr 18, 2017 6:29 pm UTC
Forum: News & Articles
Topic: British EU referendum in June [update: Leave wins 52% - 48%, politics ensue]
Replies: 1100
Views: 106618

Re: British EU referendum in June [update: Leave wins 52% - 48%, politics ensue]

Jumble wrote:... he has declared that he wants to lead a successful party of protest.

Oxymoron, no? :wink:
by Xenomortis
Tue Apr 18, 2017 10:48 am UTC
Forum: News & Articles
Topic: British EU referendum in June [update: Leave wins 52% - 48%, politics ensue]
Replies: 1100
Views: 106618

Re: British EU referendum in June [update: Leave wins 52% - 48%, politics ensue]

I don't see Labour beating the Tories.
I see a chance for the Lib Dems to recover some of their lost seats, possibly eroding away a Conservative majority.
by Xenomortis
Tue Apr 18, 2017 10:11 am UTC
Forum: News & Articles
Topic: British EU referendum in June [update: Leave wins 52% - 48%, politics ensue]
Replies: 1100
Views: 106618

Re: British EU referendum in June [update: Leave wins 52% - 48%, politics ensue]

May wants to call a General Election for the 8th June. It used to be that the Monarch PM could call an election whenever they wanted; now it requires a two-thirds majority in Commons or a vote of no confidence. So this isn't "definite", but I doubt there'll be huge resistance in Parliament.

Go to advanced search