Archive for the ‘apple’ Category

It took a while to find this, but here’s my solution

Add this file: /Library/LaunchDaemons/org.postgres.launchd.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
        "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<dict>
    
    <key>Label</key>
      <string>org.postgres.launchd</string>
    <key>Disabled</key>
      <false/>
    <key>UserName</key>
      <string>_pgsql</string>
    <key>GroupName</key>
      <string>_pgsql</string>
    <key>Program</key>
      <string>/usr/local/pgsql/bin/postmaster</string>
      <key>EnvironmentVariables</key>
      <dict>
              <key>PGDATA</key>
              <string>/usr/local/pgsql/data/</string>
      </dict>
    <key>RunAtLoad</key>
      <true/>
</dict>
</plist>

You can then load it and unload it by issuing:

$ sudo launchctl load /Library/LaunchDaemons/org.postgres.launchd.plist
$ sudo launchctl unload /Library/LaunchDaemons/org.postgres.launchd.plist

Now get to making some great Rails stuff!

When I write my Latin homework in LaTeX, the source winds up looking like this:

\item[13.] Am\={\i}c\={o}s tr\={\i}st\={e}s exc\={e}pit, ad m\={e}nsam inv\={\i}t\={a}vit, et e\={\i}s perfugium ac s\={o}l\={a}cium h\={\i}c dedit.

{ Aside: You might be thinking that entering “\ = { \ i }” just to get a single character would be a drag, but thanks to Textmate I have created snippets such that Control + letter does all that typing for me }

Now if I want to post this to the web, I need to convert those characters from say “\={\i}” to “\ī”. I would like it to go through the sentence and change each of those LaTeX-macron characters to HTML entities.

Similarly, I occasionally have need to convert LaTeX-macron sequences to UTF-8 codes.

And yet other times I want it to convert those codes to macron-ized characters.

So I wrote a script that takes input of the LaTeX form and will let you specify if you want the output in HTML entity (default), macron characters, or utf8 characters.

The best part is that I’ve written this function into Textmate as an extension so for me conversion is:

Default String

ss_tmlatinconv_1

Highlight the LaTeX string

tm_latinconv_2

Choose my command with this script in it

ss_tmlatinconv_3

Text is replaced, magically!

ss_tmlatinconv_4

And it looks like this in a browser…

\item[13.] Amīcōs trīstēs excēpit, ad mēnsam invītāvit, et eīs perfugium ac sōlācium hī

Still in Sydney

Wednesday, October 17th, 2007

Just a quick shout, I’m doing a lot of work during this off-site ( and enjoying the local lager ). Last night I bailed on post-work activities to do homework and to prepare a presentation that I gave today. It went well.

Something that I’ve seen today is that 3rd party apps are now coming to the iPhone.

I may be getting one after all.

I’m currently running an old PB G4 ( 2004 vintage ) and I would really like to get a new one.

With buying apple hardware there’s always a waiting game and a cult of “but the next rev will have XXX that will really be worth waiting for.”

In the end, I just usually get fed up and say, “Eff it”, plunk down a charge card and am happy.

But I’ve made so many friends in the world these-a-days, perhaps some of them could help me.

  • Is it time to upgrade?
  • Should I go for the 15” ( love the LED, form factor, right size, better weight ) or the 17” model (screen real estate and HD are nice )
  • Is there some other factor that would make you hold out on this rev until some point in the future, and if so, what’s that thing you have to see before you buy another dose of mac kool-aid.

Me, I want to get Textmate and Coda and Xcode running with some more snap. Besides, if I ever get around to writing something in Cocoa again, I certainly don’t want it to be limited to the testing that I could do on an old PB, I want to make sure that I can service the vast ( and growing ) world of the IntelBook.

So, comments, please! What should I do.

Meta: Small changes to layout underway

Thursday, February 15th, 2007

In case things look screwy, I’m trying to update my site to look good in Safari. Firefox kept having issues with memory when I was doing Rails development so I’ve been using Safari for a bit. I think that I’m going to convert, it works better for the Mac and it scrolls so-very smoothly.

Yesterday’s post looks a little incoherent with a day of rest between it and I. Based on the entreaty of Mr. Graitcer in the comments, I thought that perhaps I could try to characterize what it is to be fatigued in this way.

First, let’s just say that it’s not the expectation of the teacher or the class curriculum that you work yourself into fatigue of this type. It’s not necessary or required. Yet in both of the BNR classes I’ve taken, the students worked late into the night on their own projects, or improving the assignments.

Therefore, the motivation to work to this level of fatigue is not extrinsic, it is clearly intrinsic. This is, clearly, the more cruel mistress. In a previous post I spoke of the self-selection implicit in defining the population for BNR classes. I suggested that one of the primary contributing factors in being in the class is having the funds to pay the fee or having a job where the administrators feel that paying such a fee for such a person is a worthy investment. People who have such funds ( if the meritocracy be believed ) or faith of their financial administrators likely get to this position be not being able to simply let it go.

I have worked through weekends at work, on work stuff simply because I could not let it go. I have gone to work early, repeatedly, after a few hours of sleep because the problem stalked me. It wouldn’t let me go, it wouldn’t let me sleep. It was better to be awake, approaching understanding, than to endure fitful sleep under the Damocles sword of the unfound answer’s shadow.[1]

Many people I’ve talked to say: “Go do something else, come back to it.” My sweet girlfriend has shuffled around in the wee hours to find me tapping away and urged me to come back to bed. I hear this, but this is something that I ( and I suspect many others ) simply cannot do. If I were to come back to bed I would imagine my text editor. If I were to go do something else I would be irked that I couldn’t look up on Google possible solutions as I was doing it.

I don’t know it well enough. I don’t understand it well enough, I don’t see how the parts work. Granted this quality among the full rank of attendees, you can see how I would suggest that a startup out of any one of these classes could blow the doors off of any particular problem.[2]

So it’s under this background mentality that you’ll see BNR-class attendees whipping themselves to perform, to create, and realize until deep into the night. Simply put, this is just how we’re wired.

Attendees like to maximize effort. That’s why we’re programmers, we like the force multiplier effect of knowing a programming tool. The reason we’re at this class is because we want help learning something very difficult in the most efficient and deep manner possible. BNR classes deliver this. So much of the work done here can be seen in light of trying to optimize knowledge gained per unit time.

Most of us have attempted to learn the material back in “the real world”, but we couldn’t get the information to ‘etch’ deeply enough. Learning this material against deadlines, users, wives, taxes, other obligations was simply too slow or too confusing. If you are a “can’t let it go” person who knows that shortly he’ll have to be back in the real world where he’ll have to let it go and you won’t have access to immediate peer feedback or a guru, you work hard.

Like summer camp, we come, we know it will be hard, but we know, looking back, we’ll be amazed by how much we learned, how much we changed, and we’ll remember the conversations, the food, the hard nights. We’ll remember that we were part of a special community for a brief flicker of time.

And if, to chase to that next eureka, we have to have bleary eyes and catnaps in the conference room, so be it. Damn the torpedoes, I came to learn rails.

So we slurp down cups of rocket fuel, we dose up on small quick munchies, we talk, we think, we code, we edit, we close our eyes and doze and then turn back to it, we take more fuel[3]. At the end of a multi-hour run your sugar crash comes but you have to keep pushing. And sure, you could go back to your bedroom, but the feedback loop outside of Oz is too slow. You see, we have to be good enough to be independent when we leave because, it all likelihood, we will be.

So what’s it like, in the dark of night as we ply away? Well, to set the scene, we’re in a very large conference room with a large projection screen hanging from the front wall. The churn of the heating provides a constant white noise that is overlain with collective symphony of keyboard tapping[4] and occasional double-click.

For the most part it’s fairly quiet, except that there are ‘flexible duos’ merging and separating. These duos emerge when one party wants to discuss an idea or a problem he is describing to the other party. They conversation is usually pretty quiet, but occasionally precipitates a whiteboard session.

The lighting is dim, but not dark. The eyes of the coders in troglodyte mode is respected.

And, of course the half audible curse of ‘fuck’ or ‘damn’ as an execution fails, or even worse, does something you didn’t know about and or didn’t plan for.

The tablecloths that drape the tables are rumpled. There are big reference books from O’Reilly press and the Pragmatic Programmers stacked up, splayed open, or fallen onto the floor.

IMG_7286.JPG

With the dim lighting and the lack of a clock in the room, Vegas-style, you could easily fall through scheduled reality and forget that time is actually passing. Eventually, the time will turn late and that’s when the real fatigue sets in.

There are enough peers present such that your quorum sensing lets you know “It’s OK to stay a bit longer”. Your eyes are dried out from staring at the screen, the typing fingers are sore and tired. The myriad of files you edit get lost, your new enemies are questions like “Where did I just write that thing a second ago?”

You reach the next item on your “to do” list and you attack that problem…and keep on going. In some ways it’s actually invigorating, working on something you care about this much, something that has this much of your love in it. Few things “outside” can hold your interest like this. In some ways, you feel more alive doing this kind of work in this environment that you may have felt at your day job for the last year.

Eventually the discussions between students achieves a sort of level of conversational shorthand. We’ve all been speaking to one another in these highly specialized terms for days and days. We’re all coming from the same reference and our discussions are short, brief, and truncated.

As the evening wears down more stammers work their way into the dialog. The solutions wear down. The bowl full of ice chips melts and the bottles, coffee mugs, and cans on the desk continue to multiply as the diminishing returns on coffee and sugar is reached, crossed, and run over by a distance of several miles.

IMG_7286.JPG

But eventually you reach your goal and you shuffle back to your hotel room and unwind by watching infomericals or NOVA and then drift off to sleep.

This is the society of the hack, and you’ve done a good day’s work. Sleep is quick and hurried, because the next round of class starts bright and early at nine in the morning.

Footnotes:

  1. Incidentally, the Silicon Valley exacerbates this problem. Most people can’t let it go, and there’s not much else to do besides work anyway, thus so many good ideas and good companies coming from that area.

  2. This is what the early internet adopters must have thought would happen. Global, flexible, talented groups meeting and fluxing, producing brilliance. Regrettably, it seems that this talent needs to be pulled out of their quotidian affairs to achieve this maximal “group flow” dynamic ( see: Cocoa Dev House or Burning Man )

  3. I recall a passage in The Fountainhead where Roark falls asleep at his drafting table and breaks a pot of coffee. I recall Ender Wiggin facing yet another round in the battle room after another brilliant performance around the absurd rules. In these passages I always see the author comme createur writing his experiences into the character’s life.

  4. Not really tapping. Apple laptops don’t have a cheap, plastic, clackity sound, like the PCs, but rather have a very pleasing whisper.

The example and exercise scripts during the RoR class centter around receiving requirements for a company that produces widgets. Never content to simply accept the assignment, I have pushed my, uh, unusual sense of humour onto the project.

widgetfabrik.png

Ready for the new Mac Book Pro

Friday, October 20th, 2006

Dear Apple,

I have now saved sufficient money such that if you were to release a new Mac Book Pro with a dual-core Merom processor, I would buy it lickety-split.

Please hurry,

Steven

I love my apple all the time

Tuesday, November 22nd, 2005

I love my Apple, pretty much all the time.

When I was a sophomore in college I made my first own computer purchase: Apple PowerBook 190cs. It had this rich color screen that was bright and it was only moderately back-breakingly heavy. It kept a charge about a good two hours and ran all the basic MS productivity apps. What wasn’t to like?

It was on this system that I dialed into the University of Texas VAXen and Unices. I wrote history papers and fancied writing a novel or two (didn’t really pan out). I took that computer with me overseas and taught it to suckle at the teat of 240volt - it never complained.

Upon returning I came back to an Austin that was chanting the name of Dell - I tried it out the x86 side of the street. I enjoyed my rich polygons and Quake - but within 8 months of frustration with Windows sucking I returned to my heart and soul roots - I became a Linux guy.

It started innocently enough, Red Hat 6, compiling, tarring, detarring, trashing crappy winzip for gzip, learning pipelining and Perl. I set up tools to help me find that computer in the sea of the Internet, I was blissed.

I came out to Silicon Valley at the heigh of the party. No one used Windows - everyone was on SPARC stations laughing as MyDoom variants brought weeping marketing bozos to our feet begging, hoping, and praying someone would patch that crappy OS they had foisted upon them.

Then came project CD burn or DVD burn. And man Linux just didn’t have it. The fonts were ugly too (i know this has changed, yes I’ve seen Ubuntu, and yes I recall the Veronica Mars dialog on the matter).

I love the power of unix, but i wanted fonts, and backgrounds, and easy multimedia burns, and that begat my flirtation with the iMac iLamp.

Furthermore, when in San Francisco don’t bring your PC. No one there uses PCs. It’s a town of art and beauty. Don’t call it ‘Frisco either.

The iLamp was beautiful and elegant, the screen rich and bright. The OS was smooth and rock solid. I had the best of both worlds: Mac beauty, Unix Power, and no interference from an annoying OS.

Ultimately the iMac flirtation led to the Powerbook of Joy so smooth and aluminum, so quiet, so beautiful. It’s smooth like Zen gardens or the Japanese countryside. It is hot on the legs (best used on a desk).

I went with my girlfriend recently to buy a replacement for her HP which unceremoniously lost its hard drive. As I walked through the local Fry’s i noticed that all PCs looked very cheap. As Will Shipley of Delicious Monster noted, and I’m paraphrasing here, “PC users don’t care about beauty or extras, they only care about suffering as little as possible as cheaply as possible. They made that stance abundantly clear when they settled for the Windows experience. “

I looked at the options. All of them had flimsy plastic cases that had “Multimedia control panels” (aka an LCD with 4 buttons for manipulating your music CD) smacked onto the edge. It was uneven, not a nice neat rectangle, but this oblong turd of plastic that had no sense of symmetry or balance. They all have these really annoying super-glassy looking monitors. I want my monitor to look like a matte piece of fine paper - not like my dentist’s aquarium. My poor girlfriend had been using my laptop for the last few days and in those days her tastes for taste had re-awakened, she had taken a bite of the Apple of knowledge and couldn’t really stomach the taste of the sloppy production of the commodity PC industry.

We headed, PC-less, back to the front and passed down the Apple aisle. With its white and silver the row looked like “2001”, it visually promised what the future was supposed to deliver (Right Elroy?).

When I was living in Holland I was struck by an idea: Whenever they built something that had a function, the form was not a total afterthought. Essentially it was: “If we’re going to build it, why not make it beautiful?” For those who look to the bottom line to explain why not, you’ll never get it, and that’s OK. For the rest of us, there’s Apple, de Kooning, and fountain pens.