Archive for March, 2009

20th March 2009

“A man in Afghanistan once told me that a third of this planet eats with spoons and forks, and a third of the planet eats with chopsticks, and a third eats with their fingers. And they’re all just as civilized as one another.” – Rick Steves, The other side of Rick Steves

Múm’s Mr. Silla Covering Killing Moon by Echo & The Bunnymen

20th March 2009

Adding a Confirmation Message to GitX’s ‘Gist it’ Button

17th March 2009

gitx-gist-itUse GitX?

Ever been tempted to click the Gist it button? Or maybe you accidentally did click it, only to find out…

GitX will try to upload your current commit as a git patch to gist.github.comGitX User Manual

The attempt will be made without any confirmation on your part.

So, what if you don’t want to upload your commit?

Well, you could just make sure never to click the ‘Gist it’ button.

Or you could disable the button from within the preferences, and flip it back on when you do want to Gist something.

disable-gist-it

That’s OK, but what I really want is a message confirming the action, so if I do ever accidentally press the ‘Gist it’ button, I can just cancel the request. And since the code that GitX uses to run these commands is in HTML and Javascript, It is very easy to slip in some code of our own.

Here’s how to add a confirmation message for when the ‘Gist it’ button is clicked

fyi. This is a really quick and semi-dirty hack that will be lost if you re-install or download a new version of GitX.

  1. Open Finder > Application, ctrl (right) click the GitX application and select ‘Show Package Contents’.
  2. Navigate to ‘Contents/Resources/html/views/history/’ and open ‘index.html’ in TextMate or other plain text editor.
  3. Add the following within the head tags:
    [code lang="javascript"][/code]
  4. Update the ‘Gist it’ button to look like:
    [code lang="html"]
    Gist it
    [/code]
  5. Save the changes made then quit (if open) and re-launch GitX.

Now, whenever you click the ‘Gist it’ button, a notification message will appear within the notification_message div (The same place as ‘Gist it’ status notifications):

gist-it-confirmation

confirm_gist() also takes an optional string which can be used to alter the confirmation link, like so:

[code lang="html"]
Gist it
[/code]

Caveat

Re-installing or upgrading GitX will wipe this ‘hack’ which is why I didn’t alter the gistie() method in the history.js file. Altering as little as possible, and only the index.html file makes it a bit easier to ‘track’ and save if a feature like this is not implemented in future releases.

Lighthouse user James T uploaded a patch, https://gist.github.com/fc3c9773f6a2bcbeb7a9, that may be worth a look. It is very similar to what I have done, but involves rewriting-or-renaming the gistie() method and creating two new javascript methods. He also added some nice CSS stylings to the buttons.

You can alter or add to the stylings by adding to the stylesheets found in Contents/Resources/html/css/

Also see GitX’s Lighthouse ticket on this very matter: #58 Suggestion: Usability of “Gist It” button. As of this post (16 March 2009), and GitX ver. 0.6.1, this ticket is still open and clicking ‘Gist it’ will upload your commits to gist.github.com without confirmation.

Sunday’s Links

15th March 2009

Don’t Launch
Happy Notes
Overnight Success: It Takes Years
5 Awesome Sci-Fi Inventions (That Would Actually Suck)
Apple logo converted to second monitor
Listable
Double your userbase with two lines of code and a box of Modafinil
Nerd Merit Badges
War? (Boagworld interview with Daniel Burka and Joe Stump from Digg)
Amanda Offenbacher Photography
Stack Overflow Podcast #27 (Interview Alexis “kn0thing” Ohanian and Steve “spez” Huffman of Reddit)
Orange Alert
Priceless

To Rewrite?

13th March 2009

I’m getting very tempted to rewrite an application that I’ve been working on for about three months now. All sorts of reasoning to do so have tugging at me, but what actually prompted this temptation is a side project I’m working on with @iheartcinnamon (kat). It made me realize how hard it actually would be to move the application forward.

The core of the application, while works flawlessly, is implemented rather poorly. The code is horribly organized, methods were created on a case-by-case basis which has lead to duplication throughout, business logic is confusing at best, the XHTML templating system is a complete mess, and, well, I could go on for awhile.

My side project has reaped the benefits of this, it’s core is implemented with clarity, ready to be extended anywhere. Since the two projects have similar core needs, writing it came as second nature; I already knew what it needed to be and how I to get it there. But does this warrant a complete code rewrite?

Three months is not a long time, per say, but extending the development time would cut deeply into its launch date. What to do? How do I satisfy my itch of rewriting it, bring clarity to the code so it can be extended with ease and make sure I launch fast and often?

Before I do anything, I’m off to do some research into the implications of rewrites and I will return to this topic in another post.

Branded Credit Cards, Milking You For All It’s Worth.

7th March 2009

My previous post, The Dreaded Last Minute Sales Pitch, leads nicely into this one…

My credit card is pretty boring. All it has on it is my bank’s logo and the visa moniker. I do “get” credit cards with your favorite sports team on it or better yet charitable credit cards for cancer research or wildlife refuge. What I do not get and near despise are business branded credit cards.

What possible benefit could you get from something like a MySpace branded credit card?

MySpace and others who offer branded credit cards are milking their customers for all it’s worth, practically admitting that they will not be around for very long or in it for the long haul. Whenever I am offered a branded card I immediately assume that they just don’t care. They will sacrifice a few customers here and there in order to make a quick buck.

When this becomes a means of income for a business I find they will sacrifice anything to get more and more people to sign up.

The Dreaded Last Minute Sales Pitch

5th March 2009

I had a terrible experience at Banana Republic last week. I went in to buy a new pair of pants, real quick, I know my size, I know the “cut”, etc.

Head down, careful not to make eye contact with any employee, I headed to the rack. Of course, I wasn’t able to find my size, and the color and style was perfect for the jacket I had. I had to ask for help.

What a mistake. I found an associate to give me a hand who began helpful enough, calling someone to look in the “back” for my size, but the experience quickly went downhill. After the usual up-sale pitch, “what no shoes to go with your new pants”, she continued, asking how I was going to pay. I knew where the conversation was headed when she continued to “let me know” that they have a Banana Republic credit card that will save me a certain percentage on my first purchase, it’s good at certain stores, blah, blah, blah. She just would not let up, as if I was a fool for not applying. “You just apply, get the discount and then cancel the card!”

Huh? Yeah, right.

These last minute sales pitches seem to be happening more and more as retail execs are looking to squeeze out every little penny than can from their customers. The real downside is that it forever harms your product, the experience, and makes wanting to spend money even harder. Why would I want to go back and deal with that?

When times are tough looking at your employees to save you, getting them to sell more and sell better, is harmful. Hounding your customers is not going to save you. Why not make your product better. If sales suck, why not place focus where it should be.

The dreaded last minute sales pitch, you always know when it’s coming.

Camcorder on Sushi Conveyor Belt

2nd March 2009

Watch the people’s reactions as a camera makes the rounds at a local sushi restaurant in Tomakomai, Hokkaido, Japan. – patora911

This is actually a very interesting video of someone who placed a video camera on a conveyor belt at a sushi bar; As the belt moves around, the camera records the diners. Some take note, making an interesting interaction between the camera while other chow unaware, forever caught in their ravenous state. The camera even makes its way into the kitchen…

It’s an interesting play on a style of documentary photography.

Dharmesh Shah’s Talk at the Business of Software Conference 2008

2nd March 2009

The other day I came across a talk given by Dharmesh Shah at the Business of Software 2008 conference entitled Insights From in and Around MIT.

In the talk, Dharmesh touches on just about every aspect and cycle that a young software startup will go through, all from personal, tangible experience; Idea inception, sales and marketing, Google adwords, VCs and funding, partnerships, data mining, being small vs going for the golden ticket, etc. But my favorite bullet point, “Your product sucks. Get over it.”.

Dharmesh highly advocates getting the business rolling, getting your product out there no matter what it is or how much it sucks because it is going to change. And the only way it can change to become software that people actually want is to present 1. something to them and then 2. listen.

Dharmesh is really good at keeping the process of building a software business simple, making it feel attainable and not complicating the things with anecdotal “proof”. This is one of my favorites talks I’ve watched in awhile. Enjoy.

RJB is proudly powered by WordPress | Subscribe: Entries (RSS) | Email: raffybanks at gmail