Search found 86 matches

by HappySmileMan
Sun Dec 09, 2007 11:44 pm UTC
Forum: Coding
Topic: Learning QT
Replies: 2
Views: 1087

Learning QT

Hey I want to learn to make GUIs with QT, I'm on Linux running KDE, I have the right libraries and KDevelop and got through a couple of crappy tutorials, so I just need ideas on what to make for practise, and to get it to stay in my head. Anyone have any ideas for very basic GUI programs, it'll be d...
by HappySmileMan
Sun Dec 09, 2007 5:30 pm UTC
Forum: Religious Wars
Topic: Firefox versus Emacs
Replies: 33
Views: 9032

Re: Firefox versus Emacs

Endless Mike wrote:I agree, but Photoshop is way better than both of them. Neither of those are Creative Suites.


I'm pretty sure emacs has a mode for that.

(who said that first, it applies to EVERYTHING!)
by HappySmileMan
Sun Dec 09, 2007 5:24 pm UTC
Forum: Coding
Topic: In lieu of the latest comic...
Replies: 9
Views: 1875

Re: In lieu of the latest comic...

EDIT: A bit more information for you to absorb: If you just write Python in a text file then you can run it by calling it via the python interpreter i.e. 'python filename.py', however if you want to run it standalone as './filename.py' then you need to include the line '#!/usr/bin/env python' at th...
by HappySmileMan
Sat Dec 08, 2007 12:55 am UTC
Forum: Forum Games
Topic: Corrupt-a-wish
Replies: 26096
Views: 2563132

Re: Corrupt-a-wish

Granted, but it's attached to the other half, which is too small for you.

I wish that there were a lot more high-quality (AKA professionally made) games for Linux
by HappySmileMan
Thu Dec 06, 2007 6:29 pm UTC
Forum: Religious Wars
Topic: Filesharing: Inalienable right or punishable by death?
Replies: 158
Views: 19664

Re: Filesharing: Inalienable right or punishable by death?

Anpheus wrote:Moving these bits around is ILLEGAL! I'll sue!

Just so you know there is a copyright on this post.


Am I stealing yet?
by HappySmileMan
Wed Dec 05, 2007 9:29 pm UTC
Forum: Religious Wars
Topic: Browsers
Replies: 187
Views: 37673

Re: Browsers

I use Opera, but tend to have Firefox for anything requiring Java or Flash, since for some reason plugin areas have a tendency to just randomly grey out.
by HappySmileMan
Wed Dec 05, 2007 9:24 pm UTC
Forum: Religious Wars
Topic: Distro Whores...I mean Distro Wars!
Replies: 246
Views: 50180

Re: Distro Whores...I mean Distro Wars!

zenten wrote:I thought you could use portage to install binaries.


Not for most things, but for large programs you can, (and obviously for non-open-source programs). You cal install Binaries of Firefox and OpenOffice, and I think the DEs
by HappySmileMan
Wed Dec 05, 2007 6:13 pm UTC
Forum: Religious Wars
Topic: Distro Whores...I mean Distro Wars!
Replies: 246
Views: 50180

Re: Distro Whores...I mean Distro Wars!

I run Gentoo (as I've stated before in this thread I think), and while most programs run the same speed, Compiz-Fusion goes much faster on Gentoo than Ubuntu, and the same for watching videos. So obviously there must be some advantage of Gentoo or compiling in these cases that doesn't seem to apply ...
by HappySmileMan
Wed Dec 05, 2007 5:35 pm UTC
Forum: Religious Wars
Topic: Best package management frontend
Replies: 22
Views: 4335

Re: Best package management frontend

I vote for portage because of the USE flags, though really they all do pretty much the same things, you can argue all you want, but "apt-get install kopete" and "emerge kopete" do the same thing for 99% of users (unless you need your USE flags)
by HappySmileMan
Wed Dec 05, 2007 5:30 pm UTC
Forum: Religious Wars
Topic: The single best computer food
Replies: 205
Views: 42404

Re: The single best computer food

Anything that I can eat with my hands, but that isn't too greasy or anything. This is usually pizza or some kind of crisps or nachos
by HappySmileMan
Wed Dec 05, 2007 5:27 pm UTC
Forum: Religious Wars
Topic: Coding vs. Sex
Replies: 111
Views: 28176

Re: Coding vs. Sex

And I'm 15, so guess which one I'm after As you're underage, I would hope you're after 1337 coding skills. Sex might not be legal for you in your area, though your local laws may vary. Yeah, it's illegal until 17, however it's pretty unenforcable if both people are above 15 and there's less than a ...
by HappySmileMan
Wed Dec 05, 2007 4:25 pm UTC
Forum: General
Topic: Who the dickens are you?
Replies: 10922
Views: 2422227

Re: POST HERE FIRST - INTRO THREAD THE THIRD

Hello. I'm a 15 year old in Ireland, treaching myself programming (well actually it's more like I thought myself some really basic stuff and am too lazy to actually do anything with it) and I want to be a programmer when I grow up. Not sure what else to say here.... I mainly use C++ for when I occas...
by HappySmileMan
Tue Dec 04, 2007 6:52 pm UTC
Forum: Religious Wars
Topic: Underscores vs CamelCase
Replies: 108
Views: 95490

Re: Underscores vs CamelCase

I use lowerCamelCase for functions or variables, UpperCamelCase for classes and CAPITALS for constants or macros (thhough I don't really use macros)
by HappySmileMan
Tue Dec 04, 2007 6:38 pm UTC
Forum: Religious Wars
Topic: Coding vs. Sex
Replies: 111
Views: 28176

Re: Coding vs. Sex

Erm... You both used cout wrong... It's

Code: Select all

cout << "bleh";
not

Code: Select all

cout >> "bleh";


And I'm 15, so guess which one I'm after
by HappySmileMan
Sun Dec 02, 2007 3:34 am UTC
Forum: Coding
Topic: Randomness of the rand() function
Replies: 46
Views: 5797

Re: Randomness of the rand() function

Yeah it's setting the bar low, but I don't understand most of the Diehard tests so might be a waste of time trying to perform them. Also I don't know enough about maths yet to do any serious testing on it. (Still in secondary school for another year and a half).
by HappySmileMan
Sun Dec 02, 2007 3:05 am UTC
Forum: Coding
Topic: Randomness of the rand() function
Replies: 46
Views: 5797

Randomness of the rand() function

I got bored and made a program to test how random the rand() functions output really is. int main(int argc, char *argv[]) { const int MAX = 32768; unsigned int i, result, values[MAX]; memset(values, 0, MAX * sizeof(int)); for (i = 0; i < 1000000; ++i) { srand(i...
by HappySmileMan
Wed Nov 28, 2007 1:04 pm UTC
Forum: Religious Wars
Topic: PHP
Replies: 27
Views: 6474

Re: PHP

Isn't the main annoyance with PHP that script kiddies try to pretend they're cool by learning it as their first language, and coding really badly? I'll admit I've been one of them... Same, but you can't blame that on the language. I don't have a problem with PHP, but the cool PHP h4x0rs really brin...
by HappySmileMan
Wed Nov 28, 2007 1:00 pm UTC
Forum: Religious Wars
Topic: Best *nix Desktop Environment/Window Manager/whatever
Replies: 243
Views: 49476

Re: Desktops and UIs

GUI? I don't think I've touched a GUI in months. I've been using GNU Screen in TTY1, running: Finch - Instant Messaging w3m - WWW browsing tf - MUD Client (Gaming) Mutt - e-mail mocp - ogg player snownews - RSS reader tcsh - My shell of choice nethack - Another great game And a bunch of other tools...
by HappySmileMan
Sun Nov 25, 2007 9:36 pm UTC
Forum: Religious Wars
Topic: Filesharing: Inalienable right or punishable by death?
Replies: 158
Views: 19664

Re: RMS: Madman or genius

Whether this was directed at me or not, I just want to clarify that I agree with you completely. But I'm not going to argue about it anyway, since I know from experience that it's a useless debate in case anyone disagrees. I wasn't really directing it at anyone, I quoted you because it was relevant...
by HappySmileMan
Sun Nov 25, 2007 5:11 pm UTC
Forum: Coding
Topic: Idea thread
Replies: 13
Views: 2731

Re: Idea thread

Just made this one: A program that will take a text file and convert it to HTML. Mine detects newlines and replaces them with line break, treats a double newline as a new paragraph and does crappy BBCode (You need '[a href="http:\\xkcd.com"]' instead of [url=http:\\xkcd.com] and it doesn't...
by HappySmileMan
Sat Nov 24, 2007 8:05 pm UTC
Forum: Religious Wars
Topic: Filesharing: Inalienable right or punishable by death?
Replies: 158
Views: 19664

Re: RMS: Madman or genius

You know, some people don't actually think filesharing is immoral. I will download a couple of songs from an album before I buy it to see if it's good, but if I don't like it I delete them so who cares if the company don't get money? And if I do like the songs I'll buy them, so if a band loses mone...
by HappySmileMan
Sat Nov 24, 2007 7:18 pm UTC
Forum: Religious Wars
Topic: The 1 true style
Replies: 198
Views: 167826

Re: The 1 true style

Maybe I'm being stupid, but why would you print code? Anyone who can use it needs a computer anyway so why not just compress it and give it to them, nowadays CD-RWs are probably a wiser move than printing anyway, in every way (including financially once you re-use it a few times.) and most people ha...
by HappySmileMan
Fri Nov 23, 2007 11:56 pm UTC
Forum: Coding
Topic: Including header files.
Replies: 8
Views: 1604

Re: Including header files.

Ah ok, though I've heard including header files twice by accident can slow down compilation time, but I'm assuming inclusuion guards would counter this? You should always include header guards in your headers. In any case, you shouldn't worry too much about compiling time. Good coding practices and...
by HappySmileMan
Fri Nov 23, 2007 10:23 pm UTC
Forum: Gaming
Topic: Deus Ex
Replies: 154
Views: 36594

Re: Deus Ex

I played it and loved it, but I got bored after a while, I know you cna do things a lot of different ways but it just still seemed repetitive to me. It was a great game before I overplayed it and ruined it for myself though
by HappySmileMan
Fri Nov 23, 2007 8:49 pm UTC
Forum: Coding
Topic: Including header files.
Replies: 8
Views: 1604

Re: Including header files.

Ah ok, though I've heard including header files twice by accident can slow down compilation time, but I'm assuming inclusuion guards would counter this?
by HappySmileMan
Fri Nov 23, 2007 8:26 pm UTC
Forum: Coding
Topic: Including header files.
Replies: 8
Views: 1604

Including header files.

I'd like to know about advantages/disadvantages of including header files in other header files, kinda hard to explain, but basically I'm asking whether //BaseClass.h class BaseClass { ... } //Class.h #include "BaseClass.h" class InheritedClass : public BaseClass { ... } //Main.cpp #includ...
by HappySmileMan
Fri Nov 23, 2007 6:12 pm UTC
Forum: Religious Wars
Topic: Editors
Replies: 267
Views: 143234

Re: Editors

The only thing I don't like about emacs is confusing C-x 0 and C-x 1, causing me to close the wrong window. I always think of the 1 in C-x 1 as a laser that kills every other window (makes a lot of sense in a vertical split), and the 0 in C-x 0 as a target that focuses on the current window and kil...
by HappySmileMan
Wed Nov 21, 2007 11:24 pm UTC
Forum: Religious Wars
Topic: Editors
Replies: 267
Views: 143234

Re: Editors

Microsoft Windows Notepad (Ultimate edition 2007)
by HappySmileMan
Wed Nov 21, 2007 10:40 pm UTC
Forum: Religious Wars
Topic: Pet Peeves
Replies: 234
Views: 41788

Re: Pet Peeves

Well, me neither, but I really hate it when they assume I know better than them how to use X feature in Y program that I've never touched before. But then again I usually figure it out and they didn't even try, so in a way they're right... Well my friends all know not to bother asking me for comput...
by HappySmileMan
Wed Nov 21, 2007 7:29 pm UTC
Forum: Religious Wars
Topic: Pet Peeves
Replies: 234
Views: 41788

Re: Pet Peeves

When I tell people I want to be a programmer and invariable get the response "computer programming?", "You mean on computers" or something like that.

People who learn enough about computers to hack a Flog and then stop learning because apparently they've proved how 1337 they are.
by HappySmileMan
Wed Nov 21, 2007 4:37 pm UTC
Forum: Religious Wars
Topic: Distro Whores...I mean Distro Wars!
Replies: 246
Views: 50180

Re: Distro Whores...I mean Distro Wars!

I use the latter because after I finished setting it up as a learning exercise for myself I found it perfectly easy to use and realised it'd take less effort to maintain it than to switch back. 1. Let me hear you say that when something breaks because you've emerged something that was built out of ...
by HappySmileMan
Wed Nov 21, 2007 4:32 pm UTC
Forum: Religious Wars
Topic: The 1 true style
Replies: 198
Views: 167826

Re: The 1 true style

int main(int argc, char *argv[]) { // Variables declared on one line, // unless there's too much to fit on one line and confortable read. // Variables that are initialised will generally be on seperate line. int a, b, c; int d = 50, e = 40; // Opening and closing braces get own line. //...
by HappySmileMan
Tue Nov 20, 2007 9:45 pm UTC
Forum: Religious Wars
Topic: Distro Whores...I mean Distro Wars!
Replies: 246
Views: 50180

Re: Distro Whores...I mean Distro Wars!

But that "something else" would usually be "sit there idle". Cure cancer, n00b. In short, Debian > Gentoo. Anyone using the latter is delusional. I use the latter because after I finished setting it up as a learning exercise for myself I found it perfectly easy to use and realis...
by HappySmileMan
Tue Nov 20, 2007 7:50 pm UTC
Forum: Gaming
Topic: Not enough good single-player games coming out?
Replies: 13
Views: 2006

Re: Not enough good single-player games coming out?

If you're talking about games like Zelda OOT and Majora's Mask, I hear you. There haven't been games like those coming out recently, where you can do twenty different things at least in a town, and have the sidequest be more than "go here, do this, come back". But that's because gaming ha...
by HappySmileMan
Tue Nov 20, 2007 7:42 pm UTC
Forum: Religious Wars
Topic: The ultimate programming language flamewar
Replies: 94
Views: 19879

Re: The ultimate programming language flamewar

Well I don't have much experience, but from what i've seen so far: Python for short scripts or small programs, though Perl is good for manipulating strings, so if that's mainly what your script does it'd probably be best to go with Perl. Java for embedded programs, Sun could probably explain that be...
by HappySmileMan
Tue Nov 20, 2007 7:32 pm UTC
Forum: Religious Wars
Topic: RMS: Madman or genius
Replies: 34
Views: 23751

Re: RMS: Madman or genius

He's both, he is a visionary, but what he's suggesting is just not practical for now, though hopefully it will one day be practical.
by HappySmileMan
Tue Nov 20, 2007 7:14 pm UTC
Forum: Gaming
Topic: Not enough good single-player games coming out?
Replies: 13
Views: 2006

Not enough good single-player games coming out?

Is it just me or are games nowadays more multi-player oriented, at the expense of good campaigns and single-player modes. I love playing games online, but I feel cheated when games are developed with pretty much no good campaign or multi-player mode, especially since not only is my internet not the ...
by HappySmileMan
Tue Nov 20, 2007 5:21 pm UTC
Forum: Religious Wars
Topic: Distro Whores...I mean Distro Wars!
Replies: 246
Views: 50180

Re: Distro Whores...I mean Distro Wars!

I use Gentoo, not because I think it's better than Kubuntu, but I wanted to learn a lot about Linux so setting up a proper desktop in Gentoo helped a bit, and now that it's set up I just like the speed, and of the other distros I tried Ubuntu was the only one I really liked, but it integrated badly ...
by HappySmileMan
Tue Nov 13, 2007 5:53 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1963
Views: 573295

Re: The "IT DOESN'T WORK!" thread

Rysto wrote:You're dividing by 0 in the first iteration of the loop.


It's always something strupid :P
by HappySmileMan
Mon Nov 12, 2007 11:55 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1963
Views: 573295

Re: The "IT DOESN'T WORK!" thread

I need to check whether a number goes into a 64-bit number evenly... On a 32-bit machine. I'm trying uint64_t num = 317584931803LLU; uint64_t i = 0, result = 0; for (i=0; i<num; ++i) { if (!(num%i)) { And it gets a SIGFPE (Floating point exception) at that line(if (!(num%i))), never getting any furt...

Go to advanced search