Posts

Showing posts from June, 2016

How to play YouTube video in Android app

Image
In this post, I am going to show you how you can create an android app, that will play YouTube Video. Our app will have a simple play button. Clicking the play button will play a youtube video. We will be using this video from Youtube for our case : https://www.youtube.com/watch?v=ZENmkJk9fBM .

Adding android vendor rules in Arch Linux

Image
I had been using Ubuntu for a long time and then I had switch to ArchLinux a couple months ago. Ubuntu had been my development machine for a long time. And then when I moved to Arch, things weren't the same as in Ubuntu. The process was similar but with different commands. A similar issue I had was during adding android vendors to devices rules. I edited the file named:

Run VLC as root

Image
Running VLC as root user is absolute NO. However, we are going to do this. Read this post to know how? When I first installed Arch the default user was root. I know how to create users in Linux but I just wanted to run VLC as root. If you want too, go ahead and follow the steps below: Step one: install hexedit. For Arch Linux use pacman -S hexedit Step Two: backup vlc. cp -p /usr/bin/vlc /usr/bin/vlc_backup Step Three: Open vlc in hexedit, hexedit /usr/bin/vlc Step Four: Replace geteuid with getppid, a. Press TAB, to go to hex ASCII values b. To Search use Ctrl+s c. type geteuid and press enter then type getppid d. Press Ctrl+x to save Step Five: Start vlc as root

ArchLinux crashed with error 'Unable to find root device...Youre are being dropped to a recovery shell'

Image
After been using Ubuntu/Fedora alternately one after the other for couple of years, I decided to use Arch Linux because of its concept of rolling-release unlike Ubuntu/Fedora. So on February 23rd I installed Arch on my system. It was working all good till June 11,2016 evening. When I suddenly bumped into an error when I booted up my system. I don't know what cause the error. As far as I remember , I forgot the update that was running in my guake terminal last time when I shutdown my computer. And then when I came back to turn it on. I had this error on my screen: