Ivko

Member
  • Content count

    464
  • Joined

  • Last visited

Community Reputation

203 Neutral

About Ivko

  • Rank
    Member

Personal Information

  • Interests
    Programming
  1. Your Worst "Gotchas" ever in programming

    I wrote a function to apply blurring to an image stored in a 2D array passed in (VS2010, C++). The function had a local 640x480 2D array on the stack. Calling the function caused really strange things to happen and had me baffled while trying to change random things to make it better. In the end, it turned out it was a stack overflow, with the additional array sending it over the top of the default 2MB size. That was a weird one. It would be nice if something indicated the problem in debug mode.
  2. Linux Desktop Environments

    A DE has a WM as part of its software suite. KDE, for example, has KWin as its WM. It's generally much more than that though - it also includes things like a login manager, desktop, some sort of system control panel, basic applications like a file browser, text editor, and many more. You can use a different WM than the one that comes with the DE, or software from another DE within a different one (though you often need to have some dependent libraries). I don't really know about forking. You'd probably clone the code, keep the previous license (I think), and find some people that can get behind your cause.
  3. I've been using QtCreator (even for non-QT stuff) lately and like it quite a bit. I prefer it to VS. It doesn't know about some C++11 stuff at the moment, but I'm guessing that will change soon enough.
  4. OpenGL Loading .OBJ

    When I needed something quick and dirty for a single model, I used obj2opengl. It parses an OBJ model and creates a header with all the data. Not exactly a great way to do it, especially for more than a few models, but it might work for you if it's the kind of thing you're looking for. It's very simple.
  5. Another c++ error

    [quote name='Thekill473' timestamp='1319004099' post='4874156'] gahh. now i get this after my project compiles. [code]Unhandled exception at 0x76ed15ee in game.exe: 0xC0000005: Access violation reading location 0x00000008.[/code] [/quote] You need to run it in the debugger to see where this happens and go from there.
  6. Having problems with arrow key movement.

    Your moveTrue and moveFalse switch statements need those "break" statements on them, otherwise the code for multiple cases will execute. It doesn't stop when it sees the next "case." Where it's actually getting stuck though is in the moveChar method. You do a while loop while something is true, but nowhere in that loop do you make it so it could ever be false. Logically, it's going to be an infinite loop. I won't comment on improving the design of the system; hopefully that will come in time. But one thing you should really figure out is how to use a debugger. It's very important. If you used it, you'd be able to see where the execution is getting stuck.
  7. Backspace is for text... Period

    On my netbook, it's the only way to really conveniently go back. Pressing alt+left is awkward. I was dismayed to find out that after using it in Chrome forever in Windows, it doesn't go back while running under Linux and there's no option to change it. I guess I've gotten used to it now. I can see the logic of why you would have backspace not go back, but not the logic of having it inconsistent from windows to linux, and not giving an option to choose.
  8. What Does Everyone Think About The New Site Layout?

    I like the new look a lot. Here's a few things that came to mind on initial impressions: [list][*]There's no alt-text when hovering over a link to a thread to preview the first couple of sentences of a thread. I usually use this a lot when I browse forums and it's a very welcome feature. It's not really super important on gamedev.net though, I suppose.[*]There's quite a bit of whitespace. This isn't necessarily a bad thing, and it probably contributes to the slick look, but I generally dislike excessive wasted space. I'm on my 24" monitor right now so it's fine, but I'll have to see how it works on my netbook.[*]I wouldn't mind having the person's overall rating displayed with every post, like it used to be.[/list]
  9. Quote:Original post by SeaBourne Quote:Original post by Bow_vernon Hmm I know that my friend installed Ubuntu a week ago. I'll pay him a visit first, then going on your solution when failing :( Ok from what I read I can get a development package, but it's rather big (~80MiB). Thanks for the suggestions anyway! 80MB downloads aren't anything nowadays, every pretty much has high speed connections. I have to download 500MB+ libraries to do my work. This is hardly being helpful. He has (albeit not too clearly) said that he has restrictions on how much he can download and he's approaching that restriction. Arch Linux might work but it's not super small. I'm not sure how much you'd have to download for the base and development packages, basic stuff like X11, a WM and IDE, plus the installer, but it's probably a few hundred MB.
  10. How are your eyes?

    I've been spending a lot of my time on the computer for a long time, and although my vision isn't absolutely perfect, it's good. I don't need glasses at all. From what I've seen, looking at monitors/TV isn't linked to causing bad vision, against the popular belief.
  11. Linux use and development, finally...

    I've used Eclipse before for Java, and it can do other languages too. I'm not a big fan of it though. Netbeans might be decent as well. What I've been using lately (for C/C++) is KDevelop, and sometimes Geany. I actually really like KDevelop. It's quite powerful (it has much better understanding of the code than VS for C/C++) and doesn't feel nearly as bloated/slow as Eclipse. It also gets out of the way and doesn't force me to use its own idea of what a project is. It is a KDE application though, so it has plenty of dependencies. Geany is very lightweight and doesn't have many dependencies, and it's also nice to use. I even use it as a general-purpose text editor. It does the basic IDE tasks, but it's not as powerful as the big ones. SciTE is similar to Geany (same code parsing engine underneath) but feels odd and not as nice IMO. It's more of a text editor to me.
  12. small sized linux distro

    Quote:Original post by Bow_vernon dude, I give up trying to install linux on my rigs(not my dad's lol), since it will format the partition to ext3(noo I guessed there was no formatting involved) Oww shit. Why is this a problem? You can easily make it not one. For example, you can resize your existing partition to make room, make a new ext3/ext4 partition for linux, and mount your old partition within linux once installed so you can still access the stuff on it.
  13. Starting College LapTop Suggestions???

    I have a powerful desktop and a netbook (EEEPC 1000HE). I believe this is the ideal setup for me. The netbook is awesome for school and cheap enough to justify buying. I would never go without a desktop though - getting a big, powerful laptop is unappealing to me. I also use the netbook around the house quite often. Lately, I've been doing this through remote desktop to my desktop which is really nice.
  14. Leaving Laptop Plugged In

    The battery degrades slowest when it's between 40-60% charge and cool. What I do is charge my battery to 60-70% after use, then take it out of the laptop. When I need battery power, it's easy enough to pop back in. 60-70% is still enough battery life to get me through anything I've needed so far, like a day at school. I've had my laptop for something like 8-10 months now and it still lasts 7+ hours under battery power, and I even use the battery very often. I think my strategy has been great at preserving the battery and isn't hard/annoying to do at all to me.
  15. Planning an i7 setup

    I recently bought a Xeon X3440 and I'm extremely happy with it. It's an 1156 chip and it's pretty much equivalent to the i7 860. It has hyperthreading too. It's much cheaper though (or at least it was when I got it with the deals I found), mostly because it's clocked at 2.53GHz which is less than the 860. However, they both overclock very well. I have my X3440 running at 4.0GHz with hyperthreading, using an inexpensive air cooler (Scythe Mugen 2). The CPU cost me $220 Canadian which was something like $100 less than the 860 would have. Although it runs hot at 100% load, idle and normal use sits in the low 30's Celsius with low power draw. I'm running the Gigabyte P55A-UD3P motherboard. It's reasonably cheap, works great, overclocks great and hasn't given me any trouble at all. For the case, I'm using the Coolermaster RC690 which is a bigger mid-tower case and I like it a lot. Power supply requirements vary a lot depending on overclocking. The Xeon's TDP is something like 125-135W but it can use over double that when overclocked a lot (at full load). That said, I'm not sure what's really required, but 600W should certainly be enough at 4GHz, and 500W could possibly be enough too, depending on the video card. I would highly recommend an (overclocked) Xeon. There's no strings attached - it should work in any rig that could house an 1156 i7.