16 Aug 2010
in geek stuff Tags: linux, utilities
We started with Apache Bench (ab) which worked well enough until we realized that it wasn’t doing ssl. The address uses https protocol. So I did a bit of research and found seige. It’s an ideal tool for this purpose – easy to use from the command line and also supports a configuration file.
Here’s some basic instructions to get it up and running on CentOS 5:
$ wget ftp://ftp.joedog.org/pub/siege/siege-latest.tar.gz
- expand the archive
- make sure you have the ssl libs installed:
$ sudo yum install mod_ssl openssl
- cd into the siege directory
- build and install:
sudo make install
- Note: the instructions suggest installing the tool in a more obvious place that the default, but I didn’t do that.
- Now you can copy the sample siegerc to your home directory to change the default options:
$ cp docs/siegerc ~/.siegerc
$ cd ~
$ vim .siegerc
- The default siegerc file is well documented and easy to configure.
- Time to run it:
$ siege https://www.[yoursecuresite].???
Here’s an example summary report that you get after the test is done or stopped:
HTTP/1.1 200 0.08 secs: 7914 bytes ==> /index.html
Lifting the server siege... done.
Transactions: 311 hits
Availability: 100.00 %
Elapsed time: 1.13 secs
Data transferred: 2.35 MB
Response time: 0.11 secs
Transaction rate: 275.22 trans/sec
Throughput: 2.08 MB/sec
Successful transactions: 311
Failed transactions: 0
Longest transaction: 0.35
Shortest transaction: 0.02
02 Nov 2009
in geek stuff, mac stuff Tags: osx, utilities
For the most part Snow Leopard was an almost seamless upgrade from Leopard for me. Whenever there’s a major OS X update, some things take a little while to catch up. So I have some understanding when lower level tools require some extra steps to get working.
Wine took a bit of debugging and googling to figure out. Maybe this will help someone else.
I pretty much followed these instructions, with a little variation at the end: http://davidbaumgold.com/tutorials/wine-mac/ Here’s a summary:
- install the Xcode dev tools from the Snow Leopard DVD. These are not installed be default. Make sure you select the X11 tools to be installed
- Install or upgrade MacPorts: http://www.macports.org/install.php
- Install wine with MacPorts:
>> sudo port install wine-devel +universal
Now that should work. However, I didn’t do it that way. I did it without the ‘+universal’ switch and that’s where my troubles began. If you are now in a place where you’re getting this error:
>>sudo port install wine-devel
---> Computing dependencies for wine-devel
---> Extracting wine-devel
Error: You cannot install wine-devel for the architecture(s) i386
Error: because /opt/local/lib/libexpat.dylib only contains the architecture(s) x86_64.
Error: Try reinstalling the port that provides /opt/local/lib/libexpat.dylib with the +universal variant.
Error: Target org.macports.extract returned: incompatible architectures in dependencies
Error: Status 1 encountered during processing.
You need to figure out what port uses that lib and force a universal upgrade. Here's how:
>>port provides /opt/local/lib/libexpat.dylib
/opt/local/lib/libexpat.dylib is provided by: expat
So expat is the culprit. Now lets get it upgraded:
>>sudo port upgrade --enforce-variants expat +universal
I ended up doing this about a dozen times, once for each of the wine dependancies that wine complained about. I eventually got wine installed.
I suppose you could script this by getting all the Wine deps and doing some copy and pasting. That would probably be quicker.
Here’s a post I found that streamlines the process a bit.
20 May 2009
in entertainment, geek stuff Tags: music
I spent last weekend at a board gaming retreat we call WBC-West. We stayed at Doug’s family’s house in central Oregon and played (mostly) board wargames. When you’re hanging out inside all day playing games, it’s nice to have some tunes going and several of our iPods took turns as DJ.
I put on my trip-hop playlist that I have been building, pruning and refining over the last several years. It’s a mix of techno downtempo, chill and trip-hop that I listen to at work. For me, it’s a great mix to listen to while working as there are not a ton of lyrics to distract, but there’s always good beat to keep you going. I think it works well as gaming background for similar reasons. I got some complements and inquires on the playlist – Eric even said that he’s going to spend his next month’s eMusic quota on bands from the list. So now after 2 post-weekend emails requesting more info on the list, here’s the scoop:
- 9 Lazy 9
- Amon Tobin
- Out From Out Where
- Remixes & Collaborations
- Downtown Science
- Music By Cavelight
- Uncle Tony’s Coloring Book
- Animal Magic
- Days to Come
- Dial ‘M’ for Monkey
- Live Sessions EP
- One off Remixes and B-Sides
- Solid Steel Presents: It Came from the Sea
- Chris W. Paine
- Cut Chemist
- Czarny Wladek
- DJ /rupture
- DJ Krush
- DJ Shadow
- Preemptive Strike
- Private Press
- Bombay the Hard Way
- Free the Robots
- Gotan Project
- Inspiracion-Espiracion Remix
- La Revancha del Tango
- Mare Tranquillitatis
- Groove Armada
- Back to Mine
- Goodbye Country (Hello Nightclub)
- Love Box
- Northern Star
- Helicopter Down!
- Kruder Dorfmeister
- Massive Attack
- 100th Window
- Blue Lines
- Nexus (Bootleg)
- No Protection: Massive Attack Vs. Mad Professor
- Pi (Symbol)
- Rising Tears
- the karmacoma e.p.
- Mocean Worker
- Aural & Hearty
- Enter The MoWo!
- Home Movies From The Brainforest
- St. Germain
- Strange Republik
- Thievery Corporation
- 18th Street Lounge Comp.
- DJ Kicks
- Hi-Fidelity Lounge
- Om Lounge, Vol. 1
- Radio Retaliation
- Sounds From The Thievery Hi-Fi
- The Cosmic Game
- The Mirror Conspiracy
- The Outernational Sound
- The Richest Man In Babylon
- Ulrich Schnauss
- A Strangely Isolated Place
- Far Away Trains Passing By
- Wax Tailor
- Hope And Sorrow
- Tales Of The Forgotten Melodies
- Zero 7
Wow, that’s a long list. I regularly refine it, so not all tracks from all these albums are actually part of it, but still…
If you have any suggestions of other bands or albums for me, please comment.
Enjoy the chill.
18 May 2009
in geek stuff, mac stuff Tags: osx, utilities
This is the first installment in a series I will be posting about how to get the most from your Mac. I run into a lot of switchers and often get questions about how to do stuff on the Mac. So instead of copying, pasting and updating the same email repeatedly, I can now refer them to my blog
Let me know if there are any specific areas that you would like me to cover in the future.
Disclaimer: The opinions expressed in this article (and my whole blog for that matter) are mine and mine alone. Additionally, I have not received compensation related to any of the software mentioned here.
Part 1 – Handy applications and utilities
OS X 10.5.x (leopard) has a pretty nice set of built-in features and applications. But there’s always room for improvement. The following is a list of free, shareware and commercial tools that I recommend.
LaunchBar – A keyboard driven launcher, navigator and general productivity tool. This is the first thing I install on any Mac that I use. Shareware. An alternative to quicksilver, very similar, but some feature differences. Quicksilver is free and will probably work just fine for you. They’re charging a bit more for the latest version of LaunchBar (24 euros – about $31) and it’s probably a bit too much. I got the first version for $12 and have been upgrading since.
Growl – system wide notifications, lots of supporting apps – free
MenuMeters – all your machine’s vitals in configurable displays in your menu bar – free
Adium – All-in-one instant messaging client. Supports a ton of different protocols in a highly configurable app. Free
Google Notifier – If you use gmail or google canendar, I highly recommend this.
Default Folder – Simply brilliant. Besides remembering where you last opened files from on a per app basis and giving hot keys to specific locations, this will allow you to mouse-over a Finder window and have your open/save dialog goto that directory. Just try it or let me demo if for you. Unfortunately, the latest version is a bit expensive at $35.
Network and File utilities:
Chicken of the VNC – handy VNC client for your remoting needs – free
RDC – Remote Desktop Connect. Open a VNC-like network session with a windows box, only faster. The best Mac app that M$ has released, evar.
Parallels – Virtualization for when you have to foray into other OS’s locally. Latest version has coherence and supports most USB devices (even ones not supported by OSX). Commercial.
Toast – CD/DVD burning app. Commercial.
muCommander – General purpose file manager with excellent network features, based on Norton Commander. Free.
Cyberduck – Handy s/ftp app – if you do that sort of thing with a GUI. Free/Nagware.
Laptop Specific stuff
SlimBatteryMonitor – big improvement over the one built into the OS , and free.
Note: I used to have more of these, but the MBP and Leopard have incorporated their functionality.
TextMate – A fantastic editor and IDE. Configurable, scriptable, pluggable. BBEdit is a fading memory for me. Commercial, $54.
iTerm – Replacement for Terminal.app – tabbed interface, uses Linux compatible keyset, bookmarks. – free
CocoaMySQL – GUI for management of your MYSql DBs – free
svnX – GUI for SVN. A little rough around the edges, but stable and useful – free
Data management and prodctivity:
Dropbox – Secure, remote file storage and syncing. I use this for application specific data files and small backups. Free for your first 2BG, pay for more.
Evernote – My current favorite tool. This is the data management solution that I have been trying to find/hack/create for years. It’s a personal wiki/cms with rich formatting, tags, categories and easy importing from email and web. But what really sells it for me are the client apps with syncing and offline use. There are clients for Mac, Win, iPhone and others. They all keep synchronized with each other and allow offline editing. I can’t tell you how much time I’ve spent trying to solve this problem for myself with combinations of web apps, Mac apps, scripts, etc. Finally I have one place to put all my data where I can access and update it whether I’m at home, work, on the bus or at a coffee shop. The first 40MB a month are free – which is plenty if you’re mostly storing text, like me. You can pay for more.
VoodooPad – A wiki wrapped up in an application. Great for notes, lists, reference, etc. However I think Evernote will soon completely replace this for me. Shareware.
1Password – Secure, encrypted login/password/data storage with excellent browser and iPhone integration. $40, but you can often find it discounted or even free bundled with other apps.
Things – A well designed todo list and task manager, one of the best I’ve ever used. It’s based on GTD, but you don’t have to use it that way. Has an iPhone app that is useful independently and well integrated, but costs additional also. $50 for the Mac, $10 for iPhone.
Skitch – Uber-screenshot tool. Capture screens, edit the images, share them on the web, all-in-one. Free.
Twitterific – Handy twitter client. Free with ads, pay to get rid of them.
VLC – Plays just about any video you throw at it. Can be controlled by the IR remote that comes with your MBP. Cross platform. Free
Graphic Converter – Reads and writes most ANY graphic format. Does decent editing and even has some automation/script-ability. Also a quick image browser. Shareware. If you want something free that does a bit more than iPhoto, try Seashore.
GimmeSomeTune – iTunes extension with great hotkey functionality and some other nice features.
That’s my current list. I’d be interested in your opinions on these. What apps do you use and like?
16 Oct 2008
in the boys Tags: family
For a while now, Griffin has been reading by flashlight when he goes to bed. We often hear him talking about or laughing at the stories he’s reading. Fortunately, Tober goes to sleep fast and hard so he’s not bothered by this.
Griffin has been into joke books lately. So of course he has also been trying his hand at authoring some jokes. The other night when I went in to tell him lights out, he told me this little gem:
“What do you use to make cookies and is at a baseball game?”
That’s right: “A Batter”
Not bad, huh? We’re encouraging him to write them down, he already has a bunch.