Pages

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!

Installing postgresql 9.4 on linux mint 17.2 Rafaela, [[Easy Way]]

Hey guys, in this post i'm gonna show you how to setup postgresql(The worlds most advanced opensource database) in linux mint the easy way! So first of all i need you to download the graphical installer of postgresql so go to this link and download the graphical installer for postgresql for your linux operating system!

After downloading the graphical installer place it on the desktop and then make it executable by typing the following command in the terminal





After making it executable now time to run it like this



and you will be greeted by postgresql setup wizard, like this


now all you have to do is just hit next for the two popups for setting installation and data directory and then comes setting the password for database superuser i.e postgres, Like this


After setting password it will ask for port.. default will be 5432 if another postgresql instance is not running on your linux box at the same time. Just finish it by hitting next-next several more times and that's it ! Open the menu and there you will find a postgresql section like this which has all it's components and tools 


That's it!

Sunday, 19 July 2015

Installing Laravel on Linux OS[Easy Way]


So guys i'm very happy to post this article on installing laravel on Linux operating System. Laravel is basically a Model View Controller based framework of php. Let me tell you my own story i was quite frustated when i was working with php as it is so full of flaws and then i left php and started coding in ROR(Ruby on Rails) ... then after sometime i came across this fucking awesome framework of php[Laravel] and seriously friends i fell in love with laravel.. i can only say that laravel is the ruby on rails for php.

No more story! Now the geeky task of installing laravel on linux operating system! So there is basically two prerequisite find those article here 

1.) setting php in path !

2.) Installing super awesome dependency manager for php i.e composer

Follow both the tutorial and add php to path and install composer to the system next run this command to install laravel in your terminal


this command will basically install laravel installer into your system. You can use laravel installer by navigating into the following directory as shown in terminal


but it's a bad practice to navigate to the bin folder of composer and then run laravel installer to craft a application. So for this purpose we need to set laravel installer into our path. So for that purpose open terminal and type the following command!






This command will basically open /etc/profile in nano text editor like this 


add the following line at the end of the file to add laravel installer in your path.








Now press CTRL + O to save then CTRL + X to exit from the nano text editor.
Then reload the /etc/profile by using the following command 





and after that run the command laravel into your terminal like this!


So that's how we set up laravel installer and now we wanna craft a laravel application to start development so for that purpose run the following command in terminal as shown in the picture














So our laravel installer just crafted a laravel application named swapnil(as provided) .. So, now time has come to run this application and see it in the browser!

So i need you to locate into directory or application you just created i.e swapnil , and then run the following command to start the laravel's development server !
For this purpose we will use artisan a command line tool comes with laravel for webartisans :) 

type the following command for starting the laravel's development server!








now open the browser and hit the link shown in the terminal i.e. http://localhost:8000/

and magic see the beautifull laravel application  


That's it ! This is how you can install laravel on your system! 

Installing Composer[Dependency Manager for php] in Linux OS[Easy Way]



Hello friends, in this post i'm gonna show you how to install Composer in Linux.
So prerequisite for this tut is you must read and implement the steps provided in this article on setting up php in path!

After doing this you must have Curl(basically used to transfer data from or to a server using various supported protocols like FTP, HTTP, HTTPS etc..) installed on your machine. if that's not the case then use the following command to install curl in to your machine.


this command will do the rest of the work and install curl into your machine!

So now time to install super awesome Composer into our linux machine! 

use the following command to pull composer into your machine using curl



Now as i pulled composer from the remote server using curl now it the time to move composer.phar(phar means php archive) file to our binary folder use the following command to perform that task



Now you can restart your system and then simply type composer in terminal and magic!!! Composer is installed ! like this

 That's it! Thanks for reading!


Environment Variables, PATH in Linux Mint[Easy Way]

Hello friends, My todays post is how to set environment variables(PATH for binaries) in super awesome linux os.

So for this post i will be showing you how to setup php binary in path which comes bundled in xampp.

So, lets do it !!!

1.) First open the terminal and then type the following command !





2.) After entering you will be greeted by the interface of nano text editor which has the code inside the profile file which looks something like this


Actually for setting up the environment variables or path of a binary you must know it's actual path. In my case the path for php binary in /opt/lampp/bin as show in the following picture






So now i need to insert this path in my /etc/profile file ... okay!

so add the following code at the end of your file for adding php binary in path

Now save it by pressing CTRL + O and then CTRL + X to exit the nano text editor now you need to reload the /etc/profile file so for that purpose you can either restart or logout your machine but the most geeky way to do this is add the following lines in terminal like this






Now check to see if php is coming in path add the following line in terminal

php -v

like this








as you can see php is now in my path that's it! Thanks for reading my article!