RSS

Hello! I'm Dave.

 

Aug 29
Permalink
Ben and Rama had Arc90 buy a wheat grass machine. More pics here.

Ben and Rama had Arc90 buy a wheat grass machine. More pics here.

Comments (View)
Aug 28
Permalink
larrychi:

crazyfor-you:

This made me smile for the first time today… I want to hug him.

This made me super hungry for the hundredth time today… I want to eat him. Seared, with soy sauce and wasabi.
After 100 days of maintaining a healthy diet, I will pretty much eat anything right now. Everything looks like food.

this made me laugh out loud. oh man.

larrychi:

crazyfor-you:

This made me smile for the first time today… I want to hug him.

This made me super hungry for the hundredth time today… I want to eat him. Seared, with soy sauce and wasabi.

After 100 days of maintaining a healthy diet, I will pretty much eat anything right now. Everything looks like food.

this made me laugh out loud. oh man.

Comments (View)
Permalink

Words that are too long.

On a website where users generate the content, sometimes they’ll add either a link or a word that is really long and has no spaces or line breaking characters (like an ampersand). This could cause the layout to break.

So I whipped up a quick regular expression that works with preg replace to deal with such an issue. It will take a string with any amount of text and find all of the sub-strings that do not contain a space and add one.

preg_replace(‘/[^\s]{0,15}/’, ‘\0 ‘, $text);

Just replace the 15 with whatever number of consecutive characters you want to add a space after. Tweak it however you’d like. There you have it. Woo hoo!

UPDATE: Chris pointed this out… Yes, it will screw up URLs. It’s a primitive reg ex that doesn’t care what it interupts. If it sees any characters except a space it will add them to the queue. Once it hits the threshold, it adds a space.

Comments (View)
Aug 22
Permalink
Yea. My desk is pretty awesome.

Yea. My desk is pretty awesome.

Comments (View)
Aug 20
Permalink
Comments (View)
Aug 18
Permalink

Arthur’s Tavern

It’s not too often where I think up a place that I’d like to spend my Friday night, and then end up somewhere comparable, however, this past friday I did. I’ve been dying to find a cool little blues club with an intimate scene in the tangles of all the crappy dive bars scattered about in NYC, and so was my friend Sam. So we searched around on Yelp and found a few places that looked decent, but Arthur’s Tavern seemed to fit the bill. It had a good rating (4 stars) and the reviewers seemed to like it as well. It was pretty dark with lots of old feeling decor. Sam and I sat in the back bar that surrounded the band. They played lots of blues and jazz tunes while we drank vodka and wisky. Sam bought the singer a vodka on the rocks and the guy who spilled beer all over me bought me a vodka tonic in return. I highly recommend this place.

Comments (View)
Aug 15
Permalink

I probably shouldn’t have been doing this after having a few drinks, but it was freaking awesome. Arc90 rules so hard for taking us all out to a park to drink, play football, soccer, tennis, swim, and play music. Such an awesome time. Thanks to Jess for the vid!

Comments (View)
Aug 12
Permalink

Ajax Search for your Tumblr

Ok, this is pretty awesome. This dude wrote some javascript so that your Tumblr account is searchable via an AJAX live search box. I plan on setting this up tonight.

jacobd:

Ok I redid a bunch of my tumblr search code.  Here’s the update list

  • Overhauled entire script. much cleaner
  • Uses “AJAX” to pull in data.
  • Loads all data, not just last 20 posts. (maybe should limit this in the future!)
  • Can have multiple search boxes
To include this in your site add this code to the customize part somewhere between the  tags.

<script src=”http://www.thisismydevsite.com” type=”text/javascript”></script>

Then put this code where you want a search box to appear.

<script type=”text/javascript”>Tumblr.searchBox()</script>

If you can, copy that JS file to your own server and link to that.

If you view source on my page you can see the custom CSS I added to format the search results, otherwise it will look pretty raw.

Enjoy!
Comments (View)
Aug 11
Permalink
I close my eyes I see a stair case
Leading upwards into blank space
All of creation makes a sound too soft to hear
— Conor Oberst
Comments (View)
Permalink
Comments (View)