Block access to phpmyadmin from LAN network on Xampp

Xampp on windows is set to allow phpmyadmin from your local network. To disable access from your network, Open httpd-xampp.conf located in xampp-folder\apache\conf\extra\httpd-xampp.conf Somewhere down in the bottom of this configuration file is the LocationMatch node Even though you would think the default Order is set to deny, allow with Deny from all. This configuration by default is set to Allow from 192.168.0.#. Remove this ip range and you are set. [Read more…]

Intro / Tutorial of TTC Toronto Transit Live app

Thank you redflagdeals community

I am getting some good feedback and suggestions for my android app (release couple of days ago) from redflagdeals forum. Here is the link to the conversations. http://forums.redflagdeals.com/ttc-toronto-transit-live-android-1363679/ In case you are wondering I posted TTC Toronto Transit Live for android and posted a message on redflagdeals free section forum. Since then, I am getting good response and suggestions from Torontonians.

Launching ‘TTC Toronto Transit Live’ for Android

After two months of hardcore learning + developing, I have finally completed my first android app. TTC Toronto Transit Live uses Nextbus’s api to get bus arrival prediction for TTC. The app is free. Every smartphone user in Toronto must have a transit app if he/she uses public transit.

There are many apps out there for TTC transit. TTC Toronto Transit Live comes in with a fresh user interface.

[Read more…]

List of android drawable preview

List of android.R.drawable resources with preview.
ab_bottom_solid_dark_holo.9.png

ab_bottom_solid_dark_holo.9.png

ab_bottom_solid_inverse_holo.9.png

ab_bottom_solid_inverse_holo.9.png

ab_bottom_solid_light_holo.9.png

ab_bottom_solid_light_holo.9.png

ab_bottom_transparent_dark_holo.9.png

ab_bottom_transparent_dark_holo.9.png
[Read more…]

Parabolic Solar cooker project

This year, on my trip to Nepal, I made this 1.6 m diameter parabolic solar cooker with help from my dad and my sister. This boils about 2 liters of water in 40 min. I put vinyl chrome tape around the center for better performance.  


[Read more…]

Identifying Views with similar names in visual studio .net mvc project

If you have worked on asp.net or any mvc projects, you have created similar view names like index, create, details, delete for different controllers. Now the problem is when you have multiple files with similar names opened up in VS, it gets confusing and you end up reopening the file from the solution explorer. With this solution that I will show you, you can have different color code for similar named view files that belong to different controllers.

Like so


[Read more…]

Simple JQuery Mobile

JQueryMobile is JQuery for the mobile version of a webpage. Its super easy to create a simple mobile page using jquery mobile. [Read more...]

Create your own captcha to verify forms

Recently the forms on my company’s website had been getting lots of spam. The spammers were submitting the forms with advertisements. We needed a captcha. I suggested Recaptcha, but if you have seen one of their captcha, you would think even a human cannot interpret them correctly. So my boss did not want that. We wanted our customers to have a simple, easy to interpret captcha while also serving us some help fighting the spam. [Read more…]

Update on the Android game

The idea of the game is like so. Its war time. Our main character is a pigeon who has to complete missions that involve delivering messages. The pigeon will fly towards right side of the screen until it reaches the destination. In between there will be several obstacles like enemy pigeon, falcons/ hawks, anti aircraft attacks etc. The user has to control the pigeon to avoid getting touched by the obstacles. Like I said in my previous post, the game will be using libgdx game framework. libgdx is an android game framework. First we got ourselves (my partner Ali and I), a copy of a game called Super Jumper made by the creator of libgdx. We modified it to move from bottom-up to left to right. For collision, we tried coding by ourselves. Then I found that there is a better alternative, Box2d. Box2d is a 2d physics engine which is available in different languages. [Read more…]