Jump to content
xisto Community

faulty.lee

Members
  • Content Count

    496
  • Joined

  • Last visited

3 Followers

About faulty.lee

  • Rank
    Super Member

Contact Methods

  • Website URL
    http://faultylee.blogspot.com/

Profile Information

  • Interests
    Electronics, Software Programming, Embedded Programming, Movies, Windows Shopping
  1. How long does it take the CPU temperature to reach 104°C? If it's immediate it could have been faulty reading. I'm seen similar cases when a wrongly configured temperature reading software could get wrong reading, and sometime even negative. Cases like this could have been cause by anything. Anyway, if it's 104°C inside, I bet you can feel the "warmth" nearby. Imagine standing near a pot of boiling water.
  2. Have you try to enable doublebuffering? Do this inside your form's constructor after InitializeComponent() this.SetStyle( ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.DoubleBuffer,true);
  3. Why not listen for Form.Move event, since you would only want to snap the form when it's moving right? Then in the event handler just compare Form.Bound against Screen.PrimaryScreen.Bounds. Do take into consideration of pc with multiple display. Btw, if you just need this feature for your own use, take a look at Pitaschio. It does what you're looking for to all windows and form, plus added some more great features, good for daily use.
  4. I think you have corrupted ram. Try running memtest. Or you can try get into safe mode by pressing F5 when booting up. As for memtest, most livelinux distro has it. E.g. Koppix. Get the 2007 cd version. It's also good for backing up your file from your computer in case you can never get into windows again
  5. Putting this as the first line of your php file will fix the problem. Or you can configure your php.ini as per php's manual (see below) date_default_timezone_set('Asia/Kuala_Lumpur'); You can set to your time zone. If you refer to php's manual http://my.php.net/date_default_timezone_set it says: So by configuring your php.ini, you can also solve this problem.
  6. If you set TEXT as your data type for that column, it allows you to store up to 65535 character, which is 64KBytes (1K = 1024), if everything is in ASCII. If you're storing unicode or UTFX(8,16,32), it could be more than that, up to 3 bytes per character. Where as VARCHAR allows a maximum of 255 characters, or less if you specified the limit. If you try to update or insert text longer that the limit you specified, then it will return an error. These are maximum length of text you can store, but it doesn't mean it will take up that much storage if you use only partially. As mentioned in MySQL's documentation, VARCHAR as an overhead of 1 byte, where as TEXT has 2 bytes. So if you store 10 ASCII character in TEXT, it will take up 12 bytes altogether, not 64KB.
  7. Like jjkeenan said, you can try VNC, i would suggest tightVNC, it's a variant of the original VNC, it's free and it support file transfer. You could also login from a browser like firefox or IE. http://www.tightvnc.com/download.html If you can afford to pay a bit more, try RemotelyAnyway http://www.remotelyanywhere.com/template.asp?page=wehp It gives you a lot more features which you might or might not needed. I use this for my computer when I go outstation. It also support only web interface, meaning you don't have to carry anything with you. Just a browser or any cyber cafe will do.
  8. Glad that helps. If you need to more information, head to http://php.net/. Better still if you download the documentation, so you can search and read offline, very useful. http://php.net/download-docs.php. Personally i like the chm format. Read the comment in the documentation too, sometime it's give very good tips.
  9. Yes, you need to use session to save and use that variable across all your pages. Call this at the start of any page that you need access session variable session_start(); Then, you can set the variable like this, in your checklogin.php, so that when you redirect to your login_success.php, you can retrieve the Username. $_SESSION['action'] = 'a'; $_SESSION['Username'] = $_POST['username'];Well, you can't actually get your username from $_POST, even if you can, it's not recommended. Try setting that with the result from your database. Normally I would just store UsernameID, because most of the other table I had are link to the User table via UsernameID. That way, I can access any table relating to that user by just referring to the ID. Better still if you store both, one for display and one for internal use. To retrieve the session variable, use it like any global variable $username = $_SESSION['Username']; echo $_SESSION['Username']; One last thing, do the following when you "Logout" the user //Set $_SESSION to a new array(), overwriting the old one $_SESSION = array(); //Make the cookie expired if the cookie is used when you create the session if (isset($_COOKIE[session_name()])) { //Set the time of the cookie to the past, so it will expired immediately. Can't remember why I use 42000, but It was recommended by a site setcookie(session_name(), '', time()-42000, '/'); } //Finally destry the who session information session_destroy();These are done improve security of your site. Of cause you also need to touch up other section of your site in order to be fully secure.
  10. Sounds interesting, even though I've been using database for quite a few years already, but there always something new to learn. I've downloading the video now. Let see what's did I miss.
  11. I'm not sure what type did you declare strSIN as. As far as I know, there's no base string type available in C++ (well, I've not touch C++ for a few years now, maybe something new popup). String normally are represented as char[] or *char or CString. There are other representation, but are less popular. For char[] and *char, it should be easy as it's an array, "CharAt" would simply means char[at] (I forgotten how to do it with *char, but you can lookup in google). As for CString, you need to refer to your class reference, since it could be from ATL, MFC or other lib, they all have different implementation. EDIT: PS: I'm refering to windows here. If you're talking about linux, then CString might not applies
  12. Thanks for the info xboxrulz, didn't know about MMIO before this. Lot's to catch up to everyday.
  13. The 32bit addressing issue wasn't as bad as your might have thought. Dedicated graphic card is not sharing it's memory with the system, so you can still get 3.2GB out of it. Unless if you're using built-in graphic card, which is not the case here. The 32Bit addressing issue only applies to ram, as the OS need to put program onto the memory, it need to access it from any location at any one time. Thus, with only 32Bit , it can only access within the boundary of 3.2GB. Anyway, that limitation only limits on the "accessibility" of the ram, not to cause a BSOD, unless the motherboard's chipset wasn't implemented properly.
  14. Actually it's not the driver issue. It's more of a physical contact issue that is causing the problem. A normal USB socket and plug has a lifespan of about 600 to 1000 mating cycle. After which, it's up to you luck whether it continue to work or not. USB sense it's device via the resistance that present at the end of the device. Different value will indicate different speed capability. So, when the contact is not well done, the resistance can't be sense properly, or it fall out of expected values, that when you get the "unknown device" popup.Since you're using a cable to extent your usb port from the back, which is a wise choice, as replacing an extension is easier and cheaper than replacing those on your motherboard, in which case you might have to change the whole thing. So, what you should do now is to try your devices on those different port at the back of your pc. See if the other 5 works. If it does, you need to change your extension cable. When you get a new one, try look for those with thicker wire, as it can carry more current, which will give you less headache.If all the other port behind is not working well also, then you might need to test your device on another machine. Since the same lifespan applies to the plug on your device as the socket on your motherboard. If it fail indefinitely, then it's time to change your mobile phone usb cable or your mp3 usb cable. As for your thumbdrive (usb key), you can try a trick, which I did to mine, by pressing the metal casing of the plug itself. Make sure you know what you're doing, and I won't be responsible for any damages that might happen to your thumbdrive. If possible, try to backup first. So, after pressing the metal casing, you should be getting a tighter fit when you plug in your thumbdrive. That should extend it's lifespan for another 100 mating maybe.This is one problem commonly people don't notice. With lifespan of 1000 mating cycle, if you plug and unplug your usb 5 times a day, could be more if you're a busy person and not working within a networked environment. That will leave you 200 days of usage. Working 5 days a week, so you can expect your thumbdrive to last about a year or so. By then, you could be tempted with buying a new one with bigger capacity and at the same price or even cheaper than the one you bought. The 5 years warranty will never be useful, unless you're the unlucky person to get one with defect that dies within a year. Worn out plug can't entitle you to warranty claim as it doesn't cover normal daily wear and tear.
  15. You need to figured out what causes the BSOD first. Did you get to see the message on the screen when BSOD? If not, you can goto Control Panel\System -> Advanced (tab) -> Startup and Recovery -> Setting -> uncheck "Automatically restart" That way when BSOD happen, it will stay put, then you get to see a message. Look for the text in the middle, something like "IRQL_NOT_EQUAL". That can help you narrow down your problem. BSOD can happen with anything, bad sector, driver, corrupted memory or bad memory module. At least narrow the problem, then you can carry out proper troubleshooting steps instead of trying blindly. As for the gpu temperature, 56C idle is normal for 8x00, i guess it should be the same with 9x00. 78C under load is rather high, but shouldn't have cause the BSOD as well, cause as far as I know, the thermal protection only kicks in at 90C. The limit is around 110C. Although I wouldn't like my gpu to go anywhere near 70C, but that's the compromise for getting cheaper hardware. If you can affort more expensive video card, then you can get those with bigger fan. Well, I guess it's not that possible in your case as the pc came as a unit. There's another possibility that you might want to look into. 4GB of ram, will only have 3.2GB available in XP, as that's the memory address space limit of XP (32bit). Unless you find out about the actual cause of problem, don't go back to the shop yet. 2 things might happen if you do, 1, they don't even bother, or they would tell you that the hardware is mend to run on vista only. 2, they will try to sell you upgrades, since you said that the temperature was high, and if it doesn't solve you problem, it's you to be blame, because you suspect it at first. If you really want to bring back to the shop, tell them your problem, which is BSOD, don't tell them what you suspect might be wrong. Well, unless you knew the shopkeeper well and they are honest people to start with.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.