faulty.lee
Members-
Content Count
496 -
Joined
-
Last visited
Everything posted by faulty.lee
-
I haven't really tried this, but I've read about it quite a lot of times, and have look into it, just haven't got a chance to apply yet, Here's what you need. ISerializable interface. You use Serialize the object that you want to send, using BinaryFormatter, calling the Serialize method, and pass in a stream and the object that you want to convert to byte stream. You object must implement ISerializable. I believe most .Net's component are serializable. For you own defined class, you'll need to implement manually. Check the MSDN for ISerializable. http://forums.xisto.com/no_longer_exists/ The other technology that you can look into is SOAP. It's http friendly. Take a look here. http://forums.xisto.com/no_longer_exists/ It's more like the JSON (JavaScript Object Notation), which if I'm not wrong, it allow passing object from client side javascript to server side PHP. Depending on our need. If you don't need to be http compatible, the simply Serialize your object and send through your tcp connection, which less the overhead and compatibility of SOAP Well, good luck. PS:Keep me posted on the outcome. Thanks
-
Hi shaheerpak, I'm not targetting you personally, so don't get offended. I've seen a lot of ppl asking the same basic questions all over this forum. That brings the questions, 1. You really knows nothing about how and where to get started 2. You don't know how to search the forum for previously asked questions OR search for tutorials in the web 3. You're hoping to get some sample code to start off and probably use it as is 4. You're not really interested to learn 5. You just want to get your assignment done For what I think, if you're really interested to learn or at least curious to know how it works, you would have looked into books or googled for tutorials. Just search for "php login tutorial", you'll get 14million hits. php login tutorial So, asking question and you ended up being thrown off. Well , I guess quite a lot of us here are lazy to answer this questions already, considering no one has replied in the last 12 hours. So, again when you should be asking questions? Question asked should have been more tricky or don't have a straight forward answer. Asking how to build a login page is like asking how to fill a bottle. Instead, if you ask something say how to limit the number of character in the login name. That might bring some interest among those who would answer. Because at least we knows that you've tried something, and got stuck due to unknown reason. It shows that you've put some effort into it before you start asking questions. I might be wrong, and you're just being unlucky that I reply to you like this. Actually for the previous few poster with similar question, I wanted to reply the same, just that I hold up until now.
-
How Powerful Should My Ups Be? need advice...
faulty.lee replied to Grafitti's topic in Hardware Workshop
Wow, that's really bad. Lucky it didn't fried your pc before this. Intermittent power dip can sometime cause the switching power supply to goes hay wire and burn out. Anyway, you can try look into power saving mode on your pc to lengthen the backup time. Try CPU throttling when idle. You can configure that in the BIOS. Also you can try shorten the time for your hdd to turn off when not active, in Power Options under control panel. Or down clock your pc if you don't need that much of processing power, like one of my friend did, so he can run the fan slower, thus less noise and power conservation. If you really need the processing power, then you can look for software overclocker, some motherboard does comes with one. So when the blackout comes, you can pull the slider and run in "lean mode" so it will last a bit longer.If you don't plug in the monitor into the UPS, that means you'll not be able to work during blackout. Then you can configure the power button to trigger hibernate, Power Option in Control Panel. When blackout, just press the button, then it only need a minute or less to hibernate. After that the pc is completely off. One note though, if it happen to cutoff when you're returning from hibernation, you'll lose everything unsaved. -
I don't think there's a direct shortcut to simply convert everything from php to js. They're made for different purpose. Php is server side while js is client side. There're things that you can do in php but can't be done at all in js. Even if you use ajax, you'll need a php side to complete the circle.
-
How Powerful Should My Ups Be? need advice...
faulty.lee replied to Grafitti's topic in Hardware Workshop
UPS is suppose to give you more time during blackout to save your files and do a proper shutdown. The UPS won't pass it's QC if it will cause you computer to restart during blackout.Anyway, you can do a test run, by going into bios and stay put. Time how long before the battery runs out. That's the closest you can get unless you want to risk some file corruption. Or you can boot using a LiveCD, and time the battery. -
How Powerful Should My Ups Be? need advice...
faulty.lee replied to Grafitti's topic in Hardware Workshop
Yap, that's an Online Version. http://www.pcguide.com/ref/power/ext/ups/typesLineInt-c.html So you don't need a stabilizer. For $150, it's cheap. It's around the same price in malaysia. -
Vmware On 946intel Board Problem sound card not recognized
faulty.lee replied to Grafitti's topic in Software
There's instruction for that in the link i posted on top, but it's not for XP. XP is suppose to have the driver. Anyway, it'll be applicable. -
How Powerful Should My Ups Be? need advice...
faulty.lee replied to Grafitti's topic in Hardware Workshop
A backup UPS would not have a built in stabilizer. Only the Online version has it. And the draining only happen if you connect the stabilizer after the UPS. If you have online UPS, why would you still need a stabilizer in the first place. -
How Powerful Should My Ups Be? need advice...
faulty.lee replied to Grafitti's topic in Hardware Workshop
Where do you live? So bad !!! For the low voltage situation, it would be good if you can get the online one. If not, just add a voltage stabilizer (voltage regulator, AVR) before your UPS. Those should be cheap. Same wattage rules applies. The battery you saw in those normal UPS are sealed lead acid. Not exactly like car battery. The electrolyte is in gel form. So you can put it in anyway you like. Car's lead acid, you'll have to keep it up right. -
Vmware On 946intel Board Problem sound card not recognized
faulty.lee replied to Grafitti's topic in Software
Err, looks like you haven't get what i'm trying to explain. The soundcard in the VM is emulated as soundblaster. No matter what soundcard you install on your pc, it'll only be soundblaster inside VM. -
How Powerful Should My Ups Be? need advice...
faulty.lee replied to Grafitti's topic in Hardware Workshop
You're welcome.One thing to take note. Online vs Backup UPS. Backup one is only to supply power during power outage. It's more efficient in a way that it's only charging the battery when there's power. Online UPS, the power is feed through the battery, charging it, at the same time, AC is generated back. It act as a shield, so at the same time it can also regulate the voltage, and take over if there's power outage.Therefore Online UPS is less efficient, cause it need to use it DC to AC converter all the time. The advantage is that it's power output is clean, glitch less, so most of the time use for sensitive equipment.Btw, Backup UPS can only power non inductive load, like PC, monitor. It can't power fan and motor alike.If you really want more power and longer backup time, consider those that can connect using car battery. -
How Powerful Should My Ups Be? need advice...
faulty.lee replied to Grafitti's topic in Hardware Workshop
I've posted awhile back regarding the UPS, you can have a read there. http://forums.xisto.com/index.php?showtopil=backup+power# Quite a lengthy topic. Just a quick calculation for your case, assuming the power consume by your system is 400W max(500W power supply doesn't mean it will consume as much), 21" CRT is normally 150 to 200W, correct me if i'm wrong. You can see the rating at the back of the monitor. That equate to 600W. So you need a 600VA and above UPS. Battery current will be 600/12 = 50A. Hmm, a car battery will last you 1 hour. A standard UPS battery is only 7Ah, which in this case will be 7/50 * 60mins = 8mins 24secs. To get 20mins, you'll need 20/60 * 50 = 16.67Ah. So a UPS will a pack of 3 standard battery will do. Some UPS comes with bigger battery, so you might only need 1 battery. But most UPS will not disclose much information. From the size of the UPS, you might be able to guess the size of the battery. If you look at this link, https://en.wikipedia.org/wiki/Uninterruptible_power_supply In the first picture, that size of UPS can normally house 2 x 12V 7Ah battery. The right picture under Outdoor UPS, You see the black color battery there, it's 4Ah, half standard size battery. One thing to note though, you need to get a rating higher that calculated, at least a factor of 1.25 in order to safely achieve your 20min mark, plus overcoming battery deterioration over time. -
Vmware On 946intel Board Problem sound card not recognized
faulty.lee replied to Grafitti's topic in Software
The emulated hardware in the VM itself is will not be the same of what your actual hardware have. The driver is provided windows. The emulated audio device is actually "Sound Blaster AudioPCI". According to VMWare website, most OS already included this driver by default, including W2K and XP. You can have a read at this link, it's not for VMware workstation or player, but anyway, it's related. https://www.vmware.com/support/gsx3/doc/vidundcfg_gsx.html Anyway, what's the OS you're running inside the VM? -
Having Network Card Issues On A Dual Boot Laptop
faulty.lee replied to dserban's topic in Computer Networks
The ethernet controller with the question mark is your LAN NIC. You need to install the driver for it. If you can't get the right driver, what you can do is, open the property of that device, goto the "Detail" tab. In the combo box, the default selected item should be Device Instance Id. In the text box bellow, you should see something like "PCI\VEN_10DE&DEV0266......"The VEN_10DE is the vendor code. Put that and the DEV code into google, you should get some reply mentioning the make and model of your device. From there, it's easier to look for the driver. For some rarer devices, it might be harder to target the DEV, so just use the VEN code. Good Luck -
Hmm, it seems to works on my side. I tested the simple code in FF2 and IE6. Of cause i added the standard HTML tags of <html></html> But even without that also it still works. Generally, if you want to do that, it's recommended you group all your function in a script section like this <script language="javascript" type="text/javascript">function myOnLoad(){ alert('My Text Here');}</script>You're recommended to put it in within the header section, before the body. Then change your body onload to <body onLoad="myOnLoad();">My body contents<body> That way, it's easier for your to maintain your code next time. All your code should reside at one place. If you have even more code, you can use external javascript file. This can help you organize your code into different file per category or group. At the same time, it allow easy reuse of code throughout your entire project, or even across project. <script src="./yourjavascriptfile.js" language="javascript" type="text/javascript"></script>
-
Hmm, the closest i can find is code analysis, code coverage and line counter. All in separate tools package. Maybe you want to consider writing one yourself
-
Anyone Here With Experience In Graphics Programming?
faulty.lee replied to miCRoSCoPiC^eaRthLinG's topic in Programming
I've never coded anything that uses PHP's GD/Imagemagick. But I do use PHP for some of my project. I do more in VB.NET. I did GDI+, Direct3D(DX9), DirectShow. For GDI+, i did a complex scheduling control, to schedule media playback time, fully owner drawn, where you can drag and drop object into it, and drag and slide along the timeline to arrange it. Not a feat for those who use a lot of fanciful software, but it's a satisfaction when it's done by me alone.As for Direct3D and DirectShow, it's the media playback system based on 3D canvas and texture.Well, but then i don't think i can get fully involve with what you're going to do, but from time to time, i can do give advice or some help. Or when i'm really bored, maybe i can help as well. Count me as part time if you don't mind. -
Usb 3.0 Brings Optical Connection In 2008
faulty.lee replied to dserban's topic in Hardware Workshop
But the fact is that, fiber optics will increase the complexity of the chip and circuit, on both the motherboard/usb card and the devices. Further more, fiber optics cable are known to be "exotic" and thus expensive. Fiber optics is also quite fragile, have limited bending radius. You might goes like, "****, i just broke another $50 dollar usb3 cable!" I would actually like to see devices that can chain up multiple usb port in parallel to achieve higher speed. More like PCIe. PCIe is also using differential serial connection. 1X is equal to 1 set of serial connection. 16X is 16 pairs. FOr some SLI system, you're limited to 16X per motherboard, so if you plug 2 16X video card, you are actually getting 8X per card. So it all depend on the device and the user to decide how much can it compromise. Same method can be use for usb. If you want more speed, you plug more usb connector into individual port, of cause you can plug the second connection into the one belongs to the same hub. You need to plug into the next actual port to gain some speed. So if you device can support 4X the current usb2 speed, it can provide 4 port, and up to you to choose to plug in 1 to 4, where 4 will be maximum speed. At the same time also it can help solve the problem of powering the device. Some external hard disk require a second usb port to supply more juice to the hard disk. So might as well increases the throughput at the same time. In actual fact, i only see reason for external storage devices requiring higher throughput. -
I'm also using Comodo right now. Before that i was using Sygate Personal Fireware. I liked SPF very much, but because i use emule and utorrent a lot, they seems to cause memory leakage at SPF, the memory usage of SPF increases tremendously. And since the stupid Symantec bought over sygate just to take out their competitor, I ended up have to try other firewall.I've tried a few before ended up with Comodo. Earlier, it also have the same problem when i do heavy downloading in emule and utorrent, other than memory leak, it also eat up a lot of CPU %. Later, about a month ago, the problem seems to be less frequent. Maybe due to the recent update. Also, if you do run emule and utorrent, i would recommend turning off Component Monitor and App Behavior Analysis. The rest works find with default settings. Another thing is under App Monitor, most of the app i use, i would set it to Skip Parent Check. If not, when the same app is called from another app, it will popup and ask you the same question of whether to allow it or not. For example, adobe acrobat reader. If you run it from startmenu for the first time, it's parent is explorer.exe. Say if you allow it. Then later, you try to open a pdf from your firefox, it will prompt again, this time the parent is firefox.exe. To save some trouble, and also to keep the app database small, i'll always select skip parent check. If your app database grow too big, it will hurt performance as well.
-
What do you use or recommend on using as RSS reader. Personally I use Blogbridge. I'm also trying out Newzie, quite nice. Only problem with Newzie is that the content is only concentrate on the center and a lot of display real estate is not put to good use. Where as BlogBridge pack everything nicely, I can see what's the news of the day at one glance. The feature that BlogBridge is lacking is indication of newly updated feed, which Newzie has done a good job on this BlogBridge http://www.blogbridge.com/ Newzie http://www.newzie.com/ Btw, i tried to search if the same topic has been posted before, but the word "rss" is not accepted as a search term, since it's less than 4 character. I think the admin might want to improve on this.
-
Like turbopowerdmaxsteel said, system restore don't serve much purpose other than eating up our precious disk space. I usually turn off the system restore right after i install my windows. For temp file cleaning, you can consider CClearer /ccleaner. It safely remove most of the temp file while not disrupting the system. Another plus point for CCleaner is that it loads the uninstall list much faster than window's "Add/Remove Programs" in control panel.
-
Sounds like a bad sector at some critical section of the hard disk. Maybe be you can try partition the external hard disk and see if the problem still persist. For your case, after you partition, try not to use the first partition, use the second one to try out. If it works, then it must have been a bad sector
-
Apache Server On Xampp Problems in starting Apache service on xampp
faulty.lee replied to Nuwan's topic in Computer Networks
The alternative for skype to use port 80 is to bypass some system where they block those messaging and voip client. Generally port 80 is left untouch -
Apache Server On Xampp Problems in starting Apache service on xampp
faulty.lee replied to Nuwan's topic in Computer Networks
A very likely chance is that you have IIS install, which comes standard for WinXP, and some installation of other software might have enabled it. Try to check under Services and see if IIS is running, it's name is "IIS Admin" and "World Wide Web Publishing". If so, stop the service, now you should be able to start your apache. If you want to run both concurrently, you need to change the port of either the IIS or the ApacheIf this doesn't help, or your IIS is not installed, then look under your apache folder, either together with XAMPP, or for my case it's "C:\Program Files\Apache Group\Apache2". Under the logs folder you should see and error.log file. Open that with notepad, there should be some message indicating the problem. For the IIS case, it will show you that port 80 is in used. The Error.og file is a file that you might want to look into once in a while to see if any major problem is creeping in. -
What the partition type you use on your external hdd? NTFS, FAT16 or FAT32.For NTFS, you will have problem trying to "eject" the drive. That's because of the way NTFS works. I had my external hdd formated as NTFS too. But if I force disconnect it. It will works fine, not sure why your case is different.For FAT16 or FAT32, it's not so robust. But ejecting it is not a problem. If you happen to force disconnect without ejecting, chances are you'll always get a corrupted partition. Your case sounds more like FAT16 or FAT32. NTFS has almost 0% chance of getting corrupted, unless of cause you have bad sector on your hdd, especially near the boot sector or partition table.Another speculation that you get the message "Cannot remove now, some programs are using the Hard Disk", is that your're using FAT32(which easily get corrupted), and you have some software install on your pc that's accessing the file on your external hdd, maybe backup software, or anti-visus/spyware alike. You can try see if it works properly in safe mode.