PDA

View Full Version : The Programming Thread



Delphinus
06-07-2011, 10:37 AM
So I figured there's probably other programmers in a nerdy community like this and opened this thread for discussion of programming and other computer stuff.

Atm I'm trying to learn OpenGL in C++ (not Visual Studio), since I need more power and 3D capabilities. I'm also trying to learn the Windows API, mostly to assist with game programming.

At the same time there's a project I have in mind that creates random bitmap files and then gets people online to judge them. After that it applies 'breeding' algorithms to the top ten to produce the next generation of bitmaps in an attempt to create a good-looking picture. I could do this simply by 'evolving' the raw bitmaps or by creating an evolving algorithm for creating those bitmaps, each of which has advantages and disadvantages.

I also want to learn how to write and send HTTP packets. Don't even ask why.

Hayashida
06-07-2011, 11:11 AM
The bitmap thing sounds cool. I dunno how you'd do that though. I pretty much forget everything I learned about programming.

Rio
06-07-2011, 12:11 PM
The bitmap thing sounds cool. I dunno how you'd do that though. I pretty much forget everything I learned about programming.lol I'm pretty much on the same boat. Though, since I work on this site most of the time, I at least remember web related coding.

@ Del
So basically that bitmap will be randomly-generated pixels? I think it would be better if there was some kind of restriction like symmetry, uniformity, and maybe even throw in the rules of the color theory in there if it'll be color based.

Nyarlathotep
06-07-2011, 01:25 PM
Bitmap idea sounds cool. I'd use a PHP/MySQL setup - you can use the GD image library to actually draw the bitmaps to show the users and just store some representation of them in MySQL.

The hard part with genetic algorithms is that it can't be completely random - usually you have to come up with some sort of deterministic way to create a specific 'generation' that hinges on a bunch of gene variables. Might be a pain in the ass for something as complex as a bitmap.

Slurpee
06-07-2011, 08:35 PM
I'm taking computer design in school next year. :) I was wondering what are the basics? I know there is HTML v5 and CSS but that's about it.

Delphinus
06-07-2011, 08:42 PM
Well HTML and CSS pretty much ARE the basics for the design elements of a webpage. I mean, there can be scripting elements too, and those are slightly different but (imo) much more interesting. Really it depends what you're doing what the 'basics' are.

Lucifer
06-10-2011, 06:47 PM
AFAIK there's no Visual Studio language. It's an IDE, not an API (like Win32).

Also good luck on designing the genetic algorithms for the bitmap generator. It should be possible, but it sure won't be easy.

violin
06-14-2011, 11:07 PM
Yay - A programmers thread :cat_yahoo:

I concider myself an IT nerd, guru...
I'm actually a engineer (Electronic). But I mostly code and very rarely do hardware design. I've being coding for the past 13 years (I'm 24 now).

Nice idea with the random bitmap - but the algorithm would be too complicated in my opinion.

I'm writting a 3D game creation software for past few years. I've started the project from the ground several times now. I hope I've got the correct design now. It's going prety well so far. I'll release a new version very soon and probably start some cheap advertising compaing on Google.

GunZet
06-15-2011, 05:30 PM
Goodluck. Go for it, you could end up going down the whole Mark Overmars path or something.

violin
06-15-2011, 10:25 PM
Since you mentioned Mark Overmars. Actually his Game Maker - ver 1,2 and 3 got me very very inspired and ever since I tried his software - I aways wanted to make my own game making software. Even more - first versions of Game Maker were made with Delphi - a language that I really admire. And they were so simple and yet so functional.

DadaAndKids
06-16-2011, 03:37 AM
Not exactly sure what your goal is but instead of bitmaps vectors might be easier and better. Programming this is actually simple, the complicated part is what mathematical methods you'd use. Either way you'd be doing alot of interpolations and extrapolations. Once you get the physic engine done everything else will line up for you. And unless you plan to program one yourself you should find a nice OCR module (commercial if you're serious about) to put in there.

Rio
06-16-2011, 09:20 AM
I'm writting a 3D game creation software for past few years. I've started the project from the ground several times now. I hope I've got the correct design now. It's going prety well so far. I'll release a new version very soon and probably start some cheap advertising compaing on Google.Let me know when you're done with it. I'll add you to this list (http://www.mangatutorials.com/forum/showthread.php?742-The-Ultimate-Indie-Game-Developer-Resource-List).

Sylux
06-16-2011, 10:26 AM
Jaidurn and I might learn Actionscript to create some sort of small RPG. Found a sweet comprehensible guide in PDF format and may start reading tomorrow. I'll be sure to leave this page open in a tab in case I have questiones. :3

Delphinus
06-18-2011, 11:53 AM
Hey, to stimulate discussion, have any of you gotten in trouble for computer-related infractions? I say infractions rather than crimes because some things might lead to punishment while not being illegal.

I got in trouble a few times at school for using programs I wasn't meant to use, mostly administration software. Mostly this was because none of the people in charge of maintaining the school network understood how to defend against what I was doing, which was really very simple (%LOGONSERVER% ftw) and could have easily been prevented had they hired a better network manager - one who wasn't less educated about computers than the 14-year-old me, for example. Instead they locked down pretty much everything, and still failed to defend against what I was doing. I demonstrated this to one of the teachers and pretty much said "Why haven't you closed this security hole?" That led to me being suspended again.

I guess that was when I started to realise that most people in authority were stupider than me.

TL;DR:


http://www.youtube.com/watch?v=xxJf_yhRX2g

GunZet
06-18-2011, 01:49 PM
Meh, almost got in trouble for getting my computer nerd friend back in HS to smuggle Halo onto my student account so I could do a little LAN play over the network in the comp lab...lots of people had it installed. Hid it as a jpg in some random folder lol.

Lied my way out of it saying my friend took my ID and used it. Miss those days.
(my friend was insane, using a million proxys and lockouts to look up porn in class...srsly? I have no idea how he was never caught)

violin
06-18-2011, 03:27 PM
Delphinus, you are right but a very experienced admin would not work at a High School; But yeah don't show anyone that has more power than you that he is stupid and he doesn't know how to do his job. Those people are crule and really stupid and only do you bad in order to keep their jobs.

At my high school someone used a LAN(UTP) cable and pluged both ends to the same hub/switch. Alhtough it was a very nice switch(Cisco) it actually crashed and all the network went down.

For two weeks they were in a constant contact with the IT Dept and were rebooting servers, switches, routers etc.
One IT class the teacher said that once again they haven't solved the problem so I asked and she let me take a look at the network in the class room. I spoted the cable although it was very carefully put to look like two separate cables. Just unpluged it and all the network went up :)

Actually the question is: Did a student do that or the teacher just saw a free cable and decided to plug it there?

I tried to hack the network at university. But unfortunatelly there were cameras and the admin came to laugh in my face in person saying how stupid I am and his networks is super safe. He ended with: "Nice try by the way"; Nothing bad happened to me :) He was actually dissapointed that noone from his students tried that. I was from a different Faculty.

Sylux
06-18-2011, 04:16 PM
Yeah, me and my buddies threw a LAN party playing Duke Nukem just this past school year. Teacher caught us throwing bills at strippers. (Okay, not really, but that would have been funny.)

wolfman
06-18-2011, 05:36 PM
im going to start computing at uni in a few months :D other than that the only programming ive done has been in C#

ram
08-05-2011, 08:02 PM
i don't know where to post this. so i give my apologies to del in advance if i am spamming.
http://i1225.photobucket.com/albums/ee388/skyramiel/Untitled-1.jpg?t=1312588647
i don't know what type of font face this is, heck i don't even know if it's a font face. but i want to know how it's done.
look at what shah_lukh_mhan's comment.

Nyarlathotep
08-06-2011, 01:35 AM
That's called 'strikethrough', and it's a font style that's not always supported...typically the BBCode for it is , but as you can see that doesn't work here.

ram
08-06-2011, 01:51 AM
oh i see now.:cat_sigh: i really like to put it in my post. but i guess that's not possible. thanks though.

Rio
08-06-2011, 11:57 AM
It works if you use <strike>BBcode</strike> HTML.

ram
08-07-2011, 01:07 AM
<strike>WHAT THE HECK!</strike> thanks so much Rio!

Lucifer
08-24-2011, 09:32 AM
I don't suppose anyone here knows how to deal with those pesky C++ Linker errors? LNK2001 specifically.



1>main.obj : error LNK2001: unresolved external symbol "class DirectInput * gDInput" (?gDInput@@3PAVDirectInput@@A)
1>SpaceDemo.obj : error LNK2001: unresolved external symbol "class DirectInput * gDInput" (?gDInput@@3PAVDirectInput@@A)

And before you ask, the DirectInput class is located in my own project headers and source files, it does not require linking to an external library.

E: Nevermind, it appears I forgot to actually initialize a global access pointer...