cl1p is down
The server where cl1p.net is hosted has experienced a hardware failure of some sort. I’m looking into it now.
The server where cl1p.net is hosted has experienced a hardware failure of some sort. I’m looking into it now.
Today is CL1P.net’s birthday. Two years ago today the whole world find out about the cool little site that let you copy and paste between computers. It was on this day that lifehacker ran a very nice story on CL1P. Then it went to the top position of del.icio.us. Chris Pirillo wrote about it, so the Guardian Unlimited, and many other bloggers from around the world.
The best thing is that cl1p.net has not just been a flash in the pan it has survived and even thrived. Every day thousands of people discover CL1P either by stumbleupon or though a friend.
CL1P has added new features. The first one was view restricted pages, Rich Text cl1ps, Auto save/Auto Update/ Message Boards / IPhone support and more.
More is still coming to CL1P and I am very close to releasing a much improved version with bigger files and pictures.
Long story short. I needed to quickly strip all HTML from a page I was working on. I searched for an HTML Stripper but only found code examples, not a functional web application.
So to help those in need of a simple HTML tag stripper, check out my HTML tag Stripper.
If folks to link to the HTML Stripper page that would be great. It will help other folks find it when they search.
Major:
Added a new action to the reminders controller.
I added a new method and view to my reminders controller to show completed items.
In Reminders Controller I added
def completed
@reminders = Reminder.find(:all, :conditions => [ "done = ? and user_id = ?", true, current_user.id])
end
I also added completed.html.erb to the views for reminders. However when I accessed the /reminders/completed url I got an error message.
ActiveRecord::RecordNotFound in RemindersController#show
WTF? Why is the error in show? Well after a half hour or cursing rails I figured it out.
In the routes.rb file you will see a line
map.resources :reminders
What this does is add mappings for index, edit, create, show. With everything other then index, edit, create assigned to show.
You have to add a mapping for your new method to get around this.
map.connect 'reminders/completed', :controller => 'reminders', :action => 'completed'
map.resources :reminders
Now you can try the completed method, and it will work.
Minor changes:
Changed title, added Calendar control to created reminders.
Also robsreminders.com is finally up and running. Thanks to dream host. They are now running rails 2.0.2, and where a ton of help. I recommend them if you are looking for a rails host.
Robs Reminders r4
Implement remember me.
I had forgotten to uncomment the remember me block of code in the /app/views/account/login.rhtml file. Removing this will allow users to skip the login process once they have successfully logged in once.
Change the date/time control
The current date time control is lousy. Fortunately there is a plugin that vastly improves it.
http://code.google.com/p/calendardateselect/
script/plugin install http://calendardateselect.googlecode.com/svn/tags/calendar_date_select
Add the following to the application.html.erb layout
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>
<head>
<meta http-equiv=”content-type” content=”text/html;charset=UTF-8″ />
<title>Reminders: <%= controller.action_name %></title>
<%= javascript_include_tag ‘prototype’ %>
<%= calendar_date_select_includes nil %>
Edit the /app/views/reminders/edit.html.erb file
Change
<%= f.datetime_select :due %>
to
<%= f.calendar_date_select :due, :embedded => true, :time => true %>
A restart of the app server is required after updating.