Ryan Rampersad
Thoughts, Ideas & Opinions

Browse: Home / Tips

Tips

Browser Shortcuts Everyone Should Know

By Ryan on December 13, 2011

My dad and I were in the living room recently and he was using our TV computer. While using Chrome, he kept mouse over to each little circular x to close each tab. I suggested he try a different shortcut. If you’re using a mouse with a scroll wheel, you can press the scroll wheel [...]

Posted in Tips | Tagged Browsers, chrome, Tips | Leave a response

C: undefined reference to `pow’

By Ryan on December 12, 2011

I was helping a friend with a little C-program recently. C is not my language of choice, and when I was tinkering years ago, I was using a Windows compiler and not gcc. Things are a little different in the Ubuntu compilation world. I was receiving an unexpected error message even though I had proper [...]

Posted in Errors | Tagged C, coding, error, Tips | Leave a response

Save curl output to bash variable

By Ryan on December 7, 2011

Saving the contents of a bash curl call is pretty easy. Variables in bash work something like this. Capturing input is relatively easy too. If you echo’d out the contents of variable, you’d print out whatever was in the directory when you ran the command. So if you put the two together along with curl, [...]

Posted in Tips | Tagged bash, curl, Tips | Leave a response

Meta Refresh

By Ryan on November 28, 2011

Doing the classic meta refresh, even with today’s fancy server side and JavaScript tricks, is one of the most reliable and easy ways to transfer a user from one page to another across all browsers. In fact, I used it just today when I needed to redirect users to a special Internet Explorer 6 version [...]

Posted in Browsers, Tips | Tagged meta, redirect, refresh, Tips | Leave a response

How to Write byte[] to a File in Java

By Ryan on October 20, 2011

For a little project I needed to save lots of index positions from many arrays to file. They were numbers, so they were basically ints, but instead of four bytes, I could get away with a single byte, saving on memory. It was more efficient too save bytes directly instead of parsing strings of integers [...]

Posted in Java | Tagged bytes, files, Tips | Leave a response

Next »

Navigation

  • Home
  • About
  • Contact
  • Archives

Recent Tweet

  • I said 'like' so many times in a description of Journey I cried upon playback. 15 hours ago

Recent Posts

  • Modifying WordPress Feed Titles
  • Centralization
  • Fall Schedule 2012
  • Spring Advising
  • Restart HP TouchPad
  • BestBuy’s Great Potential
  • Do-While Loop in Python
  • New At The Nexus & Nexus Special
  • Random Integers in Python
  • Motorola Triumph Review

Popular Topics

Apple Browsers errors exam Google Java JavaScript linux Microsoft MooTools PHP podcast review terminal Tips twitter ubuntu unified Windows WordPress

Search

Archives

  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Copyright © 2012 Ryan Rampersad.

Powered by WordPress, Hybrid, and Defined Mass.