Rahul's Tech Blog

Growth Hacking, Just Hacking or No hacking !!!

Uncategorized

Hello World JNI program in NDK using

  Create new android application Create a new native method public native String nativeFunction(); Then run this command from inside /app/src/main javah -d jni -classpath /Applications/adt-20140624/sdk/platforms/android-19/android.jar:../../build/intermediates/classes/debug:/Applications/adt-20140624/sdk/extras/android/support/v7/appcompat/libs/android-support-v4.jar:/Applications/adt-20140624/sdk/extras/android/support/v7/appcompat/libs/android-support-v7-appcompat.jar com.rahulprasad.www.ndksample.MainActivity This will create jni folder inside src This will also create a header file called com_rahulprasad_www_ndksample_MainActivity.h Duplicate the header file as main.c and remove everything except function initialization. Include […]

What to do after git clone a yeoman project ?

When you push a yeoman project to git, it only pushes your scripts and configuration files. It does not push libraries and dependencies. So when you git clone a yeoman project you won’t be having all the files to run the project. If you run grunt command. You will get following output: grunt-cli: The grunt […]

How to take argument in PHP CLI script

Suppose you are writing a PHP CLI script and you need to take an argument from command line, how would you do it ? Here is how: Following is a sample program to take a string as argument and reverse it. <?php   // $argc contains number of argument sent. Name of the string is […]

Embed PHP Code in CSS files.

Have you been embedding CSS Styles into PHP files just for the sake of making the styles dynamic? Ever wished to add PHP codes in CSS files itself. Here is a simple trick which will do the magic. Create a .htaccess file in your project directory preferably inside the directory where CSS files are stored. […]

Restore ubuntu after installing windows

Hello, I saw an article on recovering lost ubuntu after installing windows. I was pretty confident and installed windows 7 on my box. After that I started following the article and I was stuck with a blank grub menu during startup. I booted from ubuntu live DVD and started reading more about restoring grub. Here […]

, , ,

12 Gmail tips and tricks you probably don't use.

Here is a list of important tips that you must know to use gmail efficiently. Chating Tips: Surround the text with * to make it bold For example: *hello* becomes hello Surround text with _ to make it italics Ex: _hello_ becomes hello Surround text with – to make it strikethrough Ex: -hello- becomes hello […]

,

Firefox tweak: Access forums without registering

Some websites/forums ask you to register before you can see its content. Here is a firefox tweak to bypass registration process and directly see the content. Write about:config in firefox’s address bar and hit enter. If it shows you a message “This might avoid your warranty!”. Press the button “I’ll be careful, I promise”. Now […]

,

Opera Mini 5.0 Beta released…

With 30 million smiling faces, Opera delivers yet again. It unveiled its fifth generation of Opera Mini. Facing stiff competition from Mozilla’s Fennec and the Skyfire recently , Opera did a fine job in putting up a rich featured and beautified marvel. Trying its best to meet the demands and expectations one can surely say […]

, , , ,

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!