Photo 6 Mar Whats been worrying me all afternoon, thankfully this tells me I found my missing server.  

Whats been worrying me all afternoon, thankfully this tells me I found my missing server.  

Photo 20 Dec Driving in

Driving in

Text 13 Dec Finals

I’d rather be working.

Photo 19 Nov South Salt Lake City, Utah.
Dual Shot PanoProcessed in Hugin, GIMP

South Salt Lake City, Utah.

Dual Shot Pano
Processed in Hugin, GIMP

Photo 19 Oct Does anyone else prefer to use the Win+R to launch browser windows?

Does anyone else prefer to use the Win+R to launch browser windows?

Photo 17 Oct Today I was able to climb up to 10060 feet above sea level.  Definitely a first for me, but not without some sacrifice.

http://www.mapitnow.com/?maproute=7639
Shot with a decrepit Blackberry 8330, stitched in Hugin.

Today I was able to climb up to 10060 feet above sea level.  Definitely a first for me, but not without some sacrifice.

http://www.mapitnow.com/?maproute=7639

Shot with a decrepit Blackberry 8330, stitched in Hugin.

Quote 7 Oct
I dont like honors, I am appreciated for the work that I did, and for people to appreciate it, and I notice a lot of other physicists use my work, I dont have a need anything else, I dont think there is any sense to anything else, I dont see that it makes any point that someone in the swedish academy decides that it is work is noble enough to recieve a prize, ive already got the prize the prize is the pleasure of finding thing out, the kick in the discovery, the observation of other people using it, those are the real things … the honors are unreal to me. I dont believe in honors, honors bother me… i cant stand it … it hurts me. When i was in high school one of the first honors I got was to be a member of the arister which was a group of kids who got good grades, and everybody wanted to be a arister. And when I got in to the arister, I discovered what they did in their meetings was to sit around to discuss who else was worthy to join this wonderful group that we are. Well okay so we sat around to discuss who was to get be allowed in, this kind of thing bothers me… and from that day since honors have bothered me.
— Richard Feynman - The Pleasure of Finding Things Out
Photo 8 Aug Park City HDR Pano
Source Image Processing Flow:
Canon XTi 10MP - 50mm 1.8 44 Images @ 50mm/9.0 1/1000s ISO 100  [Raw + Large JPEG] - Adobe RGB - AWBJPEG - Hugin Autopano Tool Stitching into : 1 Large TIFF 23951 X 7936 - 735MBTIFF - GIMP Levels Adjustment Exposure & Crop Into : 3 Large TIFF 19872 X 4312 - 1.17GB 3x TIFF - Photomatix [Demo] Tonemapping Into : 1 Large TIFF 19872 X 4312 - 302MB (PackedBits)TIFF - GIMP Curves & Saturation Adjustment & Resize Into : 1 JPEG 3831 x 1024 5.5MB

Park City HDR Pano

Source Image Processing Flow:

Canon XTi 10MP - 50mm 1.8 
44 Images @ 50mm/9.0 1/1000s ISO 100  [Raw + Large JPEG] - Adobe RGB - AWB
JPEG - Hugin Autopano Tool Stitching into : 1 Large TIFF 23951 X 7936 - 735MB
TIFF - GIMP Levels Adjustment Exposure & Crop Into : 3 Large TIFF 19872 X 4312 - 1.17GB
3x TIFF - Photomatix [Demo] Tonemapping Into : 1 Large TIFF 19872 X 4312 - 302MB (PackedBits)
TIFF - GIMP Curves & Saturation Adjustment & Resize Into : 1 JPEG 3831 x 1024 5.5MB

Text 25 Jul Adventures in Scala… sum.java

Well I just started this little jaunt into Scala.  The book I got through Amazon (Kindle App) is “Beginning Scala” by David Pollak.  I spoke with David when discussing whether Lift was a good fit for a project I have.  Now I am reading his book.

The book was written for an earlier version of Scala. Namely; Scala 2.7.8.  I am using it under 2.8.0.  There are some differences in how some of the methods are applied, and what they return.  Most notably was the input.getLines method in the ‘sum.scala’ example.

The error when executing sum.scala

# scala sum.scala
/home/scala/sum.scala:20: error: missing arguments for method collect in trait Iterator;
follow this method with `_’ if you want to treat it as a partially applied function
val lines = input.getLines.collect
                           ^
one error found

What you need to do is add a .toSeq at the end for

val lines = input.getLines.toSeq

Whole file

import scala.io._

def toInt(in: String): Option[Int] =
        try {
                Some(Integer.parseInt(in.trim))
        }
        catch {
                case e: NumberFormatException => None
        }

def sum(in: Seq[String]) = {
        val ints = in.flatMap(s => toInt(s))
        ints.foldLeft(0)((a,b) => a + b)
}

println(“Enter Some Numbers and Press CTRL+D”)

val input = Source.fromInputStream(System.in)

val lines = input.getLines.toSeq

println(“Sum “+sum(lines))

Run it on your box, and it should ask you for some numbers and sum them up for ya.  As David puts it ” [this program] makes use of many of Scala’s features including function passing, immutable data structures, and type inference.”

I think I am going to have fun learning Scala.

Text 8 Jun Adventures in mod_ldap

Want to use mod_ldap or mod_auth_ldap in Apache 2.2.x?

Dont forget to compile apache with —enable-ldap —enable-auth-ldap and —with-ldap

Read More


Design crafted by Prashanth Kamalakanthan. Powered by Tumblr.