Subscribe: Subscribe RSS feed Follow me on Twitter Follow me on Facebook

Share it

wibiya widget

Installing Ruby on Rails on Ubuntu 10.04 How to get video viral on YouTube Learning More About Photography
Coolest Gadgets of 2012




Saturday, May 4, 2013

Installing Ruby on Rails on Ubuntu 10.04


This is the first tutorial post on Apsotech blog. There are several tutorials available on Internet which guides through Ruby and Rails installation. This post is very particular about installing ruby version  1.9.3p194  and rails version 3.2.13. Lets get started.
Follow the below steps carefully if you get any error in between please solve the issue before going to the next step.

Installing ruby

Download the source file here.
Copy the file to home folder and open terminal, type the command


prathviraj@apsotech:~$tar xvjf ruby-1.9.3-p194.tar.gz 

prathviraj@apsotech:~$cd ruby-1.9.3-p194/


Install dependency
prathviraj@apsotech:~/ruby-1.9.3-p194$sudo apt-get install libyaml-dev

Compile, make and install

prathviraj@apsotech:~/ruby-1.9.3-p194$sudo ./configure
prathviraj@apsotech:~/ruby-1.9.3-p194$sudo make
prathviraj@apsotech:~/ruby-1.9.3-p194$sudo make install 

Now you have installed ruby on your machine. To confirm, check the ruby version

prathviraj@apsotech:~/ruby-1.9.3-p194$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]

Rails Installation
Now time to install rails using gem. I am not using apt-get repository for rails as it does not provide all the packages needed and its not up to date, instead I am using gem repository which is directly backed by ruby repository.


Install curl
prathviraj@apsotech:~$sudo apt-get install curl


Now download gem
prathviraj@apsotech:~/ruby-1.9.3-p194$sudo curl -L https://get.rvm.io | bash -s stable --ruby -V

To install rails just type
prathviraj@apsotech:~/ruby-1.9.3-p194$sudo gem install rails 
It may take some time depending on your Internet speed.
After completion check your rails version 
prathviraj@apsotech:~/ruby-1.9.3-p194$ rails -v
Rails 3.2.13

Now create a project. I would suggest you to do it inside home directory
prathviraj@apsotech:~$ rails new projectname -d mysql 
prathviraj@apsotech:~$ cd projectname/

Now download all necessary gem files here 
Extract the cache.zip file and place it inside directory ~/projectname/vendor/


Before going ahead, you need to install some dependecies for mysql2 gem. Type
prathviraj@apsotech:~/projectname$ sudo apt-get install mysql-client libmysqlclient-dev


Install all the gem files
prathviraj@apsotech:~/projectname$ bundle install --local 

Congratulations!! If you are lucky enough to go through all the installation steps. 








How to get video viral on YouTube


All these days when I read the tech-news page of a news paper I see this story which repeatedly appears once in every month tattling about the “Most viewed Video on YouTube”. And people always tend to watch this video just to know why this video got so famous? The most viewed video such as an album song is publicized externally to some extent. Lets see how to get ANY video Viral on YouTube.

I call videos as Viral Videos, when these videos are viewed by thousands and millions of people all over the world through Internet. You can find these videos in video sharing website like ‘YouTube’. Here, I talk only about YouTube just for the simple reason that in YouTube 48 hours of video is uploaded per minute and it hits 3 billion viewers per day and no other video sharing site is even close to this stats.

Such a stat gives you the best chance to make a viral video. I've got some videos (Mentioned later in this article) which are very famous all around the cyber space. This sort of popularity gives you a public promotion which is very useful for start-up companies.

Tips to make a video go Viral
  • Videos should be short enough that viewer feels comfortable to watch full video, normally advertisement clips will be of 30 seconds, but on Internet it may be of larger length. It should not be 5 plus minutes, it will be nice if it ends in couple of minutes. 
  • Videos should be shorter as mentioned, but it should convey complete message to the viewer. 
  • Videos should be funny, or something which attracts viewer in first 30 seconds. 
  • Videos should be simple and should attract all class of viewers irrespective of their country, culture, language. 
Some viral videos on YouTube 

This video is about a startup company called ‘DollarShaveClub.com’, the CEO and the co-founder of the company ‘Michael Durbin’ starred in video.
Reason for video getting viral:
  • It was short enough so the viewer won’t spend much time on it.
  • It was a funny, and it made people laugh.
Here is the link to that video http://www.youtube.com/watch?v=ZUG9qYTJMsI


Second viral video I am talking about is very popular, i.e., ‘Gangnam Style’ this was the most popular video on YouTube in 2012, having one billion plus views. 
Reason for video getting viral:
  • A crazy horse riding dance in Gangnam style made it a viral video. 
  • The main reason was open perspective on copyright, Korean entertainer encouraged; anyone can copy the style in their own way to show. This lead many people to use that dance and publish it in their own way. 
Here is the link to that video http://www.youtube.com/watch?v=9bZkp7q19f0

Please comment any more tips that you think makes a Video Viral on YouTube.

Wednesday, April 3, 2013

Learning More About Photography


Having the right photography backdrops, as well as top notch photography lighting equipment is imperative to a good photograph so make sure your money counts and visit http://www.thelashop.com. Photography is a great skill to learn about and excel in. There are lots of different reasons that a person should learn how to take photographs. In your own personal life, there are lots of moments that would be worth remembering and can easily be with the right camera. 
Some people are turned away from photography just knowing that certain DSLR cameras can be quite expensive and so they view it as a hobby that you need money for - but that's not true at all. Even if you just have a little money you can buy a relatively cheap digital camera that you won't need to buy constant film for. Once you invest in the camera, you can worry about the lighting equipment and backdrops to make your subject look professional. You can improve your skill by adding lenses to your camera set which will help you to take different kinds of pictures and focus beautifully on a subject no matter where it's at. 
If you like the idea of portrait photography, you will need big backdrops for your photos as well as a nice two to four set of lighting equipment stands. It will also be beneficial for you to read up on photography a bit before you embark on your journey since there are certain keywords like aperture and shutter speed that will be imperative to understanding how a digital camera works. No matter what your subject may be, with the right eye, knowledge and photography equipment, anyone can make a beautiful work of art. Photography is a great hobby to take up as well as a very interesting and captivating profession for those interested. 
For your next photography endeavor, you can trust the LA shop for all future equipment needs.

Friday, November 16, 2012

Coolest Gadgets of 2012

       With more than half of the year completed, many gadgets have already been released. People always look for innovative and the latest features for their gadgets. These days’ people can’t stay even a day without their mobile phones, laptops, tablets etc. because they are so multifunctional. Everyone wants to have the latest, updated gadget, as the technology is continuously evolving so are peoples expectations.
Below is a list of the coolest and most advanced gadgets that have been released in the year 2012.
  1. Mac book pro

    While everyone was expecting iPhone 5 to be released in starting of the year and many rumors have spread about the iPhone5, apple.inc instead has given a shock to the world by releasing the latest mac book pro before iPhone 5 which has a retina display. The screen is much thinner and stylish with high resolutions of 2880 by 1800. It is the best laptop to opt for, which has an i7 quad core processor and 16 gigabytes of random access memory (RAM). The price is about $2200 which is quite expensive but it is worth it.
  1. HTC one
    HTC is famous for Smart phones. It has released so many smart phones this year based on android. Currently the HTC one series is dominating the mobile world and one X is the best smart phone so far. This series is best for its authentic sound and amazing camera of 8MP. It has capacitive2 wide screen of 4.7 inches and tegra3 quad core processor.
  1. Apple’s new iPad 

    There are some features that have improved compared to the previous iPad. It is also has a retina display with resolutions of 2048 by 1536 which is the best display up until now. The battery is life is extended in this gadget. The front camera is 5mp and is an iSight camera which gives you better clarity.

  2. Samsung galaxy s3
    This was the most Awaited phone from Samsung which is released for competing with the HTC one. It has the best features like s beam and tectiles reprogrammable technology. You have 2GB of RAM for this cellular device and QUALCOMM’s dual core processor.
  1. LG LED 3d HD 55 inch TV
    It is the best smart 3-D television with a wide screen of 55inches. It uses WRGB technology, has very high contrast ratio and gives you good viewing positions. It has the internet, magic motion, USB option and many more that you can’t even imagine.
There are hundreds of gadgets which have been released this year with innovative ideas and heaps of creativity. The newly released gadgets will be expensive because of its new technology and specifications. If you lack the funds for these electronic devices, you can pay through installments or you can get it through same day cash loans. The only thing you have to do is to fill in the application form, submit the application and wait for approval. Getting a payday loan and purchasing the device is easier than you think!

About the Author: The guest post was contributed by Diana, Passionate guest blogger from Manchester, UK. Find out more about her blogs @financeport