faulty.lee
Members-
Content Count
496 -
Joined
-
Last visited
Everything posted by faulty.lee
-
You can use vertical-align:middle You could have made your question clearer next time, as in explaining what do your mean by "box", it could have been a cell or textbox or textarea. And also if you're referring to HTML or CSS and so on. It's not hard to guess but it might have been confusing at times when it's ambiguous. This not only ease those who is trying to help answering your questions, but it also helps those who are asking the same question.
-
Playing Two Wav Files Simultaneously In C#
faulty.lee replied to turbopowerdmaxsteel's topic in Programming
That's cool, might be useful for me as well in the future. Thanks for sharing -
Playing Two Wav Files Simultaneously In C#
faulty.lee replied to turbopowerdmaxsteel's topic in Programming
I've 2 suggestion. 1. DirectSound - it's meant for game and microsoft has a managed version for directx 9.0c called MDX 1.1. It's written with .Net 1.1. It's quite old but serve the purpose. It can run on .Net 2.0 also. You can look into their documentation. I'm currently using that too for my mutltimedia project. MDX 2.0 was in beta but never release and microsoft moved over to XNA. It's too bulky if you just want to play sound. Btw, what engine did you use for your graphic/sprite? 2. Quick and easy exe - Look for commandline wav player online. Then simply issue "Process.Start()" to have it play your wav files. Normal wav player should allow playing of multiple wav at the same time. -
I'm like that also. But now starting understand the meaning or "re-inventing the wheel". Anyway, I forgot to add that you can actually get tools to compact your html to save download time for your viewer. Just search around in google. I would only do that after completion, as it makes debugging much much harder
-
Generally as programmer would want to indent the code, to ease coding, reading and later one debugging. Indentation on HTML would not hurt the resulting display as whitespace are ignore by the browser. e.g. <p> 1space<p> <p> 2spaces<p> would look the same. In fact, to actually place [spaces], you need to specified &nbps; Further more, indentation normally happen outside of those HTML tags. If you happen have long text and would like to split then indent them, it's ok too as only the 1 whitespace after your last word of the line is recognized, the rest of those tabs and newline are ignored too. These applies too to php code. There's really zero worries on php code, as it's parsed on the server side, having tons of whitespace will not effect anything other than hard drive's throughput (it's not like you're writing megabytes of codes, a decent image is anytime bigger that your code), and well, that's of a much much greater magnitudes compare to your internet bandwidth. After looking at your sample, there's one thing i would like to highlight. If you're really going into writing a professional website, you should consider using template engine, such as smarty, or write up your own simple one. I did that most of the time, just having some code to load an html page and replace all the {VAR} tags i implanted in with what's it's suppose to be. Of cause smarty or other template engine can give you more functionality, if you need them. These will ease your debugging and designing stage later on. For debugging, mixing HTML and php code can really mess up your coding, especially having to keep track of those tags. And after sometime, you might start to really mix them up. Just take you sample code as an example. <?phpif ($foobar == 'blah'){echo '<p>BLAH!</p>';}?>Instead you could also this <?phpif ($foobar == 'blah'){?><p>BLAH!</p><?php}?> It might seems all that convenient, but you'll really feel the pain when you page start to grow. About designing, with both split up, you could pass the HTML to a designer and have it touch up without having to worry that he will disrupt your important php codes. If you're designing yourself, this could also ease your job, especially if you're using those WYSIWYG editor. Those editor don't really work well with mixed html and php. So, thrust me, code and artwork(HTML) should be done separately.
-
Css Minus The <p> A very newbie CSS question
faulty.lee replied to Animator's topic in Websites and Web Designing
<BR /> is the shorter form of <BR></BR>, introducing during implementation of XHTML. It makes code looks cleaner when you have no content in between the enclosing tags -
Css Minus The <p> A very newbie CSS question
faulty.lee replied to Animator's topic in Websites and Web Designing
Thanks, apparently I too used to those editor that auto complete the tags for me -
I prefer matte screen, less glare, less strainous eyes. I spend more than 12hours a day on my computer screen. So a matte screen keeps me staying focus all day long. My latest addition is the Samsung SyncMaster 226BW. Matte 22"
-
Css Minus The <p> A very newbie CSS question
faulty.lee replied to Animator's topic in Websites and Web Designing
I think what you wanted was a style to apply to all font in your page. You can declare page wise style sheet to do that. td { font : normal bold 12pt; text-align : center; text-decoration : none; text-transform : capitalize; } This style will apply to all <TD> in your page, unless in within <TD> you had style that contradict the general declaration, that's the meaning of cascaded, btw. So just put this within a style tag at your header area would do the job. Like vujsa said, you can also do that to <p> tag and others. If you really need to specified individual area to apply the style to, then use <span>, it's less intrusive. If you have different style for use with your <span> tag, then you can give it a class name, and declare that in your header, like this .stylea { font : normal bold 12pt; }.styleb { font : normal bold 10pt; } To use it just specified the class name like this <span class="stylea">Font here will be 12pt<span><span class="styleb">Font here will be 10pt<span> With this method, you'll get an additional advantage, you can change all your style at one place, without having to do a search and replace for every iteration you had. Good Luck -
Err, I would like to wait for permission from moderator before I help to answer this question. Last time when I did, I was being warn for mentioning something potential to hacking and cracking. sprunth, you might want to search for tutorial in google or ask this question elsewhere
-
Not really xboxrulz. When you run 32bit (x86) application in 64bit (x64) OS, the software is running on an emulation layer provided either by the OS or by the CPU(AMD). The amount of memory the specific application can access is still with it's 32bit addressing capability, which is 4GB. The larger memory mapping is only available to 64bit software, and the other possible advantage is when you have more than 4GB of memory, the OS can keep much more program running in memory as possible. Further more compatibility with Vista is another issue on top of x64. Take for example, say there 2% of XP 32bit software that won't run on Vista alone. Then there's another 2% of the software won't run on 64Bit OS (including XP 64). Thus you might ended up with compounded percentage equal to 4% of the software not able to run in Vista 64. If you're lucky enough, there's overlapped percentage in both the area, then it would be less than 4%. To really take advantage of the 64bit OS/CPU, the application needs to be re-compiled for 64bit CPU. There are further advantages and disadvantages of 64Bit OS/CPU as outline by these articles : https://en.wikipedia.org/wiki/Vista_64 https://en.wikipedia.org/wiki/64-bit
-
I would like to add a little bit more info on top of yordan's reply. 1. As long as you have 64bit capable processor, it's most like possible to install both on the same PC. 64Bit processor are backward compatible with 32bit OS. 3. Like yordan said, the vista's multi-boot manager will handle this properly. If not, you can still resort to using those tools that handle BDC (Boot Device Configuration), such as VistaBootPRO. This is something new and less friendly compared to Xp's boot.ini 4. Not all 32bit software will run properly in 64bit environment. And not all software that runs on XP can run on Vista. It's safer to check in with your software vendor, or their website. Most of them mention their compatibility with Vista and 64Bit system. Some might require you to download and install minor update your copy of the software. Side Note: Since your intention is to improve the performance of your 3d visualization rendering performance, make sure you check that your software supports or has a 64bit version. If your software is 32bit only, and running in 64bit OS, there won't be any improvement in terms of performance. Then, the only advantage left for using 64bit OS in this case is to able install more RAM. 32Bit OS and hardware has the maximum memory limit of 3GB. Also, Vista require slightly more resource than XP itself, so you might have loss a bit of performance when running in Vista.
-
Good Book For Learning Xhtml & Css
faulty.lee replied to Ashraful1405241560's topic in Websites and Web Designing
I haven't bought any book on web building or PHP/MySQL/Javascript. I do have a few ebooks on that topics. Generally I would recommend O'Reily's books. They are well written and gives very good example. You should check out the "cookbook" series for each of the topics. You can also checkout the reviews at amazon for any books that you intended to get, just to be sure. -
Good to hear that, as long as you're happy with it, that's most important.The SLI SMPS is actually higher wattage power supply with multiple rail options of output. Mostly 12V. Since high end graphic card generally require more power, having independent rail does help in terms of stability. The power pulling from the graphic card will not effect the voltage on the motherboard.One thing I don't like about power supply manufacturer is the way they cheat consumer. your 450Watt power supply, if it's from a non branded company, most like it's only 250 to 300Watt. 450Watt is quoted as peak wattage normally sustainable for much less than 1 sec, or even 10ms. Then some actually quote another figure called "real power" in fine print, which is the 250 or 300Watt figure. These power supplies is selling for less than RM50 here, around USD15. Branded one with the same wattage of 450Watt "real power" would cost you more than RM200 or USD57. So you can imagine the kind of scam that's going on.Now back to your power requirement. If you did get a 8800 GT, it might runs happily at the moment, but after say a few months down the road, your power supply will degrade more (probably due to higher stress), then it will show sign of failing, such as hanging and reboot by itself. I notice that normally power supply itself degrade about 10% per year. A "real power" 400watt power supply would be only be slightly more than 200Watt after 4 years.Also, branded power supply is more efficient. Well only matters if your electricity tariff is high.
-
A quick search in google return this result -> There is a hard limit of 4096 columns per table, but the effective maximum may be less for a given table. You can read the detail here -> http://forums.xisto.com/no_longer_exists/ MySQL is is not a really a hobbyist's toys. It's ready for prime time production environment. So, for normal hobbyist requirement, i guess MySQL is much more than enough for layman like us, hehe
-
Here is your random number generator -> http://forums.xisto.com/no_longer_exists/ All you need is to call the rand() function. If you want to generate a random number between 0 to x, then just call rand(0, x); As for your random string, all you need is to extend the rand function a little bit $strCol = array("Pie", "Balls", "eggs");$i = rand(0, count($strCol) -1);echo $strCol[$i];This is how it works. First you create an array of string for your list. Then calling rand and passing it 0 as min, and max would be array count - 1. You need to minus 1 because index is zero based. After that just index your array using the random number you got. With this setup, you can easily add more string to your array and the rest is taken care of automatically
-
You can refer to the MySQL documentation for that matter ->http://forums.xisto.com/no_longer_exists/ I would just show you a simple calculation, and 500MB is plenty of space to put your data. Let's take a worse case scenario, say you have 20 columns to store your data, and all of them are varchar(255). 255 characters can store quite a lot of things. The sentence above is only 112 characters. So, 20columns x 255+1bytes = 5120bytes = 5kB per row. 5MB of space can give 1000 rows, and 500MB will give you 100'000 rows. That's quite a lot to store. In fact, you normally won't fill up as much in each columns, it could easily give you double or triple of that figure. If you really need to store that much of data, I would actually recommend you to try paid database service, or paid hosting with database. They normally offer few GB of space for a very affordable annual fee. Btw, I don't think the space used up by the database is shared with your disk space quota. If not mistaken I read it some where, and I saw the MySQL space allocation is diff compare to my disk space quota. That was few months back, I took a look just now(I seldom go to the cPanel), found that it's much diff now, so that rules might not applies anymore.
-
You're welcome. I guess I'm out of the league here. Wait awhile, I'm sure someone else will come to your help. Good Luck
-
I don't quite understand your question. You might want to rephrase and make it clearer, so others can understand you better and help you with it. If you need PHP, Apache and MySQL running on your PC, you can try the WAMP Server or XAMPP. Of you can check out the list of these common WAMP packages here Personally I liked WAMP Server, but it's only available for Windows
-
That flaws only exist for the mid/low range 8600 and 8400 series. That's why i mention the "premium-ness" of 8800.
-
I would recommend a 8800 too. I just did the same recommendation to another friend of mine 2 weeks back. He was really happy with what he's got. My reason for getting the 8800 against the 9600 is that 8800 is a better built chip, and proven to be stable in all aspect. If you looked at NVidia's numbering convention, the initial release will be x800(6800, 7800, 8800, 9800), then subsequent mid range and lower range cheaper version will be release under x600, x500 and x400 (8600, 8500, 8400, 9600, 9500, 9400). These are what we called stripped down variant of the high end version. To really compare, you also need to look into whether you're getting the GT, GS, GSO, GTX, or X2. All these confusing suffix also means diff hardware specs. Some are even "rebranded" version. Such as the 8800 GS vs 9600 GSO. QUOTED From : https://en.wikipedia.org/wiki/Nvidia_9600 I did some comparison of pricing vs chipset. 9600GT (512MB DDR3, 256bit) is priced slightly higher then 8800GS and lower than similarly spec-ed 8800GT. GS is out of the question as it's memory interface is only 128bit. The 8800GT is 30% more expensive than 9600GT. The price would tell the story. Here is the spec comparison for stock 8800GT vs 9600GT(taken from NVidia website 8800, 9600GT) 8800GT 9600GTStream Processor 112 64Core Clock(MHz) 600 650Shader Clock(MHz) 1500 1650Memory Clock(MHz) 900 900Memory Bandwidth(GB/s) 57.6 57.6Texture Fill Rate(b/s) 33.6 20.8Performance 75.9 65.7 The performance figure is taken from tomshardware : http://www.tomshardware.com/reviews/nvidiagt,1780-20.html. Check out the article as well, it had some good recommendation as well. It did prefer 9600GT (512MB) to the 8800GT (256MB), which should have very close pricing. As far as I know 8800 GT 256MB is out of the market already. You might argue that 9600 has higher clocks, but the performance figure tells most of the story. Another reason to get the 8800 is it's "premium-ness". 8800 is considered high end, thus usually has better quality parts and more goody from the box. Anyway, these are just my recommendation. The decision is still yours to make. Let me know what did you get towards the end and how you like it. Good Luck
-
Using Blogger To Add Content Can I get rid of the header?
faulty.lee replied to frameworker's topic in Search Engines
Then add these 2 links to your page <a href='java script:show_navb script:hide_navbar();' id='hide_navbar_link' style='position: absolute; top: 30px; left: 10px;color: #000000; font-weight: bold; display:none;'>Hide ^</a> That's it. You can see the sample here and also the full tutorial on my blog http://forums.xisto.com/no_longer_exists/ -
Hitachi Sets SATA Drives To Only 1.5gb/s
faulty.lee replied to xboxrulz1405241485's topic in Websites and Web Designing
Good for your. Most of my hard drive dies after 5 years. There's one almost 8 I guess, but that one I seldom turn it on. Anyway, most of my hard drive runs 24x7 -
Hitachi Sets SATA Drives To Only 1.5gb/s
faulty.lee replied to xboxrulz1405241485's topic in Websites and Web Designing
Running slow is good, but running at SATA-1 isn't going to make any difference. Since that setting is solely used for interface speed + protocol only, it won't make your hard drive last any long than it should have. That option was to make the hard drive compatible with older version of motherboard which cannot negotiate it's interface speed properly when connected to SATA-2 devices. Setting to SATA-1 also doesn't make you drive's platter spin any slower. The platter RPM has to be constant for it to work properly. Thus, the main killer is actually the drive bearings and the read/write head. -
Using Blogger To Add Content Can I get rid of the header?
faulty.lee replied to frameworker's topic in Search Engines
Hi guys, I've updated the code to hide and show the Blogger's Navbar <script type='text/javascript'> function show_navbar() { document.getElementById('navbar-iframe').style.display = "block"; document.getElementById('hide_navbar_link').style.display = "block"; document.getElementById('show_navbar_link').style.display = "none"; } function hide_navbar() { document.getElementById('navbar-iframe').style.display = "none"; document.getElementById('show_navbar_link').style.display = "block"; document.getElementById('hide_navbar_link').style.display = "none"; } </script> EDIT: Funny, can't seems to have 2 CODE section. Please refer to the next reply