Tag Archives: meta

Less is More :(

The majority of work I do, as a programmer who wears a shirt and tie, involves databases. And I try to keep things nice and simple when working with databases. What I mean by simple is, extra tables in a database is fine, even triple the “minimum number” (whatever that is), if they all mostly follow some pattern. Constructing a database schema is then a simple application of the rules devised when designing the pattern, and means there’s not much to think about or have go wrong. With a judicious choice of pattern, ORM tools like Hibernate or other things like .NET Entity Framework can start working for you rather than against you. It’s even possible to write code to check over the schema and ensure that the pattern is being followed, and then write code to write code to do all the data access (yes, write code to write code…)

My boss, on the other hand, has a slightly different idea of simplicity. Namely, in his view, simplicity = minimise number of tables, and rely on stored procedures for everything.  The arguments I want to win with him are not really what I want to blog about today.

Today I’d like to describe how I implemented strongly-typed lists of objects (think List<SomeType> in C# / list<AClass> in C++) adhering to my boss’s vision of minimising table count, using only three tables and a pile of T-SQL and custom constraints, instead of the “more complex” system of lots of join tables and foreign key constraints. I do not particularly recommend this mode of implementation. For a start, it has made use of .NET Entity Framework, shall we say, “interesting.”

Continue reading

Over the Edge of Reason

Let’s get dirty. Peel back a few layers of the human onion called Josh and see what’s under there…might maybe even post this on the blog, hah! Do I have the balls? I guess Paris wanted more blogging from maclab, well here’s my contribution!
I’ve claimed a few times that I had once attempted suicide. Pretty heavy stuff, hey? Well, it’s felt like an easy thing to say when I was trying to guilt someone—and depressed.
There’s nothing much else on this weird planet that is as serious as suicide. If you ever come so close as to think about doing it, don’t do it!  If for nobody else, at least stay alive for me. I don’t care how fat, ugly, stupid, useless or just plain numb you feel, you will make my world a more awful place by actually doing it! The thought certainly has crossed my mind a few times.  That’s a state of (non-)being I’d rather never have again.
I didn’t ever make up being depressed at all. Even now, once in a while,  the world seems just a bit too colourless and I’m reminded again of the numb dullness of being depressed. I also thought about suicide a few times, some very grave moments they were. But the attempt part of the story was a fabrication and how I used it was in retrospect a pretty despicable way of trying to influence somebody. What really happened was I never followed through, my thoughts were confined to my head. There’d be a lot more people who’d know about it if I did follow through.
The impact of abusing a delicate matter like this to gerrymander somebody else in this way was awful. Thanks to cognitive congruence, the act of saying I had tried suicide probably prolonged the sadness longer. The person I was trying to manipulate almost certainly saw through it and I lost a lot of respect from then-friends.
I’m glad I never did try to kill myself. Looking back at the last three years I’d say it’s been a wild ride. Recently things have been pretty stressful, having been flat-chat with Honours, but now that’s over my life is picking up again, dramatically. This coming year is going to be lots of fun, and I’m making sure of it!

Let’s get dirty. Peel back a few layers of the human onion called Josh and see what’s under there…might maybe even post this on the blog, hah! Do I have the balls? I guess Paris wanted more blogging from maclab, well here’s my contribution!

Continue reading

Los Allergies

The problem with blogs is that I always have little or no time to write. During this trip I’ve been trying to squeeze in the time, but until now it’s been at the very end of the day when I’d rather be sleeping. This time I’m trying to do it after breakfast. Now I have a new problem: doing bloggable stuff while I’m trying to blog!

So, backtrack. Monday kicked off in traditional Secret Lab style (coffeetime); this time, we tried Peet’s. I approve!

Peet's teas

A sneak peek of Snow Leopard

Peet’s had good coffee, nice service, a good atmosphere, and best of all, they were playing music from the late Baroque—win!! (As opposed to the stock-standard Ministry of Sound Chillout Sessions approach.) After Peet-ing it up for a few hours, we cruised over to the stylish office of Unity Technologies for a meetup. Yes, the guys who make the Unity game engine and editor that we (Secret Lab) are using for various nefarious purposes. We weren’t the only people invited, but only a couple came. Very enlightening to meet them. Of course Jon, Andrew and Paris got more out of it than me, but I thought it was fun. After the meetup in the office, we continued at a nearby establishment, with more Unity developers from all over.

Tuesday: mission to Mountain View! But first, some comments about the breakfast arrangements at this hostel.

Breakfast is a DIY arrangement: they provide the pancake mix, stoves, pans and spatulas and you are expected to make them yourself. In pictures:

Pancake mix

Pancake mix

How is pancaek formed?

How is pancaek formed? How pan get pancaeknant?

Not a great first attempt

Not a great first attempt.

This one is promising

This one is promising

Yay!

Huzzah!

After pancake-ing ourselves, we set off to catch the BART (the municipal train system). The BART system links to the CalTrain system, which we needed for the journey to Mountain View. Aside from some minor “need more small change” and “quick, it’s leaving!” issues, we got to the swank offices of Meebo, (yes, the same Meebo who run the popular web 2.0 service integrating practically all IM chat networks). These guys are cool! Nice folks, great office, running an awesome service.

From the inside looking out the windows at Meebo

From the inside looking out the windows at Meebo

Mountain View is a disturbingly nice place. A very well manicured suburbia, Google have public WiFi everywhere, and the restaurants are surprisingly authentic. The people smile, the weather was great, and the coffee shop we went to, Red Rock Café, served a terrific cuppa.

Now I said we went to both Unity’s and Meebo’s offices, and they were great people. But we didn’t just spontaneously turn up and expect a friendly meeting—it was planned ahead after emailing and running into people at WWDC. If you want to meet with whatever-company-you-happen-to-fanboy I suggest you try to schedule a meeting too.

With a funny sadness as I boarded the train, we went back to San Fran. That night we ate at a nearby Thai restaurant and the other three all had hot dishes. Hahaha! Good quality stuff.

The spicy horror approaches

The spicy horror approaches

Not much happened on Wednesday that’s really worth writing home about, other than that we did a tidy pile of work on Day of the Tiki stuff in a café and got an early night’s sleep.

And then Thursday happened.

Ohhhhhhh boy did Thursday  and Friday ever happen!

At approximately 4.30 AM, we got up. We headed straight for the BART that would take us to S.F. airport. We caught the Southwest Airlines flight which was on time and had complimentary coffee and juice (a very nice change from budget Australian airlines). We got to L.A. just fine.

But then spent quite some time figuring out the best way to get places. L.A. is not a pedestrian friendly city for two reasons: it is huge, and the public transport system is broken.

Starbucks at LAX

Starbucks at LAX

Venice Beach

Venice Beach

Venice Beach

Venice Beach

This is where we went from LAX, since it was the location of the hotel. Venice Beach is just like the set of Romeo + Juliet (hey I think I get the joke!), but there are differences. Like, the haze. And it is overcrowded with hippies, pot-smokers, tattoo parlours, people who think their very average cars are sound systems, and palm trees. Oh, and the air is bad.

Venice Beach Tourist Time

Venice Beach Tourist Time

So next order of business was then to do what we had planned: visit the Tiki Bar.

Which Tiki Bar?

The set of Tiki Bar TV of course! (Hint: we’re doing the game!)

Tiki Bar with blurry Jeff

Tiki Bar with a blurry Jeff

The uneasy, sick feeling induced by the crowded and polluted city seemed to be lifted by being inside this place. We met Jeff (Dr Tiki), Tosca (the card shark from episode 31 – “Casino”) and Mike (Mr Hollywood). Really really nice people, doing amazing work on their hilarious show! Fortunately we had time to discuss a bit of business over lunch, before they shot some scenes for an upcoming episode in the afternoon.

Red phone

Red phone

Because of timing we didn’t get to meet Johnny Johnny or Lala, or the guest star they were filming with, but no matter. My inner fanboy was just blown away! I am so utterly pleased to be assisting on the game, and visiting the set, for me, was like icing on the cake.

After lunch we parted for a few hours. Secret Lab decided to check in to the cotel.

The room at Venice Beach Cotel

Jon, Paris, Andrew in the room at the Venice Beach Cotel

The best thing about this place was the location: about 20 metres from the beach.

The worst thing about this place was the location: about 20 metres from the biggest crowd of beach-going noise-generating marijuana-imbibing tattoo-pushing panhandling hippies. In L.A.

To anybody who happens to be taking offence: Sorry, I have nothing against you, it’s just not the lifestyle for me. I’m into quiet peaceful calm places, breathing clean air, and having a clear mind. Venice Beach was like a giant party, and was certainly an experience I’m glad I’ve had. Just one I now know I don’t want to experience for more than 48 hours.

Later on we met up with the TBTV crew again for dinner and drinks, and more business.

More Tiki Bar fun

More Tiki Bar fun: from left, Andrew, Paris, Jeff, and Jon

For those who know me, you are probably aware that, for many months, I have been completely sober.

Why? Well, alcohol just makes me sad.

But when that Charooba mug with a “Painkiller” cocktail was plonked down in front of me, my head swam with only one thought. I was in the Tiki Bar TV set with the Dr Tiki, and had been presented with the golden opportunity for any Tiki Bar TV fanboy to have a drink.

But none of this sold me completely on breaking, so I took a sip to see if I liked it.

I decided I liked it a lot.

In other words, they really do know how to mix a drink. I reckon this is the only place on the planet I will ever drink again!

After a couple of drinks (we had “Painkillers” and “Plot Holes”) we eventually thrusted back to the cotel and fell asleep.

Friday began. Secret Lab was a bit irritated. I put this down to the awful noise outside, the lack of caffeine nearly all day, the prospect of a busy day in a huge dirty city, and dehydration. I felt the same utterly horrible feeling of hating having to breathe in the pollution, and put up with the detestable subwoofer booming through the window.

Long story short: With the exception of the Tiki Bar, I’m allergic to L.A.

We went back to the Tiki Bar set again, for some final business and to showcase some of what I had accomplished. Very happy to hear that they are happy. Everybody Happy!™ We obtained some TBTV t-shirts (I got “CCCP Tiki Bar TV”), a signed DVD, and a Charooba. And some unique and unusual snaps with Dr Tiki in costume and character!

Tiki. Dr Tiki!

Tiki. Dr Tiki!

Elated once more by our visit, we bade a farewell aloha to our tiki friends and set out for West Hollywood. Via the fail bus.

We arrived in the middle of Melrose Avenue where we had another promising meeting at the Village Idiot. We also had a walk around to find somewhere to print our boarding passes to get back to San Fran.

View from a speeding bus

A random view from a speeding bus

Alta Vista Boulevard sign

Alta Vista Boulevard sign.

Japan L.A.

Japan L.A.

We found Japan L.A. This place not only very very very kindly let us print our boarding passes, but carried a cute range of merchandise for Hello Kitty, Gloomy Bear, and so on.

After we were done, we caught a cab back to LAX. Sorry, we couldn’t get a photo of the Hollywood sign. Too much haze.

Our plane was delayed, but I didn’t particularly care, because I was out of L.A. Even on the plane I started cheering up! Unfortunately we got into the airport just as the last BART back into town was leaving, so we had to get another cab back to the hostel.

Saturday we slept in :D and then we went to see Presidio Park (the one attached to the Golden Gate bridge) and Fort Point.

Statue, garden, start of the Golden Gate bridge

Statue, garden, start of the Golden Gate bridge

Postcard photography location

Postcard photography location

Secret hole

Secret hole

It's all under the bridge

It's all under the bridge

Corridor in Fort Point

Corridor in Fort Point

Shiny

Shiny

Windy windy up on top of the fort

Jon and Paris getting windy up on top of the fort

Sample of the cable holding up the bridge

Sample of the cable holding up the bridge. Commuters must feel quite safe.

On Sunday we checked out Golden Gate Park—not attached to the bridge, but at least as nice! So many awesome things! The japanese tea garden is especially nice.

Roses at the Rose Garden

Roses at the Rose Garden

Interesting architecture - I think somebody took a giant cube and twisted it

Interesting architecture - I think somebody took a giant cube and twisted it

Gate to the Japanese Gardens

Gate to the Japanese Gardens

Japanese Gardens

Japanese Gardens

Marvellous green tea served at the gardens

Marvellous green tea served at the gardens

A gate gated by trees - clever

A gate gated above by trees - clever!

Koi pond has koi

Koi pond has koi

Circular bridge is circular

Circular bridge is circular

I'm confused

I'm confused, what is this supposed to be?

At the top of the rotato-cube tower

At the top of the rotato-cube tower

Fist! In the art gallery.

Fist! In the art gallery.

The art gallery in the Golden Gate park is AMAZING and was probably the highlight of the day. Some of the features include a model cathedral built out of disassembled guns and ammo, a large African exhibit, stunning paintings from every era of American art, and more. Well worth the money! Don’t forget your bus ticket.

Finally, today we took the ferry to Sausalito! I’ll post more about it later.