Search found 86 matches

by HappySmileMan
Mon Jan 05, 2009 5:29 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0526: "Converting to Metric"
Replies: 429
Views: 90722

Re: Converting to Metric

Came here to mention the 3L for 2L bottle and that a soda can is 330ml, not 250ml... But was beaten on both counts...

I actually would've been first to mention the soda can if I didn't have to log in
by HappySmileMan
Tue Nov 11, 2008 9:33 pm UTC
Forum: Mathematics
Topic: Verification of these sums?
Replies: 4
Views: 892

Re: Verification of these sums?

This in particular: 1449kW energy over 2 and a half minutes kW isn't energy, it's power. The power required isn't constant. The force will be constant, but the distance it travels per unit time goes up. Here is an additional problem to solve: what is the peak power output required for the launcher?...
by HappySmileMan
Tue Nov 11, 2008 8:49 pm UTC
Forum: Mathematics
Topic: Verification of these sums?
Replies: 4
Views: 892

Re: Verification of these sums?

How to do your own double checking! <snip> Basically, you derived the equations. Now take the results of what you derived, and solve for your original parameters, ideally using different routes. Hmm never really thought of checking it like that, doing it now and so far it all seems to be working ou...
by HappySmileMan
Tue Nov 11, 2008 7:41 pm UTC
Forum: Mathematics
Topic: Verification of these sums?
Replies: 4
Views: 892

Verification of these sums?

Hey just wanted to ask if anyone can verify these sums I've done to do with projectiles. A 181KG projectile is launched at 45 degrees after being accelerated with constant acceleration for 120KM, it travels 250KM before landing. Calculate: a) Initial Velocity b) Time taken until landing. c) Energy r...
by HappySmileMan
Thu May 22, 2008 9:05 pm UTC
Forum: Religious Wars
Topic: x86 assembly syntax
Replies: 38
Views: 21988

Re: x86 assembly syntax

I did forget to mention the main failing of Intel's syntax: hexadecimal constants. You write a hexadecimal number and append an h to it: FFFFh is an example. The big problem with this is that it's non-trivial to differentiate between hexadecimal constants and labels. It's no problem to write a lexe...
by HappySmileMan
Fri May 02, 2008 5:09 pm UTC
Forum: Religious Wars
Topic: Subsilver versus Prosilver
Replies: 57
Views: 15654

Re: Subsilver versus Prosilver

I'm using prosilver with avatars on left... I think the space given for avatars and user info is too wide though, there's some empty space to the right of the avatars and stuff, I don't think it happened in subsilver (maybe I just didn't notice it)
by HappySmileMan
Sat Mar 22, 2008 2:07 am UTC
Forum: Computer Science
Topic: Resources for learning the Math and Science behind computing
Replies: 45
Views: 98811

Re: Possibly a very stupid question

Thank you guys, bookmarked everything, will probably start on Monday (Social life tomorrow, social life/website designing Sunday, but after that real life shall not interfere with my nerdiness for a few weeks probably). Incidentally there needs to be a wiki for comp. sci. and related areas, where it...
by HappySmileMan
Fri Mar 21, 2008 9:05 pm UTC
Forum: Computer Science
Topic: Resources for learning the Math and Science behind computing
Replies: 45
Views: 98811

Re: Possibly a very stupid question

In the meantime, the Dictionary of Algorithms and Data Structures comes to mind as a way to orient your self on algorithms which seems a primary focus of your interest. Programming Languages: Application and Interpretation by Shriram Krishnamurthi is a good online and free book on Programing Langua...
by HappySmileMan
Fri Mar 21, 2008 8:18 pm UTC
Forum: Computer Science
Topic: Resources for learning the Math and Science behind computing
Replies: 45
Views: 98811

Re: Possibly a very stupid question

Hum, some background might help. What do you know and what do you want to know? Also, post questions here and we can try to help or point you to the right place. I know very little, I can program C++, have made some programs, but know pretty much nothing about the actualy computer science behind th...
by HappySmileMan
Fri Mar 21, 2008 8:10 pm UTC
Forum: Computer Science
Topic: Resources for learning the Math and Science behind computing
Replies: 45
Views: 98811

Resources for learning the Math and Science behind computing

Are there any good all purpose sites for comp. sci. learning, I was thinking of sites like wikis or stuff like that that would contain explanations, examples, uses etc. of many things to do with comp. sci. (like different programming styles, stacks, queues, stuff like that). I'm currently just in se...
by HappySmileMan
Fri Mar 21, 2008 7:54 pm UTC
Forum: Coding
Topic: Summer of Code 2008
Replies: 8
Views: 1973

Re: Summer of Code 2008

15 so can't do it AFAIK, but I just got my t-shirt, stickers and certificate from the Highly-open participation contest.

I updated the Python3K documentation removing all mentions of long integer (since all integers are long integers in Python3K).
by HappySmileMan
Mon Mar 10, 2008 6:20 pm UTC
Forum: Serious Business
Topic: Scientology: Really a Religion?
Replies: 82
Views: 12058

Re: Scientology: Really a Religion?

The protests are against the Church of Scientology, not Scientology itself. Scientology is just the beliefs and practises of these people, the Church of Scientology are an organisation responsible for countless crimes, it's possible to be a Scientologist but not be a member of the CoS (I believe it'...
by HappySmileMan
Tue Feb 26, 2008 12:00 am UTC
Forum: Coding
Topic: First thingy in Python
Replies: 13
Views: 2326

Re: First thingy in Python

For some reason, it doesn't work. :( "TypeError: cannot concatenate 'str' and 'int' objects" Also, i'm going to sleep now, i'll check this thread tomorrow. print '\nThe age of your date should at minimum be:' + str(minage) That'll convert minage to a string and then join it to the string ...
by HappySmileMan
Mon Feb 25, 2008 11:49 pm UTC
Forum: Coding
Topic: First thingy in Python
Replies: 13
Views: 2326

Re: First thingy in Python

As the title implies, this is my first little thingy i've written in Python wich isn't a example in the book i'm learning from. # Creepiness rule minimum dating age calculator # Based on a xkcd comic - http://xkcd.com/314/ age = input("How old are you?\n") minage = age / 2 + 7 print '\nTh...
by HappySmileMan
Mon Feb 25, 2008 10:12 pm UTC
Forum: Coding
Topic: Newfound Computer Insecurity
Replies: 12
Views: 3578

Re: Newfound Computer Insecurity

I feel the same, I can code C++ but can't handle any more than a few source files, I have a feeling I could do much better, since I understand what's going on and stuff, I can just never think of any ideas that are both worthwhile, good for learning and that I'm interested in.
by HappySmileMan
Fri Feb 22, 2008 9:16 pm UTC
Forum: Coding
Topic: Sudoku
Replies: 23
Views: 4396

Re: Sudoku

+-----------------------+ | 8 5 . | . . 2 | 4 . . | | 7 2 . | . . . | . . 9 | | . . 4 | . . . | . . . | |-----------------------| | . . . | 1 . 7 | . . 2 | | 3 . 5 | . . . | 9 . . | | . 4 . | . . . | . . . | |-----------------------| | . . . | . 8 . | . 7 . | | . 1 7 | . . . | . . . | | . . . | . 3...
by HappySmileMan
Fri Feb 22, 2008 12:10 am UTC
Forum: Coding
Topic: Sudoku
Replies: 23
Views: 4396

Re: Sudoku

As far as I can tell, neither of those functions work... the first one will trigger on any arrangement where the total of all the rows is 45, such as a grid of 81 5s, and the second doesn't check individual rows, just for the frequency of numbers - so a grid composed of a column full of 1s, a colum...
by HappySmileMan
Thu Feb 21, 2008 11:34 pm UTC
Forum: Coding
Topic: Sudoku
Replies: 23
Views: 4396

Re: Sudoku

What's with the elaborate "isDone()" functions... Mine is: bool Solver::isDone() { int count[9]; for (int i=0; i<9; ++i) { for (int j=0; j<9; ++j) { count[(board[i][j] - 1)]++; for (int k=0; k<9; ++k) { if (count[k] != 9) { return false; } } ...
by HappySmileMan
Wed Feb 20, 2008 10:12 pm UTC
Forum: Coding
Topic: C++0x
Replies: 18
Views: 4791

Re: C++0x

I understand and would find useful Modules, Active (The threading thing) and constexpr, everything else seems fairly complicated to me, though I am tired.
by HappySmileMan
Wed Feb 20, 2008 9:35 pm UTC
Forum: Coding
Topic: Oh me yarm Win32API =(
Replies: 14
Views: 2566

Re: Oh me yarm Win32API =(

Linux programing has always seamed way easier than Windows programing to me, especially once you start making GUIs. Agreed, but of course you can use GTK and QT on Windows as well, with some effort (that is, it might require fucking around with your IDE at first, not that it'd require more effort t...
by HappySmileMan
Tue Feb 19, 2008 12:53 am UTC
Forum: Coding
Topic: Oh me yarm Win32API =(
Replies: 14
Views: 2566

Re: Oh me yarm Win32API =(

I'd second QT, however I'm posting this from a KDE desktop, so I don't know how well it plays on Windows. It's far easier to program the GUI than using the winAPI and gets the job done fine, it also has network classes, XML classes and wrappers for OpenGL and stuff, so it's well able to handle most ...
by HappySmileMan
Tue Feb 12, 2008 6:04 pm UTC
Forum: Coding
Topic: Getting Malware
Replies: 10
Views: 1727

Re: Getting Malware

Just curious ... Are you sure that it's on their end? My ISP does it through custom firmware on their modems, and restoring the factory firmware is trivial, as long as you figure out what IP they set the modem to. I've heard that it's a little tricky to portblock on the ISP's end, so this is common...
by HappySmileMan
Mon Feb 11, 2008 9:53 pm UTC
Forum: Coding
Topic: Getting Malware
Replies: 10
Views: 1727

Re: Getting Malware

Or just placing it onto your comp from knowing your IP? Not if you have a router or a firewall. Of course, if you open ports in your router/firewall unwisely, then the possibility arises again. It is very important to have a router or firewall; you WILL get nailed if you don't. Anything that can be...
by HappySmileMan
Fri Feb 08, 2008 9:06 pm UTC
Forum: Coding
Topic: C GUIs in Linux
Replies: 12
Views: 1937

Re: C GUIs in Linux

Thanks! I'm really glad I asked now...SDL looks somewhat easier to learn. But I only know basic C, no opengl. SDL looks easy to learn. But I don't know OpenGL, only basic C. And OpenGL seems to be needed for SDL, unless I'm mistaken No it's not AFAIK, you only need it if you want accelerated 3D ren...
by HappySmileMan
Sun Jan 20, 2008 10:17 pm UTC
Forum: Coding
Topic: Braindead Code
Replies: 98
Views: 10403

Re: Braindead Code

I just wrote this #include"ios" main(){char*d=" of hamaji",a[]=" shinichiroes",*f=" on the wall";for(int i=99;i;){printf("%d%s%s%s, %d%s%s.\n",i,a,d,f,i,a,d);--i;if(i<2)a[11]=0;i?printf("Take one down and pass it around, %d%s%s%s.\n\n",i,a,...
by HappySmileMan
Sun Jan 13, 2008 12:21 am UTC
Forum: General
Topic: Our unit of pride
Replies: 18
Views: 1871

Re: Our unit of pride

Hello, M e and my friend (or my friend and I for you grammatical types) have quite randomly decided to create a unit to measure pride. W e have called the unit a Pridron (abbreviation Pb). W e are currently working on devising an equation to work out an accurate measurement of pride. I f anyone wou...
by HappySmileMan
Sun Jan 13, 2008 12:17 am UTC
Forum: Coding
Topic: Bool pointer to an array help C++
Replies: 29
Views: 5836

Re: Bool pointer to an array help C++

The program was like a 70 line implementation of "Conway's game of life" because I was bored and saw it while here. I'm pretty sure a multi-dimensional array of bools is fine for this. Though std::swap() is interesting.
by HappySmileMan
Sat Jan 12, 2008 1:53 am UTC
Forum: Coding
Topic: Bool pointer to an array help C++
Replies: 29
Views: 5836

Re: Bool pointer to an array help C++

I don't think you need to have the bool* you just need bool active[8][8]. Needed to be able to swap around what active and inactive referred to, using the temp pointer for swapping, I think that makes sense anyway. I got it working anyway... Turning out I was googling for "pointer to multi-dim...
by HappySmileMan
Sat Jan 12, 2008 12:22 am UTC
Forum: Coding
Topic: Bool pointer to an array help C++
Replies: 29
Views: 5836

Bool pointer to an array help C++

I'm in C++ and I'm trying to do this: bool **active, **inactive, **temp; active = new bool[8][8]; inactive = new bool[8][8]; But I get the errors /home/paul/GoL/src/gol.cpp:47: error: cannot convert 'bool (*)[8]' to 'bool**' in assignment /home/paul/GoL/src/gol.cpp:48: error: cannot convert 'bool (*...
by HappySmileMan
Thu Jan 03, 2008 6:24 pm UTC
Forum: Forum Games
Topic: Worst Things to Shout Out During Sex
Replies: 747
Views: 93931

Re: Worst Things to Shout Out During Sex

simo wrote:My girlfriend always got angry for saying this during sex...


How many times dd you say it?

Also... "BANG! BANG! BANG!"
by HappySmileMan
Sat Dec 29, 2007 8:43 pm UTC
Forum: Religious Wars
Topic: To scan or not to scan?
Replies: 50
Views: 11290

Re: To scan or not to scan?

I use Linux so i don't use anti-virus...
Anyone capable of running something with root privileges without my knowledge probably couldn't be stopped by AV anyway.
by HappySmileMan
Wed Dec 26, 2007 10:10 pm UTC
Forum: Coding
Topic: Networking in C++?
Replies: 24
Views: 2617

Re: Networking in C++?

google says... http://www.gnu.org/software/commoncpp/docs/refman/html/class_t_c_p_stream.html Might have to look into this, though I would probably just go with QNetwork (part of QT), I'm not too worried about finding out how to do it, I'm really just wondering why they didn't make streaming with n...
by HappySmileMan
Wed Dec 26, 2007 9:40 pm UTC
Forum: Coding
Topic: Networking in C++?
Replies: 24
Views: 2617

Networking in C++?

I've been using C++ for a good while now, and I've always wanted to know why you can use streams for input/output to the console, and streams for input/output to files but there's no built-in way (AFAIK) to use streams for network I/O.

Is there any good reason for this?
by HappySmileMan
Wed Dec 26, 2007 6:52 pm UTC
Forum: Religious Wars
Topic: HD vs Blu-Ray?
Replies: 54
Views: 10884

Re: HD vs Blu-Ray?

I really don't get the Sony is pure evil remark. Call me stupid, but what actually makes them PURE EVIL . I could understand, if say, Blu-ray discs were made from the souls of the unborn, but thats just not the case (I hope). Please enlighten me. Exactly what I was thinking, I mean maybe they're a ...
by HappySmileMan
Wed Dec 19, 2007 9:48 pm UTC
Forum: Religious Wars
Topic: Base 12 kicks all your asses
Replies: 88
Views: 23967

Re: Base 12 kicks all your asses

Hex forever and always. Period. There's nothing better. Um, no. There's no advantage of 16 over 2, except that it looks a bit more normal to people who are used to base 10. Much more easy for mental arithmetic, Since in base16 you add two digits for each 8 in binary, also saves space and time when ...
by HappySmileMan
Mon Dec 17, 2007 12:02 am UTC
Forum: Religious Wars
Topic: ls vs. ls -l
Replies: 33
Views: 5677

Re: ls vs. ls -l

Dingbats wrote:I use ls normally, and ls -l when I need to know the permissions/sizes/etc of stuff.
by HappySmileMan
Thu Dec 13, 2007 10:17 pm UTC
Forum: The Help Desk
Topic: Virus problems
Replies: 5
Views: 1913

Re: Virus problems

Tried it, but for reasons I can't go into I wouldn't be able to install it. Try google for a description of the virus and that it spreads through MSN, you might be able to get filenames it uses and registry entries... then manually remove it? Also is the first part of your sig Irish? Looks very muc...
by HappySmileMan
Thu Dec 13, 2007 6:50 pm UTC
Forum: Religious Wars
Topic: Kilobyte or Kibibyte as standard?
Replies: 46
Views: 11382

Kilobyte or Kibibyte as standard?

Well basically, there are two units that are now used to measure memory on computers, the Kilobyte (kB), which is now 10 3 , and the Kibibyte (KiB), which is the new name for 2 10 . The advantage of powers of 2 (1KiB = 2 10 ) is of course that since computers on the hardware level deal with binary n...
by HappySmileMan
Wed Dec 12, 2007 9:31 pm UTC
Forum: Coding
Topic: Which method for a mathematically defined constant?
Replies: 14
Views: 2021

Re: Which is better/more desirable?

log b (X) = (log k (X)) / (log k (b)) Where b = Base you are trying to get (2 in this case) and k = any other base (usually 10 since this is default for most things). So you'd use: CONST2 = log(CONST1/3) / log(2) I know this wasn't directly asked, but I finally found maths I could actually do on XKCD.
by HappySmileMan
Mon Dec 10, 2007 6:44 pm UTC
Forum: Coding
Topic: Learning QT
Replies: 2
Views: 1069

Re: Learning QT

I don't even know what a wire frame render is, but I could make it plot some crappy graphs based on a Quadratic function :P

Go to advanced search