Pages

Friday, 16 October 2015

Solved! mysql2 (0.4.1) ain't working on rails 4.2.4!

                                   


                                      So, guys you have worked with rails with mysql and everything worked great untill you upgraded your version of rails to 4.2.4 and you got stuck connecting rails to mysql ... following error pops up "Specified 'mysql2' for database adapter, but the gem is not loaded. Add gem 'mysql2' to your Gemfile(and ensure its version is at the minimum required AciveRecord)."

and the patch i applied is i downgraded the gem mysql2 from version 0.4.1 to version 0.3.18.. and it worked!

to downngrade mysql2 add the following line in the Gemfile in place of gem 'mysql2'  like this

gem 'mysql', '~> 0.3.18'

and after that simply run bundle install !! Bundle will pull the dependencies and so in the Gemfile.lock file you will see the mysql2 version downgraded from 0.4.1 to 0.3.18! fixed.

Saturday, 26 September 2015

Kubuntu Flickering | Amd Radeon | Solved | Swapnil Singh

                                                          Hey guys in this post i'm gonna show you how to stop flickering in kubuntu 15.04. So open the terminal and add the following command in terminal.

sudo nano /etc/X11/xorg.conf

and add the following lines in the file

Section "Device"
 Identifier     "Configured Video Device"
 Driver "radeon"
EndSection

thats it.

Wednesday, 23 September 2015

Terminator in Kali Sana 2.0 | Swapnil Singh

                                  hey guys in this post i'm gonna show ya'll how to install the most powerful fully featured linux terminal emulator in kali sana 2.0 i.e. Terminator !
So basically all you need to do is type the following command in kali sana 2.0


This command will basically install terminator in your kali sana 2.0 ... and here is how your new terminal emulator looks in kali sana



The main advantage of using terminal emulator like terminator is that you can split your screen vertically or horizontally so that you can monitor multiple screens/processes at same time like shown in the picture below.


Cool, isn't it ?? Feel free to comment in the comment section if you have any problem related to kali sana :)

Saturday, 19 September 2015

Kali Sana 2.0! Internet Download Manager, Aria2, Uget!

                                                  Hey guys in this post i'm gonna show you all how to install a awesome download manager in kali sana 2.0 ! So, first of all open the teminal and enter the following command as show in the screenshot below


This command will basically install aria2 ... the command line download manager available for all linux distros. Bascially it's the dependency of our GUI software ... You can use aria2 from command line by just entering the command aria2c http://example.com/download/123.mp3 ... but in this post i'm gonna introduce you with this awesome open source gui software... that is Uget download manager ... it's easy af to install uget download manager just enter the following command in the terminal, shown in the screenshot below.


so now aria2 and uget both are installed in your kali sana 2.0 .


and that's how uget download manager looks in kali sana 2.0!

Tuesday, 15 September 2015

Fixed! Kali Sana 2.0 VLC media player | Swapnil Singh

                     So, you installed a fresh copy of kali sana and when you tried to open vlc media player it doesn't open... In this article i'm gonna show ya how to fix this problem!

First of all open the terminal and type this one simple command as shown in the screenshot below...


after running this command try to open vlc and yes this will solve your problem!

Tuesday, 11 August 2015

Fixed: hardware acceleration in AMD processors | Android Emulator's | Swapnil Singh

Hey Guys today i'm gonna show you how you can fix hardware acceleration in AMD based laptop's and run your newly coded android application. Note if you use INTEL based laptop then also this post is quite useful for you. So today i'm gonna introduce you to genymotion!


GenyMotion is basically replacement of Android Emulator's. The main advantage of using genymotion emulator's is they are quite fast as compared to android emulator's .. So, let's get started..!!!

So if you are totally f*cked up from android emulator's then go through the following step's:-

1.) Go to offical genymotion website and there you will find two version's of genymotion! First one is free and is only for personal use[with limited features] and the second version is premium and is for business use!

2.) Setup an account on genymotion website and download genymotion as per your need!

3.) Next all you need is to install it!

After installation following window will pop-up


Note:- I have already created a virtual device[i.e Google Nexus S] but at first time you will open genymotion you will find nothing... So for the purpose of adding virtual device click on the add section in navigation bar and then you have to locate your SDK and then geny motion will download the remain virtual box files from it's repository and then you will have a virtual device!

Now after setting genymotion let's add genymotion to the android studio!
So for this purpose all you have do is fire up the IDE[i.e. Android Studio] and then goto settings in file section and then open settings as shown in the pic below



Now go into the plugins section and then click on "Browse repositories" button at the bottom and then search for genymotion plugin and install it like this !



This will bascially add a genymotion icon in the navbar and from there you can access genymotion virtual machines aka android emulator's like this !


and for running you app in the genymotion android emulator simply go to the android studio and click on run and BAM!!!


Thanks for reading the post! Android you life!

Wednesday, 29 July 2015

Installing Bower in Linux Mint 17.2 Rafaela Easy Way!



Hey guys today i'm gonna show you how to install bower in your linux operating system ! Bower is basically a front-end dependency manager! So, for installing bower all you need to do is just go through these commands!

First you need to install nodejs and then it's package manager i.e npm(node package manager) like this



now use the node package manager i.e npm to install bower on your system like this



and this will do the job of installing bower into your system... One last step


That's it now check the version of bower by the following command


So, that's how you can install bower in your system!