182 Forum Posts by "Sundersoft"
At 7/14/08 09:11 PM, 64 wrote: It works fine and maintains the attempted URL in the address bar. However, if somebody mistypes a directory like http://www.site.com/xdfsadf/asdfasdf/asf dasdf/asfd, then it will try to find error.php in the directory you typed and fuck up the CSS and links.
Change all of the links in the error page to be absolute. That's really the only way to fix your problem without a redirect.
(any links, stylesheets, images, scripts, etc)
If you have an external stylesheet, any background-images will be relative to the path of the stylesheet and not the page that loads it so that could save you some work.
At 7/12/08 05:33 PM, DawnOfDusk wrote: Thanks for the help... but where should I start for a language like C++?
For C++, you need a compiler and probably an IDE(most of these are free).
The compiler is a set of tools that actually make your program and the IDE is a fancy text editor that also invokes the compiler for you.
I personally use Dev-C++ with MinGW which is here: http://www.bloodshed.net/devcpp.html
(download the "with MinGW" package)
It should be set up after you install it and to compile you save your source code somewhere and hit the "compile" button. You could also start a new project for your source but Dev-C++ doesn't require it.
To be good with C++ you'll eventually need to know what the compiler tools do(ex. the linker), but I wouldn't worry about that for now.
There are plenty of tutorials on the net about C++, like this one: http://www.cplusplus.com/doc/tutorial/
(it's not complete but a decent way to start)
If you want a more complete reference for C++ after you know how to use it, this one is good: http://www2.gm.fh-koeln.de:5312/help/ind ex.jsp?topic=/com.ibm.xlcpp8a.doc/
Your first C++ programs are going to be command-line(you type text in a window and the program outputs text). If you want to do anything more than that you'll need to download/use a library. SDL will let you make things like games: http://libsdl.org/
I wouldn't recommend using it until you're familiar with C++. You'll also have to set it up, which could be difficult. You'll download a precompiled version and then configure the linker to see it, and include the headers in any program that uses it. You could also compile it yourself but there's not much of a reason to, and you'll need something like MSys to do that. Linux experience would help there.
MinGW includes some builtin libraries for Windows development, etc. (windows.h is the header. Microsoft should have some information on how to use it)
You could also use libraries that extend the language without adding any new functionality, like Boost or the STL(the latter comes with C++).
At 7/10/08 05:44 PM, thingie-348 wrote: It segfaults because t is now pointing to garbage.
It crashes because of double deletion. The second call frees memory that's not allocated.
Member functions are just regular functions that also take a pointer to the member as a parameter, which becomes the "this" variable and is used to access other members from within that function. They're still there when an object is destructed and exist before it's created.
I think if you made t point to 0, the program should also work. (since using delete or free on a pointer to 0 does nothing)
I noted pretty interesting that the "chau" at the end is called, even AFTER calling the destructor, that probably means that the compiler calls the destructor when you execute delete this, but deletes the object after the end of the function.
The object is gone once you call delete but the function stays. Be careful using "delete this" since the object could be global or part of the stack or an array.
Also, don't call any virtual functions after you destroy the object(the runtime finds the right virtual function by reading the object). Obviously you shouldn't access any nonstatic members. You should be OK with member functions if they also follow these rules.
Can anyone tell me if this is portable, or it depends on the compiler?
It should have the same behavior on all compilers. (I'm no expert on that but it's not unusual for an object to delete itself)
At 7/4/08 06:54 AM, Dqws22 wrote: i really want to win, and im also very interested, how or where can i make or find a proggram that clicks in 2 places which i choose, at times intervals between them, and how does it works?
Use ACTool: http://www.actool.net/
(it's a scripting language for autoclickers)
Basically you'll want a loop that goes on forever. In the loop, the first thing you do is position the mouse somewhere and have it click. Then you have a delay of some ammount of time. Then, you move the mouse somewhere else and have it click again. After that, another delay.
(the end loop command would go at the end)
I forgot what commands to use in ACTool to do that but it should be pretty easy to figure out...
For your loop, you could try "while true" or an infinite loop command if ACTool has one.
You'll need to edit the program to change the delays or places to click if you wrote it like that but ACTool might have some commands to let you set it every time.
I think VirtualDub can add sound to an AVI without it: http://www.virtualdub.org/
(open the avi, go to Audio->WAV Audio, select a WAV file, go to file->save as AVI)
(you'll have to convert if your audio isn't in WAV)
At 6/21/08 05:54 PM, fat-barry wrote: I'm looking to buy a computer (desktop), my price range is about £400 ($800) (Stretchable)
I need a decent processor and graphics card that can handle most games and also, multiple programmes (Photoshop, msn, itunes, flash etc. Believe me, my laptop could hardly handle photoshop and itunes, taking no chances.)
First of all, build one yourself..
(you could try taking apart and rebuilding an unneeded computer if you want some practice. It's really not that hard)
For your processor, I'd recommend a Core 2 Duo for games as most games don't really use more than two cores(now; this might eventually change but probably not for a few years). For things like Photoshop, more cores would be useful as those are optimized to use them. I'd still recommend a Core 2 Duo though for lightweight programs + games.
For the GPU, you have a wide range of cards that could run any modern game. (they won't necessarly run it well)
You could pick up one of the older NVIDIA cards, the newer ones are pretty much the same card, just doubled up or whatever.
Also, for games, you have to get Vista to support DX10 and some games. Some games will only work on Vista but don't use DX10 hardware, and some have DX10 modes that will only work if the game's installed on Vista. If you hate it you could just go with XP. (get an OEM version of either as they're cheaper and MS is already in the middle of developing another consumer OS, unlike when XP was released)
2GB of RAM ought to be enough for most games...
Always buy your parts online as stores will usually rip you off. I use Newegg for most hardware purchases, but you could also try TigerDirect(never used it) or Amazon(more for peripherals). You could use Google's product search after you've found something on Newegg, ex, to see if it's cheaper somewhere else. Stick to reputable sites(Newegg, Amazon) and don't switch over to some random unknown site because it sells something $10 cheaper.
Anyway, here's a setup you could try: (I don't have much experience actually picking out hardware, so get someone's approval before you actually follow my advice)
Core 2 Duo E8400 Wolfdale($190): http://www.newegg.com/Product/Product.as px?Item=N82E16819115037
GeForce 8600 GT($85): http://www.newegg.com/Product/Product.as px?Item=N82E16814150229
Mobo($200): http://www.newegg.com/Product/Product.as px?Item=N82E16813128089
2x2GB RAM kit($85): http://www.newegg.com/Product/Product.as px?Item=N82E16820231145
500W PSU($120): http://www.newegg.com/Product/Product.as px?Item=N82E16817194003
250GB 7200RPM HDD($60): http://www.newegg.com/Product/Product.as px?Item=N82E16822148262
CD/DVD drive($31): http://www.newegg.com/Product/Product.as px?Item=N82E16827129020
Case($50): http://www.newegg.com/Product/Product.as px?Item=N82E16811119068
Total is ~$820. You'll also have to get a monitor, keyboard, and mouse and should probably get some headphones/speakers. You can pick up crappy versions of those for cheap but the monitor will cost you a few hundred dollars.
If you need a WLAN card instead of regular LAN, it'll also cost money(I'd recommend the U.S. Robotics MAXg PCI card there as it's the only one that hasn't given me problems. It also costs $50 compared to like $15 for a crappy one). I also like to have an external sound card but that's optional(try a CMI8788-based card there. I use the b-Enspirer).
At 6/18/08 04:18 PM, SPEC7RE wrote: I was told to post this over here so, yeh.
I start my computer and all it does is give me a black screen with this on it:
Memory write/read failure at 0FED0004, read 02AD02ED expecting 02ED02ED
Memory address line failure at 0FED0000, read 02ED02ED expecting 12121212
Memory write/read failure at 0800000C, read 00AF00EF expecting 00EF00EF
Decreasing available memory
Strike the F1 key to continue, F2 to run the setup utility
So I press F1 to continue and it starts windows half way and gives me the blue screen death. >.<
Help?
Your RAM is probably corrupt and you'll probably need to buy new RAM.
To make sure it's corrupt, you could run MemTest86+ on the computer.
To do that, go here(on the computer you're using now): http://www.memtest.org/#downiso
Download the "Pre-Compiled package for Floppy (DOS - Win)" and extract everything in the archive somewhere, then run install.bat with a floppy in the drive.
If you don't have a floppy drive you could also find a recovery disk with MemTest86+ on it and burn it.
Next you'll have to boot from the floppy drive/CD drive on the broken computer. It might be set up already so in that case you would just insert the floppy or CD and boot(insert the CD really quickly while the computer's starting). If not, you could try hitting one of the function keys(F2 and F12 here) to either reconfigure your BIOS so that floppies or CDs boot before the hard disk(F2 here), or boot from the floppy/CD just now(F12). It might be different depending on your BIOS.
Anyway, MemTest86+ will tell you whether or not your RAM is corrupt.
If it is, you have two options:
-You could take out some RAM. To do that, open the case up and find your motherboard(the really big circut board with everything plugged into it, should be mounted on the side of the case). The RAM looks like another small circut board with rows of ICs on both sides and plugs into the motherboard. It should be physically near the CPU and doesn't go outside the case or have any sockets on it unlike the PCI/etc bus. You will need to have more than one RAM module for this to work.
What you do is remove all but one RAM module, and reboot. Then, run MemTest86+ to see if your RAM is still corrupt. If it is, try a different module. If not, you have a working setup.
If you have more than two RAM modules you could try more to see which ones work and which are corrupt.
-Buy more RAM. You'll still need to do the above to see which modules are corrupt, etc, and try to recover any working modules. Then, dig up the manual for your PC to see which types of RAM it takes(speed range and interface) and buy and install some of it. You might want to use a site like Newegg.com since stores usually rip you off on hardware.
You could use Paint Shop Pro if you don't want to buy Photoshop. I use it and like it.
(PSP will cost you ~$100, which is a lot cheaper than PS)
At 6/13/08 05:05 PM, ThoseSneakyFrench wrote: What can you do with your system32?
Here's an overview:
-Most of the files are DLLs. (they're needed for dynamically-linked programs to run and not all are from Microsoft)
-Most of the EXEs are command-line programs. To mess around with them, use Start->Run and type in "cmd" and hit enter. Change to the system32 directory with "cd C:\Windows\system32" and type in the name of a program to see what it does. You can actually run a command-line program by adding a space and some text(arguments) to the end.
-There are some GUI programs also: msconfig, winmine, mspaint, dxdiag, etc.
-Any program in system32 can be run from any directory in cmd or the run prompt because it's part of the PATH environment variable.
-Besides shortcuts, you can also make .bat files with commands in them. Make a new file with a .bat extension and enter commands you would type into the cmd prompt, then save it and run the file.
-All of the screensavers are in system32. They have the scr extension and are actually exe files, so they can just as likely contain viruses if you download them.
-INI files are human-readable system settings.
There are also some subfolders of note:
-Drivers has all of your device drivers. Also, you can edit the "hosts" file in drivers/etc with something like notepad and block/reroute certain sites systemwide. The file should have instructions. Etc has some other configuration files also.
-I think config has the registry root files in it.
At 6/1/08 11:35 AM, Vorlek wrote: So, if anyone knows how to speed it up it would be great, or is the only way to speed it up, compress the images a bit.
Besides compression, you also need to reduce the number of requests the browser makes, by reducing the number of things it has to download to load the page. You could combine all of your stylesheets into one since they're all pretty small.
You'll want to put requests for external resources towards the top of the HTML of the page so that the browser can load them sooner. This seems OK for your pages though..
You could make the page load a lot faster by changing the layout a bit... If you made the top and bottom images horizontally seamless, they'd be a lot smaller.. Basically you would have both images share the diagonally-striped portion which would have a larger width than the other images. For the rest of the image data, you could make one image a pixel wide and use background offsets to show different parts of it for the header and footer. You would also overlay the site name/logo on top of the footer. For it you could either use a JPG and keep it merged with the background or a transparent GIF. If you use JPG, you could also combine it with the diagonal stripes image to save a request but increase the size of the image by a bit.
Also, the page has a grey background on my end since that's how I have things set up. You might want to add "body { color: rgb(0,0,0); background-color: rgb(0,0,0); }" to your css to have the page work on more systems.
Like people said, you could put the image gallery script only on pages that use it. If I were you though I'd just drop it and open images in a new window.
JPGs can be greyscale so make sure your blank-and-white ones are. JPGs also have a few options besides their quality that affect size like chroma subsampling and whether you use progressive or normal loading can affect image size on most formats, but not JPG(I think).
The Firebug plugin for Firefox can make a good benchmarking tool but that's really the only thing I like about it. You could also get Webdeveloper for more info about your page.
At 5/13/08 01:24 AM, Alkiline wrote: Any positive suggestions for an alternative?
Look for an IEM(which will cost at least $50ish but can cost a lot more)...
I have a pair of J-Jays: http://jays.se/products.aspx?sub=jjays
Not many reviews for it but it works well.. The filters get clogged up easily though.
You could look at headphone.com's IEM page to get some ideas: http://www.headphone.com/products/headph ones/in-ear-monitor/
You could also buy a regular pair of headphones(you'd want circumaural headphones if you're going to be using them in public since they reduce noise better than open ones). I have the Sennheiser HD280 Pro for home use but it's a little big to carry around.
At 5/5/08 03:44 PM, GlowingMonkey wrote: ...this question?
The area of a golden rectangel is 1000cm^2. What is the length of the sites of the rectangle?
http://en.wikipedia.org/wiki/Golden_rect angle
It would be around 24.860 x 40.225... ((1000/phi)^.5 to get the smaller side)
I can't think of a question though...
At 4/30/08 12:31 AM, Peaceblossom wrote: So now I have a weird XP install that is convinced exists twice, and Linux wasting 75% of my HD.
Edit the C:\boot.ini file and remove the entry that doesn't apply anymore, under [operating systems]. If there's more than one OS there, Windows's bootloader will ask you which one you want to use. You can also use msconfig if you don't want to manually edit the INI file(start, run, type in msconfig).
If you want to manage/delete the Linux partition, use the Logical Disk Manager in Control Panel > Administrative Tools > Computer Management.
Belkin has the worst drivers for any piece of hardware I've ever seen in my life. I must've reformatted a good 7 or 8 times because of their shitty cards until I finially gave up and bought a US Robotics card. I recommend it only because it has drivers that actually work, and they actually update them. (it's also faster with a US Robotics router and has better range)
(I've also used a Netgear USB card which sucked just as bad. It wouldn't let me boot up my computer. I wish I were kidding)
I guess you might not run into driver problems though..
Anyway, when you're buying a PC:
-Never buy shit in stores because they rip you off. Use something like Newegg, Amazon, etc. You'll also get a better selection this way.
-Build it yourself if you can. It's cheaper and doesn't have crappy, failure-prone parts like most pre-build PCs. You could also get a friend to do it for you. If you're going for a pre-built one, it doesn't matter which company you use since they all use the same parts. If anything you should go with a smaller company since Dell will rip you off by using non-standard form factors and installing stupid shit on the computer before sending it over(Norton, AOL, Dell Support, etc). It's not really that hard to do and you could ask a hardware forum to pick out parts for you.
-Consider an OEM copy of Windows because it's cheaper.
-Make up your mind a little more on what you're going to be using it for. For web browsing, $400 is plenty, but if you want to play modern FPSes, etc, you'll need a good graphics card and everything else would need to be decent which could cost up to $1000. For things like 3D rendering or image editing you might also end up with a $1000-$2000 box. Casual games like the ones on Big Fish will run fine on a $400-$500 box. Also, if you're a gamer you'll probably want Vista but casual games are designed to run on 5-8 year old tech.
-For a router or WAN card you could consider custom antennas and an extension cable for better range/reception. They probably won't be necessary though but keep it in mind in case you ever have connectivity problems. You could also flash your router with some custom firmware which could improve performance and open up some new features.
At 4/26/08 06:07 PM, xXDathDalerXx wrote: my brain & common sense
Ditto here. (also behind a NAT)
But I'd still recommend some programs(all freeware):
Process Explorer (a really nice task manager)
TweakUI (clean up the Windows UI)
StartUp Tool (since msconfig will disable every service set to manual)
Regmon/Filemon (monitor registry/file access)
SelfImage (hard disk archive/restore)
7Zip (backups and general archiving)
Windows Resource Kit (should be something useful there)
Resource Hacker (get rid of annoying text/images)
JkDefrag (I never really defragment but this is a 3rd party tool for that)
Enterra Icon Keeper (saves icon positions on your desktop. No persistant processes)
Eraser (if you need a tool to clear free space/deleted files for security purposes)
I really hope you have a way of measuring the temperatures on the card...
(if they go over boiling point then there's a good chance of damaging the card. The damage can be hard to notice but you might see some horizontal stripes on your screen for example)
At 4/21/08 09:18 PM, bagoverhead wrote: only click here if you want to save money and escape from conventional webhosting where you are patronized by retarded control panels and waste money on huge bw/space packages.
I'll second NFS.NET unless you actually do use 700gb of disk space and a terrabyte of bandwidth and didn't just make those up(NFS is pay-as-you-go)..
If you really do then you should probably go with Amazon AWS; they're more stable and cost-effective but only sell dedicated servers or static pay-as-you-go hosting(EC2 and S3). S3 can't really be used for an actual site but can host images, etc. Either that or buy your own servers and connections; I think 1 tb/mon would saturate a T1 line.
Both use custom control panels and Amazon S3 needs custom or 3rd-party software to actually use it.
At 4/20/08 03:14 PM, hausoft wrote: a few more things, it cant be something that has a monthly payment like wow, and i was thinking of maybe a first person shooter, but im open for all suggestions
Trackmania is an awesome game that's easy to get into. (racing) It has Starforce though.
http://www.enlight.com/trackmania/
Other than that, here are some recommendations:
-Deus Ex
-Starcraft
-Alien Shooter (my favorite indie game)
-System Shock 2
They all have demos.
Tyrian 2000 and Starcraft: Brood War.
They start off pretty easy and slowly become hard as hell towards the end(last episode for Tyrian 2000 or the latter half of the Zerg campaign for Brood War).
At 4/17/08 05:38 AM, ObviousTroll wrote: I nominate NueralFusion. Even though he's already signed to a label, he submits stuff here and it is wayyyy underated compared to other shit on this portal.
And sure enough he's the post before me.
I second NeuralFusion...
At 4/18/08 11:58 PM, Lindione wrote: The worst genre ever is card battle games. I would like to hear of even one outstanding card battle game.
It's not outstanding but it's my favorite calculator game(there are TI-83 emulators if you want to play it): http://www.ticalc.org/archives/files/fil einfo/377/37722.html
I've probably spent at least 10 hours playing that game...
Anyway, I'll second fighting as my least favorite genre since I can't think of any fighting games that I liked.
I can run half a mile in around 3 minutes but I've never measured a mile and I don't really run much...
(I'm 15)
At 4/16/08 02:10 AM, tally1989 wrote: does any one now wich folder i can find the ikon that windows uses for jpgs?
Windows stores its icons in .exe and .dll files(you could use a .ico file but that's not the default)...
If you want to know which icon is associated to a particular file type, open up Explorer and click on Tools->Folder Options->File Types, find the file type you want to check, and click on "Advanced" and "Change Icon". (if you see a "Restore" then you can't find the icon with this method, which is a design problem with Windows)
That will tell you the location of the file the icon is in and what it looks like... You might be able to get the index of it too but I'm not sure.
Anyway, most of the standard Windows icons are in C:\Windows\System32\Shell32.dll
You'll need to use a program like Resource Hacker to view/extract them: http://angusj.com/resourcehacker/
Open up the shell32.dll file with it and find the icon you want to extract, and use the menus to extract it.
In Might and Magic 9, when you die, it would normally just load your most recent save... It's also an RPG so it's pretty hard to just suddenly die; you'd usually load before that.
So I was pretty damn surprised when I realised that you had to get all of your characters killed to advance the plot of the game. (then, since the monsters in the new area are tougher than the ones in any other part of the game, I got stuck there)
Besides that, there's a point in Icewind Dale where you have to clear out a bunch of caves and a dungeon... If you've ever played Baldur's Gate, it's like Durlag's Tower except three times as long. So, after you finially do this, you go back to the fat old guy who told you to and he dies. And then you have to clear out another dungeon. (that was the most tedious and boring game I've ever played)
Thief. Towards the end of the first two games you sort of wonder what the hell they were thinking... I mean, there are eyeballs growing on plant stems in Thief 2 that stare at you constantly. It also has exploding frogs, things that can shoot bugs at you with enough force to kill you(?), a ratman with a sword, a baboon, walking trees, etc. The cutscene where Garret loses his eye was also really, really stupid.
Deus Ex and UT had nice music, and also a lot of MIDI-based DOS games(ex. Rise of the Triad).
Here's a list of video games whose music I listen to:
-Alien Shooter
-Biomenace (had some nice songs)
-Descent
-Deus Ex
-Doom
-Duke Nukem 3D
-Raptor
-Rise of the Triad
-Unreal
-Unreal Tournament
-System Shock 2
-Tyrian
-Shadow Warrior
-Serious Sam
-System Shock
-Duke Nukem 2
-Original C&C
-Shadow of the Beast
At 4/12/08 07:07 PM, Sundersoft wrote:
Er.. forgot to mention that it might not be supported by your compiler since it's not really part of the spec.
Also, check out limits.h in your compiler.. It will tell you how big or small ints can be, since the C++ spec only defines minimum ranges for data types(ex. int only has to store numbers up to 32767 but it would normally work up to ~2 billion).
http://www.cplusplus.com/reference/clibr ary/climits/
It's kind of weird that long long doesn't work since it's supposed to be 64-bit. I don't think it's part of the spec either though.
The biggest int data type native to C++ would be "unsigned __int64" which can hold numbers from 0 to 18446744073709551615. If you need negative numbers, you can use just "__int64".
(if __int64 is too small for an application, many ASM operations are meant to work with 128-bit ints)
I've never really used Java but C++ is my language of choice.
I only learn new languages if there's a technical benefit to doing so though(if I have to). The thing I like about C++ is that you can write code however you want since all that's required for a working program is a main() function(and that's only if you want to link it; you don't need main to just compile). You can use 2% of C++ or 100% of it. Also, all of the syntatic constructs build on other parts of the language. Ex: in "for (int x=0,y=0;x<2;x++,y++)" the "x++,y++" is only one statement.. It uses the "," operator. And there's usually multiple ways to get things done(ex. function pointers or virtual functions).
I'm not sure if that's true for other langauges.
At 4/12/08 10:43 AM, Jon-86 wrote: You could place a check in the file that loads thee phpMyAdmin page to see who is accessingit and then restrict that to your own IP address. Not fool proof but puts a stop to anyone accessing it that dosnt know how to spoof their IP address.
You'd probably be better off with a .htaccess file... That way you can upgrade phpMyAdmin easily.
To do it, make a new file in the root of the phpmyadmin folder called just ".htaccess" and write this in it:
Order Allow, Deny
Allow from 127.0.0.1
(something like that)
Which will make it so that only people on the actual box the server's running on can access phpMyAdmin. Also, you could make two user accounts(root and an underprivledged account) with different passwords and then restrict both to connections from localhost also but that would be going overboard for a server you're running at home with no domain name.
I don't think you can spoof 127.0.0.1 so you should be fine unless you want to access from a different machine. You can add 192.*.*.* for any machine in your network(not sure if wildcards work in Apache)... There's not much of a point in adding an Allow check for your actual IP address unless your server is on a different one(if it's dynamic, you'd have to update it whenever it changes to avoid a security risk and be able to access restricted parts of your site).
At 4/12/08 12:26 PM, Gore-Hound wrote: Whoah, thanks.
I've been lost for stuff like this since Ogrish died.
You could try Rotten.com too. They only have pictures though.
You could also look for specific videos. (Ex. Armin Meiwes, but the video of the event is pretty rare)

