Saturday, September 20, 2014

If you have  internet, enthusiasm and willing to get your own domain(like www.kshitijwagle.com.np) then it’s a no big deal. Unlike other domain registration .com.np registration is free of cost and everyone can register .np domain. I am going to explain step-wise how you can get your personal domain.
STEP 1
First thing first, if you want to register a domain you may want to go briefly through theTerms and Conditions.
STEP 2
Check whether the domain you want is available or not(Check Domain Availability). For personal use, use your citizenship related names(my name is Kshitij Wagle so i choose kshitijwagle.com.np) for the domain registration. They only let your domain registered according to your citizenship name and it’s a first come first serve basis.
Visit the mercantile office. See the required documents below before visiting.
Required documents for .np registration:
For Official Request
  1. A application letter written in the company/organization’s letter-head pad signed by authorized officer.
  2. A copy of company/organization registration certificate issued by the respective government bodies must be dropped to the Host master at Mercantile communications, Durbar Marg. Kathmandu.
  3. Online form (admin/ technical contacts and valid name servers). (Administrator’s contract address in the online form should be from the company owner)
NOTE:- A company/organization only can select domain names based on its company/organization’s name, product’s name, service’s name and brand name.
For Personal Request
  1. A application request letter.
  2. A copy of the applicant’s citizenship certificate must be dropped to the Host master at Mercantile communications, Durbar Marg. Kathmandu in order to verify the authenticity of the applicant as only Nepalese citizens are entitled to register personal domains.
  3. Online form (Administrator’s contract address in the online form should be from the domain owner)
NOTE:- Personal Domain name should be selected based only on his/her name as mentioned in citizenship certificate.

 Sample application letter

July 12 2014
To,
The hostmaster
Mercantile Communication
Durbar Marg
Ktm, Nepal
Dear Sir,
I would like to register .np domain name. I have already submitted the .np domain registration online form. I have attached the photocopy of my citizenship with this application.
I would be happy if you register my domain name as soon as possible . Thank you for considering my application.
Domain name: www.yourname.com.np
Yours sincerely
Your Full Name
Signature
Note: Donot forget to change date , domain and provide signature at the end.
Lastly your domain will be ready with in 2 to 3 days.

 Sample Citizenship 

cool pic 12
Don’t forget to attach back part of citizenship too
Mercantile Communications Pvt. Ltd. 
P. O. Box 876,
Durbar Marg,
Kathmandu, NEPAL.
Fax: 977 1 4256761 (10 AM to 5 PM in all working days)
Email: hostmaster@mos.com.np
STEP 3
Fill out the online form. There are two things you need to know before applying online form. Primary and Secondary name server. Get DNS server information from your webhost (i have  chosen www.000webhost.com because it is free of cost).You may also use other hosting sites.
For 000webhost its
primary name server ns01.000webhost.com
secondary name server ns02.000webhost.com
You can apply using any name server and change it later. But keep in mind that they will take a day or more to change your server information. So its better to put the DNS server information of the server where you will be hosting your site.
STEP 4
Get yourself a web space through webhosting company. Now the webhosting company charges a cost for that and the rates depend. But if you are not willing to pay, then there are plenty of free webhosting site that provide you free webhosting facility. Unless you want to go commercial and have large web space those free webhosting should be good enough to keep your site up and running.
000webhost is good at providing free webhosting facility. You can try others if you like.
STEP 5
Download a nice theme from the internet for your site or make your own. If you want a blog then wordpress would be great. Download wordpress and install/upload via ftp client(it is better to upload wordpress file online via http://net2ftp.com/). Now get the ftp details from your webhost. otherwise you may also use  ftp client like filezilla .
More FTP clients including filezilla can be found here.
Hope this was helpful.
if you have any problems and queries  you can comment in the following box.i will look at your comments…
Thanks
my website
Google Custom Search Engine For Blogger
Few days ago, We had discussed that how can we add next and previous pagination buttons in blogger that actually helps to improve the user interface and user navigation of blog and today again we're going to share a widget that will also improve the navigation a bit more. Today, we're going to show you that how can we add Google custom search engine in Blogger blog. Most of the blogger templates these days comes with built-in default blogger search boxes that are not much powerful to give exact result because their factor of finding the result is not good as it should be but adding Google custom search engine will be better because it gives accurate result and also has some more useful functions.

Google Custom Search Engine? Tell me a bit more.

Just like YouTube, Blogger and Gmail Google products, custom search engine is also a product developed by Google to let sites display the search box for inner site search only. If you run a website that has tons of pages with huge data and its really difficult to set the perfect navigation than you could use search engine that will help your visitors to navigate easily just by searching the thing that they in search box and search box will automatically give them the path of the content that they want. It's totally easy. 

Do you know how Google custom search engine works? You'll be amazed by knowing it. You know how much powerful Google is and it's whole search engine. Google uses various natural factors to bring up the exact and correct search results and in custom search engine, Google uses same formula. That's why we're recommending to implement this in your blog and enjoy its facilities. 

Google custom search engine also allows you to monetize the search result pages but for that you'll need to have normally approved Google AdSense account. You can easily sign in to custom search engine with your AdSense account and enable monetization in monetize page. It might take time to activate but later it will start working. Google displays ads in the search result pages and ads are also relevant to the every keyword that user may search and you're easily paid for clicks on ads and also impressions.

Other than this, Google custom search engine has functions to customize the theme of search box, enable voice search, image search and many more options. Even you can change the layout style of search box and search results or use your own search box and display custom search engine's result somewhere else. There is a lot you can do with this. It's simply amazing.

How To Add Google Custom Search Engine in Blogger?

  • Go To Custom Search Engine 
  • Click on "Create a search engine"
  • Insert your blog URL in "Sites to search"
  • Choose Language, Pick up engine name and click "Create"
  • You'll see the message like above which means you've successfully created custom search engine.
  • Now click on "Get code"
  • Copy the code 
  • Go To Blogger >> Layout >> Add a Gadget
  • Choose "HTML/JavaScript"
  • Paste the copied code in "Content Box"
  • Save It
  • Congratulations! You've successfully added custom search engine in your blog.
There is a lot you can do now with your custom search engine like customizing the theme that may suite with your blog design, enabling monetization, disable or enable voice search and image search, changing layout and much more. Just navigation through left vertical menu bar and you can easily do all from there.

Final Words

So, That was Google custom search engine and we hope you've enjoyed today's article and if you like than don't forget adding this search box in your blog because its full of profit. Even I also removed the previous default Blogger search box and implemented this custom search now. Also share this article with your friends and Have a nice day!
Kshitij

Reduce The Loading Time Of Blog
Blogging has many up and downs like Ranking, Design, Google's Algorithms which every blogger have to face. The loading speed of a blog is also one of them. So here we're going to discuss about some effective tips to improve the loading time of your blog and how can we check it. It is quite simple if your blog takes too much time to load then your readers may hate it due to loading and it will loose the readership of your blog. Search engines also look at the loading so it is really important to take care loading time. You might have done several mistakes in your blog by which your blog is heavy but here we'll solve it. Before the tips, it is important to check the loading time of blog.

How To Check Loading Speed Of a Blog?

We have some best tools which we help us in knowing the loading time of a blog. Below are the links of that tools. Simply go there, enter your blog URL, press Enter and wait a little to get the result.
  1. Google Page Insights 
  2. Pingdom Website Speed Test
  3. GTmatrix
So these are some tools to test the speed of a website. Now if you're going good with your blog then surely you will get the good result. If you get more than 80 marks then you don't need to do anything. If it is less then you should follow the below given tips.

Tips To Reduce The Loading Speed Of Blog

1. Choose The Proper Template For Your Blog
Before choosing any theme of template for your blog, You have to properly analyze that template. You have to check that a template is well coded or not, See the usage of JavaScript and JQuery and check it is not over designed.

2. Avoid Too Much Use Of JavaScript
JavaScript is the web programming language which is really heavy coding. If takes time to be loaded by the browsers. I strongly recommend you to don't use too much JavaScript on your blog. It doesn't mean you should leave using JavaScript but use it not too much.

3. Compress JavaScript and StyleSheet
This is another working tip. You've to compress the JavaScript and StyleSheet in your theme or template. After compressing, the code will be shorted and it's memory will be decreased. Actually, It will remove the spaces from the whole code because they are not needed and also re-write the same code properly. Below are the links of JavaScript and StyleSheet compressor tools. And don't forget to take backup of your blog.


4. Don't Use Too Much Images In Template
Make sure your template is not images based or it is not using too much images. Images are another things that makes a blog even more heavy so you've to analyze your template and avoid to use a few number of images in the design.

5. Use Less Than 5 Images In a Single Post
Images are an important role of SEO which helps us in driving organic traffic from image search engines. Look at the title, I recommend you to use less than five images in a single because each image has separate memory and your blog will take time to load images.

6. Resize Images In a Post
When you come to the featured image or screenshot in any post of your blog then you've to resize the image with any image editor. I recommend to use PhotoShop and PhotoScape. When you will upload the full size image in your post then post editor will automatically make it short with CSS and it will work cool but browser always loads the full image.

7. Don't Implement Too Much Widgets - Use Necessary Widgets
Widgets are another things that can be the reason of a lazy speed blog. I've seen the worst mistake of newbies that they implement each and every kind of widget in their blog so if you are also one of them then you should use the necessary widgets only.

8. Don't Make Your Blog a Place Of Ads
This is another worst mistake which is being done by newbies that they join the many small ad networks and implement all ads everywhere in their blog. Those ads are also being being shown with the use of JavaScript so I recommend you to show less than five ads in your blog.

9. Avoid Popup Widgets, Ads and Subscriptions
If you look for the benefit with popup feature then you will surely get benefit from it but at the other hand, pop up is not good for the load speed. I suggest you to try another methods to increase subscriptions and don't use pop up ads because mostly they're prohibited and they also affect on load time.

10. Show Minimum Number Of Posts On Homepage
The last and the most important tip is that you've to show the minimum number of posts on the homepage. As you can see our own homepage there you will not get more than eight posts. So in this tip, you should show less than eight posts on the homepage. If you're using Blogger then you can do it by editing the blog widget in the layout section.

Final Words

So my dear friends, these were some effective tips which  I wanted to share with all of you. I also tried these all tips and got the good result. Kshitij, Blogger Yard has got 86 score out of 100 on Google Page Insights. You must try these all tips and I'm sure you will get the good result. If any problem then feel free to ask in the comment area.

Friday, May 23, 2014


This should be a very short (beginner) introduction/tutorial how to create a mobile app for Android. The tutorial is based on API Level 17 and Android 4.2 (Jelly Bean). Our goal is to start from scratch and have at the end a mp/h to km/h converter.

1. What do you need:
  • Basic XML knowledge
  • Basic Java knowledge
  • Basic Eclipse knowledge
  • 2h of your time :)

2. Prerequisites:
  • Before you can start you need the Android SDK and a IDE. Android offers a special bundle for that: Android SDK Bundle
  • Download the bundle, unzip and run the “SDK Manager.exe”.
  • start Eclipse
3. Create a Android virtual machine (dalvik):
To run, test and debug your Application you can create and run a virtual android machine on your computer. Later you can deploy your Application to this virtual machine.
  • Click on “Windows” at the navigation toolbar
  • Open “Android Virtual Device manager

virtualdevicemanager

Create a “New” Virtual Device:
CreatenewVD
Be sure that “Use Host GPU” is enabled. This allows the AVD to use the Host GPU and this helps to render the AVD much faster.
After that you can start the AVD:
AVD

4. Create a new Project:
  • Open “File
  • New
  • Android Application Project

Choose a new for your Project:
projectname

Configure Project:
configureproject

Configure Launcher Icon:
Here you can choose a Launcher Icon that will be displayed on your mobile phone.
launchericon

Create a new Activity:
createActivity

Configure your Activity:
ConfigureActivity

After finishing Eclipse looks similar to that:
firstStart
Hello World Application

5. Implement the Look & Feel:
  • Navigate in the package explorer to “/res/layout/” and open “activity_main.xml
  • Right-click on “Hello World” and delete
5.1 Create static Attributes:
  • Select “/res/values/strings.xml
stringsXML
  • Add” a new entry
  • Select the Color entry – press OK and set the following attributes:
myColorAttributes

Add a few more String(!) Attributes:
  • Name/value: “miles” / “to Miles
  • Name/value: “kmh” / “to km/h
  • Name/value: “calc” / “Calculate
Switch from “Resources” to “strings.xml” and make sure that your code look similar to that snippet:
  1. <resources>  
  2. <string name="app_name">TutorialApplication</string>  
  3. <string name="action_settings">Settings</string>  
  4. <string name="hello_world">Hello world!</string>  
  5. <color name="myColor">#eeeeee</color>  
  6. <string name="miles">to Miles</string>  
  7. <string name="kmh">to km/h</string>  
  8. <string name="calc">Calculate</string>  
  9. </resources>  

5.2 Add Views
  • Select “/res/layout/activity_main.xml
  • Open Android editor via double-click
You have two possibilities. You can create new Views via drag and drop or you can edit the XML source code. In this tutorial we add the Views via drag and drop :)
So let’s start building our App. At first we have to add a “Text Field” for the input.
textfield

Drag this Text Field to your Application.
Afterwards select the “Form Widget” section and drag a RadioGroup to your App and make sure that the RadioGrouphas two RadioButtons. Finally you can add a normal Button.
appafterdrag

Switch from “Graphical Layout” to “activity_main.xml” and make sure that your code looks similar to that:

  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"  
  2. xmlns:tools="http://schemas.android.com/tools"  
  3. android:layout_width="match_parent"  
  4. android:layout_height="match_parent"  
  5. android:paddingBottom="@dimen/activity_vertical_margin"  
  6. android:paddingLeft="@dimen/activity_horizontal_margin"  
  7. android:paddingRight="@dimen/activity_horizontal_margin"  
  8. android:paddingTop="@dimen/activity_vertical_margin"  
  9. tools:context=".MainActivity" >  
  10.   
  11. <EditText  
  12. android:id="@+id/editText1"  
  13. android:layout_width="wrap_content"  
  14. android:layout_height="wrap_content"  
  15. android:layout_alignParentLeft="true"  
  16. android:layout_alignParentTop="true"  
  17. android:layout_marginLeft="24dp"  
  18. android:layout_marginTop="31dp"  
  19. android:ems="10"  
  20. android:inputType="numberDecimal|numberSigned" >  
  21.   
  22. <requestFocus />  
  23. </EditText>  
  24.   
  25. <RadioGroup  
  26. android:id="@+id/radioGroup1"  
  27. android:layout_width="wrap_content"  
  28. android:layout_height="wrap_content"  
  29. android:layout_alignLeft="@+id/editText1"  
  30. android:layout_below="@+id/editText1"  
  31. android:layout_marginTop="28dp" >  
  32.   
  33. <RadioButton  
  34. android:id="@+id/radio0"  
  35. android:layout_width="wrap_content"  
  36. android:layout_height="wrap_content"  
  37. android:checked="true"  
  38. android:text="RadioButton" />  
  39.   
  40. <RadioButton  
  41. android:id="@+id/radio1"  
  42. android:layout_width="wrap_content"  
  43. android:layout_height="wrap_content"  
  44. android:text="RadioButton" />  
  45. </RadioGroup>  
  46.   
  47. <Button  
  48. android:id="@+id/button1"  
  49. android:layout_width="wrap_content"  
  50. android:layout_height="wrap_content"  
  51. android:layout_alignLeft="@+id/radioGroup1"  
  52. android:layout_centerVertical="true"  
  53. android:text="Button" />  
  54.   
  55. </RelativeLayout>  

5.3. Edit view properties
You can edit properties of Views via right-click on the view or via XML.
  • Navigate to “res/layout/” and open the Graphical Layout of your “activity_main.xml
  • right-click on the first Radio Button and open “Edit Text”
propertykmh

  • Assign the miles property to the second Radio Button
  • Set the “Checked” property for the first Radio Button (Other Properties -> inherited from compoundbutton -> checked -> true)
  • Set the “Input type” property for the Text Field to “numberSigned” and “numberDecimal
  • Assign “calc” to the Button and set “calculate” for the “onClick” property (Other Properties -> inherited from view -> onClick)
  • Set Background-Color (Right-click on an empty space on your Application -> Edit Background)
editbackground

After that change the Background should be #eeeeee! I think it can be difficult to see the difference.

6. Implement the Logic
After we implemented the Frontend-View we have to implement the logical part with Java!
  • Switch to “src/com.example.tutorialapplication/” and open “MainActivity.java

  1. package com.example.tutorialapplication;  
  2.   
  3. import android.os.Bundle;  
  4. import android.app.Activity;  
  5. import android.view.Menu;  
  6. import android.view.View;  
  7. import android.widget.EditText;  
  8. import android.widget.RadioButton;  
  9. import android.widget.Toast;  
  10.   
  11. public class MainActivity extends Activity {  
  12.   
  13.     // public var  
  14.     private EditText text;  
  15.   
  16.     // default func  
  17.     @Override  
  18.     protected void onCreate(Bundle savedInstanceState) {  
  19.         super.onCreate(savedInstanceState);  
  20.         setContentView(R.layout.activity_main);  
  21.         // findViewById = Finds a view that was identified by the id attribute  
  22.         // from the XML that was processed in onCreate(Bundle).  
  23.         // (EditText) = typecast  
  24.         text = (EditText) findViewById(R.id.editText1);  
  25.     }  
  26.   
  27.     // default func  
  28.     @Override  
  29.     public boolean onCreateOptionsMenu(Menu menu) {  
  30.         // Inflate the menu; this adds items to the action bar if it is present.  
  31.         getMenuInflater().inflate(R.menu.main, menu);  
  32.         return true;  
  33.     }  
  34.   
  35.     /* 
  36.      * Will be executed by clicking on the calculate button because we assigned 
  37.      * "calculate" to the "onClick" Property! 
  38.      */  
  39.     public void calculate(View view) {  
  40.   
  41.         RadioButton mileButton = (RadioButton) findViewById(R.id.radio0);  
  42.         RadioButton kmhButton = (RadioButton) findViewById(R.id.radio1);  
  43.         // if the text field is empty show the message "enter a valid number"  
  44.         if (text.getText().length() == 0) {  
  45.             // Toast = focused floating view that will be shown over the main  
  46.             // application  
  47.             Toast.makeText(this"enter a valid number", Toast.LENGTH_LONG)  
  48.                     .show();  
  49.         } else {  
  50.             //parse input Value from Text Field  
  51.             double inputValue = Double.parseDouble(text.getText().toString());  
  52.             // convert to...  
  53.             if (mileButton.isChecked()) {  
  54.                 text.setText(String.valueOf(convertToMiles(inputValue)));  
  55.                 // uncheck "to miles" Button  
  56.                 mileButton.setChecked(false);  
  57.                 // check "to km/h" Button  
  58.                 kmhButton.setChecked(true);  
  59.             } else { /* if kmhButton isChecked() */  
  60.                 text.setText(String.valueOf(convertToKmh(inputValue)));  
  61.                 // uncheck "to km/h" Button  
  62.                 kmhButton.setChecked(false);  
  63.                 // check "to miles" Button  
  64.                 mileButton.setChecked(true);  
  65.             }  
  66.         }  
  67.     }  
  68.   
  69.     private double convertToMiles(double inputValue) {  
  70.         // convert km/h to miles  
  71.         return (inputValue * 1.609344);  
  72.     }  
  73.   
  74.     private double convertToKmh(double inputValue) {  
  75.         // convert miles to km/h  
  76.         return (inputValue * 0.621372);  
  77.     }  
  78. }  

That’s all :)
That was only a _very_ short Overview of how to create a mobile Application for Android!!! If there are any mistakes please message me :)
Design and Compelled by Engineer Kshitij Wagle | Blogger Theme by Horizon - Wagle | waglehorizon