Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
The Internet

Useful Utilities? 22

kberkit asks: "I've just started as a Web designer/Swiss-army-knife, In the crash course of my travails, I've come across some nifty online tools: traceroute to find out what route and how long my Web pages are taking to load to outside servers; DNS lookup, to figure out what IP address a page is coming from; and online HTML validators to make sure my code is clean. I'm sure this is old hat to a lot of Slashdotters, but I'd be interested in knowing what other online tools others would suggest for us poor schleps who find ourselves expected to work miracles with little budget for proper software." For those of you who like traceroute and ping, may I recommend mtr as a supplement for your toolbox? What other small utilities have you all found useful in your day-to-day work lives?
This discussion has been archived. No new comments can be posted.

Nifty Online Tools?

Comments Filter:
  • by Anonymous Coward
    It doesn't... It simply isn't under the default path for normal users on a few distributions.

    The simplest thing to do would be symlinking it into /usr/bin.
  • weblint, for one - this checks your HTML for validity. You'd be surprised how many sites, including really popular ones, use amazingly crappy HTML (*cough* Slashdot *cough*).

    Another one is pngcrush - if you're creating png graphics, they're probably not as small as they could be - pngcrush will optimize the compression without messing with the # of colours in the graphic. Nice.

    Another useful thing is to get a BUNCH of browsers, really old ones, too, for testing. I test from Navigator 2.x through the current, and MS IE 3.x through the current. With MS IE, that requires either multiple partitions or multiple machines - 3.x and 4.x don't install onto the same machine *sigh*. Also - don't forget Windows & Macs! Macs are very different, especially in how they render fonts, so test on Macs (Nav & IE there, too!). I had one site that wigged-out _only_ on Nav 4.5 for Mac. Weird. And scripting can get strange on different versions of IE - once had a site's javascript break _only_ on a particular version of IE 3.x for Windows _NT_ only. Strange strange strange.

    You would do very well to code for XHTML rather than HTML - it forces you to get into good coding habits since it's rather particular (to put it mildly) about what's valid and what isn't. XHTML supposedly works down to second generation browsers.

    Another good thing to test with is 'Bobby' - this is a program that tests for accessibility (for those with disabilities). Most of the web is an accessibility nightmare, unfortunately.

    Okay, that's it - sorry no URLs right now...
  • I find tracert.com [tracert.com] a greatsite for multiple site performance checks, up to ten sites at a time for free, all wrapped up in a nifty report.

    Only thing, the domain name is misleading, as you don't get a traceroute but a measure of the time it took for a page to completely load.

    Its great to compare and check webhosts and such. You find one with a great bunch of features but check it a few times during the day and find that their connectivity is pretty shoddy, now you know why the price was too good to be true.

  • I don't know if the $PATH thing is the problem it might be but maybe your permissions are off. some programs like bastille -linux changet suid programs to remove the executable bit for everybody. locate bin/traceroute | xargs ls -l will should come back with
    -rwxr-xr-x 1 root root ....bin/nslookup

    chmod if it doesn't
  • Or symlink it to your personal bin dir, or add a shell alias or ... well, there are at least six ways to make it run. If you have ~/bin in your PATH you can "ln -s /usr/sbin/traceroute ~/bin/traceroute".

    If traceroute is in /usr/sbin and that is not in your PATH (type "echo $PATH" to check it), you can add that directory with this command: export PATH=$PATH:/usr/sbin

    But if you didn't know that, you also don't know about .profile and other details of your shell.

  • Traceroute web interfaces are fine, but can anyone answer me why traceroute has to be run as root on Linux?
  • Although I'm also fond of WebImage, it hasn't been updated in three years. After I gave these guys my money, I never heard a peep out of them until yesterday, when they spammed me.

    Oh, sorry, they put me, without asking, on an "opt-in" news headline list, where they get revenue for every clickthrough. And even better, I can sign people up for it and get money for their clickthroughs! Feh. And when I contacted them, they of course told me that since I had given them my e-mail in 1997 (where the require it on every order [one.net]), that they had put me on their "marketing" list. And since I was a customer, it couldn't be spam!

    So beware of doing business with Group42.
  • by dubl-u ( 51156 ) <2523987012&pota,to> on Saturday December 16, 2000 @01:24AM (#555057)

    Given that you're posting around here, I'm guessing you have a Linux box handy. Here are some of my favorite sysadmin tools:

    • dig [inetdaemon.com] - This is a more advanced tool for seeing what's going on with DNS.
    • nmap [insecure.org] - A great tool for probing your server to make sure you haven't left anything open.
    • Apache Bench (ab) - This simple but effective benchmarking tool comes with the Apache server. It's great to see how your site will perform under load.
    • wget [gnu.org] - a tool for remotely getting web pages; it's very versatile -- you can even use to save a copy of your whole site, just in case.
    • Ethereal [ethereal.com] - Having trouble figuring out what's going on between the browser and your server? This will capture all the packets and decode them into a nice conversation for you.
    • vmstat [iu.edu] - want to know why your server is slow? Get used to watching the vmstat numbers while it's fast, so you can see what's different when it's slow. It's raw numbers that are hard to interpret, but it's worth getting to know. Maybe this should be another Ask Slashdot question?
    • Netsaint [sourceforge.net] - this is my favorite automatic monitoring package. Once your site is in production, you can set this up to patrol things and make sure everything is working. That lets you get on with other stuff, knowing you'll hear about trouble pronto.
    • MRTG [ee.ethz.ch] - A tool that makes excellent long-term graphs of bandwidth use.
    • IPtraf [mozcom.com] - Where MRTG gives you the broad overview, this gives you the second-by-second nitty gritty.
    • perl [perl.com] - Last but most is Perl, a Swiss Army chainsaw of languages. If you'll be doing any web stuff, pick up a copy of Learning Perl [oreilly.com] and spend a little time with it. Once you learn the magic of regular expressions, you will never again say "that's impossible!" to a problem.

    As far as non-sysadmin stuff goes, here are some of my other favorites:

    • Bugzilla [mozilla.org] - this is a free and flexible bug tracking system. Highly recommended, especially for those people who don't think they need a bug tracking system. Our designers thought it was silly to start, but even they use it all the time now.
    • CVS [cvshome.org] - Like bug tracking, most web sites don't think they need version control. Most web sites are wrong! CVSweb is also recommended. [fh-heilbronn.de]
    • HTML Tidy [w3.org] - bad HTML in, good HTML out.
    • WebTV Simulator [webtv.net] - Sure, you and I don't use WebTVs, but a lot of people do. Browse your site with this to see how the other half surfs.
    • VMWare [vmware.com] - Along similar lines, VMWare is a Windows box emulator. I use it to keep a bunch of synthetic windows machines with a variety of OS versions and browser versions. It makes QA much easier.

    And if there are particular tasks that have you stumped, come back and ask again. 'Round these parts, we have big toolboxes.

  • It doesn't... It simply isn't under the default path for normal users on a few distributions.

    While the later part of this statement is true and solutions have been suggested by other posters the former part is not true. traceroute does have to be run as root. On most distros it is installed as a suid program. To my knowledge this is safe since it is a well tested program without any expliot problems.
    _____________

  • it has to run as root because (i think) it adjusts the ttl (time-to-live) value for each successive packet. on linux this is a privileged operation -> you have to run it as root.
  • by crovax ( 98121 ) on Saturday December 16, 2000 @09:06AM (#555060)

    The dictionary and gifoptimizer.com are the ones I use the most.


    --
    Spelling by m-w.com [m-w.com].

  • It's great to have tools that estimate the load time of your Web pages, but on every project I've worked on, using an inexpensive handheld stopwatch to measure the waiting times observed by humans (which is, usually, what you really care about) made the difference between a well-trafficked site and one that made surfers reach for the back button -- our server logs would show instant differences in traffic when we put out better optimized interfaces. I just read a study that said 1 in 5 e-shoppers who abandon shopping carts before buying do so because the site was loading too slowly. Automated test software often misses factors such as page layout time, network interaction between server and client (try reading Slashdot posts on Mac IE5), and real-world hiccups that can't be extrapolated by parsing a file from your test server.

    Here' an article on site optimization [lycos.com] I wrote a couple of years ago.

  • The answer is "It doesn't!"

    First, check the path where your traceroute executable resides; normally /usr/bin or /usr/sbin (sometimes, although rare, it can be found in /sbin).

    If you can't find it, try locate traceroute.

    If traceroute still refuses to work, check that /etc/resolv.conf is world-readable (as root, chmod a+r /etc/resolv.conf) - as it may be having difficulties resolving hostnames to IP addresses!

    "Hmmmm.... They have the Internet on computers now ?" - Homer Simpson

  • I can't count the number of times (in HTML or in any other language) I've accidentally left off the closing part of something (a tag, a comment, whatever) and inadvertantly nullified half of the file. Syntax highlighting is remarkably effecitve at preventing this and making you more productive overall (e.g. questions of "is that the right way to spell that reserved word" are moot when it's a different color when it's right).

    On windows, my favorite programmer's editor ($20, 30 day trial shareware) is EditPlus [editplus.com]. Small, fast, incredibly featureful and easy to extend. On Unix, Vim [vim.org] is the way to go (small, fast, simple interface you could learn in 10 minutes, syn coloring, etc.). If you're connecting into a remote unix machine to edit your code, check to make sure (ask the admins if need be) that your terminal emulator on the client machine is et right to support color (e.g. xterm-color for the $TERM variable).

    If you're using windows and want a good free SSH and SCP (like a secure, network aware version of cp(unix)/copy(dos)), check out PuTTY SSH [greenend.org.uk]. Putty supports setting the TERM variable on login like I mentioned above. You can also use SSH to "tunnel" other applications over the encrypted stream (like FTP, checking mail, rsync, CVS, X11, etc etc.), but that's beyond the scope of this post (see the docs or do a web search).


    --

  • AFAIK, both ping and traceroute use ICMP (internet control message protocol). On most systems, the ICMP socket is privileged such that only root can use it. Some systems tend to have sophisticated access control lists, for instance giving ping.exe and traceroute.exe access to a certain number of ICMP packets per minute.
    Tetris on drugs, NES music, and GNOME vs. KDE Bingo [pineight.com].
  • ok, it's a windows app,
    but sam spade by blighty design has always been quite helpful for the ip side

    The HTML validators on the W3 site are quite good,

    fp!
    ICQ# : 30269588
    "I used to be an idealist, but I got mugged by reality."
  • by Cmdr. Marille ( 189584 ) on Saturday December 16, 2000 @03:34AM (#555066)
    nice roundup just two other tools

    Cricket [slashdot.org] - pretty much the same as mrtg, but a lot more advanced, based on rrdtool, in my opinion a lot more powerful then mrtg and easier to manage

    NTOP [ntop.org] a sniffer with a web interface, check out one of the newer snapshots. REALLY useful, probably one of the most useful programs i have ever come around(network admin wise) both are web based

  • by dualspeedhub ( 207778 ) on Saturday December 16, 2000 @07:08AM (#555067) Homepage
    Not really of course, but if you're in Bastard Operator From Hell mode, it's good for having fun with.

    "You're still having IP conflict problems? See if you can Ping anything. Hmmm. Is it a Windows box? Run IPConfig - anything unusual? OK, try IPSquint; it's a bit more powerful. You've not got it installed? Odd."

    Cue some Moe the Barman style fun as one of the developers goes on the hunt for a mythical app called IPSquint. .
  • First, who said you need a big budget for "proper software"?

    I don't know how many people think of it but I've become very comfortable editing html over a telnet session with vi[m]. SSH with compression turned on is even better then telnet.

    Also, sed, ps, find, grep are great little utils. I recently relized I could write quick shell scripts on the command line like this:
    $ for x in `ls *.html`; do echo $x; done
    I know that is very simple but it gives you an idea where to start.

    Leknor

  • I like some of the tools listed on this page [opus1.com], it an ISP based out of tucson, AZ.
  • JMeter was so invaluable to me when I started programming high traffic websites, that I joined the project and started making contributions to it. JMeter [apache.org] is a tool that allows you to stress test a website by simulating multiple users accessing a website simultaneously. It really helps you find those bugs that only show up when a large number of users access a site.
  • Thanks for the advice everyone. BTW I am *shudder* developing for a NT server. My image is done on a Mac (got the good tools for that . "Save for web" on recent Adobe products is a godsend). Most of my coding gets done on a slow PC running '95.

The biggest difference between time and space is that you can't reuse time. -- Merrick Furst

Working...