Useful Tips and Tricks
  • Blog
  • Other
  • OS
  • Powershell
  • Login

Programming Languages - study of this week

4/14/2015

0 Comments

 
Comparing Programming Languages There are several ways to compare computer Languages but for simplicity we'll compare then by Compilation Method and Abstraction Level.

Compiling to Machine Code Some languages require programs to be transformed directly into Machine Code- the instructions that a CPU understands directly. This transformation process is called compilation. Assembly Language, C, C++ and Pascal are compiled languages.

Interpreted Languages Other languages are either Interpreted such as Basic, Actionscript and Javascript, or a mixture of both being compiled to an intermediate language - this includes Java and C#.

An Interpreted language is processed at runtime. Every line is read, analysed, and executed. Having to reprocess a line every time in a loop is what makes interpreted languages so slow. This overhead means that interpreted code runs between 5 - 10 times slower than compiled code. The interpreted languages like Basic or JavaScript are the slowest. Their advantage is not needing to be recompiled after changes and that is handy when you're learning to program.
.Because compiled programs almost always run faster than interpreted, languages such as C and C++ tend to be the most popular for writing games. Java and C# both compile to an interpreted language which is very efficient. Because the Virual Machine that interprets Java and the .NET framework that runs C# are heavily optimized, it's claimed that applications in those languages are as fast if not faster as compiled C++.


Level of Abstraction
The other way to compare languages is level of abstraction. This indicates how close a particular language is to the hardware. Machine Code is the lowest level with Assembly Language just above it. C++ is higher than C because C++ offers greater abstraction. Java and C# are higher than C++ because they compile to an intermediate language called bytecode.
How Languages Compare
•Fast Compiled Languages


•Assembly Language
•C
•C++
•Pascal
•C#
•Java
•Reasonably Fast Interpreted


•Perl
•PHP
•Slow Interpreted


•JavaScript
•ActionScript
•Basic



Machine Code is the instructions that a CPU executes. It's the only thing that a CPU can understand and execute. Interpreted languages need an application called an Interpreter that reads each line of the program source code and then 'runs' it.

Interpreting is Easier
It's very easy to stop, change and re-run applications written in an interpreted language and that is why they're popular for learning programming. There is no compilation stage needed. Compiling can be quite a slow process.A large Visual C++ minutes to hours to compile, depending on how much code has to be rebuilt and the speed of memory and the CPU.
When Computers first appeared
When computers first became popular in the 1950s, programs were written in machine code as there was no other way. Programmers had to physically flip switches to enter values. This is such a tedious and slow way of creating an application that higher level computer languages had to be created.
Assembler- Fast to Run- Slow to Write!
Assembly language is the readable version of Machine Code and looks like this

Mov A,$45
Because it is tied to a particular CPU or family of related CPUs, Assembly Language is not very portable and is time consuming to learn and write. Languages like C have reduced the need for Assembly Language programming except where RAM is limited or time critical code is needed. This is typically in the kernel code at the heart of an Operating System or in a video card driver.

Assembly Language is the Lowest Level of Code

Assembly Language is very low level- most of the code just moves values between the CPU registers and memory. If you are writing a payroll package you want to think in terms of salaries and tax deductions, not Register A to Memory location xyz. This is why higher level languages like C++, C# or Java are more productive. The programmer can think in terms of the problem domain (salaries,deductions, and accruals) not the hardware domain (registers, memory and instructions).

Systems Programming with C

C was devised in the early 1970s by Dennis Ritchie. It can be thought of as a general purpose tool- very useful and powerful but very easy to let bugs through that can make systems insecure. C is a low level language and has been described as portable Assembly language. The syntax of many Scripting languages is based on C, for example JavaScript, PHP and ActionScript.

Perl- Websites and Utilities

Very popular in the Linux world, Perl was one of the first web languages and remains very popular today. For doing "quick and dirty" programming on the web it remains unrivalled and drives many websites. It has though been somewhat eclipsed by PHP as a web scripting language.

Coding Websites with PHP

PHP was designed as a language for Web Servers and is very popular in conjunction with Linux, Apache, MySql and PHP or LAMP for short. It is interpreted, but pre-compiled so code executes reasonably quickly. It can be run on desktop computers but is not as widely used for developing desktop applications. Based on C syntax, it also includes Objects and Classes.

Pascal was devised as a teaching language a few years before C but was very limited with poor string and file handling. Several Manufacturers extended the language but there was no overall leader until Borland's Turbo Pascal (for Dos) and Delphi (for Windows) appeared. These were powerful implementations that added enough functionality to make them suitable for commercial development.

C++ - A Classy Language!

C++ or C plus classes as it was originally known came about ten years after C and successfully introduced Object Oriented Programming to C, as well as features like exceptions and templates. Learning all of C++ is a big task- it is by far the most complicated of the programming languages here but once you have mastered it, you'll have no difficulty with any other language.

C# - Microsoft's Big Bet

C# was created by Delphi's architect Anders Hejlsberg after he moved to Microsoft and Delphi developers will feel at home with features such as Windows forms.C# syntax is very similar to Java, which is not surprising as Hejlsberg also worked on J++ after he moved to Microsoft. Learn C# and you are well on the way to knowing Java.Both languages are semi-compiled, so that instead of compiling to machine code, they compile to bytecode ( C# compiles to CIL but it and Bytecode are similar) and are then interpreted.

Javascript - Programs in your Browser

Javascript is nothing like Java, instead its a scripting language based on C syntax but with the addition of Objects and is used mainly in browsers. JavaScript is interpreted and a lot slower than compiled code but works well within a browser.Invented by Netscape it has proved very successful and after several years in the doldrums is enjoying a new lease of life because of AJAX; Asynchronous Javascript and Xml. This allows parts of web pages to update from the server without redrawing the entire page.


ActionScript - A Flashy languasge!

ActionScript is an implementation of JavaScript, but exists solely within Macromedia Flash applications. Using vector based graphics, it is used mainly for games, playing videos and other visual effects and for developing sophisticated user interfaces, all running in the browser.

Basic for Beginners

Basic is an acronym for Beginners All purpose Symbolic Instruction Code and was created to teach programming in the 1960s. Microsoft have made the language their own with many different versions including VbScript for websites and the very successful Visual Basic. The latest version of that is VB.NET and this runs on the same platform .NET as C# and produces the same CIL bytecode.[h3Lua A free scripting language written in C that includes garbage collection and coroutines. It interfaces well with C/C++ and is used in the games industry (and non games as well) to script game logic, event triggers and game control.

Conclusion

While everyone has their favourite language and has invested time and resources in learning how to program it, there are some problems that are best solved with the right language.E.G you wouldn't use C for writing web apps and you wouldn't write an Operating System in Javascript. But whichever language you choose, if it's C, C++ or C#, at least you know you're in the right place to learn it.

Links to Other Programming Language Resources
•C
•C++
•C#
•Delphi
•Flash
•Java
•JavaScript
•Perl
•PHP





0 Comments

How to VLOOKUP with Multiple Criteria Using INDEX and MATCH

3/25/2015

1 Comment

 
                VLOOKUP is a great tool for pulling data from tables, but it has a handicap: it can only work with one criteria for matching information. If there are multiple rows in your sheet with the same information, you’ll only get the first one. If you need to use two or more conditions to match a specific piece of data, you’re out of luck. Fortunately, Excel has a pair of functions called INDEX and MATCH that can help produce the same results as VLOOKUP with multiple criteria. Here’s a quick tutorial to help you learn how…




Example Data

Let’s say, for example, that we want to be able to search through a list of fuel economy data for cars to find the mileage…



Normally, we would want to be able to enter the model of a car and get it’s fuel economy as a result. Unfortunately, Many cars, like the Acura ILX, have multiple engine configurations with different mileage ratings. Fortunately, in this case, the car’s displacement can serve to separate them.



This means, however, that we will need to look up the car by both its Model and its Displacement at the same time to find the appropriate Combined Fuel Economy in column H.

Trying to Use VLOOKUPIn a normal VLOOKUP, the syntax is as follows:

=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

The lookup_value is the data you are searching with.

The table_array defines the table that you want to look through. The first column must be the column that has the lookup_value in it.

The col_index_num is the number of the column in the table_array that has the data you want to find.

The optional range_lookup specifies whether the list is sorted or not. (TRUE means that VLOOKUP stops looking when it finds something that comes later in the alphabet than the lookup_value. FALSE means it searches the entire list.)

If we were looking for just the Model of car using VLOOKUP in our example data, it would look like this:



=VLOOKUP(A2,C4:H1159,6,FALSE)

A2 holds the Model of car we want to find.

C4:H1159 is the table we want to search through. Column C is the column with the Model information.

Column 6 is the column that holds the Combined Fuel Economy figure that we want to find.

The result of the VLOOKUP is this:



It finds the first entry that matches – the 1.5 liter engine with 38 MPG. This is a problem if, for example, you want to find the fuel economy of the 2.4 liter sport version. To do that, we need to use INDEX and MATCH.

Using INDEX and MATCH to Replace VLOOKUPWhat we really need is to be able to look up the Model and the Displacement at the same time. MATCH is a function that gives you the location of an item in an array. The syntax for MATCH is as follows:

=MATCH(lookup_value, lookup_array, [match_type])

The lookup_value is what you are searching for.

The lookup_array is the array of values you are trying to find the lookup_value in.

The optional match_type determines whether MATCH must find the lookup_value exactly (with a 0), or return the closest match that comes before it (with a 1) or after it (with a -1) alphanumerically.

The INDEX function takes a location and returns the value that is in the cell. The syntax for INDEX is as follows:

=INDEX(array, row_num, [col_num])

The array is the table of data that contains the cell value you want.

The row_num is the relative row number of the cell you want.

The col_num is the relative column number of the cell you want.

By combining INDEX and MATCH we can produce the same result as VLOOKUP. Using the same search we did for VLOOKUP, the INDEX/MATCH pair looks like this:



=INDEX(C4:H1159,MATCH(A2,C4:C1159,0),6)

C4:H1159 is the array that INDEX uses to find the value.

A2 is the cell that the value we want MATCH to find.

C4:C1159 is the lookup_array that MATCH looks through to find the value in A2.

The 0 means that MATCH will look for the exact value instead of an approximate one.

Column 6 is the column in the C4:H1159 array that holds the Combined Fuel Economy values.

The result is identical to the VLOOKUP result. MATCH finds the first Combined Fuel Economy value for the Acura ILX, which means it will give 38 MPG for the 1.5 instead of one of the other engine options. To find a specific Model and engine Displacement combination, we need to modify our INDEX/MATCH formula into an array formula.

Using INDEX and MATCH with Two CriteriaTo allow MATCH to search for multiple criteria, we are going to change the way it looks for its result by making it an array formula.An array formula takes an array of values instead of a single one and checks each cell in the array until it finds a result.

Our old MATCH formula looked like this:

=MATCH(A2,C4:C1159,0)

It looked for the value of A2 in the table C4:C1159, and when it found it, it returned the location.

Now we are going to ask it to be creative:

=MATCH(1,(C4:C1159=A2)*(D4:D1159=B2),0)

We have asked MATCH to look for a value of 1. Instead of giving it an existing array to look through, we are asking it to build one from scratch. The new array checks all the values in C4:C1159 for one that matches A2 and all the values in D4:D1159 for one that matches B2. Where they both match, the array will have a 1 (a TRUE boolean result). Where they don’t both match, the array will have a 0 (a FALSE boolean result). Therefore, MATCH will return the location where the array matches 1 (when both of our criteria are true).

If this process doesn’t make sense to you, that’s okay. Just plug the new MATCH function into your INDEX/MATCH formula:

=INDEX(C4:H1159,MATCH(1,(C4:C1159=A2)*(D4:D1159=B2),0),6)

When you enter the formula, don’t just press ENTER. Press CTRL+SHIFT+ENTER to tell Excel that it is an array formula. You can tell you’ve done it right because the entered formula will be surrounded in curly braces {}.



With that, your formula will be able to find the Combined Fuel Economy based on both the Model and the Displacement. You can use this technique for any number of criteria with INDEX and MATCH. Just add additional terms to the multiplication equation.




Source : By Andrew Roberts
1 Comment

Compstat useful for Control-M 

1/9/2015

1 Comment

 
oscompstat__control.docx
File Size: 71 kb
File Type: docx
Download File

1 Comment

Check what Web Sites Your Computer is Secretly Connecting To

8/8/2014

1 Comment

 
Has your Internet connection become slower than it should be? There may be a chance that you have some malware, spyware, or adware that is using your Internet connection in the background without your knowledge. Here’s how to see what’s going on under the hood.


How to Check What Your Computer is Connecting To:

open the Start menu and enter “cmd.exe” in the Search box. When the results display, right-click on cmd.exe and select Run as administrator from the popup menu.


At the command prompt, type the following command and press Enter.

netstat -abf 5 > activity.txt

The –a option shows all connections and listening ports, the –b option shows you what application is making the connection, and the –f option displays the full DNS name for each connection option for easier understanding of where the connections are being made to. You can also use the –n option if you wish to only display the IP address. The 5 option will poll every 5 seconds for connections to make it more easy to track what is going on, and the results are then piped into the activity.txt file.

Wait about two minutes and then press Ctrl + C to stop the recording of data.


The resulting file will list all processes on your computer (browsers, IM clients, email programs, etc.) that have made an internet connection in the last two minutes, or however long you waited before pressing Ctrl + C. It also lists which processes connected to which websites.

If you see process names or website addresses with which you are not familiar, you can search for “what is (name of unknown process)” in Google and see what it is. It may be a system function you don’t know about or a function of one of your running programs. However, if it seems like a bad site, you can use Google again to find out how to get rid of it.


Using TCPView to Check What Your PC is Connecting To
The excellent TCPView utility that comes in the SysInternals toolkit will let you quickly see exactly what processes are connecting to what resources on the Internet, and even let you end the process, close the connection, or do a quick Whois lookup to give you more information.

If all of the connections are in the TIME_WAIT state, that means that the connection is being closed, and there isn’t a process to assign the connection to, so they should up as assigned to PID 0 since there’s no PID to assign it to.
Using CurrPorts to Check What Your PC is Connecting To:


You can also use a free tool, called CurrPorts, to display a list of all currently opened TCP/IP and UDP ports on your local computer. It is a portable program and doesn’t need to be installed. To use it, extract the .zip file you downloaded and run cports.exe.
1 Comment

POP3, IMAP & SMTP?

7/6/2012

2 Comments

 
The terms of POP3, IMAP & SMTP are often heard when setting up mail client configuration in computer or SmartPhone.

But do you know what are they meant by POP3, IMAP & SMTP? In this article I will try to describe what the three terms above. POP3 (Post Office Protocol version 3) is a protocol used to retrieve electronic mail (email) from the email server. POP3 protocol was created because of the design of the electronic mail system that requires the server to accommodate email for a while until it’s taken by an eligible recipient.

IMAP (Internet Message Access Protocol) is a standard protocol for accessing / retrieving e-mail from the server. IMAP allows users to choose e-mail message that he will take, make a folder on the server, search for specific e-mail messages, even deleted e-mail messages on server. This ability is much better than POP (Post Office Protocol) which only allows to retrieve/ download all the messages without exception.

SMTP (Simple Mail Transfer Protocol) is a commonly used protocol for sending electronic mail on the Internet. This protocol is used to transmit data from computer sending email to the recipient mail server.

Look at table below for the comparison between POP3 and IMAP



Read More
2 Comments

PHP,.NET, Ruby on Rails or Python and Django ?

7/6/2012

0 Comments

 
This post is a result of reading http://coding.smashingmagazine.com/2012/07/02/dive-net-web-development/
0 Comments

Mastering Wget

9/13/2011

1 Comment

 
Your browser does a good job of fetching web documents and displaying them, but there are times when you need an extra strength download manager to get those tougher HTTP jobs done.

A versatile, old school Unix program called Wget is a highly hackable, handy little tool that can take care of all your downloading needs. Whether you want to mirror an entire web site, automatically download music or movies from a set of favorite weblogs, or transfer huge files painlessly on a slow or intermittent network connection, Wget's for you.

Wget, the "non-interactive network retriever," is called at the command line. The format of a Wget command is:

wget [option]... [URL]...

The URL is the address of the file(s) you want Wget to download. The magic in this little tool is the long menu of options available that make some really neat downloading tasks possible. Here are some examples of what you can do with Wget and a few dashes and letters in the [option] part of the command.

Mirror an entire web site Say you want to backup your blog or create a local copy of an entire directory of a web site for archiving or reading later. The command:

wget -m http://ginatrapani.googlepages.com

Will save the two pages that exist on the ginatrapani.googlepages.com site in a folder named just that on your computer. The -m in the command stands for "mirror this site."

Say you want to retrieve all the pages in a site PLUS the pages that site links to. You'd go with:

wget -H -r --level=1 -k -p http://ginatrapani.googlepages.com

This command says, "Download all the pages (-r, recursive) on http://ginatrapani.googlepages.com plus one level (—level=1) into any other sites it links to (-H, span hosts), and convert the links in the downloaded version to point to the other sites' downloaded version (-k). Oh yeah, and get all the components like images that make up each page (-p)."
Resume large file downloads on a flaky connection Say you're piggybacking the neighbor's wifi and every time someone microwaves popcorn you lose the connection, and your video download (naughty you!) keeps crapping out halfway through. Direct Wget to resume partial downloads for big files on intermittent connections.

To set Wget to resume an interrupted download of this 16MB "Mavericks Surf Highlights 2006: Wipeouts" short from Google Video, use:

wget -c --output-document=mavericks.avi "http://vp.video.google.com/videodownload?version=0&secureurl=qgAAAJCWpcRd5eI2k3sm3LWJZMjLyLFiTxk_KqUrRYbrzLTEw8hwMV30m3MRz6rYMTxGqWIfWMQjNJsP0fNXUMc34jzoPcy6z-qHde5UVD29Po6_9b_-d3J5AQpVROUPRqzkJriangEl2IMkKBJd08Q7TTJIAC_r6XID-fNYPLKHm1KRvx0smOslivNLGmyZsCsZmVNVN0jaw5-dloWtzPlI86zIubh1XvJsTg2u_YaHcaAB&sigh=-BbV2h_bIFVuVg4D-h6MUTxuErM&begin=0&len=139433&docid=6059494448346363884"

(Apologies for the humungous, non-wrapping URL.)

The -c ("continue") option sets Wget to resume a partial download if the transfer is interrupted. You'll also notice the URL is in quotes, necessary for any address with &'s in it. Also, since that URL is so long, you can specify the name of the output file explicitly - in this case, mavericks.avi.

Schedule hourly downloads of a file The nice thing about any command line script is that it's very easy to automate. For instance, if there was a constantly-changing file that you wanted to download every hour, say, you could use cron or Windows Task Scheduler and Wget to do just that, or if there was a very large file you wanted your computer to fetch in the middle of the night while you slept instead of right this moment when you need all your bandwidth to get other work done. You could easily schedule the Wget command to run at a later time.

As proof of concept, yesterday I scheduled an hourly download of Lifehacker's daily traffic chart to run automatically. The command looked like this:

wget --output-document=traffic_$(date +\%Y\%m\%d\%H).gif "http://sm3.sitemeter.com/rpc/v6/server.asp?a=GetChart&n=9&p1=sm3lifehacker&p2=&p3=3&p4=0&p5=64\%2E249\%2E116\%2E138&p6=HTML&p7=1&p8=\%2E\%3Fa\%3Dstatistics&p9=&rnd=7209"

Notice the use of %Y and %m datetime parameters which result in unique filenames, so each hour the command wouldn't overwrite the file with the same name generated the hour before. Note also that the %'s have to be escaped with a backslash.

Just for fun I threw together a little animated gif of the hourly chart image, that displays the movement of Lifehacker's traffic yesterday from 2PM to midnight:

Automatically download music This last technique, suggested by Jeff Veen, is by far my favorite use of Wget. These days there are tons of directories, aggregators, filters and weblogs that point off to interesting types of media. Using Wget, you can create a text file list of your favorite sites that say, link to MP3 files, and schedule it to automatically download any newly-added MP3's from those sites each day or week.

First, create a text file called mp3_sites.txt, and list URLs of your favorite sources of music online one per line (like http://del.icio.us/tag/system:filetype:mp3 or stereogum.com).

Then use the following Wget command to go out and fetch those MP3's:

wget -r -l1 -H -t1 -nd -N -np -A.mp3 -erobots=off -i mp3_sites.txt

That Wget recipe recursively downloads only MP3 files linked from the sites listed in mp3_sites.txt that are newer than any you've already downloaded. There are a few other specifications in there - like to not create a new directory for every music file, to ignore robots.txt and to not crawl up to the parent directory of a link. Jeff breaks it all down in his original post.

The great thing about this technique is that once this command is scheduled, you get an ever-rotating jukebox of new music Wget fetches for you while you sleep. With a good set of trusted sources, you'll never have to go looking for new music again - Wget will do all the work for you.

Install Wget Wanna give all this a try? Windows users, you can download Wget here; Mac users, go here. An alternative for Windows users interested in more Linuxy goodness is to download and install the Unix emulator Cygwin which includes Wget and a whole slew of other 'nixy utilities, too.

For the full take on all of Wget's secret options sauce, type wget --help or check out the full-on Wget manual online. No matter what your downloading task may be, some combination of Wget's extensive options will get the job done just right.


| via Gina Trapani (Lifehacker)
1 Comment

How does Regifting Robin work?

8/17/2011

1 Comment

 
How does Regifting Robin work?

Answer:  Every time you subtract the first and second digits of the 2-digit number you chose, it comes up with a multiple of 9.
For example, 25-2-5=18. 18 is a multiple of 9. So is: 75-5-7=63. 63 is a multiple of 9.
On the Regifting Robin gift list, all of the numbers that are a multiple of 9 have the same gift. For example, let's say you did: 99-9-9=81.
The number you got will always be a multiple of 9,
so all the multiples of 9 get the same gift:
So,
18=labelmaker
27=labelmaker
36=labelmaker
45=labelmaker
and so on and so forth.
The gift changes every time to make it more convincing. Labelmaker is an example of a gift. It won't be labelmaker every time.
So the question should be why is it that we always end up with multiples of 9?

Let the number N = Ones+ 10x + 100y + 1000z + ... (example : 574 = 4 + 7*10 + 5*100 ) Its digits are w, x, y, z, ... So the sum of the digits is w + x + y + z + ... = S. So, N - S = D = (ones-ones) + (10x-x) + (100y-y) + (1000z -z) + ... = 9x + 99y + 999z + ... = 9 (x + 11y + 111z + ...) So, N - S is a multiple of 9.
But, there is more: Once again let N = ones + 10x + 100y + 1000z + ... We want to prove that, if the sum of its digits, S is divisible by 9, then so is the number, N, and conversely. If S is divisible by 9, then S = 9p. Now add the number D to this, calculated above. S + D = 9p + D.
But we saw previously that D itself is a multiple of 9, so D = 9q. Hence, S + D = 9p + 9q = 9(p+q) = 9r, say. But then, S + D is nothing but N. So N = 9r, which is what we wnted to show?
The converse is proved by starting with N = 9r and subtracting D to yield S = 9(r-q) = 9p,say. See the Related Link for more info on the workings of Regifting Robin.

Readmore: http://wiki.answers.com/Q/How_does_Regifting_Robin_work#ixzz1VK2gBZPa
1 Comment

VBS script - Login to website automatically..

7/15/2011

7 Comments

 
>>>A script that will :

1) open a https://xyz.com/login page

2) provide user name and password information

3) check whether the authentication was successful or not or the web page is opening up

4) store the results got in step 3) in a log file
'----------------------script starts-----------------------------------------------------
'1)

DIM oIE

Set oIE = CreateObject("InternetExplorer.Application")
oIE.navigate "https://xyz.com/login"
oIE.Visible = True

n = 0
Do while oIE.Busy or n = 101
  n = n + 1
  WSH.Sleep 50
Loop
if n = 101 then wsh.echo "ERROR" : wsh.quit 1

'2)

Set UID = oIE.document.all.IDToken1
UID.value = "theUserID"

Set PWD = oIE.document.all.IDToken2
PWD.value = "thePassword"

oIE.document.all.btnSubmit.click

'3)
sLocation = "*ERROR*"
n = 0
Do until oIE.document.ReadyState = "complete" or n=100
  n=n+1
  WSH.Sleep 50
Loop

sLocation = lcase(unescape(oIE.document.location))

set oLogfile = CreateObject("scripting.filesystemobject").opentextfile("d:\someplace\logfile.txt", 8, true)
if not sLocation = "https://xyz.com/the/expected/destination_page.ext" then
  oLogfile.writeline "Login failed"
else

'4)
   oLogfile.writeline "You made it to " & sLocation

end if

'----------------------script ends-------------------------------------------------------
>>>Save the above script in a txt file and save as "xxxx.vbs" (double click to execute the file).

You need to change the url and designations for the elements IDToken1 (the user ID control), IDToken2 (password control) and the submit button (btnSubmit).  I am certain they will be different than those I used in my example.  Open the source (right click and click 'View Source') for the target login page and search for the correct controls.

Now you can include this script file to startup menu or scheduler to login to your website as needed.

7 Comments

Adsense and SEO Optimization Tips:Earn High Income From Sites

6/26/2011

3 Comments

 

1.Choose a high paying niche without too much competition.
Target a specific audience.You can search traffic for particular keywords and include such keywords in your post.

use keyword tool for it…

https://adwords.google.com/select/KeywordToolExternal

2.Put your targeted-keyword on Page Title and posts.

3.AdSense Earning = Impression-count x Click-though-rate x Cost-per-click x smart-pricing-factor.

Impression count is basically referring to your traffic. It means the number of times AdSense block is displayed.
[ad]
Click-through-rate (CTR) is ratio of clicks per impressions. It can range from 0.1% to 30%, but most commonly around 1% to 10%.

Cost-per-click (CPC) is the earning you get per click. While traditionally it refers to the amount advertisers pay for each click, it can also mean the amount publishers get for each click.

Smart-pricing is AdSense method to determine how valuable clicks from your site is worth. If clicks on your site doesn’t provide good value to advertisers, e.g. from visitors’ geo-location that seldom translate to sales, you will only get a fraction of the supposed CPC.

4.Submit your website to directories for inclusion, e.g. dmoz.org, yahoo directories and other plog directories.Submit your URL to search engines for crawling.Create and submit your sitemaps to Google Sitemap (sitemap.xml) and Yahoo (urllist.txt). Optimize for different engines as well. You are very likely to face less competition than in Google.

5.Forum generally have high impressions count, but very low CTR.

6.Try to focus more on what visitors want from your site.New visitors have higher chance to click on the ads than regular visitors, thus higher CTR (click-through rate).Regular visitors have higher chance to recommend your site to others.

7.Get domain name that contains your targeted keyword.Try to update your site regularly and add more posts each day so that crawling will be done by search engine immediately.

3 Comments
<<Previous

    Archives

    April 2015
    March 2015
    January 2015
    August 2014
    July 2012
    September 2011
    August 2011
    July 2011
    June 2011
    January 2011

    Categories

    All
    All
    Antivirus
    Scripts
    Seo

    RSS Feed


    Links
    • http://www.w3schools.com/
    • http://www.filehippo.com/ 
    • http://www.keygenguru.com/ 

Powered by Create your own unique website with customizable templates.