
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.
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.
Seriously. This is so freaking awesome! I need to get there very, very soon. Well… next time I get paid.
235 West Broadway (at White Street)
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.
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.
Ok I redid a bunch of my tumblr search code. Here’s the update list
To include this in your site add this code to the customize part somewhere between the tags.
- 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
<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!
This is the ONLY music I’ve been listening to since it came out on August 5. It’s been on repeat on my iTunes, iPhone, iPod, Car CD player, and in my head. One of my favorite lines is in Sausalito.