Wednesday, October 26, 2016

Create Procedure in MySQL using PHPMyAdmin

In MyPHPAdmin 4.x, there is "Add Routine" link under "Routines" tab at the top row. This link opens a popup dialog where you can write your Stored procedure without worrying about delimiter or template.
enter image description here
Add Routine
enter image description here
Note that for simple test stored procedure, you may want to drop the default parameter which is already given or you can simply set it with a value.
On PHP, you can use the following code to call the procedure.
include_once("dbconfig.php");
    $stmt = "CALL insertEmp(0;";
    $rs = $db_con -> prepare($stmt);
    $row = $rs -> execute();
?>
Wednesday, May 4, 2016

My New Project is underway - Permaculture

After much deliberation and head banging past 1 year, I have finally made up my mind. Leaving the business of Decor house(Worst decision of my life) and Web programming(I do hope that I will be able to continue doing this though), I am going to use a small space of land in Dibyanagar, Chitwan for Permaculture. Before you say anything, Permaculture is a big word to myself and I came to know about this last week only. I had some idea on what I wanted to do but there was a word for this, that I didn't know.

So what exactly is Permaculture ? Wiki states it as "Permaculture is a system of agricultural and social design principles centered around simulating or directly utilizing the patterns and features observed in natural ecosystems."
Permaculture - Wikipedia, the free encyclopedia

I had this vision of starting a small farm house in a small area of land where I can pass my time and be doing something that would be creative as well as be a source of inspiration to the locals. After looking around, I found a small piece of land in Dibyanagar, Sisar to be exact. So, past couple of weeks has been busy for me to design on a layout which I would be happy to work on. I have roughly figured it out how I would like. I have the layout but I will reveal it later.

As the condition of Nepal is worsening day-by-day due to the Madhes andolan and fuel crisis hitting the roof, it might not be a good time to start a farm. Everything is in shortage and the prices are sky-rocketing. I would love to start sooner rather than later and write more about it. Til then please bear with me.

BTW, I am starting a self-sustainable farm house with Horticulture, Vegetable Farming, Goat Farming and Timber Farming as well. Just in case if you have any suggestions, please do let me know. I would love to have inputs.

Burger Shack...A paradise for Burger Lovers

Wandering around New Road, my brother and I were looking for a good place to have 'khaja'. I had in particular, Trishara in mind but then suddenly out of nowhere I said 'Burger Shack'. I have heard of this place and in particular praises only. So, after searching the Internet, the address mentioned was Jawalakhel and contact number. Armed with that particular information, off we went in search of the place. We started looking up the place from Pulchock itself. To my surprise, the place as mentioned was in the chock itself besides NTC on the way to Kumaripati.

Parking can be done in the sideways and shouldn't be a big problem as there were ample space.
The place was little smaller than what I thought it would be and seemed to be a rather like an American diner. I asked for the rest room and was promptly shown the way. The place was clean and the ambiance was rather pleasant. There were very few people, may be due to the fact that we were way past the "lunch hour".

Going through the menu, we ordered BBQ Sauce Burger and Double Chicken. When asked for the refreshment, I think he was the owner, he recommended the Lemon Mint Refresher. It was absolutely refreshing and we loved it. The refreshment was provided very fast. I love the fast services. The burgers followed. We didn't know what to expect. But the very first bite, and both of us were smiling. We knew that it was delicious and we both loved it. So much so that I even forgot to take pictures of those delicious burgers. The burger was filling in portion but we ordered our self another round for the road.

We are definitely going there in the future and hopefully, try all the varieties.
The place is clean and hygienic. I also noticed the notice board where they claim that all the vegetables are cleaned with Iodized water. NO SMOKING always makes me happy. :)
A big thumbs up.
Monday, May 25, 2015

How to Clean your motorcycle ?


If you want motorcycle cleaning tips that will help you clean your motorcycle faster, easier, and without damaging it, here are some tips to help you.

Motorcycle Cleaning Products You Will Need

  • Some soft, clean cloths. You'll need some for washing and some that you keep dry for drying and polishing. A dirty rag can scratch the bike. There are "wash mits" you can purchase and use, but only if they are kept clean.
  • Wheel cleaner made specifically for wheels
  • Leather conditioner for saddle and any accessories
  • Clean sponges - a dirty sponge can contain dirt which can scratch paint and chrome.
  • Cleaning solution made specifically for motorcycles. Because the cleaners will get on the paint, saddle and chrome, use products that are not going to cause problems with discoloring the finish or "blue" the chrome. When it comes to motorcycle cleaning, many bikers make a mistake of using the wrong motorcycle cleaning products, which can damage your motorcycle.
  • You may want a bucket for mixing solutions. Follow the mixing directions on any supplies. Be sure each product is used properly.
  • Of course, you need a water hose as well.
  1. Rinse the bike from top to bottom, paying special attention to any areas of extra heavy soil
  1. Check every little place that dirt can hide to be certain you have the motorcycle completely clean
  1. Use a wheel cleaner and soft rag to completely and thoroughly clean each wheel.
  1. Dry your motorcycle off with clean soft rags
  1. When drying, look for spots that water tends to pool and take an extra bit of care to be sure those areas dry thoroughly.
  1. Maintain your leather with the products your motorcycle maker recommends. Treat the saddle, and any leather accessories.

If you've just come in from a cruise, you must let the engine cool down before washing the bike. You can cause spotting, streaking, chrome damage and actually crack your engine! So give the engine and pipes time to cool down.

Now that the bike has cooled to the touch, you can begin the wash. Using the motorcycle cleaning product recommended by our motorcycle manufacturer, mixed properly following label instruction, prepare your cleaning solution.

If you have heavy dirt or have bugs on the fenders, hose down those areas gently from top to bottom first. This will allow them a kind of "pre-soak" to loosen them. Then hose once again to rinse off any debris that has loosened.

Beginning from the top to the bottom, wash gently, using a clean soft cloth or a wash mitt. If your cleaning cloth becomes soiled, do not take the chance of scratching the paint or chrome; change to a clean cloth. If you use a sponge, be absolutely certain no debris gathers in the sponge pores and causes scratches.

DIY Posted on My Blog as well as Trade Nepal DIY
Friday, May 15, 2015

​शुक्रबार बिहान भूकम्पका ३ धक्का

शक्तिशाली भूकम्प पछि पराकम्प जाने क्रम जारी रहेको छ । शुक्रबार बिहान पनि ४ रेक्टर स्केलभन्दा माथिका 3 वटा पराकम्पन गएका छन् ।
धादिङ केन्द्रबिन्दु बनाएर फेरि बिहान ७:२७मा ५.५ रेक्टरको पराकम्पन गएको छ।
दोलखा लाई केन्द्रविन्दु बनाएर विहान ३ बजेर २० मिनेट जाँदा ४ दशमलब १ र ३ बजेर ५० मिनेट जाँदा ४ दशमलब ३ रेक्टर स्केलको पराकम्पन गएको हो ।
यही वैशाख १२ गतेदेखि हालसम्म चार रिक्टर स्केलभन्दामाथिका २२२ वटा भूकम्पको पराकम्प गएको केन्द्रले जनाएको छ ।
Wednesday, May 13, 2015

बुधबार बिहान मात्रै तीन वटा भूकम्प

काठमाडौं, वैशाख ३० – बुधबार बिहान मात्रै तीन वटा भूकम्पको धक्का महसुस भएको छ । राष्ट्रिय भूकम्प मापन केन्द्रका अनुसार बिहान दुई बजेर सात मिनेट जाँदा काठमाडौं केन्द्र बनाएर ४ दशमलव २ रेक्टर स्केलको भूकम्पको धक्का गएको छ ।
यस्तै बिहान तीन बजेर १० मिनेट जाँदा धादिङ केन्द्र बनाएर ५ दशमलव ९ रेक्टर स्केलको भूकम्प गएको केन्द्रले जनाएको छ । यस्तै बिहान ४ बजेर ३८ मिनेट जाँदा दोलखा केन्द्र बनाएर ४ दशमलव ३ रेक्टर स्केलको भूकम्प गएको छ । मंगलबार दिउँसो १२ बजेर ५० मिनेट जाँदा ७ दशमलव ३ रेक्टरको भूकम्प गएपछि साना भूकम्पका धक्काहरु गैरहेका छन् ।