Jump to content
xisto Community

faulty.lee

Members
  • Content Count

    496
  • Joined

  • Last visited

Everything posted by faulty.lee

  1. .Net v1.1 app is not 100 compatible on .Net v2.0. There's minor API changes on 2.0 which will break a 1.1 app. Where as 2.0 and 3.0 is 100% compatible, as mentioned in microsoft's website. 3.0 only introduce new API's into 2.0, but didn't change any of the base API. EDIT: On linux you can use mono. The latest v1.2 support most of .Net 1.1's API. If you app doesn't depend on windows' specific API, then you can run it directly under linux. Support for .Net 2.0 and 3.0 is on the works.
  2. Just wondering, since your chess game is a web app, it won't be too hard to connect it to the existing server for your purpose?For me, any programming language is the same. The main thing is the concept. Normally for something new, i'll pick a language that i'm proficient in, then do a simple setup to prove the concept. Only after that i'll go for the real thing.JSP is a very good and secure programming language. Anything has it's pro and cons. So is JSP.Another thing you should take note is that there far less hosting server that support JSP comparing to PHP and ASP.
  3. I'm assuming you're going to use php as your programming language. I've just posted some tips regarding this here http://forums.xisto.com/topic/92508-topic/?findpost=1064365378 As for ip address, you can always get it from the server's variable $_SERVER['REMOTE_ADDR'] and $_SERVER['REMOTE_HOST'] Authorization is just keeping a bit or 2 to indicate the user's status and use the login script to decide what to do with different bit. Same goes or moderator. Lost password is slightly tougher. You'll need to know how to send email, then you have to choose either let the user key in their own password after they click the "recover password" link on their email, or provide them a temporary password so they can change it later. Just get the hang of it first. We can come to the detail later, step by step, which is easier to cop with. Good Luck
  4. I wish you all a Happy Chinese New Year too.Well, in my hometown, the Chinese New Year's mood seems to be less and less. Sounds as if less and less chinese wants to celebrate CNY. For me, i think it's a good tradition to keep. We should always keep the good, and leave the bad one. Tradition is what makes us, us, Chinese.RegardsFaulty
  5. One of the most important thing to learn in programming is to "Troubleshoot". So you need to first troubleshoot where is your problem. This is where debugging comes in. Simplest way to debug in php is "echo" or "print". I've tried your link, the the authentication failed. So, you should find out why it fail. else { //Add echo here $errorMessage = 'Sorry, wrong user id / password'; header("(anti-spam-(anti-spam-content-type:)) $mime;charset=$charset"); }You should maybe try to echo the number of rows, since you're checking the number of rows to determine the first step of authentication. Maybe it's returning 2 instead of 1. Maybe you have 2 identical record with the same username and password. To prevent identical username, you can either enable "unique" on the username column or do a check before you insert any new username. The later one is preferable, simply because you want to allow deleted/terminated username to be reuse. On the second check $sql_a = "SELECT auth FROM users WHERE auth = '$auth'";i don't see the var $auth being initialized. What value should it contain? That should get you started. But before you go futher, i have a few personal tips, might not be the most appropriate one, but should help you in your case. 1. For you second check, $auth, you should do it in 1 query. //before $sql = "SELECT name FROM users WHERE name = '$username' AND password = PASSWORD('$password')"; //after $sql = "SELECT name FROM users WHERE name = '$username' AND password = PASSWORD('$password') AND auth = '$auth'";You can do this, since auth is compulsory. Or you can also retrive the value of auth from the db, then compare later. //before $sql = "SELECT name FROM users WHERE name = '$username' AND password = PASSWORD('$password')"; //after $sql = "SELECT name, auth FROM users WHERE name = '$username' AND password = PASSWORD('$password')"; $result = mysql_query($sql) or die('Query failed. ' . mysql_error()); if (mysql_num_rows($result) == 1) { $row_result = mysql_fetch_array($result) if ($row_result['auth'] == $auth) { //success } Good luck
  6. This method doesn't works all the time. For those that works, is usually those program that compliant itself not running win win9x environment. Btw, you can also right click on the exe, then select property, then compatibility.
  7. You can try the federated database, it serve as a link to another databased located else where. But this require MySQL 5.0, most common hosting server only has MySQL 4. http://forums.xisto.com/no_longer_exists/
  8. I notice this error when i goto My Control -> Subscriptions -> View Topics I guess it only started lately. The last time (quite long ago, more than a few months) it was OK. Could be something to do with the recent update of the bbs system?
  9. Few question here: 1. Can you paste the code that's in your page here, so we can have a look and see what's wrong with it? 2. How you view your page? directly opening it or via a web server? 3. If via web server, is it run locally or using hosting like Xisto? After you answer these few question, then we can help you further to solve your problem
  10. You should consider using INNER JOIN Something like this $sql = "SELECT users.*, content.* FROM users INNER JOIN content ON content.cid = users.id WHERE users.access_name = \"" .$active_user. "\"";$result = mysql_query($sql);while ($row = mysql_fetch_array($result)){ echo $row['content'];} 1. I prefer to split the query into multiple lines, easier to read and manage 2. You should be using mysql_query on a separate line, that way, you can do a check on the mysql_fetch_array or use a while loop, to prevent error in case your contents table contain nothing. 3. INNER JOIN only works if you do not need anything else from the users table, other than to get the id to link with the content table. Other wise you'll have to do it the same way as you did before. 4. Try to return only those column that you need, instead of * everything
  11. I guess you must be using IE. Which version? Can you paste the original message here. It sounds more like IE is blocking an activeX control that's unsigned and trying to intervene with the input request for email or url. Personally i think you should reconsider using firefox. I never touches IE ever since i started using firefox.
  12. From my understanding, microsoft locked out the kernel of vista, to avoid future attacks or hacks. Most antivirus needs to hook into the kernel to work properly. Thus, they're trying to monopolized the market again. I personally never liked vista anyway. Too much fancy things, and wasting those precious processing power on the UI.
  13. So, for your current configuration, you just need to turn PC 1 into a router. 1. Enable internet sharing on PC 1 so share the Internet from the USB Modem to it's Ethernet Port OR 2. Bridge the USB Modem with the Ethernet Port so all the traffic from either connection is link by the way, using the ethernet connection on the modem is still the best choice. In this case, you can try reset the modem to factory setting. Most of this modem can work in 2 mode 1. Router mode, should be the default, where there's a IP for it, and you can access the webbased configuration of it via a browser. You can try 192.168.0.1, 192.168.1.1, 10.0.0.1 or 10.0.0.2(mine is 10.0.0.2). Before you try that, you should make sure your own's ethernet's sub net is the same as the router's. Either that you can use teh DHCP so it will auto assign the IP to your PC 2. PPPoE mode, in this mode, the modem is simply a modem, same as per USB mode, the ethernet will not have any IP on it, and you need to use "Dial Up Connection" to make it work. Just add a dial up connection in the Network Connections, select "Connect to the Internet", then "Set up manually", then "Connect using a broadband.....", then just continue to key in those text boxes. Later, you should check that the "Phone Number" should be as per your ISP's VPI/VCI setting, which is "0,35" for my ISP. If you can get PPPoE to work, then you can also connect to your router directly. Most router accept PPPoE modem as well, so you'll need to key in the login/password of your ISP in the router, not at the modem. These might seems confusing. If you still have free time, you should try to make the ethernet work on the modem first, that will save you a lot of work. Plus, if you make PC 1 as a router, you need to keep it on all the time, :-p. Well, good luck
  14. Do you mind to list out all the connection available on each pc and network equipment, so i have a clearer idea of how it should goes together. For example, PC A - Ethernet, Cable Modem - USB & Ethernet, AP - Ethernet x 1 & Wifi, bla bla bla. I was a bit confused on the exact setup. As mentioned by demolaynyc, AOL cable modem does have Ethernet connectivity, that would have save you a lot of time to setup.
  15. Good to hear that. Sorry, i didn't checkout the original post linked. Well, if you're using NTFS, you better scan for bad sector. If you're still using FAT32, switch to NTFS. Regards
  16. From my understanding, C:\Windows\System32\Config\SOFTWARE is actually referring to HKLM. HKCU should be your profile folder. Have you try System Restore? Since you can still access all your user's file on the harddisk, if system restore can't help, i would recommend reformatting. Scanning your drive C for bad sector is the next best thing to do, after you've backup all your important data. I would also recommend you to use NTFS for your C or Window's Drive, if you haven't done so, cause it's much less prone to crashing or corrupting like FAT32
  17. I agree with TavoxPeru, so far i've been using SQLYog for more than half a year, very good indeed. HTTP Tunneling never fails me on ANY server i've come across.
  18. For (2), you'll need to get the other 2 pc to ping PC A, not outside IP. Solve this one first, then you move to teh next step. Try check the IP of all the PCs, make sure they're under the same subnet. Like 192.168.0.x. or 10.0.0.x. 192.168.0.x won't be able to communicate with 192.168.1.x because they're under a diff subnet.The main thing is that, in your home setup, your modem is a router type (with ethernet connection), thus the internet can be shared by just connecting the modem to the hub/switch. Where as the USB modem, you'll need to turn PC A into a router. Windows by default will not be a router unless you bridge the 2 connection, or do internet sharing. Then it start to behave a bit like router, thus the internet can then be shared to the other 2 PCs. Without this step, you can never access the internet from the other 2 pcs.
  19. USB is not an issue. These is the step you need to do: 1. Check that the pc directly connected to the modem is working, let's call this the PC A. If not, you just need to make it work first, then proceed 2. Then you need to check that you can ping the PC A from the other pcs, the laptop and desktop. If you can't, then you need to check the router's settings like IPs, DNS and stuffs 3. Then if all those 2 above is working, you then can start sharing your internet. You have 2 option, one, enable internet sharing on PC A. This one is a bit tricky. Just go to the connection of your USB modem, then look under internet sharing, just enable it. I don't have a valid shareable connection to see, so can't show you the exact terms. 4. The second option is to bridge the 2 connection. The USB + LAN, just select the 2 then select bridge. This one might not be available all the time, but you can give it a try. After doing that, the IP of the 2 interface will become one. 5. If the above 2 still doesn't work out, you can try internet sharing program, but i don't really recommend. E.g. Wingate. After you nail down your issue, then we can discuss further on it, it's easier to solve problem that way Good Luck
  20. I won't recommend playing with the transformer, further more, these transformer seldom fail since they're low current type. Big capacitor, as in bigger than normal, sometime they're solid type, square, with some marking on top. Look for something like 105(1uF), 106(10uF), 476(47uF) and the like. Parallel as in (+) of original cap connect with (+) of the new cap, as so on for the (-). That way, it will add up the capacitance. If it was the capacitor's issue, then, doing this will help reduce/eliminate the problem, that way you'll know which to change. Anyway, it's always easier to just change the whole board if you can get hold of one. Good luck
  21. Hi, sorry for the late reply, just got back. Yes, the capacitor is the same as those on the mother board. the missing chunk in the inverter "transformer" as shown in the picture is normal, it's for isolation, since after the transformer, the voltage is quite high to lit the fluorescent tube. Just parallel the capacitor you found, those bigger than normal one. If you found some improvement after paralleling it, then you replace.
  22. Usually the LCD inverter board doesn't have big capacitor, but I might be wrong. if you know how to solder, just look for bigger cap on the board, something more than 47uF, then get another one, solder parallel to it. If that helps, then you can replace it. if not, you'll have to try the same for those on the motherboard. Hopefully those cap on your motherboard or inverter is not solid type. Solid one is harder to replace. Running the laptop without battery can kill the cap very fast, as it doesn't have anything to buffer the voltage fluctuation other then the cap itself. I did that with my laptop before, after a few month, i start to notice slight flicker at the lowest brightness. Since then, i kept the battery inside (my battery is still working). Dead battery might not help. I won't be able to reply after this, going outstation for a few days. So, good luck
  23. Personally i prefer AVG. They provide good support and i have never caught a virus ever since.Before this i was using Norton Antivirus. but now it's sux, heheRegards
  24. If your CRT is working, that rule out the possibility if connection to the video section (some notebook has detachable "video card")When your LCD is flickering or turning off, is it the backlight that's off or the whole screen?If it's the LCD itself, then very likely is the connector from the LCD to the mother board, or sometime, it's connected through another small detachable board. That's the most common failing part. You can check it by taking out the keyboard or remove the cover above the keyboard, some model let you do that, so you can inspect the connection or do something else inside.If it's the backlight, and it dim then turn off, it's not the connection anymore, very likely it's the onboard filtering capacitor. Are you still using the battery? I notice that the capacitor die faster if the battery is taken out, and operated on AC adapter for a longer periodI've repaired a few notebook, most of it due to capacitor problem. Replacing the capacitor will need to take out the whole board.Good luck
  25. MAC address alone is not safe. MAC address can be change by software too. I saw this software once, when playing with wifi hacking tools. It help to spoof the MAC address so the wifi router thought you're one of the legitimate users. i've also heard of a commercial software that copy protect by MAC address, to copy and use, you just need to edit something in your registry. I do use a method for license and copy protection. I'm using WMI to access hardware information, like mother board serial number, hdd serial number, logical disk serial number, mac address tansqrx, i do face your problem once, in my own software, thus for the hdd, i select only non removable drive. Where as for logical drive, i select only drive C. After i took all those info, i join them up as a string, the apply SHA512 hash on it, that will be the key. Then uses RijndaelManaged encryption to get the code from the key. I uses the key to identify individual client, the generate the code using the same encryption and pass-string One important thing to take note, if you're using .Net (vb.net or c#.net). you'll need apply some obfuscation on your assembly later, before you ship it, else they can simply disassemble and remove the security check If you need the source code, let me know, i'll post it here Good luck
×
×
  • 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.