Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.23 / 5.00 3,881 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.93 / 5.00 4,634 ViewsSounds like a good candidate for a distributed computing project.
I'm sure a lot of people have fast CPUs 'because racecar' and wouldn't mind helping out converting NG content.
I know I wouldn't.
At 1/27/13 04:48 PM, TomFulp wrote:
:The next step on our end is to launch our video conversion server, which will process these videos into smaller 720p and mobile formats. This will make NG video a better experience for both PC and mobile users, expect it soon! Then we just have to convert every movie in the history of NG. Or at least the good ones.
Geez...
Me.remember("do not piss Sinnernaut off");
Btw the suggested book is probably the best around.
As a matter of fact it should be good practice to include the cmd-line args stuff even if you don't need it. Just to keep a certain continuity.
When you start your program, you should hear a little voice saying "int main open round int argc char star argv square-square close round"
At least that's what happen to me... wait a minute: I hear voices in my head telling me strange things. I think I'm crazy.
I gotta see someone ... someone good.
Imagine you write a program to sum 2 numbers. You can ask the user to input them using two cin >> calls, or you can also unleash the power of command line arguments (actually, it would be a good idea to to both).
Consider this source code:
#include <iostream.h>
#include <stdlib.h>
int main(int argc, char* argv[])
{
int number_1, number_2;
if (argc > 1)
{
number_1 = atoi(argv[1]);
number_2 = atoi(argv[2]);
}
else
{
cout << "\nPlease enter a number: ";
cin >> number_1;
cout << "Now another one please: ";
cin >> number_2;
}
cout << "\nThe sum is " << number_1 + number_2 << endl;
return 0;
}
You have to know that argv[0] is always the name of the program (for example, I compiled it as sum.exe and argv[0] = "sum"). That is why argc will be always at least = 1.
If you want to know wether the user has indeed specified arguments, you can check if argc > 1, like I do.
If there are arguments (assuming they are integers, otherwise you can add error checking) I use those as numbers.
If there are no arguments, I ask for them. After all that, I display the sum.
If you call "sum.exe" you'll be asked to input the numbers, if you call for example "sum.exe 5 5" you will only see "The sum is 10".
Is this a little bit clearer for you? If not, don't hesitate to ask!
MainThink.
At 6/21/05 03:12 PM, CronoMan wrote: Digital fundementals (for instance, I know what an Edge-triggered D-FlipFlop is)
I'm 21, and so do I! More like a negative edge-triggered D-type master-slave flipflop as they call it down here. Never understood why, since "flipflop" means of course "master-slave" and I've never seen applications of positive edge-triggering, so...
Back on topic: I started with Visual Basic, switched to C++, learned C, and I have an exam tomorrow (I'm not kidding) about the motorola 68k assembler and computer architecture. I'm not even sure it's spelled that way. Bad sign? : )
At 6/18/05 01:19 PM, Bathala wrote: I just started learning programming, just wanted to know what would be the best programming language to learn for a newbie? Thanks
I'd say C, because from there you can go pretty much everywhere. And by the way it's good if you want to learn programming without objects/classes (yet).
After you have some experience with C, look at C++ and Java.
And after that, the sky is the only limit... : )
That looks to me like a bogus mp3 with instructions to make you click on a paid-per-click advertisement.
Forgetting for a moment that you have almost NO CHANCE to get an mp3 from a website.
Well, thank you for instructing us on how to delete everything (not very clearly) on our school's computers.
Just a couple of things:
1) Grow up.
2) Very little damage is left to be done to any school pc with windows 98 anyway
3) A school pc with windows 98 does not deserve to be "hacked". It feels pretty miserable already..
4) Did I mention "Grow up"?
Duuuuude.... I've found a way to delete all the songs starting with an A from an iPod's memory, via ftp.... looool asd asd asd asd lol!!1!1!11!!!one!!1!eleven
Great. Now go get a life.
Well, just looking at the code it should actually work.
The thing is, you are comparing a string with an array.
I don't know a thing about ActionScript, but even if it's an array of string with just one element as you specified in the .split call, shouldn't you refer to the first element with my_array[0]?
I don't really understand why you define another variable and you assign the array to it. Is this a tecnique to put the first element in the variable?
Remember that if arrays are considered "by reference" it looks to me like your function is trying to compare a string (char by char) with the first element's memory address.
But again, I'm not thinking like an ActionScript compiler, so...
Have you already tried this:
if (my_array[0] == allowlocation)
{ trace("IT WORKS!"); }
else
{ trace("YOU FAILED!"); }
Of course if you get it to work, you have to insert everything in a loop and modify it if you have an array of allowlocations.
Let us know what happens!
Uhm...
What does "binary" means exactly here? If it's knowing how to convert numbers to and from base two, perform (very) simple math and things like that I suppose it's not a bad thing.
Especially if you need to go base 16 for example, just to get the idea of how it works
If it's about writing some sort of program in like "11010111101001010" form you've gotta be kidding me. What would be the point anyway.
On the other hand, putting assembler routines in C programs can speed things up a great deal, but as someone before me has already said, that's nothing to do with binary.
About that Swiss guy ranting on programming classes, we do have computer courses in high school, not about programming or "advanced" computer science. For that you need to wait a couple of years and go to the university (college or whatever it's called).
An assertion is useful to check if a mandatory condition holds at a certain point during the execution of your program.
For example, if you're absolutely sure that a variable has to be always >= zero (e.g. a measure of length) you could throw in an assertion for debug purposes.
If for any reason (error) your program sets the variable to less than zero, when the assertion is checked it fails.
Just a word on your case: you will agree with me that (rec.bottom == rec.bottom) is always true, so your logic expression is the same as (rect.right == wndwid) only.
If you put in your code an assertion with that condition in it, you must be certain that those two variables are and stay the same at least until the assertion is checked.
From my point of view, assertions are great to build strong programs (a bit like Eiffel's design by contract), but they can be a nightmare, too...
And remember that ASSERT() works only in debug version, you should use VERIFIY() if you need the checking in release version.
Good luck! ; )
At 5/6/05 07:54 PM, spike010101 wrote: dont ask how i got it
Googling "winmx wpnp crypt", I don't think you have high-level inside contacts at WinMX, otherwise you would have the full wpnp specifications, wouldn't you?
As the japanese site where that file is posted says, it's a "Module to Encrypt and Decrypt WPNP Messages".
I have no idea how the wpnp protocol works, but I think I remember it's a semi-decentralized sort of thing where you have a central server that just redirects you to a suitable peer acting as a server for a zone.
Basically the only function you could use right away, so to speak, is the one to get the hash from a file.
What I mean is, sure you can use the exported functions in your VB application. But you should also try and find out how to use them (and I'm not talking about syntax, more from a semantic point of view).
I am sure we could be more helpful if you tried and explain a little bit what on earth you're trying to do with this dll.
It's kind of useless if you don't have the wpnp specs.
Looks like WinMX TCP messages are encrypted. A key block contains three informations: Key ID (what kind of client/server created the message), send encryption key, and recv encryption key.
One of the functions lets you create a "Key block for send", which I assume the protocol wants sent along with the message.
You can extract the two keys from the block (where did they come from by the way), and use them to encrypt/decrypt the message.
As a return value, you have (quoting) a "New Crypt Key", but we don't know what for.
All this is to say, at least make an effort and tell us what you're doing.
Believe me, C is not that difficult. All I can do is wish you good luck with WinSock related applications, very good luck if it's visual basic.
We're always happy to help (it should be "they are", since this is my second post, but I'd be glad too) but you need to give us further information.
No, it's not the hex equivalent (would be 7F.0.0.1 I guess).
Looks like the IP translated into the network format for compatibility.
Basically it's the long returned from the function inet_addr("1.0.0.127"), which gives you the network-ready 127.0.0.1.
Actually, it's more than "looks like". Try this if you're on linux or have Cygwin:
#include <stdio.h>
#include <sys/socket.h>
int main(int argc, char* argv[])
{
long inet_address = 0;
inet_address = inet_addr("1.0.0.127");
printf("\nResult: %ld", inet_address);
return 0;
}
BTW: First post EVER!