Google Calendar is a phenomenal web application for managing your calendars, but so many of us are still forced to use Outlook at work. The good thing is you can have the best of both worlds by subscribing to your Google Calendar from Outlook.
The first thing you’ll have to do is get your Google Calendar iCal link. Just open your Google Calendar and go to Settings \ Calendar.
Pick the calendar you want to sync with Outlook. Now in the Private Address field click on the ICAL button. This will show you your private Calendar address. Copy this address to the clipboard.
shared items
Sunday, October 18, 2009
Thursday, October 8, 2009
Installing Ruby 1.8.7 (and other stuff) manually
1. Download the windows binaries for Ruby 1.8.7 here: http://www.ruby-lang.org/en/downloads/ extract that to wherever you would like, I use c:\ruby. Then put c:\ruby\bin in your PATH environment variable.
2. Download the zlib package: http://www.zlib.net/zlib123-dll.zip and extract the zlib1.dll, rename it to zlib.dll and move it into your Windows\System32.
3. Download the iconv package: http://sourceforge.net/project/showfiles.php?group_id=25167&package_id=51458. Find and extract the iconv.dll into your Windows\System32.
4. Download the rubygems package and follow the instructions, basically extracting the package and running ruby setup.rb
5. Verify that everything works properly by trying a gem install rails, once that installs then do: rails test_project
http://stackoverflow.com/questions/390897/installing-ruby-1-8-7-and-other-stuff-manually
2. Download the zlib package: http://www.zlib.net/zlib123-dll.zip and extract the zlib1.dll, rename it to zlib.dll and move it into your Windows\System32.
3. Download the iconv package: http://sourceforge.net/project/showfiles.php?group_id=25167&package_id=51458. Find and extract the iconv.dll into your Windows\System32.
4. Download the rubygems package and follow the instructions, basically extracting the package and running ruby setup.rb
5. Verify that everything works properly by trying a gem install rails, once that installs then do: rails test_project
http://stackoverflow.com/questions/390897/installing-ruby-1-8-7-and-other-stuff-manually
Ruby 1.8 missing lib ( SSLEAY.dll , ZLIB.dll)
Update: There is a new effort to create a decent Windows Ruby installer. You can get the new downloadable installers from http://rubyinstaller.org/downloads/ though as of August 2009 these are still in preview form. It seems from my brief experiment that you'll still have to set your PATH manually, as per my manual instructions below. This installer also promises a faster Ruby as it builds using superior tools, so might well be worthwhile if only for that. Below are my original manual instructions for installing Ruby on Windows, which should still be just as valid as they always were. The installer is probably worth a look though.
The following worked for me on Windows XP, but maybe I'm yet to run into problems I don't know I've got:
* Download the Windows binary release from http://www.ruby-lang.org/en/downloads/
* Unzip it, in my case to C:\ruby191\
* Also download readline.dll (e.g. from http://www.econsultant.com/dll-database-r/readline.dll-download.html) and put the DLL in C:\ruby191\bin
* Put C:\ruby191\bin and C:\ruby191\lib on your PATH
That got ruby working in a basic sense for me, but I wasn't able to install gems. If I tried, I got two errors in sequence: "The ordinal 277 could not be located in the dynamic link library SSLEAY32.dll" and "This application has failed to start because zlib.dll was not found."
The ssleay32.dll problem was solved by getting hold of a couple of DLLs and putting them in the right place, as follows:
* Download "Win32 OpenSSL v0.9.8k Light" from http://www.slproweb.com/products/Win32OpenSSL.html.
* Run the installer, but take note of the following:
* You can ignore any initial warning about not having Microsoft Visual C++ 2008 Redistributables.
* You can ignore any warnings about command prompts being open.
* Install to somewhere like C:\OpenSSL - it doesn't really matter, we just need a couple of DLLs.
* When prompted, choose to Copy OpenSSL DLLS to The OpenSSL binaries (/bin) directory.
* Once the installer has completed, you can go to C:\OpenSSL\bin (or wherever you installed it) and copy the two files ssleay32.dll and libeay32.dll to your Ruby bin directory, C:\ruby191\bin in my case.
The zlib.dll problem was solved by in much the same way:
* Download the compiled zlib 1.2.3 DLL from http://www.zlib.net/ (about two thirds of the way down the page).
* Unzip it to get the zlib1.dll file.
* Put that file in your Ruby bin directory, but rename it to zlib.dll
Et voila - gems can now be installed successfully! Note that you may have had copies of some of these DLLs in your \WINDOWS\system32 directory already (I certainly did) but the problem is that they are too old. I prefer to put the newer ones directly in the Ruby bin directory, so only Ruby picks them up and it can't break anything else on the system.
http://alwaysthecritic.typepad.com/atc/2009/03/install-ruby-191-on-windows.html
The following worked for me on Windows XP, but maybe I'm yet to run into problems I don't know I've got:
* Download the Windows binary release from http://www.ruby-lang.org/en/downloads/
* Unzip it, in my case to C:\ruby191\
* Also download readline.dll (e.g. from http://www.econsultant.com/dll-database-r/readline.dll-download.html) and put the DLL in C:\ruby191\bin
* Put C:\ruby191\bin and C:\ruby191\lib on your PATH
That got ruby working in a basic sense for me, but I wasn't able to install gems. If I tried, I got two errors in sequence: "The ordinal 277 could not be located in the dynamic link library SSLEAY32.dll" and "This application has failed to start because zlib.dll was not found."
The ssleay32.dll problem was solved by getting hold of a couple of DLLs and putting them in the right place, as follows:
* Download "Win32 OpenSSL v0.9.8k Light" from http://www.slproweb.com/products/Win32OpenSSL.html.
* Run the installer, but take note of the following:
* You can ignore any initial warning about not having Microsoft Visual C++ 2008 Redistributables.
* You can ignore any warnings about command prompts being open.
* Install to somewhere like C:\OpenSSL - it doesn't really matter, we just need a couple of DLLs.
* When prompted, choose to Copy OpenSSL DLLS to The OpenSSL binaries (/bin) directory.
* Once the installer has completed, you can go to C:\OpenSSL\bin (or wherever you installed it) and copy the two files ssleay32.dll and libeay32.dll to your Ruby bin directory, C:\ruby191\bin in my case.
The zlib.dll problem was solved by in much the same way:
* Download the compiled zlib 1.2.3 DLL from http://www.zlib.net/ (about two thirds of the way down the page).
* Unzip it to get the zlib1.dll file.
* Put that file in your Ruby bin directory, but rename it to zlib.dll
Et voila - gems can now be installed successfully! Note that you may have had copies of some of these DLLs in your \WINDOWS\system32 directory already (I certainly did) but the problem is that they are too old. I prefer to put the newer ones directly in the Ruby bin directory, so only Ruby picks them up and it can't break anything else on the system.
http://alwaysthecritic.typepad.com/atc/2009/03/install-ruby-191-on-windows.html
Wednesday, September 9, 2009
Thursday, August 27, 2009
Thursday, August 6, 2009
Rails 2.3 and Mysql 5.1
The title says it all. I wish Ruby on Rails wasn’t so difficult to get set up on Windows. It sounds like most Ruby on Rails developers are Mac OS X or Linux users.
I was just trying to get a basic app set up with MySQL 5.1, Rails 2.3 and Ruby 1.8.6 and got this error when trying to run rake db:migrate:
rake aborted!
undefined method `each’ for #
I found an answer here:
http://www.nabble.com/rake-aborted!-undefined-method-%60each%27-for–%3CMysql:-td20760472.html
Looks like most people uninstalled MySQL 5.1 and went back to 5.0. People also seemed to have better luck with Postgresql.
Source : http://peterskim.org/2009/04/12/mysql-51-with-rails-23ruby-186-on-windows-doesnt-work/
Also Comments :
I’m running MYSQL 5.1 and had a similar problem. I have Ruby 1.8.6. I followed these instructions and the undefined method error was resolved when running rake.
> The problem is that libmysql.dll shipped with Mysql doesn’t play well
> with ruby 2.2..
>
> The solution is to download the libmysql.dll from:
>
> http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll
I was just trying to get a basic app set up with MySQL 5.1, Rails 2.3 and Ruby 1.8.6 and got this error when trying to run rake db:migrate:
rake aborted!
undefined method `each’ for #
I found an answer here:
http://www.nabble.com/rake-aborted!-undefined-method-%60each%27-for–%3CMysql:-td20760472.html
Looks like most people uninstalled MySQL 5.1 and went back to 5.0. People also seemed to have better luck with Postgresql.
Source : http://peterskim.org/2009/04/12/mysql-51-with-rails-23ruby-186-on-windows-doesnt-work/
Also Comments :
I’m running MYSQL 5.1 and had a similar problem. I have Ruby 1.8.6. I followed these instructions and the undefined method error was resolved when running rake.
> The problem is that libmysql.dll shipped with Mysql doesn’t play well
> with ruby 2.2..
>
> The solution is to download the libmysql.dll from:
>
> http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll
Tuesday, July 28, 2009
Date Time format for Rails Ruby
------------------------------------------------------------------ Time#strftime
time.strftime( string ) => string
---------------------------------------------------------------------------------
Formats time according to the directives in the given format string. Any text not listed as a directive will be passed through to the output string.
"
Format meaning:
%a - The abbreviated weekday name (``Sun'')
%A - The full weekday name (``Sunday'')
%b - The abbreviated month name (``Jan'')
%B - The full month name (``January'')
%c - The preferred local date and time representation
%d - Day of the month (01..31)
%H - Hour of the day, 24-hour clock (00..23)
%I - Hour of the day, 12-hour clock (01..12)
%j - Day of the year (001..366)
%m - Month of the year (01..12)
%M - Minute of the hour (00..59)
%p - Meridian indicator (``AM'' or ``PM'')
%S - Second of the minute (00..60)
%U - Week number of the current year,
starting with the first Sunday as the first
day of the first week (00..53)
%W - Week number of the current year,
starting with the first Monday as the first
day of the first week (00..53)
%w - Day of the week (Sunday is 0, 0..6)
%x - Preferred representation for the date alone, no time
%X - Preferred representation for the time alone, no date
%y - Year without a century (00..99)
%Y - Year with century
%Z - Time zone name
%% - Literal ``%'' character
t = Time.now
t.strftime("Printed on %m/%d/%Y") #=> "Printed on 04/09/2003"
t.strftime("at %I:%M%p") #=> "at 08:56AM"
"
time.strftime( string ) => string
---------------------------------------------------------------------------------
Formats time according to the directives in the given format string. Any text not listed as a directive will be passed through to the output string.
"
Format meaning:
%a - The abbreviated weekday name (``Sun'')
%A - The full weekday name (``Sunday'')
%b - The abbreviated month name (``Jan'')
%B - The full month name (``January'')
%c - The preferred local date and time representation
%d - Day of the month (01..31)
%H - Hour of the day, 24-hour clock (00..23)
%I - Hour of the day, 12-hour clock (01..12)
%j - Day of the year (001..366)
%m - Month of the year (01..12)
%M - Minute of the hour (00..59)
%p - Meridian indicator (``AM'' or ``PM'')
%S - Second of the minute (00..60)
%U - Week number of the current year,
starting with the first Sunday as the first
day of the first week (00..53)
%W - Week number of the current year,
starting with the first Monday as the first
day of the first week (00..53)
%w - Day of the week (Sunday is 0, 0..6)
%x - Preferred representation for the date alone, no time
%X - Preferred representation for the time alone, no date
%y - Year without a century (00..99)
%Y - Year with century
%Z - Time zone name
%% - Literal ``%'' character
t = Time.now
t.strftime("Printed on %m/%d/%Y") #=> "Printed on 04/09/2003"
t.strftime("at %I:%M%p") #=> "at 08:56AM"
"
Subscribe to:
Posts (Atom)