
![]() |
ratthing
Learned this new one today, looking for a solution to a completely unrelated problem (why the heck the load on my box goes up to 6+ when copying a file from a usb drive to a firewire drive using the Finder):debug_http () { /usr/bin/curl $@ -o /dev/null -w "dns: %{time_namelookup} connect: %{time_connect} pretransfer: %{time_pretransfer} starttransfer: %{time_starttransfer} total: %{time_total} " ; } This particular bash function uses curl to display times for various parts of an http connection, so you can figure out why a page is loading slowly. Slap that in your .bashrc or .profile, then call from the command line: ~ratthing%> debug_http www.cnn.com Knew this in theory, never thought of using it in practice. =RT= perkiset
Handy RT, thanks!
|

Thread Categories

![]() |
![]() |
Best of The Cache Home |
![]() |
![]() |
Search The Cache |
- Ajax
- Apache & mod_rewrite
- BlackHat SEO & Web Stuff
- C/++/#, Pascal etc.
- Database Stuff
- General & Non-Technical Discussion
- General programming, learning to code
- Javascript Discussions & Code
- Linux Related
- Mac, iPhone & OS-X Stuff
- Miscellaneous
- MS Windows Related
- PERL & Python Related
- PHP: Questions & Discussion
- PHP: Techniques, Classes & Examples
- Regular Expressions
- Uncategorized Threads