The spot, my spot
28 Apr
These are some videos I’ve taken over the past week of our new black pug puppy named Marley (Robert Nesta to be specific). He has the same Dam and Sire as Punky, our 1 ½ year old pug; Punky’s got a new little brother!
He’s now almost 8 weeks old but he was 7 weeks in most of the videos.
Punky’s first time meeting her new brother Marley. This was filmed by my girlfriend Amanda at the breeder’s house when he was just 6 weeks old.
Marley the black Pug puppy goin nuts with his newfound favorite toy: the mini tennisball. He’s not even 8 weeks here.
Marley the black Pug being a feisty little pup playing tug of war with my bathrobe. He’s not even 8 weeks here.
Marley the black Pug at 7 weeks bumbling around; getting scared by the squeaky toy, wondering why Punky’s barking, and finally having a good tussle with his older sister.
2 Oct
Update: The video’s been removed from Metacafe because someone thinks it’s objectionable for me to display a clip of something I witnessed and found very interesting. More to come…
He’s super badass. Filmed this myself.
A Liger, by the way, is a cross between a male lion and a female tiger; not the other way around. That specific combination is the only way to achieve the extraordinary size that is common with Ligers. A female lion and a male tiger produce a “Tigon” which usually will end up being smaller than either of it’s parent’s; sort of the opposite. Genetics are weird.
22 Sep
lsoflsof is the Linux/Unix über-tool. I use it most for getting network connection related information from a system, but that’s just the beginning for this amazing and little-known application. The tool is aptly called lsof because it “lists open files“. And remember, in Unix just about everything (including a network socket) is a file.
lsof is also the Linux/Unix command with the most switches. It has so many it has to use both pluses and minuses.
usage: [-?abhlnNoOPRstUvV] [+|-c c] [+|-d s] [+D D] [+|-f[cgG]] [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+|-M] [-o [o]] [-p s] [+|-r [t]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
As you can see, lsof has a truly staggering number of options. You can use it to get information about devices on your system, what a given user is touching at any given point, or even what files or network connectivity a process is using. lsof replaces my need for both netstat and ps entirely. It has everthing I get from those tools and much, much more.
-i lsof -i
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME dhcpcd 6061 root 4u IPv4 4510UDP *:bootpc sshd 7703 root 3u IPv6 6499TCP *:ssh (LISTEN) sshd 7892 root 3u IPv6 6757TCP 10.10.1.5:ssh->192.168.1.5:49901 (ESTABLISHED)
lsof -iTCP
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME sshd 7703 root 3u IPv6 6499TCP *:ssh (LISTEN) sshd 7892 root 3u IPv6 6757TCP 10.10.1.5:ssh->192.168.1.5:49901 (ESTABLISHED)
-i :port shows all networking related to a given portlsof -i
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME sshd 7703 root 3u IPv6 6499TCP *:ssh (LISTEN) sshd 7892 root 3u IPv6 6757TCP 10.10.1.5:ssh->192.168.1.5:49901 (ESTABLISHED)
@host lsof -i@192.168.1.5
sshd 7892 root 3u IPv6 6757TCP 10.10.1.5:ssh->192.168.1.5:49901 (ESTABLISHED)
@host:port lsof -i@192.168.1.5
sshd 7892 root 3u IPv6 6757TCP 10.10.1.5:ssh->192.168.1.5:49901 (ESTABLISHED)
Grep ping for “LISTEN” shows what ports your system is waiting for connections onlsof -i
iTunes 400 daniel 16u IPv4 0x4575228 0t0 TCP *:daap(LISTEN)
Greplsof -i
firefox-b 169 daniel 49u IPv4 0t0 TCP 1.2.3.3:1863->1.2.3.4:http(ESTABLISHED)
You can also get information on various users, processes, and files on your system using :
-ulsof -u daniel
-- snipped -- Dock 155 daniel txt REG 14,2 2798436 823208 /usr/lib/libicucore.A.dylib Dock 155 daniel txt REG 14,2 1580212 823126 /usr/lib/libobjc.A.dylib Dock 155 daniel txt REG 14,2 2934184 823498 /usr/lib/libstdc++.6.0.4.dylib Dock 155 daniel txt REG 14,2 132008 823505 /usr/lib/libgcc_s.1.dylib Dock 155 daniel txt REG 14,2 212160 823214 /usr/lib/libauto.dylib -- snipped --
-clsof -c syslog-ng
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME syslog-ng 7547 root cwd DIR 3,3 4096 2 / syslog-ng 7547 root rtd DIR 3,3 4096 2 / syslog-ng 7547 root txt REG 3,3 113524 1064970 /usr/sbin/syslog-ng syslog-ng 7547 root mem REG 0,0 0 [heap] syslog-ng 7547 root mem REG 3,3 105435 850412 /lib/libpthread-2.4.so syslog-ng 7547 root mem REG 3,3 1197180 850396 /lib/libc-2.4.so syslog-ng 7547 root mem REG 3,3 59868 850413 /lib/libresolv-2.4.so syslog-ng 7547 root mem REG 3,3 72784 850404 /lib/libnsl-2.4.so syslog-ng 7547 root mem REG 3,3 32040 850414 /lib/librt-2.4.so syslog-ng 7547 root mem REG 3,3 126163 850385 /lib/ld-2.4.so -- snipped --
lsof /var/log/messages
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME syslog-ng 7547 root 4w REG 3,3 217309 834024 /var/log/messages
-plsof -p 10075
-- snipped -- sshd 10068 root mem REG 3,3 34808 850407 /lib/libnss_files-2.4.so sshd 10068 root mem REG 3,3 34924 850409 /lib/libnss_nis-2.4.so sshd 10068 root mem REG 3,3 26596 850405 /lib/libnss_compat-2.4.so sshd 10068 root mem REG 3,3 200152 509940 /usr/lib/libssl.so.0.9.7 sshd 10068 root mem REG 3,3 46216 510014 /usr/lib/liblber-2.3 sshd 10068 root mem REG 3,3 59868 850413 /lib/libresolv-2.4.so sshd 10068 root mem REG 3,3 1197180 850396 /lib/libc-2.4.so sshd 10068 root mem REG 3,3 22168 850398 /lib/libcrypt-2.4.so sshd 10068 root mem REG 3,3 72784 850404 /lib/libnsl-2.4.so sshd 10068 root mem REG 3,3 70632 850417 /lib/libz.so.1.2.3 sshd 10068 root mem REG 3,3 9992 850416 /lib/libutil-2.4.so -- snipped --
-t option returns just a PIDlsof -t -c Mail
350
ps aux | grep Mail
daniel 350 0.0 1.5 405980 31452 ?? S Mon07PM 2:50.28 /Applications/Mail.app
-alsof
bkdr 1893 daniel 3u IPv6 3456TCP 10.10.1.10:1234->1.1.1.1:31337 (ESTABLISHED)
-t and -c options together you can HUP processeskill -HUP `lsof -t -c sshd`
-t with -u to kill everything a user has openkill -9 `lsof -t -u daniel`
lsof +L1 lsof +L1
(hopefully nothing)
This primer just scratches the surface of lsofman lsof
The lsof
http://www.netadmintools.com/html/lsof.man.html
12 Jul
My Father’s latest book, Owning the Sierra Nevada: a short history of a long infatuation came off the presses at the end of June. On this past Sunday, July 9th, the book was reviewed in the Los Angeles Times book review. This has come as a rather big surprise because the review copy of the book that was sent to the LA Times was done only as a long-shot. A review from them, was–to say the least– not expected. The LA Times is one of the biggest and most read newspapers in the country, right behind the New York Times. Hopefully this review will spark more and more interest in the book and cause it to start flying off the shelves. Multiple bookstores have already placed orders for copies of the book after reading the review.
If you are interested in acquiring a copy (or copies) of the book you can contact my Father directly via his website or wait until the book shows up in a bookstore near you; hopefully sooner rather than later.
View a compilation of reviews for Owning the Sierra Nevada.
technorati tags:books, father, LA_times, sierra_nevada
9 Jul
Well, last night I got home from my buddy’s 21st birthday to find that I had received the following email:
Hi Ben,
It seems we share the same name. Would you consider selling the rights to either of these domain names?
benharold.com
haroldconsulting.comIf you have a price in mind I’d love to hear it.
Thanks,
Ben Harold
Harold Consulting, Inc.
Confused at first, I soon realized that for the first time in my life I had come in contact with someone sharing the exact same name as me. No huge surprise I guess, it had to happen eventually. Anyways, it seems Mr. Harold runs (or is starting) a business named “Harold Consulting” and is interested in purchasing this domain (benharold.com) for use on his business’ website.
In my reply, I explained to him the obvious sentimental value of owning the domain as well as the fact that I already have an established personal site setup at the domain that is highly ranked in the search engines. Taking all that into account, I told him to make me an offer I can’t refuse ;-). We’ll see what happens.
technorati tags:news, website, domain, money, buy-out
Blogged with Flock
Recent Comments