Search found 29 matches

by !xobile
Tue Apr 27, 2010 1:24 am UTC
Forum: Coding
Topic: A really simple and fast 2D rendering canvas window? [C]
Replies: 6
Views: 2003

Re: A really simple and fast 2D rendering canvas window? [C]

QT also has a real nice canvas implementation. It also will do some hardware acceleration and is pretty compatible with OpenGL .
by !xobile
Sun Feb 21, 2010 6:55 pm UTC
Forum: Coding
Topic: Call Stack in Linux vs. OSX
Replies: 7
Views: 1294

Re: Call Stack in Linux vs. OSX

If you are compiling with GCC, and you have the rest of the bin utils installed just run obj dump on your executable and look at the asm yourself. It should be pretty clear where those local and stack variables are stored. I'm know most versions of the Linux kernel will do stack randomization and I ...
by !xobile
Wed Jan 27, 2010 4:38 am UTC
Forum: Coding
Topic: Simplifying Algebra
Replies: 3
Views: 812

Re: Simplifying Algebra

I had to write a VERY basic CAS for a my programming languages class. We used SML and it made the experience fairly straight forward. If you are planning on writing one from scratch you might want to consider writing it in a functional language. Just something to think about.
by !xobile
Wed Jun 17, 2009 3:35 am UTC
Forum: Coding
Topic: Webcam programming.
Replies: 2
Views: 895

Re: Webcam programming.

I've had to do some web cam interfacing for a personal project. I've found OpenCV to work really well. As well as the code to interface with a web cam it also has a huge library for general computer vision programming.
by !xobile
Thu Mar 19, 2009 5:14 am UTC
Forum: Coding
Topic: Strange runtime data
Replies: 19
Views: 1807

Re: Strange runtime data

I've seen a graph similar to this for a function which did a lot of heap allocation and deallocation. On that graph the saw tooth pattern was caused by the java runtime system doing garbage collection. That may or may not be causing the similar pattern on your graph. Does this function do allot of a...
by !xobile
Wed Mar 18, 2009 4:59 pm UTC
Forum: Coding
Topic: I just Dont get it... Logical operators...
Replies: 8
Views: 4131

Re: I just Dont get it... Logical operators...

Having had to do that very assignment last semester the best advice I have is to actually write out some small binary examples , and try to work through how to get from problem to solution, and then look at which operators you used. Also be sure you understand how the basic bitwise operators work (&...
by !xobile
Sat Feb 14, 2009 5:31 am UTC
Forum: Computer Science
Topic: The Art of Computer Programming
Replies: 5
Views: 2161

Re: The Art of Computer Programming

I received the box set of the first three volumes for my birthday, and yes they are in fact door stoppers in the sense that they are large and heavy. Personally I did not find reading them very enjoyable because of the density of Knuth's writing style That being said they do explain EVERYTHING you m...
by !xobile
Tue Jan 27, 2009 9:22 pm UTC
Forum: Computer Science
Topic: Advice / Reccomendations
Replies: 3
Views: 867

Re: Advice / Reccomendations

I would like to contribute to open source, is that a good experience/selling point? Where is a good place to start for someone with my level of training and experience? It seems sort of daunting to get into. As a fellow computer science student at CU boulder I don't know how much help I can be with...
by !xobile
Thu Jan 22, 2009 4:57 am UTC
Forum: Coding
Topic: How to return to main function in C++?
Replies: 16
Views: 7553

Re: How to return to main function in C++?

I have seen beginner programmers write far worse first programs, so you should be proud of what you have made. Some things you might want to look into to improve your program.
- functions,
- switch case statements
- formated input and output.
by !xobile
Wed Oct 29, 2008 12:47 am UTC
Forum: Coding
Topic: n00b questions about C
Replies: 41
Views: 4344

Re: n00b questions about C

Technically it is not a infinite loop since it will exit when it encounters the EOF. Most operating systems have a keyboard binding for EOF, something like ctrl-d, ctrl-x, ctrl-z, or something along those lines. To answer your other question, just change what will cause the loop to break. include <s...
by !xobile
Thu Oct 23, 2008 2:57 am UTC
Forum: Coding
Topic: Linux IDE for C/C++/PHP
Replies: 21
Views: 2246

Re: Linux IDE for C/C++/PHP

I'm a big fan of KDevelop, I've found the interface to be pretty easy to use, and it is no where near as bloated as eclipse. The version i have installed (3.5.1) natively supports and has project templates for: Ada, C, C++, Java, Fortran, Ruby, PHP, python, and Perl assuming you have the various com...
by !xobile
Wed Aug 13, 2008 3:02 pm UTC
Forum: Coding
Topic: Noob question about arrays
Replies: 34
Views: 4775

Re: Noob question about arrays

SlyReaper wrote:... And is that pointer notation on the third line?


Yes it is a pointer. Since the array is dynamically allocated somewhere off in memory, you need to store the address of the first element of your array so that you can access it later.
by !xobile
Tue Apr 15, 2008 3:10 am UTC
Forum: Coding
Topic: Cross-platform GUI toolkits - which?
Replies: 11
Views: 2011

Re: Cross-platform GUI toolkits - which?

I'd suggest taking a look at Qt.http://trolltech.com/products/qt They also have bindings for other languages if you don't want to use C++.
I've been using Qt for several years now and i really like it. Qt is open source, and you should be able to download it directly from their site.
by !xobile
Tue Apr 01, 2008 4:38 am UTC
Forum: Computer Science
Topic: suggestions for computer science books
Replies: 12
Views: 2757

Re: suggestions for computer science books

this is excellent, as well. It's C++. I have a couple books out of this series and would highly recommend them as well. I found them extremely useful for some of my CS classes as well as independent study type of material. The Art of Computer Programming is extremely dense and can be really difficu...
by !xobile
Tue Feb 19, 2008 1:37 am UTC
Forum: Coding
Topic: Oh me yarm Win32API =(
Replies: 14
Views: 2637

Re: Oh me yarm Win32API =(

I used Qt 3.x with windows and had no problems. I've only used Qt 4.x with linux, so i'm not sure how well it will work. Although trolltech puts out some quality products, and if they say it works, it should.
by !xobile
Sun Jan 20, 2008 8:21 pm UTC
Forum: Coding
Topic: Making pretty GUIs in C++ - how is it done?
Replies: 21
Views: 3342

Re: Making pretty GUIs in C++ - how is it done?

You are on the right track, most windows applications that are made in C++ use MFC or win32. Your better off finding a tutorial / book on how to use MFC or win32 as both are fairly complicated. A GUI application takes on a very different structure then a console one, so be prepared for a change. I l...
by !xobile
Sat Jan 12, 2008 1:50 am UTC
Forum: Coding
Topic: Bool pointer to an array help C++
Replies: 29
Views: 5959

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].
by !xobile
Wed Jan 09, 2008 5:37 am UTC
Forum: Coding
Topic: AVI- Writing an video analyzer - Help
Replies: 12
Views: 2554

Re: AVI- Writing an video analyzer - Help

Well AVI is a container format, so to some extent it depends on the codec of the video stream contained within the AVI. One (probably good) option might be to use libavformat/libavcodec from ffmpeg , like this . Then you'd look at the brightness of the pixels in each frame to find the dots. There a...
by !xobile
Thu Dec 20, 2007 5:11 am UTC
Forum: Coding
Topic: So I'm just starting C++...
Replies: 47
Views: 5651

Re: So I'm just starting C++...

GrammarBatDeath, sorry about the misunderstanding, that was my fault. Marvin, thank you, your right, i did a little digging and the rand() %X does tend to return more values closer to 1. I used rand()%X because that is what i was taught (my CS classes even teach us the % method) I will try to use yo...
by !xobile
Thu Dec 20, 2007 2:10 am UTC
Forum: Coding
Topic: So I'm just starting C++...
Replies: 47
Views: 5651

Re: So I'm just starting C++...

Braces are your friend. GrammarBatDeath, your code without braces although shorter is a good deal more dangerous. Use braces especially when you are still learning. The larger code size is a small price to pay compared to finding out your code doesn't do what you think it does. If you have a very sm...
by !xobile
Thu Dec 20, 2007 12:55 am UTC
Forum: Coding
Topic: So I'm just starting C++...
Replies: 47
Views: 5651

Re: So I'm just starting C++...

So by the beginning part i'm assuming the seeding of the random number generator srand seeds it using the current system time as the seed. the line: int number = rand() %101; declares a int, and gives it a value between 0 and 100, the modulus operator (%) sets the upper limit for the random number i...
by !xobile
Thu Dec 20, 2007 12:21 am UTC
Forum: Coding
Topic: So I'm just starting C++...
Replies: 47
Views: 5651

Re: So I'm just starting C++...

No offense but you are doing pretty much everything wrong. you are on the right track by using a while loop, but your program structure makes no sense. What you put in the while loop is what gets executed, as of now you have nothing in there so it does nothing. Also since your working with a simple ...
by !xobile
Mon Dec 10, 2007 1:53 am UTC
Forum: Coding
Topic: Learning QT
Replies: 2
Views: 1084

Re: Learning QT

QT is a great framework. The last thing i made was as basic wire frame render, that read the coordinates of the vertices from a file, and then drew them with QPainter. I guess this could be a little more complicated than you want, but it uses alot of important QT stuff - Signals and Slots - QPainter...
by !xobile
Thu Dec 06, 2007 1:45 am UTC
Forum: General
Topic: Bicyclist Roll Call
Replies: 30
Views: 2797

Re: Bicyclist Roll Call

I race Downhill, 4X and dual slalom. I don't have any recent pictures of my bikes, but i have some action shots.
http://www.leelikesbikes.com/wp-content ... DHmatt.jpg <- photo taken by my team coach from the Angle Fire NORBA National.
by !xobile
Wed Nov 28, 2007 9:46 pm UTC
Forum: Religious Wars
Topic: Tabs vs Spaces
Replies: 209
Views: 152403

Re: Tabs vs Spaces

I've always wished that program editors would support formatting commands in comments. You could include graphics in comments (or, even better, embedded objects a-la OLE), text formatting, hyperlinks to other points of code, etc. If you did it right, it could just be an HTML-ish syntax in the comme...
by !xobile
Tue Nov 27, 2007 3:13 am UTC
Forum: Coding
Topic: what IDE on linux?
Replies: 25
Views: 3045

Re: what IDE on linux?

I've been using KDevelop for the last couple of years, and have found it to be a great IDE.
While I agree, that you don't need more than a shell and gcc, an IDE can be nice.
by !xobile
Mon Nov 26, 2007 4:06 am UTC
Forum: Religious Wars
Topic: Editors
Replies: 267
Views: 143111

Re: Editors

Vi, its what i started using, and will continue to use. Apparently Vi has its own gang sign now. :shock:
by !xobile
Mon Nov 26, 2007 4:00 am UTC
Forum: Religious Wars
Topic: Distro Whores...I mean Distro Wars!
Replies: 246
Views: 50156

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

Personally I have been using Suse since 8.1, now on openSuse 10.3, and i couldn't be happier.
I found it to be a great distro to learn on, but no one seems to suggest it to people. Whats up with that?
by !xobile
Wed Nov 21, 2007 9:16 pm UTC
Forum: General
Topic: Who the dickens are you?
Replies: 10922
Views: 2414128

Re: POST HERE FIRST - INTRO THREAD THE THIRD

Hi all,
I've been a long time lurker, and the new religious wars thread has finally motivated me to post something.
Anyway, i'm a college freshman who is majoring in Comp Sci.
So ... yeah, greeting done.

Go to advanced search