-
Website and Server Monitoring Tool
Posted on June 9th, 2010 3 commentsOn this last months i am developing a website and a server monitoring tool. What this tools will be able to make is internal and external monitoring.
External Monitoring:
- HTTP CHECKS
- ICMP CHECKS
- TCP CHECKS
Internal Monitoring:
- CPU USAGE
- HARD DISK USAGE
- MEMORY USAGE
- PROCESSES RUNNING
Preview of the app:
What i need to know if some of you guys wanna test it, and what you thing about this type of applications?
-
Creating a webservice client on Visual Studio 2008
Posted on April 25th, 2010 No commentsHello guys,
I will show here how to create a web service client on Visual Studio 2008, you will see how easy can be that.
1. Right-click on your project and go to add web reference.
2. After that you need to insert the url of the web service and then the windows normal steps, next, next, finish. In my case i am connecting to a webservice running on my own machine.
3. You will note that if everythings go fine, VS 2008 will create the source files ready to use.
4. Here is a sample code about how to use your webservice client inside your application code.
localhost::NetunoWSService ws;
System::String^ res = "WS NOT AVAILABLE";try
{
res = ws.sendData(this->email,this->password,this->hostname,data);
}
catch (System::Exception^ ex)
{
//res = ex->ToString();
res = “Web Service is not available or your internet is down”;
}5. If you change something on your webservice server application you will need to reload the web references.
Enjoy! Any questions i am open for discussions!
-
Keyword Stuffing
Posted on October 2nd, 2009 No commentsThis involves the calculated placement of keywords within a page to raise the keyword count, variety, and density of the page. This is useful to make a page appear to be relevant for a web crawler in a way that makes it more likely to be found. Example: A promoter of a Ponzi scheme wants to attract web surfers to a site where he advertises his scam. He places hidden text appropriate for a fan page of a popular music group on his page, hoping that the page will be listed as a fan site and receive many visits from music lovers. Older versions of indexing programs simply counted how often a keyword appeared, and used that to determine relevance levels. Most modern search engines have the ability to analyze a page for keyword stuffing and determine whether the frequency is consistent with other sites created specifically to attract search engine traffic. Also, large webpages are truncated, so that massive dictionary lists cannot be indexed on a single webpage.
-
Backup and Restore MySQL Databases
Posted on June 1st, 2009 No commentsI will just show the most basic and used methods for mysql backup and restore.
1st Method – Mysql Dump
The mysqldump is the most common method for backuping a mysql database, a database dump is a text file with the create tables, columns, insert rows…
For making a mysql dump (backup)Â use the follow command:
single database: mysqldump -u user -p password database-name > backup-file-name.sql
all databases: mysqldump -u user -p password -A > backup-file-name.sql
For restoring a mysql dump use the following command:mysql -u user -p password database-name < backup-file-name.sql
2nd Method – Mysql Folders BackupThe folder backup is faster, all the mysql databases are on the folder /var/lib/mysql, each database is in a single folder.
For backuping using this method use the follow command:
tar -cf backup-file-name.tar /var/lib/mysql/database-nameFor restoring using this method just decompress the file:
tar -xvf backup-file-name.tarThat´s it, now you just need to use your method.
Â
-
Using Compete.com API in your Website
Posted on March 9th, 2009 8 commentsCompete.com is a company that provides web analytics, visitors, keywords driving traffic and more. Some of the results that compete.com offers are just for paying users other no.
In this post i will show you how can you use the api from Compete.com in your website, like i did in my http://whois.gwebtools.com/compete.com.
1 step: Register for a developer user account.

Register Compete Screen
2 step: Register your application to get your personal API key.

Register App
3 step: Start coding using your API key.
Sample Call
http://api.compete.com/fast-cgi/MI?d=google.com&ver=3&apikey=1234567890&size=large
Sample Result
<ci>
<dmn>
<nm>google.com</nm>
<trust caption=”Trust”>
<val>green</val>
<link>http://toolbar.compete.com/trustgreen/google.com</link>
<icon>http://home.compete.com.edgesuite.net/site_media/images/icons/trust_green_53.gif</icon>
</trust>
<rank caption=”Profile”>
<val>2</val>
<link>http://toolbar.compete.com/siteprofile/google.com</link>
<icon>http://home.compete.com.edgesuite.net/site_media/images/icons/profile_3_53.gif</icon>
</rank>
<metrics caption=”Profile”>
<val>
<mth>12</mth>
<yr>2006</yr>
<uv>
<ranking>2</ranking>
<count>115,120,111</count>
</uv>
</val>
<link>http://toolbar.compete.com/siteprofile/google.com</link>
<icon>http://home.compete.com.edgesuite.net/site_media/images/icons/profile_3_53.gif</icon>
</metrics>
<deals caption=”Deals”>
<val>1</val>
<link>http://toolbar.compete.com/deals/google.com</link>
<icon>http://home.compete.com.edgesuite.net/site_media/images/icons/deals_on_53.gif</icon>
</deals>
</dmn>
</ci>How to parse it?
You can develop your on xml parser, but if you use PHP or .NET it is really not necessary you can use the scripts that Compete.com provides to you.
PHP5 wrapper in the PEAR repository
More info access developer zone from Compete.com





