Checking size for inline scripts is as easy as
document.getElementsByTagName('script').text.length (solution taken from here). But, when it comes to measuring size of remote resources things gets a little bit complicated. Mostly due to cross-site restrictions and reducing unnecessary server load. Head-type of AJAX call, not so famous among developers, may help in this case.
Below JS Beautifier's main window, you'll find more useful links to tools like above.
On some website around ASUS, I have found a HTML code for building complete user country selection dropdown, which includes every country name written in both English and local name. All local names are encoded in UTF-8 (if not in UTF-16; I'm not sure) so for all countries that uses non-Latin alphabet everything should be fine.
You can find a lot of free hostings for PHP and MySQL, but not that much for ASP and MS Access. In addition to being free, these hostings also offer absolutely not ads, neither on your websites nor in sent e-mails:
100 MB might seem to be very low among nowadays offers (counted in GB or even not limited in space). But since you get: ASP Support, MS Access database and ISS 6 (on Windows 2003), absolutely free for lifetime with 100% no ads, then I think it would be hard to find similar offer with higher storage.
This is a very short brief on how to properly setup NAT functions on ASMAX AR1004g router, i.e. how to route all (or part of) incoming traffic to a specific machine in your local network. In this text, I assume that your router is available under
192.168.1.1 static IP address in your local network and you want to route all traffic using FTP protocol to your video-player, available under
192.168.1.3 and all traffic using HTTP to another computer, that is accessible under
192.168.1.4 static IP address in your local network. Adjust this assumption to your actual situation. Read More "Configuring NAT, DMZ or Virtual Servers on ASMAX AR1004g"
Here is a function that should work in virtually every browser, even really old ones. Of course, it is only useful, if you don't use jQuery. Because, if you do, a far better way is to just call
.live() or whatever you want, and let jQuery do all the dirty work.
To all those, who just don't get it!
- DRY = Don’t Repeat Yourself!
- KiSS = Keep it Simple, Stupid!
- You ain’t gonna need this!
- Premature optimization is the beginning of all hell!
- Copy-paste is time waste!
Never, ever forget about these five, if you're developing anything.