Search found 2823 matches

by Xenomortis
Mon Mar 27, 2017 9:40 am UTC
Forum: Science
Topic: Is terraforming Uranus and Neptune possible?
Replies: 22
Views: 3077

Re: Is terraforming Uranus and Neptune possible?

"Blast off" entire layers of a gas giant?
Even if such a thing is possible in the future, I don't think terraforming will be the main use for a Death Star.
by Xenomortis
Fri Mar 24, 2017 3:42 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1524769

Re: Coding: Fleeting Thoughts

Xenomortis, can you define some kind of local function do_things :: BaseClass -> Object with overloads for the specific classes? (The program will still call the most specific overload, regardless of whether the object was bound to a variable of a superclass type in between, right?) Pretty sure Jav...
by Xenomortis
Thu Mar 23, 2017 10:43 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1524769

Re: Coding: Fleeting Thoughts

Xenomortis, can you define some kind of local function do_things :: BaseClass -> Object with overloads for the specific classes? (The program will still call the most specific overload, regardless of whether the object was bound to a variable of a superclass type in between, right?) I don't know Ja...
by Xenomortis
Thu Mar 23, 2017 12:29 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1524769

Re: Coding: Fleeting Thoughts

// BaseClass x = ... assigned from some where Object thing; if (x instanceof ClassA) { thing = do_A_things((ClassA) x) } else if (x instanceof ClassB) { thing = do_B_things((ClassB) x) } else if (x instanceof ClassC) { ... } else throw Exception(); vs Map<Class<?>, Function<Class<?>, Object> functi...
by Xenomortis
Tue Mar 21, 2017 11:47 am UTC
Forum: Gaming
Topic: Gaming fleeting thoughts
Replies: 582
Views: 63150

Re: Gaming fleeting thoughts

The games I initially bought (Steam sales, so games released between 2010-2012) were all around the 2-5 gig range, so I don't know whether I blinked-or-missed-it, or just started not caring about disk space, but I missed the point where games jumped from ~5gb to ~50gb. It sure didn't feel like a gr...
by Xenomortis
Mon Mar 20, 2017 11:24 pm UTC
Forum: Gaming
Topic: Gaming fleeting thoughts
Replies: 582
Views: 63150

Re: Gaming fleeting thoughts

Largest I have (I think), from the Steam store:
Wolfenstein: The New Order - 50 GB
Doom (4) - 56 GB
Grand Theft Auto 5 - 72 GB
by Xenomortis
Fri Mar 17, 2017 12:29 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1524769

Re: Coding: Fleeting Thoughts

git bisect is awesome.
Tracing an odd performance degradation and I would never have suspect the commit it landed on.
And it's neat way to hammer in the difference between binary and linear searches.
by Xenomortis
Sun Mar 12, 2017 10:25 am UTC
Forum: Mathematics
Topic: Math: Fleeting Thoughts
Replies: 378
Views: 99047

Re: Math: Fleeting Thoughts

I was watching this Numberphile video about Pascal's triangle, and learned yet more things about it. In particular, I really liked the section starting here . When she hadn't even started drawing the lines in yet I was starting to notice the pattern and was genuinely saying to my computer screen &q...
by Xenomortis
Thu Mar 09, 2017 10:21 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1808: "Hacking"
Replies: 32
Views: 5306

Re: 1808: "Hacking"

But the next thing I usually do after compiling and linking (which I usually spell "make" or "cmake" or something like that), is run something like "make test". Configure gcc to launch gdb straight after compiling and linking - we all know it won't be working right, mi...
by Xenomortis
Wed Mar 08, 2017 3:23 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1808: "Hacking"
Replies: 32
Views: 5306

Re: 1808: "Hacking"

Does gcc have any features that let you run arbitrary code? After all it's a compiler, not an interpreter. It really ought to have a switch to execute the output file automatically. Another thing it ought to have is a warning when you're about to overwrite the input source file with the output. Tha...
by Xenomortis
Wed Mar 01, 2017 10:22 pm UTC
Forum: Mathematics
Topic: Help with a 9 Variable Equation
Replies: 6
Views: 1592

Re: Help with a 9 Variable Equation

Maybe I should rephrase my question. If I wanted to maximize H, should I double S or triple A. X-Y problem? Look, if you have a Shuckle (very low A ttack) attacking a Steelix (very high D efense) with a physical move, there's less point in using Shell Smash (doubling A) - the A/D term is still goin...
by Xenomortis
Mon Feb 27, 2017 8:25 pm UTC
Forum: Hardware
Topic: advice: external cd/dvd
Replies: 16
Views: 2101

Re: advice: external cd/dvd

KnightExemplar wrote:The 5.25" slot is physical... its just the case that holds the drive in place.

Real geeks precariously balance the drive on top of one of the other drives.
With the side off the computer case.
And with the PSU outside.
by Xenomortis
Mon Feb 27, 2017 8:09 pm UTC
Forum: Hardware
Topic: advice: external cd/dvd
Replies: 16
Views: 2101

Re: advice: external cd/dvd

Yeah - should be easy to find a USB CD/DVD drive online.
It should just work when you plug it in, but it might need two USB ports to provide enough juice (they often come with Y shaped USB cable).
by Xenomortis
Mon Feb 20, 2017 5:05 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1524769

Re: Coding: Fleeting Thoughts

*Has a pull request on github with a bunch of commits*
*Goes on holiday for nearly three weeks*
*Comes back to see someone added some more commits*

git reset --hard abc123
git push -f

I was productive today. :D
by Xenomortis
Sun Jan 08, 2017 12:01 pm UTC
Forum: News & Articles
Topic: In other news... (humorous news items)
Replies: 13898
Views: 1845320

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

Being within three orders of magnitude is usually considered pretty good by astronomical standards.
by Xenomortis
Tue Jan 03, 2017 11:26 am UTC
Forum: Gaming
Topic: 2016 in review
Replies: 10
Views: 2718

Re: 2016 in review

I can only think of three 2016 releases I've played: Doom 4 (DOOM): It was pretty unstable when I played, but that was shortly after a highly stressful upgrade to Windows 10 which left me with a fairly unstable computer (8 months later, it's still causing problems). The odd blue-screen wouldn't be t...
by Xenomortis
Wed Dec 21, 2016 6:48 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1524769

Re: Coding: Fleeting Thoughts

It's not me that cares about types. It's Python!

Code: Select all

>>> arr = [1, 2, 3]
>>> arr[5.0 // 2]
TypeError


Or how about:

Code: Select all

>>> (5.0 // 2) ^ 1
TypeError
by Xenomortis
Wed Dec 21, 2016 4:40 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1524769

Re: Coding: Fleeting Thoughts

Code: Select all

>>> 3 // 2
1
>>> 3.0 // 2
1.0

Python, do you really have to be like that? It's so close, but worse than not close.

Trying to maintain compatibility between Python 2.7 and 3 is a pain the arse when you don't have a proper environment for the latter set up.
by Xenomortis
Fri Dec 09, 2016 10:25 am UTC
Forum: News & Articles
Topic: Dinosaur feathers and colours found in amber
Replies: 13
Views: 3317

Re: Dinosaur feathers and colours found in amber

Screw flying cars, I want my pet dino-sparrow.
by Xenomortis
Tue Dec 06, 2016 5:27 pm UTC
Forum: News & Articles
Topic: In other news... (humorous news items)
Replies: 13898
Views: 1845320

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

CorruptUser wrote:18000 joules is roughly the same amount of energy as one of those fired bullets. That's a lot of energy in your pocket.

About 4 grams of TNT (equivalent).
Or about 2-3 g of Nitroglycerin (~2 mL).
Not much, but enough that you'd want to be careful with your hand. ;)
by Xenomortis
Sun Dec 04, 2016 11:18 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1524769

Re: Coding: Fleeting Thoughts

To be fair, I will definitely press Ctrl-C after a while.
by Xenomortis
Thu Nov 03, 2016 4:28 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1524769

Re: Coding: Fleeting Thoughts

This problem would be so much easier if I could just allocate 200GB of memory. But no, I have to be clever and work out element repetitions and tiling patterns for these arrays that act as axes for some n-dimensional dataset, and filter out points that aren't inside some prism like region. And I tho...
by Xenomortis
Thu Nov 03, 2016 1:15 pm UTC
Forum: News & Articles
Topic: British EU referendum in June [update: Leave wins 52% - 48%, politics ensue]
Replies: 1100
Views: 101735

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

The party heads can allow conscience votes by MPs at their discretion, right? I don't know how likely/unlikely that is in this case. Sure - suppose a Tory MP's constituency is strongly against a government motion, then Tory whips may not pressure them into voting the party line, particularly if the...
by Xenomortis
Thu Nov 03, 2016 11:43 am UTC
Forum: News & Articles
Topic: British EU referendum in June [update: Leave wins 52% - 48%, politics ensue]
Replies: 1100
Views: 101735

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

Is it known if the MP vote will be anonymous? I can more easily imagine MPs voting to stay if its not known who voted which way. Divisions (votes) are not anonymous - party whips wouldn't have much power if they were. The process of divisions is somewhat arcane. The Speaker can simply ask everyone ...
by Xenomortis
Tue Nov 01, 2016 2:00 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1524769

Re: Coding: Fleeting Thoughts

Subtraction and Division are not associative: "20 o (10 o 2) != (20 o 10) o 2" for both o = - and o = /. Further, if pressed, I'd be inclined to make them left-associative, mirroring how naive calculators work, leaving exponentiation as right-associative. Edit: Use the correct symbol for s...
by Xenomortis
Thu Oct 27, 2016 3:42 pm UTC
Forum: News & Articles
Topic: 2016 US Presidential Election
Replies: 8482
Views: 676945

Re: 2016 US Presidential Election

Trump's really not that bad: he's just a horrible person in general who believes every conspiracy theory about Democrats, has horrible communication skills, zero attention span, does not seem to care or have any knowledge about issues that don't affect him personally (or that he perceives to), and ...
by Xenomortis
Wed Oct 26, 2016 4:31 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1524769

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 Xenomortis
Tue Oct 25, 2016 12:10 pm UTC
Forum: News & Articles
Topic: In other news... (humorous news items)
Replies: 13898
Views: 1845320

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

The UK's Labour party have been fined over their general election campaign's tombstone.
(They forgot to declare receipts for the infamous tablet when filling in the paperwork).

Not many people live to regret their epitaph.
by Xenomortis
Mon Oct 24, 2016 5:46 pm UTC
Forum: News & Articles
Topic: 2016 US Presidential Election
Replies: 8482
Views: 676945

Re: 2016 US Presidential Election

The UK leans unusually far in the seesaw direction. You win an election, you immediately get to cleanse the government machinery of the opposition and push through your plans. Well, we have Lords, and manifestos aren't quite "we're going to do the reverse of everything the other guys did"...
by Xenomortis
Sun Oct 23, 2016 12:05 am UTC
Forum: Gaming
Topic: Heroes of the Storm (Moba Lite?)
Replies: 41
Views: 12698

Re: Heroes of the Storm (Moba Lite?)

Elite might punish really bad decisions a little more - the AI tends to like grouping up a lot and pushing with mercs. It's not uncommon for three to rotate to defend against one person that's pushed too deep. But if your team soaks experience from all three lanes (the AI frequently doesn't past the...
by Xenomortis
Sat Oct 22, 2016 10:36 pm UTC
Forum: Gaming
Topic: Heroes of the Storm (Moba Lite?)
Replies: 41
Views: 12698

Re: Heroes of the Storm (Moba Lite?)

I often play against the AI to power through the daily quest rewards (much shorter queue times, and usually quite short games). I've found games against Veteran AI are often much harder than Elite AI, because the human players you get matched with are often much worse. People also play very risky ag...
by Xenomortis
Thu Oct 20, 2016 8:53 am UTC
Forum: Science
Topic: Science fleeting thoughts
Replies: 76
Views: 10237

Re: Science fleeting thoughts

I don't think CO2 "capture" is the right word.
It's more energy storage - replacing batteries with ethanol.
by Xenomortis
Mon Oct 17, 2016 3:10 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1524769

Re: Coding: Fleeting Thoughts

Stackoverflow suggests that numpy.fromfunction has very deceptive docstrings and in fact, does not execute the function per coordinate point. What actually happens is the function is called once with arrays of the coordinates and operates directly on those. It so happens that numpy's array syntax wo...
by Xenomortis
Mon Oct 17, 2016 2:29 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1524769

Re: Coding: Fleeting Thoughts

Making arrays in python. size = int(4e6) s = time() l = list( (x - 0.5) * 0.5 for x in xrange(size) ) print time() - s 0.6 seconds (and a lot of memory) l = numpy.fromiter( ((x - 0.5) * 0.5 for x in xrange(size)), dtype=np.float64, count=size) 0.72 seconds Didn't expect that... at least it's less me...
by Xenomortis
Fri Oct 14, 2016 3:11 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9730
Views: 1524769

Re: Coding: Fleeting Thoughts

Without thinking much about the problem: Pick a value based on the k-nearest neighbours, weighted by distance, culling those that are "shadowed" by other points (you'll need to decide on the angle to cull at). I imagine k should be quite small, the culling step is unlikely to be necessary ...
by Xenomortis
Fri Oct 07, 2016 9:51 pm UTC
Forum: Mathematics
Topic: Why does x=y -> f(x)=f(y)?
Replies: 12
Views: 2329

Re: Why does x=y -> f(x)=f(y)?

I don't think that makes sense.
Your function there is really f: N2 -> N, not Q -> N.
In Q, you don't differentiate 1/2 and 2/4.
by Xenomortis
Thu Oct 06, 2016 8:56 am UTC
Forum: Gaming
Topic: Heroes of the Storm (Moba Lite?)
Replies: 41
Views: 12698

Re: Heroes of the Storm (Moba Lite?)

2) HoTS is inferior to the other games. I tried it for a while but the fact there aren't items drastically reduce the complexity of For some (me at least), that's a significant advantage. It's much easier to pick up and play and games are shorter. Yes, there are fewer subtleties (no last hitting, e...
by Xenomortis
Wed Oct 05, 2016 4:43 pm UTC
Forum: News & Articles
Topic: British EU referendum in June [update: Leave wins 52% - 48%, politics ensue]
Replies: 1100
Views: 101735

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

The reasoning there is that free movement means that refugees allowed into other EU countries will end up in Britain to take advantage of our benefits system.
by Xenomortis
Mon Sep 26, 2016 12:40 am UTC
Forum: Science
Topic: How serious is a 1st degree burn?
Replies: 15
Views: 2477

Re: How serious is a 1st degree burn?

The OP describes second degree - a hot stove would cause blistering and quite a bit of pain.
The primary risk is infection.
by Xenomortis
Tue Sep 20, 2016 4:09 pm UTC
Forum: Coding
Topic: faster function than 1/x?
Replies: 18
Views: 4486

Re: faster function than 1/x?

I seem to remember reading that the union variant is only safe in GCC, but I never really properly understood the logic around union aliasing rules from the standard.

Go to advanced search