Thursday, December 12, 2013

Is copy and paste programming good?



Is it a good practice for copying and pasting other codes while programming?

1.
In school, teachers write the codes on the board and we type on our computer,
and hit the F5. If it runs, you totally copy the exactly while you copy.If it doesn't show,
you type something wrong, you are missing something.Then, your teacher will come and
see and say "Ahh, you are missing ; (semi-colon) right after this."
You retype with semicolon and run with zero Errors.Happy Programming. :)

You remember what you did? I think, you will say "I forgot semicolon at the end of statement."

"No!"

You just copy and paste your first code there from your teacher.

Because its you first code / initial stage, you copy-paste programming.

Life starts like this.Copy and paste.

2.
In the childhood, you copy from mother or father how to speak. The easy alphabets for a child to speak are
/pa/
/ba/
/ma/
(pa,ba,ma are the sounds that you try to speak, your lips first close and then open.I am not good at this)

Because child sees the lips motion() and tries to say what he/she listens.Papa / Mama / Baba and so on.
(Healthy child)

So, copy and paste already started from the childhood and its no offense.

3..
The more practice, the more you learn.

Ditto copy won't work. Take the idea and run in debug mode , follow the code and see the variables.
And after you understand, Implement in your way. If you get the what you want, you go for another,
if not, you re-code. and coding goes on. CODING NEVER ENDS!

4.
Learn from scratch.

You go with your first Hello World program tutorial and starts something bigger and you will grow up
bigger and bigger and you will be adult. You will get the idea how to do this and how to do that.
If you don't get the idea, there are forums and google it, ask there surely you will get some hint at least
one if you try. And you will grow up some more and one day you will be adult once again.

5.
You fail.
Failures are the pillars of success. If you give up, they won't be success. So, be patience and patience is the must
when you create. Its not about an hour to create, it need more than time to give a good result.
The more you think, the bigger it will be.

6.
Learn from others.
Listen to others and speak less and code more.
If you or someone can think, then it can be created.Its human nature.
Never give up. Giving up is always there as a final option. ;) (Learned from my Teacher)

7.
An example.
There is a programmer Mr. X(say)  in camera lens maker company. He resigns there and  go to others company.
His place is taken by another programmer Mr. Y(say). If Y has to do the job , he must look what X has done.
So, Y learns from X. Y applies X code or recode in his one, it depends, but, when company needs Y to follow
X in limited span of time, Y must learn from X. What Y does, just Debug!

8.
Doing and testing is a good practice.
While novice / noob stage, you must test different things to be bigger adult.
So, doing and testing a lot.
Do what you enjoy. I do that too. I enjoy what I do.


<strong></strong>

Wednesday, December 11, 2013

Friday, December 6, 2013

jadoo 3 //Firmware Recovery Please Insert Usb Drive

One day, Jadoo 3 gone like this.

//Firmware Recovery
Please Insert Usb Drive

There was no clue what went wrong.
So, just I googled and didn't get the answer.

I go for http://jadootv.com/jadoo3/ and clicked for Live Chat Support.

There came the nice guy.

I told him the problem and it was due to the problem of firmware.

He gave me the recovery file(bin) and just insert into USB and inserted
into Jadoo device and it began to run/update its firmware.

and its just worked.

Thank you support guy.

Now , Jadoo 3 is working!

They will give you the recovery file.So, connect to internet and download file.

Have a Good Day!

Conversation Sniff
-----------------------------------------------------------------------------------------------------------
System     8:08:52 PM
    System is getting started. [Tuesday, December 03, 2013 8:08:52 PM]
    A representative will be connected, please be patient.
   
    We are still trying to connect you, please be patient. If you don't want to wait please leave a message: Leave message. Thank you!
    Jadoo Support Guy enters the chatroom.
       
    Jadoo Support Guy     8:12:39 PM   
    Hello, my name is Jadoo Support Guy. how can I help you?

    Kapil     8:14:22 PM
    Hello sir, my jadoo 3 has problem from today's morning

    //firmware recoveryplease insert usb drive    
   
   
    Jadoo Support Guy     8:15:13 PM        
    ok one sec
   
    Dear Customer, You are requested to follow the following instructions.
    1- Download the file from following location to your computer..
https://www.dropbox.com/s/i96t2r0ai05otiq/recovery-image.bin
    2- Copy the file into your Flash Drive [Media Storage Device] in which your store your document / pictures / songs / movies.
    3- Insert the Flash Drive into JadooBox and then wait, it will automatically detect the file and then it will be repaired.    

    Kapil     8:17:57 PM        
    ok.
    wait.    
    Thank you Very much it worked!    
    have a good day~!
-----------------------------------------------------------------------------------------------------------





How to convert MySQL to SQLite



My projects needed SQLite file.
My database in MySQL has to be converted into SQLite.

So, searched into google and gone over threads of different forums,
finally, I was able to make SQLite.

links when I searched,
http://stackoverflow.com/a/9933603/1009225
http://stackoverflow.com/a/8779980/1009225

<code>
./mysql2sqlite.sh -u root --default-character-set=utf8 MySQL_db | sqlite3 SQLite_db.sqlite
#learned from http://stackoverflow.com/a/9933603/1009225
</code>

As this code needs,
1.mysql2sqlite.sh from GitHub
https://gist.github.com/esperlu/943776#file-mysql2sqlite-sh
Copy
mysql2sqlite.sh to C:\cygwin\bin

2.In cygwin, Copy
mysqldump.exe from C:\xampp\mysql\bin to C:\cygwin\bin

3.sqlite3 downloaded from
http://www.sqlite.org/download.html
sqlite-shell-win32-x86-3080100.zip(use according to your OS)
and copy
sqlite3.exe to C:\cygwin\bin

4.Start Apache and MySQL Services from Xampp C:\xampp\xampp-control.exe

5.Run mintty/cygwin/bash
run this command to make file executable learned from http://stackoverflow.com/a/8779980/1009225
<code>
chmod +x mysql2sqlite.sh
</code>

and the final command to convert MySQL to SQLite
<code>
./mysql2sqlite.sh -u root --default-character-set=utf8 MySQL_db | sqlite3 SQLite_db.sqlite
</code>

// -u root ===> your localhost
//--default-character-set=utf8 ===> to make unicode
//MySQL_db ===> MySQL Database name(db from phpMyAdmin)
//SQLite_db.sqlite ===> SQLite database which is saved into the same directory C:\users\user(see by pwd for address)

this should convert your MySQL database to SQLite in you C:\Users\user directory.
or pwd for the path.

Thank you for your visit.