Showing posts with label Computer/Technology Tips. Show all posts
Showing posts with label Computer/Technology Tips. Show all posts

CSS Format Source Code in blog articles - blogger, wordpress

CSS script to format source code in blog posting in blogger, wordpress... articles.


The working css script : Source Code Formatter CSS Script
<pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; 
            color: #000000; background-color: #eee;
            font-size: 12px; border: 1px dashed #999999;
            line-height: 14px; padding: 5px; 
            overflow: auto; width: 100%">
   <code style="color:#000000;word-wrap:normal;">
        
        <<<<YOUR CODE HERE>>>>
   
   </code>
</pre>

NTC Nepal Telecom gprs setting via sms - free

Activating GPRS in NTC (for both prepaid and postpaid service) FREE

  1. Type vgprs (in your Message Box) & Send to 1400 for GPRS Activation. :) 

To get GPRS configuration for your mobile set : FREE

  1. Send SMS to 1404 - you need to enter following different code according to your mobile set and send it to 1404
    • Type gprs (nokia, lg, motorolla, indian etc) (in your Msg Box)
    • Type sagprs (samsung mobiles) (in your Message Box) 
    • Type segprs (sony ericsson mobiles)
    • Type chgprs (chinese mobiles)
  2. After few minutes you will get setting and save it using pin code 1234.
  3. You might need to restart your set. Enjoy Browsing !!!

google adsense payment in nepal - western union quick cash

Google recommend  Electronic Fund Transfer (EFT)   as a faster and more reliable form of payment. But, EFT are currently only available to a limited number of countries. Which doesn't include Nepal. So we have the only good option : Western Union Quick Cash.

Receiving payments by Western Union Quick Cash:

Western Union Quick Cash is a payment method that allows you to receive your AdSense payments in cash using the worldwide Western Union money transfer service. Payments will be available for pick up at your local Western Union Agent the day after they are sent according to our normal payment schedule.
Your Western Union Quick Cash payment will be made in US dollars. Conversion rates will be calculated according to the rate used by the Western Union Agent on the day you pick up your payment.

Steps :

1) Setup Google Adsense payment to Western Union Quick Cash:


  1. Sign in to your account at www.google.com/adsense.
  2. Visit the Home tab and click Account settings in the left hand panel.
  3. Click 'edit payment method' under the 'Payment settings' header.
  4. Select the Western Union Quick Cash radio button.
  5. Click Continue.
  6. Click Save changes to save your payment type.

2) Picking up WU payment

In order to pick up your payment by Western Union Quick Cash, please complete the following steps:
  1. Find a Western Union Agent located in the country where your payments are sent.
  2. Call the Western Union Agent to confirm that they offer the Quick Cash service.
  3. Bring the following information with you:

    - a valid government-issued photo ID (Passport, Driver's license, National ID etc)
    - sender's information: To determine which sender's information you should bring to your WU branch, please check the 'details' link on the payment line of your Payments page.
    • Google Inc. 1600 Amphitheatre Parkway, Mountain View, California 94043, USA. Phone Number:  650-253-4000     
    - amount of your payment, which you can find on your Payment History page
    - your unique MTCN (Money Transfer Control Number) which you can find by clicking on the 'details' link next to the Payment Issued line on your Payment History page
Hurrahs ------- Lets have a party ... 

Some useful Regular Expressions for Find/Replace in Eclipse IDE

Regular expressions is powerful tool mostly used in search, edit and manipulate text. A regular expression define a search pattern for strings. The abbreviation for regular expression is "regex".Regular expressions are used in several programming languages. But, unfortunately each language / program supports regex slightly different.

In this blog, I am going to explain the use of Regular Expression(regex) in Eclipse IDE. There are eleven examples in total.

Creating DSL / PPPOE Connection in UBUNTU

I have internet connection (worldlink-512kbps, cable net) shared with landowner and flatmates through wireless router. I recently created a PPPOE (Point to Point Protocol Over Ethernet) dial-up connection on my laptop to use whole bandwidth during load-shedding.

Creating DSL connection in Ubuntu is extremely easy.

Reading contents of unix ext partitions from windows

How to read / browse / copy files from linux ext partitions from windows?

Do you ever want to copy files from your unix ext partition from windows?
Ext2Explore is solution.
It supports ext2, ext3, ext4 partitions. and easy to use as it provides GUI like an file explorer.
This software is compatible with windows XP SP3 and higher.
Download it from SourceForge.net
You need to run this program as an Administer option.

Deploying .war file to Apache Tomcat Server : Working way

Here i am going to describe the [MANUAL]working way to deploy your .war(web application archive) file to the Apache Tomcat Server.
Suppose you have your web application's war file ,say MyProject.war exported from Eclipse Netbeans or similar IDE.
Steps:
1.Copy this .war file to webapps folder TOMCAT_HOME directory e.g, C:\apache-tomcat\webapps\
2.Restart the server, >> run the startup.bat in folder C:\apache-tomcat\bin
3.If the error message such as
     JAVA_HOME not defined or CATALINA_HOME not defined
     Then follow these steps to setup these environment variables:
  • Right-click the My Computer icon on your desktop and select 'Properties'.
  • Click the 'Advanced' tab (Windows XP), click on Advance System Settings on Windows7.
  • Click the 'Environment Variables' button.
  • Under 'System Variables', click 'New'.
  • Enter the variable name as JAVA_HOME.
  • Enter the variable value as the installation path for the Java Development Kit. eg. C:\Program Files (x86)\Java\jdk1.6.0_20
  • Repeat the process for CATALINA_HOME variable and enter installation path for Tomcat Server, eg. C:\apache-tomcat\webapps\
  • Click 'OK'.
  • Click 'Apply Changes'.
  • Restart the Server >> run the startup.bat in folder C:\apache-tomcat\bin
4.Launch http://localhost:[PORT]/MyProject/ on the browser, (port number might be 8080 or 8400). And Make sure the work offline option is not checked.
5.If everything is ok, the Home page of your app will be loaded into browser
6.Enjoy :)