the joy of apartment hunting in nyc

Posted by jacqui maher on June 14, 2008 at 10:45 AM

While I don’t have to start looking for a new place just yet, I am going to be moving out of my current digs pretty soon. There’s just something about NYC real estate that I find captivating, and I know I’m not the only one who thinks so.

I really would prefer not to continue paying the high rents of Park Slope, so I’ve started to look in other neighborhoods. This morning I went out on my bike and checked out Prospect Lefferts Gardens, Crown Heights, Bed-Stuy, Clinton Hill and Fort Greene. I came home and decided to look up some places to see what the rents were like, and how the brokers’ descriptions gelled with what I saw and thought.

Then I saw this:



I think 90% of the brokers in NYC are on mind altering drugs. Seriously, the suspension of disbelief is remarkably strong with them!

In other news, I’ve been busy and distracted lately and not doing anything with this site. I’m hoping - really - to fix this up before I leave for Africa. In fact, I’m going to be setting up a separate section for updates from East Africa; I’m not sure what my internet connectivity will be like there, especially as I plan on being in some rather remote areas, but I bet I’ll be able to post at least once or twice from there.

Til then, thanks for all the replies on my previous post. I’m taking all the advice into consideration for when I finally sit down and work on brighter.

Comments: 1 (view/add your own) Tags: nyc

where'd my css go? or: a call for advice

Posted by jacqui maher on May 07, 2008 at 08:55 AM

Huh, I somehow lost my custom CSS for this site. Probably when I was updating Simplelog… I don’t (obviously) have a very good, backed-up setup for my SliceHost. Argh!

This brings me to several questions I’ve been wanting to ask the world of talented developers I know (yes you!):

What are you guys using?

I’m curious about directory structures - should I put my sites in my home directory? /usr/local? /www?

What about version control? When you’re using third party apps (like SimpleLog) that are themselves hosted in version control systems like svn or git, do you then export or clone them and stick them in your own local SCM, or perhaps github?

Web servers? Is everyone on Nginx? What are your configs like for it? Did you use ErrTheBlog’s Nginx config generator to start off? I know some people who use LightSpeed and that looks snazzy.

And how about your dot files? I’m talking about .vimrc, .irbrc, .bashrc/.tchsrc/etc. I made a repo in my github acct for these, but it seems like overkill. How should I deploy that anyway? A lot of dotfiles go into their own directories, and I’m not sure how best to structure my repo for it.

There’s a lot of ground to cover here, I guess. Help :)

Comments: 4 (view/add your own) Tags: advice

I love bike riding

Posted by jacqui maher on May 01, 2008 at 03:07 PM

and now I’m going to blog about it. Riding in NYC is a bit tricky - while it’s great to be able to pass tons of traffic and feel the breeze in your hair along the Hudson River Park path, it also sucks to have tourists driving SUVs and insane cab drivers almost kill you, sometimes several times in a single block. The dangers come from both obliviousness and malevolence on the part of (mostly) drivers and (somewhat) pedestrians, and, yes, rarely, other bicyclists.

I started riding into work because I found, upon returning to NYC after 4.5 years in California, that the quality and reliability of the subway system had taken a severe turn for the worse. (seriously, wtf happened in so short a time? am I being nostalgic, or has it really gotten a lot worse?) Now that I’ve known the fun and fresh air of commuting by bike, though, the subway is pretty much intolerable.

I just hate standing around, waiting. The one thing I miss is the amount of time I’d have to read books… but I try to do that at night now; it’s a nice way to wind down from the day.

That’s it for now, expect more news as I learn good routes, which I’ll post via mapmyride.com, and find useful or just cool gear.

my bike, a fuji crosstown 3.0 hybrid:

Comments: 0 (view/add your own) Tags: bike

Single table inheritance strangeness

Posted by jacqui maher on April 29, 2008 at 10:19 PM

I suppose “special” is a word for this behavior. I would have expected a constraint used in find_by_id to also be used in find. Right.


>> Asset.find_by_id(params[:id])
# => nil

log: Asset Load (0.009816) SELECT * FROM assets WHERE (assets.`id` = ‘8515’) AND ( (assets.`class_name` = ‘Asset’ ) ) LIMIT 1

>> Asset.find(params[:id])
# => #“IdamAsset”, “updated_date”=>”2008-04-14 20:49:58”, “restrictions”=>nil, “idam_iud”=>”19013896”, “name”=>”6da9.jpg”, “hide”=>”0”, “is_pending”=>”0”, “is_administrative”=>”0”, “created_date”=>”2008-04-14 20:49:58”, “security_level”=>”1”, “media_type_id”=>”10”, “id”=>”8515”, “description”=>”“, “filename”=>”6da9.jpg”, “last_synced_at”=>nil, “uploaded_by_id”=>”448”}>

log: BaseAsset Load (0.000528) SELECT * FROM assets WHERE (assets.`id` = 8515)

Comments: 0 (view/add your own) Tags: rails, sti

print out a controller's expected actions

Posted by jacqui maher on April 26, 2008 at 04:59 PM

Ever want to see a list of actions defined on your controller and what methods over http they expect?

try this in your console, where “users” is your controller’s name:

   1  ActionController::Routing::Routes.routes.select do |route|
2 route.defaults[:controller] == "users"
3 end.uniq.each do |route|
4 puts "#{route.defaults[:action]} expects http method: #{route.conditions[:method]}"
5 end;nil

Comments: 0 (view/add your own) Tags: meta, ruby