sed 's/^/"/'
will prepend the double quotes to the beginning of the text. I had to copy paste the character ^ for this to work on my Mac. Could not find on the Mac keyboard.
Thursday, March 25, 2010
Monday, March 22, 2010
How to connect Windows XP machine to Mac Airport Extreme Wireless router
I bought a $150 PC from San Jose Salvation Army. It has 1 GB RAM, 40 GB hard drive with wireless card. This solves the headache of installing VMware, buying a licensed Windows and configuring etc.
First, make sure you are using WEP in your wireless router. Check the settings. If not, you have to change it to WEP in the router settings. It will prompt you for 13 character password. Once you change it, the router will reboot and the changes will be in effect. Now on your Windows machine just type the password (as alphanumeric characters, not as HEX) and you should be good to go.
First, make sure you are using WEP in your wireless router. Check the settings. If not, you have to change it to WEP in the router settings. It will prompt you for 13 character password. Once you change it, the router will reboot and the changes will be in effect. Now on your Windows machine just type the password (as alphanumeric characters, not as HEX) and you should be good to go.
Monday, March 15, 2010
Bladder Diary iPhone Released
Bladder Diary iPhone app will help you and your health care team figure out the causes of your bladder control trouble.
As long as you have your iPhone / iPod touch with you, you can record your bladder activity from anywhere and anytime.
Keeping a bladder diary (or "voiding diary") can help you and your doctor look for patterns to your bladder problems. You can track things like:
* How often you pass urine, and when
* How much urgency you feel each time
* Whether you're experiencing incontinence
You can keep a bladder diary before your appointment, or your doctor may ask you to start one to track your progress through treatment.
Export the data easily in a csv format that you can import to any spreadsheet, print it and take it to your doctor. You can also forward the data to your health care provider or anyone as an email.
The term OAB refers to "Over active bladder".
When you have Overactive Bladder (OAB), you may experience:
* Urgency: a pressing need to urinate. It can happen even when you don't really need to go. The urge can be so sudden and so strong that you have to run to the bathroom.
* Urge incontinence: when you can't reach the bathroom in time and you leak or have an accident.
* Frequency: having to urinate more than about 8 times a day.
* Nocturia: an urge to urinate that wakes you up at night
As long as you have your iPhone / iPod touch with you, you can record your bladder activity from anywhere and anytime.
Keeping a bladder diary (or "voiding diary") can help you and your doctor look for patterns to your bladder problems. You can track things like:
* How often you pass urine, and when
* How much urgency you feel each time
* Whether you're experiencing incontinence
You can keep a bladder diary before your appointment, or your doctor may ask you to start one to track your progress through treatment.
Export the data easily in a csv format that you can import to any spreadsheet, print it and take it to your doctor. You can also forward the data to your health care provider or anyone as an email.
The term OAB refers to "Over active bladder".
When you have Overactive Bladder (OAB), you may experience:
* Urgency: a pressing need to urinate. It can happen even when you don't really need to go. The urge can be so sudden and so strong that you have to run to the bathroom.
* Urge incontinence: when you can't reach the bathroom in time and you leak or have an accident.
* Frequency: having to urinate more than about 8 times a day.
* Nocturia: an urge to urinate that wakes you up at night
Friday, February 19, 2010
Seduction Flash Cards iPhone App
Ross Jeffries Speed Seduction(TM) Home Study Course flash cards is now available on your iPhone / iPod touch. Just swipe the flashcard to browse through 50 flash cards that consists of following themes:
1. Trance Words
2. Seduction Rules
3. Polarity Responders
4. Weasel Phrases
5. Super Influence Patterns
6. Super Weasel Phrases
Speed Seduction trademark belongs to Straight Forward Inc.
1. Trance Words
2. Seduction Rules
3. Polarity Responders
4. Weasel Phrases
5. Super Influence Patterns
6. Super Weasel Phrases
Speed Seduction trademark belongs to Straight Forward Inc.
Collectible Cook Books Price Guide iPhone App
Price for over 3800 collectible cook books is now available on your finger tips. You do not need Internet connection to use this product. Due to changing nature of the market, this is not a guarantee of prices. Choose multiple research tools to verify data.
Collectible Books Price Guide iPhone App
Price for over 3000 collectible books are now available on your finger tips. You do not need Internet connection to use this product.
Due to the changing nature of the market, this is not a guarantee of prices. Choose multiple research tools to verify data.
I developed this product for my own use. Due to difficulty in getting the pricing information fast without waiting for websites to load.
Due to the changing nature of the market, this is not a guarantee of prices. Choose multiple research tools to verify data.
I developed this product for my own use. Due to difficulty in getting the pricing information fast without waiting for websites to load.
Movies For Any Mood iPhone App
Top 20 movies for the genres : Action, Adventure, Animation, Biography, Comedy, Crime, Documentary, Drama, Family, Fantasy, Film-Noir, History, Horror, Independent, Music, Musical, Mystery, Romance, Sci-Fi, Short, Sport, TV Mini Series and Westerns of all time. Keep track of which movies you have watched. Search the entire database to see if it is in the top list.
Top 500 Movies iPhone App
The top 500 movies of the past 100 years is now available on your iPhone / iPod touch. You can keep track of which ones you have watched and which ones are still to be enjoyed. You can also search the entire database to find out whether it is in the top 500 list or not.
British Accent iPhone App
Boost your British accent to boost your career!
* Is your accent holding you back at work?
* Are you often asked to repeat yourself when you speak english?
* Do your friends and colleagues speak with a better British accent than you?
* Could improving your British accent improve your job prospects and get you that promotion?
then this product could help you!
If you are frustrated with your British accent and would like to speak with a clear RP voice then this video can help.
This product teaches you how to make the different sounds found in the RP British Accent.
* 15 different Vowel Sounds
* 16 different Consonant Sounds
By learning how to pronounce each of these individual sounds correctly you will be able to improve your spoken English immediately.
IMPRESS YOUR FRIENDS AND COLLEAGUES WITH YOUR REFINED BRITISH ACCENT
* Is your poor British accent affecting your job prospects?
* Could improving your British accent help improve your job opportunities?
For an investment of only $4.99 this product can help boost your British Accent to boost your promotion prospects.
* Is your accent holding you back at work?
* Are you often asked to repeat yourself when you speak english?
* Do your friends and colleagues speak with a better British accent than you?
* Could improving your British accent improve your job prospects and get you that promotion?
then this product could help you!
If you are frustrated with your British accent and would like to speak with a clear RP voice then this video can help.
This product teaches you how to make the different sounds found in the RP British Accent.
* 15 different Vowel Sounds
* 16 different Consonant Sounds
By learning how to pronounce each of these individual sounds correctly you will be able to improve your spoken English immediately.
IMPRESS YOUR FRIENDS AND COLLEAGUES WITH YOUR REFINED BRITISH ACCENT
* Is your poor British accent affecting your job prospects?
* Could improving your British accent help improve your job opportunities?
For an investment of only $4.99 this product can help boost your British Accent to boost your promotion prospects.
iPhone App for Kidney Stones and Gallbladder Stones
iOxalate
This application is for those who have suffered from Kidney stones or Gallbladder stones due to Calcium Oxalate stones.
Foods are categorized according to the oxalate content. Foods low in oxalate can be consumed in unlimited amounts. However, common sense needs to prevail. For example, distilled alcohol, though low in oxalate, should not be consumed in unlimited quantities.
This application helps you to follow a low oxalate diet by eliminating foods very high in oxalate and eating those with moderate oxalate content in limited amounts.
This application does not have any recipes. It only contains the names of the foods categorized by oxalate content. You can also search the entire database of foods to find its oxalate content.
* Use it in a grocery store while shopping
* To lookup the food when you are in a restaurant
* When cooking to reduce the foods high in oxalate content
This application is for those who have suffered from Kidney stones or Gallbladder stones due to Calcium Oxalate stones.
Foods are categorized according to the oxalate content. Foods low in oxalate can be consumed in unlimited amounts. However, common sense needs to prevail. For example, distilled alcohol, though low in oxalate, should not be consumed in unlimited quantities.
This application helps you to follow a low oxalate diet by eliminating foods very high in oxalate and eating those with moderate oxalate content in limited amounts.
This application does not have any recipes. It only contains the names of the foods categorized by oxalate content. You can also search the entire database of foods to find its oxalate content.
* Use it in a grocery store while shopping
* To lookup the food when you are in a restaurant
* When cooking to reduce the foods high in oxalate content
Monday, January 18, 2010
British Accent iPhone App now Live!
Learn British Accent on your iPhone / iPod touch: http://itunes.apple.com/us/app/british-accent/id350212768?mt=8
Thursday, October 15, 2009
can't convert Fixnum into String to_param
I was getting this error in to_param method. I had to explicity call to_s on id to fix it. My to_param method :
def to_param
name_slug ? "#{id.to_s}-#{name_slug.parameterize}" : id.to_s
end
If the name slug is not nil then it uses that to generate the SEO friendly URL otherwise it uses the id.
def to_param
name_slug ? "#{id.to_s}-#{name_slug.parameterize}" : id.to_s
end
If the name slug is not nil then it uses that to generate the SEO friendly URL otherwise it uses the id.
Saturday, September 19, 2009
-bash: mate:command not found
In Mac OS X 10.5.8 add the line: alias mate='open -a TextMate.app'
to your ~/.bashrc file
to your ~/.bashrc file
Thursday, September 10, 2009
Hivelogic instructions for ruby path
If which ruby shows /usr/bin/ruby instead of /usr/local/bin/ruby , it means you have not set the PATH correctly. I had to add a line: source ~/.profile to the ~/.bash_profile file. Now whenever you bring up the terminal and when you check the PATH, usr/local/bin will come before /usr/bin and the latest installed version will be picked up (which ruby will output /usr/local/bin/ruby)
Monday, August 24, 2009
Monday, August 17, 2009
Scriptaculous Rails - Complex Forms Railscasts IE fix
$($(this).parentNode).remove() works on both FF and IE.
Thursday, August 13, 2009
How to prevent the active_record output in rails console
end the statements with ; nil
Eg: list = Blog.find(:all)
list.each do |x|
puts x.title
end ; nil
Eg: list = Blog.find(:all)
list.each do |x|
puts x.title
end ; nil
Tuesday, July 21, 2009
Monday, July 20, 2009
How to dynamically insert html code with Javascript and Rails
somePage.html.erb
<%= text_field("myObjectName", "someAttribute", "onchange" => "calculateMyVar()") %>
When the user moves out of the text field, the javascript will be called.
<% if @myVar.nil? %>
<% else %>
<%= @myVar %>
<% end %>
Notice that, in order for this to work the value between the td tags is empty. If you have some dynamic output tag as shown in the else section then the javascript will not work. The above code will work for new and edit cases.
Include the following javascript within the head section of the html.erb file.
function calculateMyVar()
{
var f1 = document.getElementById('field1').value;
var f2 = document.getElementById('field2').value;
document.getElementById('myVar').innerHTML = f1 - f2
}
<%= text_field("myObjectName", "someAttribute", "onchange" => "calculateMyVar()") %>
When the user moves out of the text field, the javascript will be called.
<% if @myVar.nil? %>
<% else %>
<% end %>
Notice that, in order for this to work the value between the td tags is empty. If you have some dynamic output tag as shown in the else section then the javascript will not work. The above code will work for new and edit cases.
Include the following javascript within the head section of the html.erb file.
function calculateMyVar()
{
var f1 = document.getElementById('field1').value;
var f2 = document.getElementById('field2').value;
document.getElementById('myVar').innerHTML = f1 - f2
}
Rails Documentation Bug for Time extension
If you have a table with an attribute of type :time then to access the minutes, use min method. There is no minute or minutes method on Time extension object in ActiveSupport.
You can list all the methods available by: myActiveRecordObject.game_time.methods.sort
You can list all the methods available by: myActiveRecordObject.game_time.methods.sort
Subscribe to:
Posts (Atom)