-
"If there is a bigger Splinter Cell fan than myself, I haven't yet met them; but in their zeal to promote the newest iteration, Ubisoft has caused Sam Fisher to tweet. And I don't mean they've made him chirp, which would be preferable. They've given him a Twitter account where he tweets in a supremely earnest way about how tormented his shit is.<br />
<br />
*No.*" Oh dear. -
"A team of scientists has succeeded in putting an object large enough to be visible to the naked eye into a mixed quantum state of moving and not moving." Oh boy. That's quite a thing (and: quite a sentence!)
-
"I've been using Copy with Style command, which I took from this blog post. It copies text selection as RTF so when the code is pasted into Keynote, it looks exactly the same as it looked in TextMate, including font style, size and colors. Code can be then modified in Keynote, while the style is preserved." Useful!
-
A nice post to end the year from Kars – it feels like a top-trump of so many things that have risen to the surface in my head in 2008.
-
"Today is a fairly momentous day in the history of Ruby web frameworks. You will probably find the news I’m about to share with you fairly shocking, but I will attempt to explain the situation." Yehuda Katz weighs in with a great, informative post.
-
"Merb and Rails already share so much in terms of design and sensibility that joining forces seemed like the obvious way to go. All we needed was to sit down for a chat and hash it out, so we did just that." No, really. Not an April Fool. It sounds like the architecture changes that are going to be made are going to be a big win for Rails 3. Looking forward to it.
-
Not concerned with the Javascript bundle, but the Vibrant Ink syntax-highlighting link is lovely.
-
A somewhat geeky – and swear-free – Downfall adaptation, but pretty spot-on nontheless.
-
A better way of handling TextMate projects, or so I'm told. Giving this a crack.
-
"…what is user experience design by itself, those areas that aren’t filled up with other bubbles? I tried to answer some of that in an earlier post, but the short answer is: not much, aside from coordination between the various disciplines, or what used to be called creative direction. It’s about the joining of the different disciplines, and not particularly a discipline in and of itself… Without the “raw materials” of the disciplines that make up UX, UX would be empty indeed." Some nice thoughts, clearly delineated, from Dan.
-
"…most public objects – and certainly all municipal objects – should offer APIs. Furthermore, specifically with regard to public infrastructures like transit systems, I believe that this should be a matter of explicit government policy. What’s a public object? A sidewalk. A building facade. A parking meter. Any discrete object in the common spatial domain, intended for the use and enjoyment of the general public. Any artifact located in or bounding upon public rights-of-way. Any discrete object which is de facto shared by and accessible to the public, regardless of its ownership or original intention. How’s that for starters?"
-
Better than GetBundle, apparently – hunts down unofficial bundles on github and the like, as well. Nifty.
-
"What a wonderful idea," Jennifer noted. "We never get to see the people who make the games." Michael Abbott is talking about LittleBigPlanet.
-
Leanoard rounds up his favourite DS homebrew games. Some good stuff in here that I didn't know of.
-
"This is just one of many examples that show you can participate in online community without having to pretend to be something you’re not. In fact, participating with authenticity is not just morally good, it’s measurably more effective."
-
Powazek is right; this is definitely smart advertising, and full props to EA/W+K for just taking the credit and not trying to make it "viral"; it'll do that anyway. Although: it really is a glitch, you know.
-
"Introduced by Dr John C.Taylor, Invenit et Fecit" – or, to translate, he invented it, and he built it. Video explaining some of the finer points of the chronophage. Stunningly beautiful.
-
"He calls the new version of the escapement a 'Chronophage' (time-eater) – "a fearsome beast which drives the clock, literally "eating away time". It is the largest Grasshopper escapement of any clock in the world." Stunning new timepiece for the Corpus library. Breathtakingly beautiful.
-
"Computer Entertainment Thirty-Five Years From Today: A solo spoken word performance by Bruce Sterling" Wonderful, surreal, exciting; Sterling's keynote from Austin GDC. Good stuff, and worth a read for gamers, futurists, and designers alike.
-
"This is something I said about Spore a while back, actually. I thought Spore could be a little like what Understanding Comics is to Comics. As in something from the form which uses the form to explain the form." Oh, I like that as an idea. He can be a smart one at times, that Gillen.
-
"I've just finished attending the AIR tour and during the final (particularly funny) presentation, I completed a TextMate plugin that has full API completion support." Useful – some syntax completion, and a shortcut for application preview.
-
"We hijack innocent tweets, subject them to our patent pending penisization process by replacing certain words with 'penis', and republish it for your entertainment. We find it funny."
-
"I was at Aperture Foundation a Tuesday to see a panel about collecting photography, and I haven't been able to get this image out of my mind since." Oh wow.
-
"You might argue that an iPhone without connectivity is, well, an iPod, but its not. To state the (obviously overlooked) obvious – it is a phone without connectivity and that over time the ease and evolving practice of disconnecting fundamentally changes our assumptions of what we can expect from a phone, which in turn alters our expectations about the connectivity of other people." Jan Chipchase on pause buttons and understandings of what "social" means. Excellent.
Velocity bundle for TextMate
28 September 2007
Well over a year ago, I mentioned that I was working on a Velocity bundle for Textmate. Or, to be more precise: I mentioned that I’d already written one that we were using at NPG.
A year later, I’m ready to release the bundle; you can get it from its Google Code site. But before you go there, an explanation for the delay is in order – and on the way, I’ll tell you about how the bundle was written.
Continue reading this post…
As a Rubyist and Textmate user, you’ll probably be aware that def
will tab-expand to stub out a method definition. You might also be aware that, for the purposes of Test::Unit, deft
will tab-expand to a test method beginning def test_
, allowing you to append the name of your test.
But that’s not much more help, because if we’re naming our tests properly, they’re probably going to have very_long_names, and hitting underscore all those times is a bit of a pain. So I rectified that, with this command (and it’s a command, rather than a snippet, because of all the processing it does). Pull up the commands dialog (Command-Opt-Control-C), create a new command in the Ruby bundle, and give it the following code:
#!/usr/bin/env ruby
name = STDIN.read.strip
testname = name.gsub(" ", "_").downcase
print <<OUTPUT
def test_#{testname}
\$0
end
OUTPUT
The command’s Input should be “Selected Text” or “Line”; its Output should be “Insert as Snippet”. The scope should be set to source.ruby
. And give it whatever key definition you want; I’ve got it on ctrl-opt-shift-t.
Usage is easy. On a new line in your test file, type the name of your test in plain English with no punctuation, eg:
get to index should list all items
and then hit your shortcut. You’ll get the following out:
def test_get_to_index_should_list_all_items
end
and your cursor will be slap bang in the middle of the test, indented, ready to write. That’s what I really want from a test definition snippet – something more than deft
supplies. It’s another minute or two’s work to make it strip punctuation, so you can convert real sentences to test cases. I just decided to condition myself to save on coding on this morning’s commute.
Jakarta Velocity bundle for Textmate
13 July 2006
Problem: there’s no Velocity (VTL) bundle for Textmate.
Solution: write one yourself.
I’m currently working on a basic Velocity bundle for Textmate. We use it as a templating language at work, and, let’s face it, Textmate is an awesome editor with many, many ways to make your life easier. Given that it’s listed as a bundle people might be interested in… I’d better get started on it, right?
If you’re interested, leave a comment or drop me an email. So far I’ve got some basic function and syntax highlighting, along with autocompletion of some common constructs. Once it’s more finalised – and has been built in accordance to the VTL spec, not just the way I write it, I’ll start putting out releases.
(And if none of this makes much sense: Velocity/VTL is a templating language for Java web-apps. It’s one of the least sucky Java templating languages, apparently, but it’s not as mature of fully-featured as, say, Smarty.)