• Advertisement

cobru

Member
  • Content count

    159
  • Joined

  • Last visited

Community Reputation

193 Neutral

About cobru

  • Rank
    Member
  1. Streaming from PNG?

    A good format for such task might be jpeg2000. See the JPIP protocol and the openjpeg2000 library or jasper (link to both on the wikipedia jpeg2000 page).
  2. I also get that runtime error (I'm on win2000 right now, my XP machine is at work).
  3. Unity Ogg Vorbis SDK discontinued?

    http://xiph.org/downloads/ doesn't look like discontinued to me...
  4. If you intend to do that for your own code, you can decorate the methods with a custom attribute and look for the attribute via reflection later. If you intend to do that for other code, I can't think of another way to do it except for the way you already thought about.
  5. Why is PHP so popular?

    Quote:Original post by leiavoia I've been using PHP since version 3. It's grown up a lot since then. I think part of the myth of it being strictly a kiddie-language is the fact that a lot of kiddies use it to get started in webdev. I'd say a good 90% of the sample code i see floating out there in tutorials and scripts is really low-class garbage. No organization, no conventions, no structure, just ascii vomit. BUT, PHP is very capable of creating very large e-commerce sites (I know, I work on one every day). I like it because it's specifically tailored for webdev, unlike come-befores like Perl. There's also a built-in function for just about anything and everything. It's also LAMP friendly which means you can get a website up and running at virtually no cost to you. I was going to say the same thing... writing good software isn't about the language at all, it's about other things. PHP has the special situation that a lod of kiddies start using it (in the wrong way, they have NO idea how to write software and webdev it's still software) and then they write tutorials for other kids to learn and so on... that's the only really bad thing about it. I work on a huge community site in php and it's the same like doing it in c#... and i write all my complicated server scripts in PHP instead of bash, and I even use it for some system daemons (where I don't need performance), instead of C. I think I can say it does anything you ask it to.. the only problem is that there are a lot of people who have no idea what to ask for :)
  6. I use Midnight Commander for editing php (no, not live on the production machine :D)
  7. You're not a real programmer until you've written a fixed-point math library to proove real programming is slower.
  8. C# probs

    As the program, says, this line is your problem: System.Console.WriteLine("{o}'s hitpoints are now {1}.", Semirhage.Name, Semirhage.Hitpoints); you wrote {o} (with the letter 'o' as in 'one') but it should be {0} (as in 'zero', the digit).
  9. Opinions on Scheduler

    So, you're writing a cron.. did you already had a look over the unix thinggy who does something similar ? It's been used for years now so it must have everything needed..
  10. or, you could do this nasty trick i found somewhere ;) [source lang='csharp'] if (Path.GetFileName(Application.ExecutablePath).ToLower() != "myprogram.exe") { MessageBox.Show(null, "Please rename this program to myprogram.exe (don't mind the caps)!", "I WAS RENAMED!:(", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } System.Diagnostics.Process[] p1 = System.Diagnostics.Process.GetProcessesByName("myprogram"); if (p1.Length > 1) { MessageBox.Show(null, "Only one instance of this program can run at a time. Please shut down the other instance!", "Another instance of this program is currently running", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } ugly hack but should work...
  11. stack problem

    It doesn't give an error at compile-time because the linker sets the stack size so the compiler doesn't know it. You can do either: 1. char * chr; ... some time later ... chr = malloc(what_size_you_need); 2. use a std:string. if you're storing a string in there, no need to allocate that huge ammount of stack 'just to make sure it covers all cases'...
  12. Working on Your Own Project

    Quote:Original post by ApochPiQ I do all the game development I want to do at work. I haven't done a personal game project with any seriousness in years, except for one little three-hour competition just for the fun of it. I don't see any particular need to do more stuff outside work. Just because I get paid for it doesn't make it any less enjoyable. man, I sincerely envy you... not everybody gets the chance to do what they love at work, mostly because we also need to live and that means 'earning some money' and that means 'sometimes doing stuff that you don't like but it gives you a way to earn some money'... I hope you know how lucky you are ;)
  13. from what I remember (I took a peek at my 6 year old quake2 engine written in delphi) quake3 vertices aren't padded, you can actually load all them with one call to fread so I don't think that's it. could you post the declaration of sVertex type? that's the only thing that might be wrong...
  14. i don't see anything wrong with the code you posted... (but maybe i'm just tired)... try to see if #pragma pack(1) helps.
  15. c++ gross now?

    using C++ like that resembles buying a gun and then complaining that it allowed you to shoot yourself in the foot :D
  • Advertisement