Search found 514 matches

by Mat
Sat Aug 27, 2011 3:36 pm UTC
Forum: Computer Science
Topic: 1D battleship strategy
Replies: 5
Views: 2498

Re: 1D battleship strategy

Initial thoughts - Until an egg is found, any samples to be tested from the same set should be spaced out by at least 8 slices. Otherwise we risk getting redundant information (except if it's a bad sample). Better to find the eggs first and then work out where its boundaries are. Not sure about divi...
by Mat
Thu Aug 25, 2011 9:22 pm UTC
Forum: General
Topic: ITT: We make xkcd slightly worse.
Replies: 8641
Views: 1605637

Re: ITT: We make xkcd slightly worse.

http://xkcd.com/942/
Spoiler:
juggling.png
20 goto 10
juggling.png (5.97 KiB) Viewed 5457 times

Spoiler:
juggling (1).png
It's so simple!
juggling (1).png (7.27 KiB) Viewed 5457 times
by Mat
Sat Aug 13, 2011 12:02 pm UTC
Forum: Coding
Topic: More resources for learning Python
Replies: 5
Views: 1299

Re: More resources for learning Python

In a similar vein to project euler: I found http://www.pythonchallenge.com/ to be quite good when learning python. It's one of those "solve a puzzle to find the next page" things. I also recommend reading http://diveintopython.org/ . It's a free ebook with practical examples, and unlike mo...
by Mat
Sat Jul 16, 2011 11:16 am UTC
Forum: Science
Topic: Elements of Physics?
Replies: 5
Views: 1325

Re: Elements of Physics?

This may prove to be a difficult/impossible request to grant, but I am looking for some help with a little creative project that I'm working on. Unfortunately, I am woefully lacking in a solid physics education, and for my project I need to have some grasp of the "elements" of physics, an...
by Mat
Wed Jul 06, 2011 7:55 am UTC
Forum: Coding
Topic: Python help (again)
Replies: 11
Views: 1430

Re: Python help (again)

Yep your code assumes every line of the file has exactly two values separated by a space. Perhaps you want to skip empty lines, or check the length of the list returned by line.split() first. for line in result_f: if not line.strip(): continue (name, score) = line.split() For the spaces vs tabs thin...
by Mat
Sat Jun 18, 2011 7:38 am UTC
Forum: Coding
Topic: Coding in Python (Simple probably stupid) help needed.
Replies: 5
Views: 1179

Re: Coding in Python (Simple probably stupid) help needed.

"while" needs to be lowercase.
by Mat
Sat Jun 11, 2011 6:33 pm UTC
Forum: Mathematics
Topic: Is there an intuitive appeal for multiplication of integers?
Replies: 22
Views: 3499

Re: Is there an intuitive appeal for multiplication of integ

how about Coulomb's law: F = - bla * q1 * q2 that is, if you look at some charged spheres some distance apart, the force between them is proportional to both charges. q1 is the charge on the leftmost object, q2 is the charge on the rightmost object, and F is the force on the leftmost object (the for...
by Mat
Wed Jun 08, 2011 4:32 pm UTC
Forum: Mathematics
Topic: Is there an intuitive appeal for multiplication of integers?
Replies: 22
Views: 3499

Re: Is there an intuitive appeal for multiplication of integ

6 * 2 = 12: Gaining 6 dollars twice gets you 12 dollars. -6 * 2 = -12: Gaining two 6 dollar debts leaves you down 12 dollars. 6 * -2 = -12: Losing 6 dollars twice leaves you down 12 dollars. -6 * -2 = 12: Losing two 6 dollar debts means you've gained 12 dollars. This looks like the best example giv...
by Mat
Fri Jun 03, 2011 8:46 am UTC
Forum: Language/Linguistics
Topic: Concise writing
Replies: 23
Views: 4297

Re: Concise writing

Are there any stylistic tendencies and tips you guys can give me to have my writing be more short and concise? Starting with analyzing the above sentence and shortening it would help. D: I'm not much of a writer, but I think the most relevant part of the Orwell article is this: Operators or verbal ...
by Mat
Wed May 25, 2011 6:28 pm UTC
Forum: Food
Topic: Do you rinse your dishes?
Replies: 58
Views: 28302

Re: Do you rinse your dishes?

I didn't realise that it was a british thing to not rinse until reading about it here. My dad used to do it, but I thought he was just incompetent.
by Mat
Fri May 20, 2011 6:04 pm UTC
Forum: Science
Topic: Testing survey (test subjects needed!)
Replies: 11
Views: 1690

Re: Testing survey (test subjects needed!)

Done. Dicussion: Got 10 things correct before running out of time, but I knew it was timed, as I could see the timer. From the above posts it seems like that wasn't the case for everyone. I didn't actually pay attention to the timer however since I didn't know how many questions there w...
by Mat
Thu May 19, 2011 7:01 pm UTC
Forum: Gaming
Topic: GO weiqi igo baduk
Replies: 154
Views: 59305

Re: GO....

Sure, I just added you (I'm crazymat on there).
by Mat
Wed May 18, 2011 8:11 pm UTC
Forum: Gaming
Topic: GO weiqi igo baduk
Replies: 154
Views: 59305

Re: GO....

I'm free about 7 UTC on weekdays or weekends whenever.
by Mat
Wed May 18, 2011 6:20 pm UTC
Forum: Gaming
Topic: GO weiqi igo baduk
Replies: 154
Views: 59305

Re: GO....

http://www.gokgs.com/help/NewRooms.html

if we create a temporary room in social hopefully we can gather enough members for an admin to make it permanent.
by Mat
Wed May 18, 2011 7:41 am UTC
Forum: Gaming
Topic: GO weiqi igo baduk
Replies: 154
Views: 59305

Re: GO....

Sounds good to me. I play on kgs but not often enough. My rank is hovering around 12k at the moment.
by Mat
Mon May 16, 2011 7:34 pm UTC
Forum: Gaming
Topic: GO weiqi igo baduk
Replies: 154
Views: 59305

Re: "Go" Players, some territory questions

1 is black's. Black's outer group has no weaknesses and there is not enough space. There would need to be some weaknesses in blacks wall for those two white stones to become useful. 2 is white for similar reasons. You may be able to take the corner if your opponent gets confused and plays badly, but...
by Mat
Tue May 10, 2011 8:11 am UTC
Forum: General
Topic: Instant Runoff vs. Approval Voting
Replies: 10
Views: 4768

Re: Instant Runoff vs. Approval Voting

Qaanol wrote:Approval voting is simple for voters, as you just need to vote for any candidates you like.

What if I don't like any of them?
by Mat
Sun May 08, 2011 7:01 pm UTC
Forum: News & Articles
Topic: British voters say "no" to AV
Replies: 94
Views: 8071

Re: British voters say "no" to AV

- Elections under AV wouldn't have prevented 2008's expenses scandal. I think we've sufficiently dealt with the goings-on, convicted its prime offenders, organised protocol to make it a non-issue regardless of someone being elected by 30% or 51% of turnout. ??? how does this have anything to do wit...
by Mat
Sat May 07, 2011 11:56 am UTC
Forum: News & Articles
Topic: British voters say "no" to AV
Replies: 94
Views: 8071

Re: British voters say "no" to AV

* It would give more power to parties which aren't Labour or Conservative. (In my mind this is a good thing, and is in fact one of the big reasons I voted Yes, but apparently 68% of voters disagree with me) This. The no campaign basically said that people who don't want one of the top two parties d...
by Mat
Tue Apr 26, 2011 1:52 pm UTC
Forum: Language/Linguistics
Topic: does elegance imply simplicity?
Replies: 5
Views: 2507

Re: does elegance imply simplicity?

I think it's more nuanced than simple = elegant. To me an elegant way of expressing something shows you the essence of an idea with the minimum amount of notation. For example: this video argues that using a new symbol Tau = 2pi makes equations involving pi much more elegant, and I totally agree: ht...
by Mat
Fri Apr 22, 2011 11:33 am UTC
Forum: General
Topic: ITT: We make xkcd slightly worse.
Replies: 8641
Views: 1605637

Re: ITT: We make xkcd slightly worse.

889

Spoiler:
turtles1.PNG
A neatly organised file system? Who wouldn't be?

Spoiler:
allthewaydown.PNG
It's turtles all the way down

Spoiler:
comet.PNG
Yeah, you didn't see that one coming, did you turtle?

Spoiler:
turtles2.PNG
We turtles have a saying to describe situations like this: "fuck. that. shit."

Spoiler:
hungry.PNG
Turtles are for life, not just for christmas
by Mat
Sat Apr 16, 2011 7:26 pm UTC
Forum: Coding
Topic: A compilation of best programming practices ?
Replies: 17
Views: 4056

Re: A compilation of best programming practices ?

If I'm unsure whether something I wrote is good or bad, I ask myself if it is making life better or worse for the people who will have to work with/maintain it. This is very much tied to aesthetics, and also depends on the established coding style of the project. However I think there are still some...
by Mat
Mon Apr 04, 2011 11:59 am UTC
Forum: Movies and TV Shows
Topic: Source Code
Replies: 11
Views: 2362

Re: Source Code

It was a bit ridiculous when they started mentioning "scientific terms" and calling it by the stupid name "Source Code". I didn't really mind that, but honestly - the technical explanation scene should be thrown away completely. It makes absolutely no sense. I don't mind that, I...
by Mat
Wed Mar 23, 2011 9:33 am UTC
Forum: General
Topic: Is giving money to charity worth it?
Replies: 24
Views: 7354

Re: Is giving money to charity worth it?

I have an account on Kiva, and haven't seen a single case where the loan is for opening a business. Most of them are for purchasing new materials for existing groups, and don't appear long term at all. Don't think it fits the fish analogy. Is there really much else that needs to be said about this? ...
by Mat
Fri Mar 18, 2011 9:27 am UTC
Forum: Logic Puzzles
Topic: My 12 year old student and I have been making a puzzle site
Replies: 44
Views: 8251

Re: My 12 year old student and I have been making a puzzle s

How about making answers/hints unavailable for a period after the puzzle is added, and then make the rating system either ignore people who solve it after that, or strongly prefer people who solve puzzles early (you can always have a separate # of puzzles solved statistic as well). if you have lots ...
by Mat
Sat Mar 05, 2011 11:57 am UTC
Forum: General
Topic: ITT: We make xkcd slightly worse.
Replies: 8641
Views: 1605637

Re: ITT: We make xkcd slightly worse.

2x149
Spoiler:
sandwichsw.png
respect, motherfuckers
sandwichsw.png (15.56 KiB) Viewed 6425 times
manners.png
hint: it's not "ubuntu"
manners.png (11.06 KiB) Viewed 6425 times
by Mat
Thu Mar 03, 2011 7:34 pm UTC
Forum: General
Topic: ITT: We make xkcd slightly worse.
Replies: 8641
Views: 1605637

Re: ITT: We make xkcd slightly worse.

859
Spoiler:
sad.png
...in bed
sad.png (11.64 KiB) Viewed 6622 times
by Mat
Wed Mar 02, 2011 7:19 pm UTC
Forum: Religious Wars
Topic: Programming Language Alignment Chart?
Replies: 32
Views: 32091

Re: Programming Language Alignment Chart?

lawful characteristics = strongly typed, straightforward syntax, language follows one paradigm instead of allowing many chaotic characteristics = perl I dig your characterization of Python, but according to the above, maybe it should be lawful since it is strongly typed and has straightforward synt...
by Mat
Tue Mar 01, 2011 9:52 am UTC
Forum: Religious Wars
Topic: Programming Language Alignment Chart?
Replies: 32
Views: 32091

Re: Programming Language Alignment Chart?

Well XML itself isn't a programming language and there's not much you can say about it except for its syntax. Ajax is more a technique, so doesn't count either. If you exclude that I'd go with lawful characteristics = strongly typed, straightforward syntax, language follows one paradigm instead of a...
by Mat
Wed Feb 16, 2011 8:15 pm UTC
Forum: Coding
Topic: Python program for Tech Support Cheat Sheet
Replies: 8
Views: 2043

Re: Python program for Tech Support Cheat Sheet

I think it should track how long you have been running the program instead of prompting the user. That way you don't need the bugfix :) Also, my 2c on the code: maybe try modelling it like a state machine rather than having functions for each state that are all intermingled with each other. e.g. som...
by Mat
Tue Feb 15, 2011 9:03 am UTC
Forum: News & Articles
Topic: Top 10 reasons we should revive the Dark Ages
Replies: 66
Views: 6265

Re: Top 10 reasons we should revive the Dark Ages

And no car crashes either! wow - modern society sure does suck!

At least in the dark ages nobody would have to read bullshit like this. I hope this is meant to be satire. :?
by Mat
Tue Nov 16, 2010 7:44 pm UTC
Forum: Religious Wars
Topic: Am I the only one on here that can't stand Python?
Replies: 184
Views: 33488

Re: Am I the only one on here that can't stand Python?

Good for you, but don't play dumb. If you've ever used the internet, you know you've encountered code that doesn't look like that. What about code on pastebin.com, or wrapped in a pre tag, or in your email inbox, or here on this message board? Since communicating with other programmers is one of th...
by Mat
Mon Oct 25, 2010 7:06 pm UTC
Forum: Coding
Topic: SQL Query from 3 tables with sum()
Replies: 5
Views: 14791

Re: SQL Query from 3 tables with sum()

To mix total sales and sales recent is going to be a bit awkward as they are aggregating the same data in different ways. How about: select e.staff_id, e.location, coalesce(sum(ts.amount),0), coalesce(sum(rs.amount),0), from employee e left outer join sales using staff_id as ts, sales using staff_id...
by Mat
Sat Oct 23, 2010 2:52 pm UTC
Forum: General
Topic: I don't take compliments well. Here's why.
Replies: 64
Views: 8679

Re: I don't take compliments well. Here's why.

King Author, your recent posts read as being quite confrontational. Are you objecting to people challenging your views on this? Why are you so confident that it's a bad idea to be emotionally affected by other people (except for the close relationships you acknowledged earlier)? You seem to be prese...
by Mat
Sat Oct 23, 2010 12:04 pm UTC
Forum: General
Topic: So what do you do when you have a hangover?
Replies: 44
Views: 4302

Re: So what do you do when you have a hangover?

I've been drunk several times but have never been hung over. What's the best way to get hung over (so I can know to avoid it)? It usually takes time, and/or age. Nobody I've known has ever gotten a hangover in their first year or 2 of drinking every weekend or more. Disagree! Hangover acquisition c...
by Mat
Sat Sep 18, 2010 10:04 am UTC
Forum: Language/Linguistics
Topic: How often should you use the word "maybe"?
Replies: 7
Views: 1843

Re: How often should you use the word "maybe"?

I have been accused of using words like "maybe" and "I don't know" too often. I have also noticed other people tend to avoid using them including scientists. I think people should use words like these more often though because there is alot of uncertainty in the world. What do y...
by Mat
Sat Sep 11, 2010 10:38 am UTC
Forum: General
Topic: ITT: We make xkcd slightly worse.
Replies: 8641
Views: 1605637

Re: ITT: We make xkcd slightly worse.

Quantum Sunshine wrote:
The attachment LSD Squirrel.jpg is no longer available

776 | 790

Is there any comic this squirrel can't fit into?

This hypothesis must be tested.

Spoiler:
barrel_cropped_(1).jpg
At times like this it is important to remain optimistic

776 1
by Mat
Wed Sep 08, 2010 7:09 pm UTC
Forum: General
Topic: ITT: We make xkcd slightly worse.
Replies: 8641
Views: 1605637

Re: ITT: We make xkcd slightly worse.

Spoiler:
controlsw.png
The strange thing was that it was an animal study.
controlsw.png (20.11 KiB) Viewed 5310 times

580 528 790
by Mat
Sun Sep 05, 2010 7:38 am UTC
Forum: News & Articles
Topic: Christian claims we are morally obligated to believe in God.
Replies: 72
Views: 8691

Re: Christian claims we are morally obligated to believe in

A common belief is that it is immoral to believe that which is false; if one also believes that God exists, it seems natural to suggest that not having that belief is immoral. Apparently it is natural among such believers to engage in shabby logic, conflating believing a falsehood in the first case...
by Mat
Tue Jul 27, 2010 9:11 pm UTC
Forum: Coding
Topic: A Big Ask
Replies: 34
Views: 4869

Re: A Big Ask

Some good advice here. Your latest revision is much better than the initial version, but I would still suggest looking at how you can break the game function down into small distinct tasks. Even if you are not currently reusing a block of code more than once, having separate functions makes your pro...

Go to advanced search