Category: computer

  • Programming Erlang Now Shipping, v1.1 PDF Released

    erlang.gif

    The Pragmattic Programmers are now shipping print copies of Programming Erlang: an outstanding introduction to the interesting new Erlang language for concurrent programming. Peeps who bought the PDF can download v1.1 here.

  • Lala.com Review: Legal Web 2.0 Music Trading

    lala.gifLala.com is an online service for trading physical discs. After entering information on your current CD collection, what CDs you want, and receiving a free shipping kit of envelops and plastic disc carriers via postal mail, you simply start sending discs out as they are requested. Other users do the same, and the system handles the logistics and billing. You may start sending out CDs as soon as you receive the shipping kit to build trading credits, even if you do not yet have discs in your want list. Your credit card is automatically charged a total of $1.75 per CD you receive on a monthly basis.

    I’ve been using it for months now and over 20 trades, and am pleased to report near complete success. On one occasion I did not receive a disc, but this was easy to report. I was never billed for the missing disc and never had to deal with the supposed sender personally. Overall I’ve had a pleasant experience and would recommend it to anyone looking to trade CDs with a minimum of hassle.

    Props to lala for a great, legal idea!

  • Software Engineering Curse Words

    images-1.jpeg

    Here lie terms frequently used in software development which I don’t particularly care for.

    Programmer

    Commercial software is as much about programming as building bridges is about installing steel I-beams. Writing actual code is only part of the engineering effort. When I see a job posting entitled “Java Programmer” I usually suspect that this is either (1) a low-level monkey position and/or (2) the person behind the post doesn’t really understand the scope of typical developer work.

    Developers are required–much unlike the mechanical nature of an assembly line worker–to make decisions and assumptions about the external purpose and internal nature of their work, often part of a seemingly ingrokable ecosystem. Unless you have a micro managing boss or a heavy-weight process itemizing every last byte of work, you must personally exercise critical thinking, time management and interpersonal skills to balance your never ending stream of unclear and incompletely stated priorities. Being a successful programmer thus requires much more than programming knowledge.

    The Point: The term “programmer” in an inaccurate trivialization of the real job. I prefer “Software Engineer” formally and “developer” in colloquial usage.

    Senior

    For HR purposes, “Senior” is a nice way of labeling someone as having a bit more knowledge, responsibility, general weight, and more income than a non-senior person. The problem is that both senior and non-senior developers tend to have very similar job duties; so aside from income, the criteria of senior personnel are inherently qualitative, subjective, relative to a particular domain (read: not necessarily guaranteed to transfer being projects), and/or effectively indistinguishable from non-senior status.

    The effect is that, in a matrix organization, a new project may end up with n00bs who are senior, experts who are junior, and a pay structure which reflects an old project now completely irrelevant to the current situation. Senior and non-senior developers often work together as peers, and everybody quickly figures out who the real leaders are. And that’s frequently very different from the formal structure and correlating pay grade.

    The Point: “Senior” tells me that you’re expecting to make more and are probably good at something, which may or may not be relevant to me. It’s not a global implication of elevated wisdom.

    Architect

    Most “software architects” I’ve met do far more operational and project management than architectural design work. This isn’t to say that they don’t or aren’t capable of making significant design contributions to the project, but that all the overhead of email and meetings between business/team/customer/whomever members sucks up so much time that lower level engineers have to either make the design decisions for the architect or block indefinitely as the architect plays Inbox-fu.

    The Point: If you’re an “architect” who doesn’t have time to sit down with the engineers and talk about design, you’re really a technical manager who needs to officially delegate the design work to avoid becoming a bottleneck for the team.

    Resource

    I shudder whenever I hear or use this word, usually in a managerial, Mythical Man Monthian context trying to quantize everyone into tiny cube shaped units. I find it so important to account for individual character when planning and estimating that I consciously use the word “people” instead of “resources”; it’s a simple trick to force yourself into remembering the undeniable human individuality of the worker bee.

    The Point: People aren’t Legos, so let’s not pretend they are.

  • 20 Steps To Xen: A Quick Xen Tutorial For Ubuntu 7.04 x64 Server

    This is an abbreviated and simplified version of a more official document. Run these either as root or with the “sudo” command..

    1. apt-get install ubuntu-xen-desktop-amd64 to install a new Xen kernel and various other tools. Apparently we’re supposed to use the “server” version instead, but it didn’t show up in the repository. Oh well.
    2. apt-get install debootstrap to install the “debootstrap” system bootstraping tool for you.
    3. reboot into the new kernel.
    4. xm list to make sure Domain-0 shows up. Domain-0 represents the host system.
    5. Edit /etc/xen/xend-config.sxp and uncomment “(network-script network-bridge)”. Also comment out “(network-script network-dummy)”.
    6. xend restart to restart the xen daemon.
    7. mkdir -p /xen/slave1 to create a mountpoint for the slave system disk.
    8. dd if=/dev/zero of=/xen/slave1.ext3 bs=1M count=512 to create a 512MB “disk” as a normal file.
    9. mkfs.ext3 /xen/slave1.ext3 to create a file system in said empty file.
    10. mount -o loop -t ext3 /xen/slave1.ext3 /xen/slave1 to manually mount the new filesystem to its mount point.
    11. debootstrap –arch amd64 edgy /xen/slave1 to install a bare bones edgy system onto the new file system.
    12. cp -a /lib/modules/2.6.19-4-generic-amd64/ /xen/slave1/lib/modules/ to install the hosts kernel modules into the new system.
    13. Edit /xen/slave1/etc/network/interfaces. It should look similar to..auto lo
      iface lo inet loopback
      auto eth0
      iface eth0 inet static
      gateway 192.168.1.110
      address 192.168.1.111
      netmask 255.255.255.0
      .. 

      where “gateway” is the host machines IP address, and “address” is a unique IP address for the slave machine.

    14. Update /xen/slave1/etc/hostname with whatever you want its host name to be.
    15. Update /xen/slave1/etc/hosts with all your IP addresses.
    16. Update /xen/slave1/etc/fstab to mount stuff on boot, like so..proc /proc proc defaults 0 0
      /dev/hda1 / ext3 defaults,errors=remount-ro 0 1
       

       

    17. umount /xen/slave1 to unmount the file system.
    18. Create /etc/xen/edgy-guest.cfg to configure the host to start the guest, like so..

      kernel = “/boot/vmlinuz-2.6.19-4-generic-amd64”
      ramdisk = “/boot/initrd.img-2.6.19-4-generic-amd64”
      builder=’linux’
      memory = 512
      name = “edgy-slave1”
      vcpus = 1
      vif = [ ‘bridge=xenbr0’ ]
      disk = [ ‘file:/xen/slave1.ext3,ioemu:hda1,w’ ]
      root = “/dev/hda1 ro”
    19. xm create slave1-edgy.cfg to create and start the new domain.
    20. xm console slave1-edgy to establish a console to the new domain. (Hit CTRL+] to exit.)

    You should now be able to log in via the xm console as root, and ping the guest on 192.168.1.111 (or whatever its IP address is). w00t!

  • The $1,000 (USD), 2TB OpenSolaris File Server

    images.jpeg

    Here’s how to score a sweet OpenSolaris-compatible 2TB file server for $1000 (USD). I’m running Solaris Express Developer Edition on it with a ZFS RAIDZ1 file system.

    • Motherboard: Asus M2NPV-VM. A great, inexpensive mATX board w/4 SATA ports, 2 IDE, PCI-X, GigE, built-in nVidia graphics w/DVI and VGA outs, FireWire, and tons of USB love. Oh, and the official nVidia driver works like a charm. Sweet! (The only thing that hasn’t run out-of-the-box is the built-in audio controller. Oh well.) $100.
    • CPU: AMD Athlon 64 X2 4800+ Dual Core Processor. 2.5GHz, 2x512KB, 1GHz Bus. $130.
    • Memory: 4x1GB via OCZ OCZ2G8002GK DDR2-800 PC2-6400 kits. $175 total (after MIR).
    • Drives: 4x500GB Western Digital Caviar SE 16 WD5000AAKS 7200RPM 16MB Cache SATA 3.0Gb/s for the ZFS data volume. $450. (Old, small, slow and cheap PATA disks reused for the system volume. FMV ~$25.)
    • Optical Drive: Reused old typical IDE DVD-ROM. FMV ~$20.
    • Case: Reused typical ATX tower w/450 watt PSU. FMV ~$80.
    • Peripherals: Reused optical mouse and keyboard. FMV ~$20.

    Total: $1,000. Nice!

  • RailsConf 2007 Session Content Download

    Here are all the working RailsConf 2007 presentation slides and additional session materials I could find this morning, packaged in a single .zip file for your convenience. The content is an aggregate of things posted to the wiki, web2expo and a few other places on the web.

  • RailsConf 2007 Photocast

    Me and a couple thousand other Rails users are chillin’ in Portland right now enjoying the wifi. Here’s my photocast of things related to RailsConf and Portland, which I’ll update each night.

  • OS X Ruby Troubleshooting: "command not found: dot"

    If you’re trying to run rdoc but are getting errors like..

    Generating HTML…
    Diagrams: ./opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27: command not found: dot -Tismap dot/f_0.dot
    ./opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27: command not found: dot -Tismap dot/f_1.dot

    ..the package you need to install is called graphviz. You can install it using Darwin Ports on OS X like so..

    sudo port install graphviz

  • Parallels Desktop Coherence Mode Rocks: OS X/Windows XP Screenshot

    I tried Parallels Desktop‘s Coherence mode today, and was so blown away I had to blog about it immediately.

    parallels-coherence-mode-small.png

    The above image has not been doctored. It’s my normal OS X desktop with Windows XP running in coherence mode. When activated, the window around the XP virtualization session vanishes, the XP taskbar integrates into your OS X desktop, and XP application windows are free to float around. With Parallels Tools installed each XP application has a dock item which can be Command-Tabbed to. If you look closely you can see I’m running IE 6 next to Safari, both natively, without the visual distraction of the virtualization window. This is a huge usability landmark. Thank you Parallels!

    Try it yourself by selecting the View -> Coherence menu option when running Parallels Desktop.

    (Question: Does VMWare currently have a feature like this?)

  • J2ME Acronym Cheat Sheet

    l2_rockinduke.gif

    Sometimes I think we’ll eventually run out of TLAs (three letter acronyms) in the Java space. Here’s a quick reference for the forgetful..

    • ABB (Audio Building Block)
    • API (Application Programming Interface)
    • BCC (Bluetooth Control Center)
    • BPWD (W3C Mobile Web Best Practices Working Group)
    • CBS (Cell Broadcast Service)
    • CDC (Connect Device Configuration)
    • CLDC (Connected, Limited Device Configuration)
    • CSS (Cascading Style Shee)
    • CSS-MP (Cascading Style Sheet – Mobile Profile)
    • DDC (Default Delivery Context)
    • GCF (Generic Connection Framework)
    • J2ME/JME (Java Micro Edition)
    • JTWI (Java Technology for the Wireless Industry)
    • JMF (Java Media Framework)
    • JSR (Java Specification Request)
    • JVM (Java Virtual Machine)
    • MMAPI (Mobile Media API)
    • OBEX (Object Exchange Protocol)
    • OMA (Open Mobile Alliance)
    • PAN (Personal Area Network)
    • PDA (Personal Digital Assistant)
    • PDAP (PDA Profile)
    • PIM (Personal Information Management)
    • MIDP (Mobile Information Device Profile)
    • MMS (Multimedia Message Service)
    • SMS (Short Message Service)
    • SDD (Service Discovery Database)
    • UAP (User Agent Profile)
    • WAP (Wireless Application Protocol)
    • WCSS (Wireless Cascading Style Sheet)
    • WMA (Wireless Messaging API)
    • WML (Wireless Markup Languge)
    • WTK (The Sun Java Wireless Toolkit/J2ME Wireless Toolkit)
    • XHTML-MP (XHTML Mobile Profile)