Search found 252 matches

by johnie104
Sun Dec 06, 2009 12:29 pm UTC
Forum: Movies and TV Shows
Topic: Heroes! (No spoiler tags for episodes already aired in US)
Replies: 2377
Views: 159823

Re: Heroes! (No spoiler tags for episodes already aired in US)

Just a question, how does Peter steal the Haitian's power when his power is supposed to be blocked?

Well, yay for plot consistency...
by johnie104
Tue Oct 06, 2009 7:45 pm UTC
Forum: Mathematics
Topic: decimals of x matching the decimals of 1/x
Replies: 3
Views: 650

Re: decimals of x matching the decimals of 1/x

For a number x between 10 and 11, what is floor(x)? For a number between 10 and 11, what is floor(1/x)? Do you understand the equation you asked wolfram alpha? Wow, why didn't I think of that... thanks During the competition I didn't even think of actually using the floor function. But in wolfram f...
by johnie104
Tue Oct 06, 2009 6:44 pm UTC
Forum: Mathematics
Topic: decimals of x matching the decimals of 1/x
Replies: 3
Views: 650

decimals of x matching the decimals of 1/x

In a math competition I entered, this was one problem that I had no clue as how to approach it: Find all x between 10 and 11 for which the decimals of x are the same as the decimals of 1/x Wolfram Alpha gives me an answer, but I don't understand how it got there. Note that we had to do this problem ...
by johnie104
Sun Sep 27, 2009 7:06 pm UTC
Forum: Coding
Topic: Some python questions about sockets and threading
Replies: 5
Views: 870

Re: Some python questions about sockets and threading

thoughtfully wrote:Send a broadcast message, which your servers will respond to.


Thanks, that really put me in the right direction.
by johnie104
Sun Sep 27, 2009 11:22 am UTC
Forum: Coding
Topic: Some python questions about sockets and threading
Replies: 5
Views: 870

Re: Some python questions about sockets and threading

Ok, after some googling I found nothing about using the same socket threaded to read and write, so I'm just going to use 2 sockets to read and write. I also found a list of all the python bytecode instructions [ linky ]. Reading and writing to variables, appending to lists, creating lists/tuples and...
by johnie104
Sat Sep 26, 2009 2:27 pm UTC
Forum: Coding
Topic: Some python questions about sockets and threading
Replies: 5
Views: 870

Some python questions about sockets and threading

Hi there, I've been working on an instant messenger in python for educational purposes and it is actually working (sort of), but I have some questions about threading and using sockets in python. Can a socket read and write at the same time? That is, if I have a threaded function that continuously r...
by johnie104
Mon Sep 14, 2009 5:45 pm UTC
Forum: Music
Topic: help me start playing the guitar
Replies: 11
Views: 2090

Re: help me start playing the guitar

Thanks for the responses everyone. I think I'm going with a right-handed acoustic guitar. There is a small music shop close to me and the 1 employee that works there probably has enough time to help me pick something that suits me. I'll also ask her if she knows someone close that teaches guitar, th...
by johnie104
Sat Sep 12, 2009 10:21 am UTC
Forum: Music
Topic: help me start playing the guitar
Replies: 11
Views: 2090

help me start playing the guitar

Hey, I would like to start playing the guitar, but I have some questions about what I should do: 1. I'm left handed, should I get a reversed guitar then? I think it would be easier to learn if I bought a right-handed guitar as the most tutorials on sites like youtube have a right-handed guitar. This...
by johnie104
Wed Jul 15, 2009 9:15 am UTC
Forum: Coding
Topic: [Python] finding the other roots of a calculation
Replies: 7
Views: 1048

Re: [Python] finding the other roots of a calculation

Thanks, I guess I'm just of luck here
by johnie104
Tue Jul 14, 2009 8:52 am UTC
Forum: Coding
Topic: [Python] finding the other roots of a calculation
Replies: 7
Views: 1048

Re: [Python] finding the other roots of a calculation

But what if I don't know the numerator and denominator, but just the floating point value?
I can reconstruct the fraction using a semi-brute force method, but that isn't very fast. Is there a fast way to get the numerator and denominator that approximate the floating point value?
by johnie104
Mon Jul 13, 2009 8:09 pm UTC
Forum: Coding
Topic: [Python] finding the other roots of a calculation
Replies: 7
Views: 1048

[Python] finding the other roots of a calculation

Sorry for the vague title, but I didn't know how to call it otherwise. Anyway, take for example the calculation (-5)^(2/3) (or as expressed in python 'complex(-5)**(2.0/3)'). In python this returns (-1.4620088691064324+2.5322736424086587j) which is a valid root, but my calculator returns 2.924017738...
by johnie104
Sat Jul 11, 2009 5:45 pm UTC
Forum: Coding
Topic: Favourite Python Module
Replies: 13
Views: 1971

Re: Favourite Python Module

Antigravity of course...
by johnie104
Sat Jun 06, 2009 3:36 pm UTC
Forum: Coding
Topic: [PYTHON][HELP] Sinus function for the decimal.Decimal class.
Replies: 5
Views: 849

Re: [PYTHON][HELP] Sinus function for the decimal.Decimal class.

Correct me if I'm wrong, but shouldn't
dec /= 180 * PI
be
dec/=180
dec*=pi
by johnie104
Sat Apr 25, 2009 9:44 am UTC
Forum: Coding
Topic: python program ideas for beginners?
Replies: 10
Views: 9864

Re: python program ideas for beginners?

Try to create a sudoku-solver. That is what my first bigger project in python was.
You'll need to use classes, exceptions, do file reading, maybe accepting/parsing user input or using command line parameters.

Or you could do some ProjectEuler problems as said by evilbeanfriend. Those are fun too.
by johnie104
Tue Apr 21, 2009 9:15 am UTC
Forum: Coding
Topic: [python] Accessing variables outside the module scope
Replies: 8
Views: 907

Re: [python] Accessing variables outside the module scope

Thanks for the help everyone.
I have fixed this problem by putting the functionality used in multiple modules in a seperate module. This looks cleaner and works good enough for me.

Execfile indeed looks dirty, but the sys.modules thing is good to know.
Again, thanks for the help.
by johnie104
Mon Apr 13, 2009 1:15 pm UTC
Forum: Coding
Topic: [python] Accessing variables outside the module scope
Replies: 8
Views: 907

Re: [python] Accessing variables outside the module scope

Okay, I did this: #in a.py foo=5 import b foo=8 #in b.py import a print a.foo When I call a.py it prints 8. When I call b.py it prints a 5 and an 8. So it doesn't error anymore, but I'm not sure I understand what is actually happening. Why is that a module doesn't look beyond its own scope anyway? I...
by johnie104
Mon Apr 13, 2009 10:28 am UTC
Forum: Coding
Topic: [python] Accessing variables outside the module scope
Replies: 8
Views: 907

[python] Accessing variables outside the module scope

Hi, I find it hard to exactly explain what I mean, so here is an example: #in a.py foo=5 import b #in b.py print foo This gives a NameError because foo isn't defined. Is there a way to acces variables/functions/etc. that are defined in a 'higher' module (just like is possible in, for example, C++)? ...
by johnie104
Wed Mar 04, 2009 9:19 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0551: "Etch-a-Sketch"
Replies: 124
Views: 26152

Re: "Etch-A-Sketch" Discussion

Wow, got here fast

Great comic, the girl looked kind of creepy though
by johnie104
Thu Feb 26, 2009 10:02 pm UTC
Forum: General
Topic: Show the world your desktop! [Mommy, what's 56K?]
Replies: 2356
Views: 444014

Re: Show the world your desktop! [Killing 56K since January]

My 'awesome' desktop:

Spoiler:
Naamloos.png
Naamloos.png (724.31 KiB) Viewed 7512 times
by johnie104
Thu Feb 19, 2009 9:43 pm UTC
Forum: The Help Desk
Topic: Installing XP on a USB stick (some questions)
Replies: 7
Views: 865

Re: Installing XP on a USB stick (some questions)

Thanks, qemu does exactly what I needed.
I tried it with Ubuntu 8.04 but it was just to sloooooooooow (Ian was right). So I tried it with something less demanding... Windows 98 seems to be running just fine.
by johnie104
Wed Feb 18, 2009 9:42 am UTC
Forum: The Help Desk
Topic: Installing XP on a USB stick (some questions)
Replies: 7
Views: 865

Re: Installing XP on a USB stick (some questions)

If I continue with this I will probably use this . The article specifically states that it is a bootable XP device. I found another (old, 2006) article that kind of scares me: http://www.cnet.com.au/software/operatingsystems/0,239029541,339271777-1,00.htm It states that you have to format the USB to...
by johnie104
Tue Feb 17, 2009 2:26 pm UTC
Forum: The Help Desk
Topic: Installing XP on a USB stick (some questions)
Replies: 7
Views: 865

Installing XP on a USB stick (some questions)

I would like to install XP on a USB stick. Using this guide that shouldn't be too hard. But I have some other questions about it that I would like to have answered before I begin with this. btw, I intend to be using it to carry around some usefull programs and stuff like python and Dev-C++ 1. Should...
by johnie104
Sat Jan 31, 2009 10:24 pm UTC
Forum: Music
Topic: Perfect Moments In Music
Replies: 396
Views: 204115

Re: Perfect Moments In Music

I can't believe the solo in November Rain by Guns 'n' Roses isn't mentioned yet. Oh, and One by Metallica. The build up to 'Darkness imprisoning me'...' and what follows is pure genius. And another one: Soldiers of the wasteland - Dragonforce . The whole song is great, but the instrumental part from...
by johnie104
Sun Jan 11, 2009 2:25 pm UTC
Forum: The Help Desk
Topic: Adding files to a windows bootable dvd
Replies: 4
Views: 693

Adding files to a windows bootable dvd

A quick question: I have made a 'VistaLite' .iso file using vLite (which is 1.2GB). I also have a folder of around 3GB containing programs I want to install along with my computer.
Will it mess up the bootable DVD if I simply copy the folder containing the programs to the .iso file and then burn it?
by johnie104
Sat Jan 03, 2009 8:15 pm UTC
Forum: General
Topic: Can iPod predict the future?
Replies: 22
Views: 2176

Re: Can iPod predict the future?

#8 - Them Girls
#9 - For my people

Ehmm, no I don't know what that means.

Another try:
#8 - Beautiful stranger
#9 - Open your heart

...
by johnie104
Tue Dec 30, 2008 9:46 pm UTC
Forum: The Help Desk
Topic: Creating a new partition without formatting (Vista)
Replies: 15
Views: 1849

Creating a new partition without formatting (Vista)

I would like to create a new partition in Windows Vista without removing or formatting the data that's already on it. It's a 500GB hard-drive that is already split into 2 partitions. One of 490GB and one of 10GB. The 490GB partition has 180GB of free space, but when I try to make the partition small...
by johnie104
Sat Dec 13, 2008 8:32 pm UTC
Forum: Fit Club
Topic: Learning to handstand
Replies: 6
Views: 1456

Re: Learning to handstand

Thanks for the replies. I have gained some strength so I can get back on my feet quite slowly and nice. I can now kick off hard enough to not instantly fall back to the ground or hitting the wall. I can usually hold that position for about 2 to 3 seconds before I start falling back towards my feet o...
by johnie104
Wed Nov 26, 2008 9:25 pm UTC
Forum: School
Topic: Theories on education
Replies: 34
Views: 3265

Re: Theories on education

jmorgan3 wrote:You may find Lockheart's Lament relevant.

Very nice article. I'll try to get my math teacher to read that.
by johnie104
Sun Nov 23, 2008 3:31 pm UTC
Forum: Coding
Topic: Refreshing the desktop picture
Replies: 5
Views: 1023

Re: Refreshing the desktop picture

Thanks guys. I got it working now. In case anyone wondered what code I used: #include <string.h> #include <windows.h> using namespace std; int main(int argc, char **argv) { char str[512]; strcpy(str,argv[1]); for (int i=2;i<argc;i++) { strcat(str," "); strcat(str, argv[i]); } return System...
by johnie104
Sat Nov 22, 2008 9:24 pm UTC
Forum: Coding
Topic: Refreshing the desktop picture
Replies: 5
Views: 1023

Refreshing the desktop picture

I tried making a script that changes your desktop picture every couple of minutes, but failed. When I edit the HKEY_CURRENT_USER\Control Panel\Desktop\WallPaper key it only changes the background when I reboot. So I googled a bit and found I have to call "%windir%\System32\RUNDLL32.EXE user32.d...
by johnie104
Fri Nov 21, 2008 1:24 pm UTC
Forum: Books
Topic: House of omgwhyamIturningmybook Leaves.
Replies: 239
Views: 61409

Re: House of omgwhyamIturningmybook Leaves.

Haven't finished the book yet (I'm in the middle of chapter 9), but there is something I noticed. In chapter 8 (about s.o.s's) there are some black and outlined dots between paragraphs. Has anybody tried to see if those dots make a morse-coded message? I would want to post the dots, but I have a tra...
by johnie104
Sun Nov 16, 2008 9:13 pm UTC
Forum: Forum Games
Topic: Attack and Defend
Replies: 2904
Views: 288878

Re: Attack and Defend

I die, but reincarnate and feel better then ever.

I stare at the NP making him feel very very uncomfortable.
by johnie104
Sun Nov 16, 2008 9:05 pm UTC
Forum: Forum Games
Topic: Word Association Game 2: Electric Boogaloo
Replies: 12812
Views: 1071949

Re: Word Association Game 2: Electric Boogaloo

reburgam
by johnie104
Fri Nov 14, 2008 10:11 pm UTC
Forum: Gaming
Topic: Left 4 fun (and Zombie Panic Source)
Replies: 804
Views: 55107

Re: Left 4 fun (and Zombie Panic Source)

Phen wrote:We solved it using Hamachi.


Could you elaborate? As far as I could see there was no LAN-option in l4d.
I'll try the console thingies.
by johnie104
Fri Nov 14, 2008 3:44 pm UTC
Forum: Gaming
Topic: Left 4 fun (and Zombie Panic Source)
Replies: 804
Views: 55107

Re: Left 4 fun (and Zombie Panic Source)

Is anybody else having a hard time connecting to a server? I think I can only join 1 in 10 games. I have no problems with TF2 or any other online game, but this doesn't seem to work right.
by johnie104
Sun Nov 09, 2008 8:21 pm UTC
Forum: Books
Topic: House of omgwhyamIturningmybook Leaves.
Replies: 239
Views: 61409

Re: House of omgwhyamIturningmybook Leaves.

My local library doesn't have the original English version. Would I be missing out on something if I read a translated version?
by johnie104
Sun Nov 09, 2008 8:02 pm UTC
Forum: Forum Games
Topic: Word Association Game 2: Electric Boogaloo
Replies: 12812
Views: 1071949

Re: Word Association Game 2: Electric Boogaloo

God
by johnie104
Fri Oct 31, 2008 3:13 pm UTC
Forum: Music
Topic: Favorite Movie Score Themes
Replies: 8
Views: 1369

Re: Favorite Movie Score Themes

Barbarian Horde by Hans Zimmer for Gladiator.
It's probably the most epic song known to men.
by johnie104
Mon Oct 27, 2008 9:33 pm UTC
Forum: General
Topic: Swears, curses, oaths
Replies: 101
Views: 8533

Re: Swears, curses, oaths

existential_elevator wrote:Ishitbadger

Try wankbadger (on a stick).

Thundercunt made me lol.

Ii's also enjoyable to call people Penis. It's really unexpected.

Just a question: I'm not raised in an english-speaking country so could anyone tell me exactly why 'cunt' is so offensive.
by johnie104
Mon Oct 27, 2008 1:11 pm UTC
Forum: Movies and TV Shows
Topic: Movies with a meaning
Replies: 44
Views: 6074

Re: Movies with a meaning

A lot of great movies have already been mentioned, but I was missing this one:
Le fabeloux [sic?] destain de Ameliè Poulain. It makes you believe the world is wonderfull.

Donnie Darko and The Shawshank Redemption deserve a second mention.

Go to advanced search