Archive

Archive for the ‘2009’ Category

Windows Script Host – Clean Virus (vbs)

November 5th, 2009 Austin 4 comments

CleanVirus.vbs

When ever i start my computer the first screen that pops out is small window displaying the below message:

—————————
Windows Script Host
—————————
Can not find script file “C:\WINDOWS\system32\CleanVirus.vbs”.

---------------------------
OK
---------------------------

I am not sure why i am getting this message on every start up.

My AVG Antivirus also cannot detect this. I am not sure whether this is a virus or a worm, or a bot or something.

I don't know what should i do, for now i click on the OK button and close the window.

Kindly suggest some ideas or solutions to get rid of this message!!!!

clean virus vbs

clean virus vbs

Clever Google Tricks

October 22nd, 2009 Austin 2 comments

If you are on the hunt for free desktop wallpaper, stock images, WordPress templates or the like, using Google to search your favorite social media sites is your best bet. The word “free” in any standard search query immediately attracts spam. Why wade through potential spam in standard search results when numerous social media sites have an active community of users who have already ranked and reviewed the specific free items that interest you. All you have to do is direct Google to search through each of these individual social media sites, and bingo… you find quality content ranked by hundreds of other people.
Examples:
site:digg.com free “desktop wallpaper”
site:reddit.com free “wordpress templates”
site:del.icio.us free “stock images”
site:netscape.com free “ringtones”
site:stumbleupon.com free icons

 Google for Music, Videos, and Ebooks - Google can be used to conduct a search for almost any file type, including Mp3s, PDFs, and videos. Open web directories are one of the easiest places to quickly find an endless quantity of freely downloadable files. This is an oldie, but it’s a goodie! Why thousands of webmasters incessantly fail to secure their web severs will continue to boggle our minds.
Examples:
Find Music: -inurl:(htm|html|php) intitle:”index of” +”last modified” +”parent directory” +description +size +(wma|mp3) “Counting Crows”
Find Videos: -inurl:(htm|html|php) intitle:”index of” +”last modified” +”parent directory” +description +size +(mpg|wmv) “chapelle”
Find Ebooks: -inurl:(htm|html|php) intitle:”index of” +”last modified” +”parent directory” +description +size +(pdf|doc) “george orwell 1984″

Bonus Material:
Here is a list of my favorite Google advanced search operators, operator combinations, and related uses:
link:URL = lists other pages that link to the URL.
related:URL = lists other pages that are related to the URL.
site:domain.com “search term = restricts search results to the given domain.
allinurl:WORDS = shows only pages with all search terms in the url.
inurl:WORD = like allinurl: but filters the URL based on the first term only.
allintitle:WORD = shows only results with terms in title.
intitle:WORD = similar to allintitle, but only for the next word.
cache:URL = will show the Google cached version of the URL.
info:URL = will show a page containing links to related searches, backlinks, and pages containing the url. This is the same as typing the url into the search box.
filetype:SOMEFILETYPE = will restrict searches to that filetype
-filetype:SOMEFILETYPE = will remove that file type from the search.
site:www.somesite.net “+www.somesite.net” = shows you how many pages of your site are indexed by google
allintext: = searches only within text of pages, but not in the links or page title
allinlinks: = searches only within links, not text or title
WordA OR WordB = search for either the word A or B
“Word” OR “Phrase” = search exact word or phrase
WordA -WordB = find word A but filter results that include word B
WordA +WordB = results much contain both Word A and Word B
~WORD = looks up the word and its synonyms
~WORD -WORD = looks up only the synonyms to the word

Compress Javascript and CSS Files Using PHP

September 25th, 2009 Austin Leave a comment

Enhance your Javascript and CSS resources:

I have been doing some web applications lately, and wanted to compress my Javascript and CSS files so that page loads are quicker and also the files are cached at all times.

So i thought to myself, that we could truncate the JS and CSS files by removing the unwanted spaces and characters.

So i began writing a script that does the following:

  1. Reads JS or CSS files(s) from a particular folder called either js or css.
  2. Removes all the unwanted characters and blank spaces.
  3. Creates a new file in a new directory called js_cache or css_cache.
  4. Wallla!! we have done it, you have successfully reduced the file file size.

The script will allow you to manage easily your Javascript and CSS resources and to reduce the amount of data transferred between the server and the client.

Performances:

We can say that the performance is better but not the best, but it works.

You would see a slight reduce in time between the server and the client.

Restrictions:

In CSS files there are no problems, but in case of Javascript there may some problems where single line comments are used like ‘// comment ‘.

Therefore always use multi line comments like /* comment */ if you want to use this script

Requirements:

  1. Create a folder for you project
  2. Dump all the js files in js folder and css files in css folder
  3. Then create two more folders js_cache and css_cache
  4. Copy and paste this script in the project directory
  5. Edit the script by changing the constant FILE_TYPE as js or css only
  6. Run the script
  7. New files will be created in js_cache and css_cache
  8. Wow, its done now use these file instead of the original one

ALL THE BEST…

HAPPY SCRIPTING…..

Do keep sharing!!!

Download file:

Compress Javascript and CSS Files Using PHP

Bandra Fair 2009 – Mount Mary

September 12th, 2009 Austin 1 comment
mount mary church

mount mary church

The Basilica of Our Lady of the Mount, more commonly known as Mount Mary, is a Roman Catholic church in the city of Mumbai, India.

The church is one of the most visited churches in the city located in the suburb of Bandra. Every September, the feast of St. Mary is celebrated on the Sunday following 8 September, the birthday of the Virgin Mary. This is a week long celebration known as the Bandra Fair and is visited by thousands of people.

The church stands on a hillock about 80 metres above sea level overlooking the Arabian Sea. It draws lakhs of devotees and pilgrims annually. Many faithful attest to the miraculous powers of St. Mary.

During the Bandra Fair, tens of thousands visit the shrine. The shrine attracts people from all faiths who pray to the statue for thanksgiving or requesting of favors.

In 1760, the church was rebuilt and the statue was substituted with a statue of Our Lady of Navigators in St. Andrew’s church nearby.

This statue has an interesting legend. It goes that a Koli fisherman dreamt that he would find a statue in the sea. The statue was found floating in the sea between 1700 and 1760. A Jesuit Annual Letter dated to 1669 and published in the book St. Andrew’s Church, Bandra (1616–1966) supports this claim.

The Bandra Fair 2009

This is the most awaited event of the year is come up. Popularly known as the Bandra Fair, the festival is celebrated on Mother Mary’s birth anniversary and people of all faiths throng to seek her blessing.

The streets take on a carnival-like atmosphere, with shops and mini-bazaars offering everything from food (yummy), shopping opportunities (@ good prices) and joyrides (super enjoyment).

Street plays, musical concerts, book readings and food festivals also become a part of the celebrations.

2009 : This year the fair starts from 13th Sunday 2009 to 20th Sunday 2009, Its basically for one week.

Basic AJAX (Asynchronous JavaScript and XML)

September 12th, 2009 Austin Leave a comment

Ajax, sometimes written as AJAX (shorthand for asynchronous JavaScript and XML), is a group of interrelated web development techniques used on the client-side to create interactive web applications or rich Internet applications.

With Ajax, web applications can retrieve data from the server asynchronously in the background without interfering with the display and behavior of the existing page.


/**
* Declare global variable....
* @param string elementName this is to identify the elemnt in which the response should be dispalyed. like as div id (required)
*/
var elementName = "";

/**
* Open a connection to the specified URL, which is
* intended to provide an XML message. The specified data
* is sent to the server as parameters. This is the same as
* calling xmlOpen(“POST”, url, toSend, responseHandler).
*
* @param string url The URL to connect to.
* @param string toSend The data to send to the server; must be URL encoded.
* @param function responseHandler The Javascript function handling server response.
* @param function elementIdentify The elemnt in which the response should be dispalyed.
*/
function xmlPost(url, toSend, responseHandler, elementIdentify)
{
elementName = elementIdentify;
xmlOpen(“POST”, url, toSend, responseHandler);
}

/**
* Open a connection to the specified URL, which is
* intended to provide an XML message. No other data is
* sent to the server. This is the same as calling
* xmlOpen(“GET”, url, null, responseHandler).
*
* @param string url The URL to connect to.
* @param function responseHandler The Javascript function handling server response.
* @param function elementIdentify The elemnt in which the response should be dispalyed.
*/
function xmlGet(url, responseHandler, elementIdentify)
{
elementName = elementIdentify;
xmlOpen(“GET”, url, null, responseHandler);
/**
* This code can be used if you need to call the required function after every interval i.e seconds..
* setTimeout(“xmlGet(‘products.php’, notesResponseHandler)”,3000);
* setTimeout(“alert(‘products.php’)”,3000);
*/
}

/**
* Open a connection to the specified URL, which is
* intended to respond with an XML message.
*
* @param string method The connection method; either “GET” or “POST”.
* @param string url The URL to connect to.
* @param string toSend The data to send to the server; must be URL encoded.
* @param function responseHandler The Javascript function handling server response.
*/
function xmlOpen(method, url, toSend, responseHandler)
{
// alert(url);
if (window.XMLHttpRequest)
{
// browser has native support for XMLHttpRequest object
req = new XMLHttpRequest();
}
else if (window.ActiveXObject)
{
// try XMLHTTP ActiveX (Internet Explorer) version
req = new ActiveXObject(“Microsoft.XMLHTTP”);
}

if(req)
{
req.onreadystatechange = responseHandler;
req.open(method, url, true);
req.setRequestHeader(“content-type”,”application/x-www-form-urlencoded”);
req.send(toSend);
}
else
{
alert(‘Your browser does not seem to support XMLHttpRequest.’);
}
}

/**
* Handler for server’s response to notes.xml request.
* Notes are pulled from notes.xml and replace the
* contents of the DIV with id ‘notesSection’.
*/
function notesResponseHandler()
{
// Make sure the request is loaded (readyState = 4)
if (req.readyState == 4)
{
// Make sure the status is “OK”
if (req.status == 200)
{
var swappableSection = document.getElementById(elementName);
var str = req.responseText;
swappableSection.innerHTML = str;
}
else
{
alert(“There was a problem retrieving the XML data:\n” +
req.statusText);
}
}
}

/**
* When a file gets included in the page….
* Call the function on load or on click….
*/
//xmlGet(‘products.php’, notesResponseHandler);
//alert(‘called’);

XML-RPC

September 8th, 2009 Austin Leave a comment

XML-RPC and XML-RPC Server Classes

What is XML-RPC?

Quite simply it is a way for two computers to communicate over the internet using XML. One computer, which we will call the client, sends an XML-RPC request to another computer, which we will call the server. Once the server receives and processes the request it will send back a response to the client.

For example, using the MetaWeblog API, an XML-RPC Client (usually a desktop publishing tool) will send a request to an XML-RPC Server running on your site. This request might be a new weblog entry being sent for publication, or it could be a request for an existing entry for editing. When the XML-RPC Server receives this request it will examine it to determine which class/method should be called to process the request. Once processed, the server will then send back a response message.

For detailed specifications, you can visit the XML-RPC site: http://www.xmlrpc.com/

This can be easily implemented using CodeIgniter’s framework: http://codeigniter.com/

CodeIgniter’s XML-RPC classes permit you to send requests to another server, or set up your own XML-RPC server to receive requests. Overview XML-RPC is a Remote Procedure Calling protocol that works over the Internet.

http://www.codeignitor.com/user_guide/libraries/xmlrpc.html

An XML-RPC message is an HTTP-POST request. The body of the request is in XML. A procedure executes on the server and the value it returns is also formatted in XML. Procedure parameters can be scalars, numbers, strings, dates, etc.; and can also be complex record and list structures.

XML-RPC Specification : http://www.xmlrpc.com/spec

Create SEF Tags – Helpers

August 29th, 2009 Austin Leave a comment

SEF Helpers

This function will create unique links for your URL’s
It will genrate a string of different tags joined together.

// ------------------------------------------------------------------------

/**
* SEF Helpers
*
* @package SEO/SEM
* @subpackage Helpers
* @category Helpers
* @author SEO/SEM 316 Dev Team
* @link http://
*/

// --------------------------------------------------------------------------

/**
* Create SEF Tags
*
* This function will create unique links for your URL's
* It will genrate a string of different tags joined together.
*
* @category function
* @access public
* @param string
* @return string
*/
function create_sef_tags($tag_string='')
{
// Clean the string with all the dirty or unwanted characters
$mixed_search = array("!", "#", "$", "%", "^","&", "*", "(",
")", "+","=", "|", "\\", "{", "[",
"}", "]", ":", ";", "\"","'", "<", ",", ">", "?","/", "~", "`", "@", ".");
$mixed_replace = "";
$tag_string = str_replace($mixed_search,$mixed_replace,$tag_string);

// Replace space or underscore with (minus) character
$mixed_search = array(" ","_");
$mixed_replace = "-";
$tag_string = str_replace($mixed_search,$mixed_replace,$tag_string);

// Convert all the characters to lower case
$tag_string = strtolower($tag_string);

// Return formated string
return($tag_string);

}

Lets try and example :

// Example
echo create_sef_tags('@@Austin Noronha 316 Rockz.......@@');

Output:

austin-noronha-316-rockz

So enjoy the code………

Do you want to share this code or provide a short link to this post use :

http://wp.me/p7jlT-3

MCA Results 2009

August 29th, 2009 Austin Leave a comment

Mangalore – Simply The Best

July 18th, 2009 Austin 2 comments

Manglore - Nariyals(Coconuts)

Mangalore - Nariyals(Coconuts)

Mangalore (pronounced maengalor ; Tulu: Kudla, Kannada: Mangaluru; Konkani: Kodial, Beary: Maikala) is the chief port city of the Indian state of Karnataka. Bounded by the Arabian Sea and the Western Ghat mountain ranges, Mangalore is the administrative headquarters of the Dakshina Kannada (formerly South Canara) district in southwestern Karnataka.

Mangalore derives its name from the local Hindu deity Mangaladevi. It developed as a port on the Arabian Sea – remaining, to this day, a major port of India. Lying on the backwaters of the Netravati and Gurupura rivers, Mangalore is often used as a staging point for sea traffic along the Malabar Coast. The city has a tropical climate and lies on the path of the Arabian Sea branch of the South-West monsoons. Mangalore’s port handles 75% of India’s coffee exports and the bulk of the nation’s cashew exports.

How to go to Mangalore?

By plane:

Mangalore International Airport , at Bajpe, about 20 km from the city centre. Currently there are daily flights to Mumbai, Bangalore, Goa, Kochi and Calicut in the domestic segment and weekly/bi-weekly flights to Dubai, Abu Dhabi, Muscat (Oman), Doha (Qatar), Kuwait and Bahrain in the international segment.

Filghts: Air India, Jet Airways, Kingfisher Airlines, and Air India Express currently operate flights to Mangalore.

By train:

Mangalore has two big railway stations.

  • Mangalore Central (IR station code : MAQ) is located at Hampankatta, in the heart of the city. It is a terminus and is used only by the trains which terminate at Mangalore.
  • Mangalore Junction (IR station code : MAJN) is situated in Kankanady, about 5 km from the city centre. Most long-distance trains and all trains not terminating at Mangalore stop at this station.

I prefer the Private BUS ’s or the Train cause you can enjoy the Konkan Greenary and Lots more!!

How to get around in Mangalore?

By bus
There are numerous private bus companies which run bus services within the city of Mangalore and its suburbs. Public and Private Bus’s. The minimum bus fare is Rs. 3.25 .  In addition city bus service, there is limited stop (usually called express) .
By cab
White Ambassador Cabs / Indicas are available – usually used by passengers on long-haul routes.  Prepaid cabs are available from the airport to the city – this is generally at a flat rate of Rs. 350-400.
By Autorickshaws
They are available all throughout Mangalore City – starting fare is Rs.13. Pre-paid autos were available from the City Railway Station and the KSRTC bus stand at Bejai, but not any more.

I prefer the CELL ONE private pre-paid cabs. They are much more reasonable and the drivers are very friendly!!

Yummy Ice Creams !!!!

Ideals ice cream parlour

Ideals ice cream parlour

Ice creams - banana split, Gadbad, tiramisu

Ice creams - banana split, Gadbad, tiramisu

Ideals @ Hampankatta. There are three parlours (2 ideals, proximity located 200 metres of one another. One is located near the Milgres junction and the other one is near the next junction heading towards the market) 3rd one Pabba’s, at Lalbagh diagonally facing Saibeen Complex . Ideals is marked as one of the best ice cream in DK, when you are in mangalore this is a must try place. You have to try out “GADBAD” ice cream which is only available in Ideals and the best of all ice creams. Gadbad icecream is an old favorite which has dry fruits and fresh ones chopped up with nuts, layered with icecream (strawberry and vanilla) and topped off with Jello. Hot favorites are “CHOCOLATE DAD” and “TIRAMISU“.

If your one of the HIGH SPIRITS then !!!

The Liquid Lounge (Balmatta Road – the general youth hangout!) : Good music, good ambiance, good beer!

Lets be on the Safer Side!!

Three things will do more to prevent an upset stomach or other traveling aliments than anything else:

  1. Always choose water from filters (Aquaguard water) or bottled mineral water, just to be on the safe side.
  2. Carrying water free hand sanitizer is a must (Germ-X, Purell, etc.) Go ahead and eat with your hands like everyone else! Once you use your hand sanitizer your hands are cleaner than the silverware that was washed with water you don’t want to drink.
  3. Always choose foods that are steaming hot. Food is often prepared ahead of time so you want to see it cooked or see the steam coming of the food.

Best Churches !!!

St Lwarence Shurch

St Lwarence Shurch

St Lwarence statue

St Lwarence statue

St Lwarence - mass timings

St Lwarence - mass timings

St Lwarence Church - Address and Website

St Lwarence Church - Address and Website

  • St. Lawrence Church (A place of Miracle)
    Karkal-Attur,
    Attur North P.O. – 576 117
    Karkala Taluk, Udupi District
  • St. Aloysious, Milagris

In Brief:

  • Mangalore is a port city and the headquarters of Dakshina Kannada district in the coastal region of Karnataka State in India.
  • Mangalore is the gateway to Karnataka.
  • It is one of the five talukas (other than Bantwal, Puttur, Sullia, Belthangady taluks) of the Dakshina Kannada District. This District formerly had 8 talukas, but these were split in August 1997 and the remaining talukas, namely Udupi, Kundapur and Karkala then formed a part of the Udupi district,but there is no division found in the living of two cities.
Mangalore is named after the Goddess Mangaladevi. Other names used by the locals are ‘Mangalooru’ (Kannada), ‘Kudla’ (Tulu), ‘Kodial’ (Konkani), ‘Mikala’ (Beary) and ‘Mangalapuram (Malayalam),’Manjarun’(sanskrith).

Secure PHP Applications (PHP Security)

June 1st, 2009 Austin Leave a comment

To understand PHP security better let us first understand what is PHP and Security

Security is a process, not a product, and adopting a sound approach to security during the process of application development will allow you to produce tighter, more robust code.

(PHP Hypertext Preprocessor) A scripting language used to create dynamic Web pages. With syntax from C, Java and Perl, PHP code is embedded within HTML pages for server side execution. It is commonly used to extract data out of a database and present it on the Web page

PHP is a powerful scripting language for building web applications, and also one of the easiest ways for hackers to gain access to your web server. Developers need to understand how their scripts can be exploited in order to protect them.

PHP is widely used in many high-end applications that maybe a Web Based (Internet) or and Intranet Applications. We can say that from the total PHP in Web Based (Internet) Applications : 80% and Intranet Applications:20%.

As IBM as suggested few basic principles that we could follow to make our website secure and guard our application from any vulnerabilities:

Validate input
Guard your file system
Guard your database
Guard your session data
Guard against Cross-Site Scripting (XSS) vulnerabilities
Verify form posts
Protect against Cross-Site Request Forgeries (CSRF)
  1. Validate input
  2. Guard your file system
  3. Guard your database
  4. Guard your session data
  5. Guard against Cross-Site Scripting (XSS) vulnerabilities
  6. Verify form posts
  7. Protect against Cross-Site Request Forgeries (CSRF)