1 0 Archive by Author
post icon

Better alias for Ruby on Rails script/server and TextMate mate app

Just the other day I was browsing through some railscasts from Ryan Bates and noticed he was starting his server with “ss”. It made me pissed that I hadn’t thought of doing that before, I guess because I was so comfortable cd ~/Sites/appname and script/server. So I first wrote some aliases like Ryan’s “ss”, but then thought huh, this could be better… Google to the rescue and I found this code for script/server and then that inspired me to write this code for mate appname. Pretty quick to open and boot apps!

Leave a Comment
post icon

I’m taking a stand against IE 6 – cause it can go F*CK itself

After a long past few days fixing someone’s code for an un-named website to look good across all browsers, I decided I hate IE 6 more than ever. Even though I will still continue to support IE 6 in clients websites (for now), I’ve decided to f*cking phase them out permanently on my sites. It’s been way too long, people get your sh*t together and just upgrade. And for you that are in countries where you can’t upgrade for what ever reason beyond your desirable pleasure… I feel sorry for you.

I’m taking a stand now. If you wanna join in and make IE 6 users experience at viewing your site the opposite of enjoyable here’s how. Copy the code below and put it right under your <body> tag. Then just add the css from below as well. Then if a user using anything <= IE 6 they will get the message loud and clear.

<!--[if lte IE 6]><div>Common get it together!! You're using an out of date browser (released more than 7 years ago). To view this page properly, we recommend using a modern, standards-compliant browser - such as <a href="http://www.firefox.com">Firefox</a>, <a href="http://www.opera.com/">Opera</a>, <a href="http://www.apple.com/safari/">Safari</a> or <a href="http://www.google.com/chrome">Google Chrome</a>. All of which are 100% free.</div><![endif]-->

Now the CSS

.ie_notice {margin:5px 0;padding:10px;border:1px solid #dedeb9;background:#ffffd4;text-align:center;color:black;font-size:1.5em;}
.ie_notice strong, .ie_notice a{color:red;}

Of course you can style it anyway your heart desires, but the main point is your helping rid the world of the LAMEST BROWSER EVER. Common peeps it will be fun!

Leave a Comment
post icon

Display different styles for flash messages in Ruby on Rails

I saw this in a Rails video on Bala Paranj’s website http://rubyplus.org and thought is was a pretty cool way to display different flash messages throughout your app.

<% flash.each do |key, value| -%>
  <div id="notice_<%= key %>"><%= value %></div>
 <% end -%>

Then you can do different flash objects like this:

flash[:success] = "message here"
flash[:error] = "message here"

Then just style the messages with some css and you’ve got a notice div displaying error and success messages with less effort!

Leave a Comment
post icon

Floasis Hair Salon website launched

I just launched my girlfriends hair salon website Floasis Hair Salon. Looks preeetty good so far even in all browsers. It’s a Ruby on Rails site of course. Nothing too crazy, just a simple interface that is easy to find what your looking for. How all sites should be.

Leave a Comment
post icon

My New Portfolio Website

I just put up a quick website to showcase my talent in all fields of web. It’s built on wordpress, it’s all my portfolio stuff and I made it in about 3 hours. I plan on making it a ton better, with more eyecandy user interactive stuff soon. Check it out! http://graphikastudioz.com

Leave a Comment