Search found 8003 matches

by phlip
Wed Mar 07, 2018 11:58 am UTC
Forum: Computer Science
Topic: If HAL - 9000 Was Alexa
Replies: 1
Views: 2044

Re: If HAL - 9000 Was Alexa

Just curious, do you plan on posting any threads that aren't just links to your own blog?
by phlip
Thu Feb 22, 2018 9:41 pm UTC
Forum: Coding
Topic: My Hobby: Working around missing functionality
Replies: 2
Views: 2057

Re: My Hobby: Working around missing functionality

↶ What's the missing functionality? I was going to guess "waking up to my music", but the speakers are muted. Unless you mean the computer speakers are muted, so the wake-up light plays the bluetooth-to-fm of your playlist, in which case, cool. I presume the computer isn't in their bedroo...
by phlip
Wed Feb 14, 2018 11:18 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1732025

Re: Coding: Fleeting Thoughts

As noted, it does look like you've re-typed your code here in the forum, rather than copy-pasting the code you're actually trying to run, and I think in the process of re-typing it there's been some typos introduced. So it's hard to tell exactly what errors are contributing to the bug you're experie...
by phlip
Mon Feb 05, 2018 9:21 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1732025

Re: Coding: Fleeting Thoughts

Yeah, there's a lot of different options for how to store a multidimensional array, and they all have their pros and cons. Lists-of-lists (as before) # as comprehension cat = [ [ [ 0 for i in range(3) ] for j in range(5) ] for k in range(3) ] # as a literal cat = [ [ [0, 0, 0], [0, 0, 0], [0, 0, 0],...
by phlip
Sun Feb 04, 2018 3:58 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1732025

Re: Coding: Fleeting Thoughts

↶ Thanks... I know python is really weird when it comes to white space... Python cares about whitespace for indenting statements, but that's about it. Within a line, or for indenting continuing lines of the same statement, it doesn't really care. Since you're inside the brackets it's all part of on...
by phlip
Fri Jan 05, 2018 1:03 pm UTC
Forum: The Help Desk
Topic: YouTube comment history weirdness
Replies: 3
Views: 2244

Re: YouTube comment history weirdness

Looks like I get the same behaviour you're describing.

I guess YouTube is a buggy mess? I mean that isn't that surprising.
by phlip
Wed Dec 27, 2017 11:15 am UTC
Forum: Coding
Topic: What sort of language do you think was used to make Xcom Apocalypse?
Replies: 26
Views: 6478

Re: What sort of language do you think was used to make Xcom Apocalypse?

This is going to be more of a general art advice post, than anything technical... but this is a very important discussion of advice for this , it's about 15 minutes long but I highly recommend listening to the whole thing. For which the jist is: make something , and get it done. Don't spend forever ...
by phlip
Mon Oct 30, 2017 2:03 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1732025

Re: Coding: Fleeting Thoughts

Possible confounding factor here being that 30 Jan 1918 on the Gregorian calendar was a Thursday... but, 30 Jan 1918 on the Julian calendar was a Wednesday, so Russia had a Wednesday followed by a Thursday, nothing unusual there, just the actual date did weird things. There are also cases where a pl...
by phlip
Fri Sep 22, 2017 12:27 am UTC
Forum: The Help Desk
Topic: Wipe a folder from Android menu
Replies: 10
Views: 2442

Re: Wipe a folder from Android menu

This is the Help Desk, remember... please, less debates about filesystems, more actually answering the OP's question.

If you want to have a discussion about the finer points of phone filesystems, take that to RW.
by phlip
Wed Sep 20, 2017 4:17 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1732025

Re: Coding: Fleeting Thoughts

Xeio wrote:
It's weird when I'm reading the spec docs for the SWF file format.

Or... you could not?

Have you considered... just... not?
by phlip
Mon Sep 04, 2017 1:20 am UTC
Forum: Coding
Topic: View XKCD from a terminal.
Replies: 5
Views: 4070

Re: View XKCD from a terminal.

Clearly the obvious solution to that is to combine aalib with some sort of OCR, so that text in the original comic comes out as readable text in the terminal, but the drawings in the comic get the normal aalib treatment.

I'm sure such a plan will be simple and have no possible drawbacks.
by phlip
Fri Sep 01, 2017 1:18 pm UTC
Forum: News & Articles
Topic: In other news... (humorous news items)
Replies: 14762
Views: 2216953

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

To be fair: less "unpublished novels" and more random musings, works in progress, snippets of things, backlogged ideas... stuff that likely never would have seen the light of day even if the man had lived to be a million. Or if they would, they'd be very different than what you'd find by c...
by phlip
Mon Aug 07, 2017 2:12 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1732025

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 phlip
Thu Aug 03, 2017 12:27 am UTC
Forum: News & Articles
Topic: Police misbehavior thread
Replies: 6248
Views: 884077

Re: Police misbehavior thread

The idea that the statute of limitations can expire while the crime is still in progress is baffling to me.
by phlip
Sat Jul 22, 2017 10:08 am UTC
Forum: Religious Wars
Topic: Graph theory terminology
Replies: 16
Views: 5954

Re: Graph theory terminology

Vertopodes.
by phlip
Tue Jul 18, 2017 9:50 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1732025

Re: Coding: Fleeting Thoughts

But really, the ideal solution is to take full-motion video, convert it to GIF, and then take that resulting GIF and convert that to MP4. Because the dithering patterns from dropping to 256-colour do great things to MPEG compression. At least Twitter lets you upload actual MP4s and skip that whole s...
by phlip
Sat Jun 24, 2017 11:47 pm UTC
Forum: Religious Wars
Topic: Spaces in paths & filenames
Replies: 45
Views: 8123

Re: Spaces in paths & filenames

Yeah, but that would require me to think ahead, and type an opening quote mark before getting into this mess...
by phlip
Sat Jun 24, 2017 1:41 pm UTC
Forum: Religious Wars
Topic: Spaces in paths & filenames
Replies: 45
Views: 8123

Re: Spaces in paths & filenames

The one thing I try to avoid is having the names of two files be the same except for something after a space... so like "foo" and "foo bar"... because now to access "foo bar" from the CLI using tab-completion, I type "f[tab]" and it gives me foo, and now I hav...
by phlip
Tue May 23, 2017 11:01 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1732025

Re: Coding: Fleeting Thoughts

Even better. As you guessed, Javascript will automatically add a semicolon at the end of a line if it makes syntactic sense. But then the brace becomes the start of a block statement, not the start of an object literal. Inside that block is the (useless) label "foo", on the (pointless) sta...
by phlip
Fri May 19, 2017 11:05 am UTC
Forum: Site/Forum issues
Topic: Login rememberence?
Replies: 5
Views: 3217

Re: Login rememberence?

There is an edge case with the remember-me login thing that happens sometimes. It can happen if your session cookie expires, and then when you come back, you load two pages at once. So for instance, maybe you left the forum open for a while, your session expired, and you click two links quickly. Or ...
by phlip
Thu Apr 27, 2017 12:54 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1732025

Re: Coding: Fleeting Thoughts

Seen floating around Twitter: Compiling C to x86 using only printable ASCII.

Learn how to program a computer when you aren't allowed to use MOV. Or backward jumps.
by phlip
Fri Apr 21, 2017 10:39 am UTC
Forum: Computer Science
Topic: Logic for why NP is not closed under complement?
Replies: 2
Views: 4068

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

OK, so it's been a while since I've dabbled in complexity theory so I'm a bit rusty, and I hit up Wikipedia for a quick refresher, and it helpfully says: Every deterministic complexity class is closed under complement, because one can simply add a last step to the algorithm which reverses the answer...
by phlip
Sun Apr 16, 2017 5:15 am UTC
Forum: News & Articles
Topic: In other news... (humorous news items)
Replies: 14762
Views: 2216953

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

Coyne wrote:
The requests would all be identical, right down to voice, inflection and timing. Could Google have technology that detects such problems and automatically defeats them?

If Twitter isn't lying to me, I believe they already have.
by phlip
Thu Apr 13, 2017 1:55 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1732025

Re: Coding: Fleeting Thoughts

ahammel wrote:Anyway: the good news is that I found a tool to statically find import cycles. The bad news that the dependency cycle in question is 41 modules long.

Godspeed, brave warrior...
by phlip
Wed Apr 12, 2017 12:07 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1732025

Re: Coding: Fleeting Thoughts

↶ Node's handling of cyclic dependencies is probably the most maddening language feature I've ever had to deal with. "Surprise! That function is suddenly undefined! Good luck figuring out why." That sounds very similar to the way it works in Python ... except for that word "copy"...
by phlip
Sat Apr 08, 2017 6:45 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1732025

Re: Coding: Fleeting Thoughts

In that case, why all the messing around with subclasses and whatnot? Why do you need separate UnboundObj and BoundObj? Can't you just have SomeObj which has an unbind method, and if you call it while it isn't bound, it does nothing or raises an exception or whatever? What's the benefit in making it...
by phlip
Fri Apr 07, 2017 11:43 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1732025

Re: Coding: Fleeting Thoughts

I don't think there's a good reason to be messing with __class__ here (or almost ever, really)... if you really wanted to do it that way, you could just set obj.unbind = lambda: binder().remove(obj) and then in remove just del obj.unbind Basically the only advantage of the automatic-subclassing stuf...
by phlip
Sun Apr 02, 2017 2:00 pm UTC
Forum: Computer Science
Topic: Deliberately bad algorithms
Replies: 120
Views: 42599

Re: Deliberately bad algorithms

(Very rough pseudocode...) for path in sys.path: for file in os.walk(path): __import__(file) for o in gc.get_objects(): if isinstance(o, types.FunctionType): try: o(seq) etc Every function. Who cares where it came from. Also, to go back a step... I've never seen "log² x" to mean "(log...
by phlip
Wed Mar 29, 2017 1:05 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1732025

Re: Coding: Fleeting Thoughts

When I took CS theory, they called them "formal parameters" and "actual parameters", but they also said that "parameters" vs "arguments" gets some use.
by phlip
Sat Mar 25, 2017 1:47 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1732025

Re: Coding: Fleeting Thoughts

Yeah, as Xenomortis alludes, the magic word here is single dispatch ... which method is actually called is based on the actual runtime type of the "this" parameter (ie: calling overridden methods in subclasses) but all of the other parameters are bound statically based off their declared t...
by phlip
Wed Feb 15, 2017 11:09 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1799: "Bad Map Projection: Time Zones"
Replies: 70
Views: 11829

Re: 1799: "Bad Map Projection: Time Zones"

↶ Maybe I'm misunderstanding something, but… why is Poland "reaching" to the east? It's in the same time zone as Germany and most of the Western Europe, and they observe DST the same way. Probably just so it can share a border with Belarus, which is two timezones away... ↶ I don't get tha...
by phlip
Sun Jan 29, 2017 11:12 am UTC
Forum: General
Topic: Thoughts for ships
Replies: 89950
Views: 7568470

Re: Random natterings

↶ Somewhere between a post I made back in June 2014 and now, a string of unlikely events came with an unexpected outcome. Shot for the moon, ended up with a star on a pedestal. Turns out the official measurement was 425cm; larger than I thought (Absolute max size on design was 424cm) and what they ...
by phlip
Thu Jan 19, 2017 11:53 am UTC
Forum: Science
Topic: Miscellaneous Science Questions
Replies: 2863
Views: 625717

Re: RELATIVITY QUESTIONS! (and other common queries)

morriswalters wrote:
Assume mirror A at the receiving end and that A reflects towards a target at B.

Sure, but someone at B won't get that reflected light from A until, by definition, lightspeed delay from A to B. A still can't do something to get information to B faster than light, is the point.
by phlip
Wed Jan 18, 2017 11:58 pm UTC
Forum: Science
Topic: Miscellaneous Science Questions
Replies: 2863
Views: 625717

Re: RELATIVITY QUESTIONS! (and other common queries)

Say you are at point A, and you know someone at point B. Is there literally anything you can do, that will have effects that B can measure? Is there any measurement B can make, where the results will differ depending (directly or indirectly) on actions you take? If so: there's a transmission of info...
by phlip
Sun Jan 15, 2017 3:24 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1732025

Re: Coding: Fleeting Thoughts

It's also worth name-dropping Rice's theorem, a generalisation of the halting problem that any question like "is this a sorting algorithm" is undecidable.
by phlip
Wed Jan 11, 2017 12:10 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1784: "Bad Map Projection: Liquid Resize"
Replies: 58
Views: 10106

Re: 1784: "Bad Map Projection: Liquid Resize"

Copper Bezel wrote:
phlip wrote:Layer -> Liquid Rescale

That is where it appears, but I had to install the plugin explicitly.

Ah, good to know. On Ubuntu at least, it's bundled (as a part of the "gimp-plugin-registry" package).
by phlip
Wed Jan 11, 2017 11:14 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1784: "Bad Map Projection: Liquid Resize"
Replies: 58
Views: 10106

Re: 1784: "Bad Map Projection: Liquid Resize"

↶ I don't get it, maybe because english is not my primary language. Just what is used to resize each country ?? I'm not asking about the tool, it's photoshop, ok. I'm guessing some kind of numeric quantity is "weighting" countries, but can't understand which... (maybe just "none"...
by phlip
Sun Jan 08, 2017 9:01 am UTC
Forum: General
Topic: Thoughts for ships
Replies: 89950
Views: 7568470

Re: Random natterings

↶ Question does using female as a noun when talking about woman sound as awkward to native speakers as it does to me? "Female" as a noun, I associate with basically a few contexts: (1) People working with animals, especially either (a) studying them, or (b) breeding them. (2) Ferengi, who...
by phlip
Fri Jan 06, 2017 10:34 pm UTC
Forum: News & Articles
Topic: In other news... (humorous news items)
Replies: 14762
Views: 2216953

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

↶ Quick really tangential question: if the Moon was 225 miles away from the Earth, how heavy would it need to be to cause the tides? Well that's roughly 1000 times closer than the actual moon. Newtonian gravity varies inversely with distance squared. So I guess it would need to be roughly one milli...
by phlip
Thu Jan 05, 2017 5:17 am UTC
Forum: Logic Puzzles
Topic: Infinite Balls and Jugs [solution]
Replies: 611
Views: 95069

Re: Infinite Balls and Jugs [solution]

Offtopic electronics stuff: It comes up in electronics for looking at AC circuits... If every power source in the circuit is AC with the same frequency, then every voltage/current measurement will be a sine wave of that frequency (since the sum of any two sine waves of the same frequency is anot...

Go to advanced search