Wednesday, May 4, 2011

Minor Changes to my Ruby Site

I was asked in an interview what social networks I belonged to and I could not think of one. I dabble in loads of them but do not take any of them seriously. With the exception of following twitter feeds for key rubyists. So I decided to collect some that I've dabbled with and put them out there for those who might wish to see.

Tuesday, January 5, 2010

Heroku Try again later

I noticed some people saying they got the same error on Heroku and just pushing it again later worked for me on two separate occasions.

Fix Heroku error: ! [remote rejected] master -> master (pre-receive hook declined). Workaround: Just wait and try again later. It works

Monday, November 30, 2009

Emacs org-mode calendar generated in Ruby

Here is the one line of Ruby code I use to create a calendar in Emacs Org Mode.

From a unix shell run the following:

ruby -e "require 'rubygems'; require 'active_support'; 3.times{|d| puts '** ' + (0.days.ago + d.day).to_date.strftime( '%A (%m/%d/%Y)\n'); puts (0.days.ago + d.days).to_date.strftime(' SCHEDULED: <%Y-%m-%d %a>') }"

Wednesday, November 25, 2009

My pdf file is too big to email. No problem use PDFSAM

All I need to do is to get this document over to my accountant. It is in PDF format. I got from my lawyer and scanned it in using one of IBMs documate scanners. At one point I thought to myself that I would be one of the cool people with a paperless office. All I meant was my home office. I wasn't planning on going against the flow at work. Well the effort was more than I expected. After more than a year of promising myself that I would just do one document a day and I will be done in a year and not getting more than 50 documents scanned in I realized that my paperless office was not to be.

However there are still times where the email limit for attachments or the limit for the size of a file I can import into Evernote is just too small.

Enter PDFSAM (http://www.pdfsam.org/) A free opensource tool I use to split my pdf documents into managable smaller pdf files.

Friday, June 19, 2009

Visual CSS IDE

If you need more CSS formatting for work with perhaps jQuery? Try the web based CSS IDE http://constructyourcss.com

Wednesday, May 27, 2009

Move over w3schools google playground is here.
  • http://code.google.com/apis/ajax/playground/

Thursday, May 7, 2009

Using Goaloc for 9th version of amdb. Changing name to media flags. Goaloc is nice, I need to understand how it works. Re: know your tools. I took a little tangential trip to look at xhtml. Nice for phones and ultra small databased backed apps. Apps where the db is the page. A lot like TiddlyWiki when you don't have javascript. I wonder it it is a lot faster because of that.