24 February 2009
0 Disabling rightclick in your website is not worthy
(Learn How to disable Right click in you Website or Blog, Here)
After working long time on a design or a code or an article you may want to protect it, you may be thinking of protecting your asset by using a JavaScript that disables rightclick.
It may looks fine; however this isn't a good idea. Why not? The following are the reasons.
Disabling right click is irritating
You may not be realizing that how much you use right-click until you can't use it! There are a lot of other useful and efficient features are there in the right click. While most are also available in the menu bar of the browser window, it's often much quicker to use the right-click menu, as rightclick menu is usually the closest menu you have available, in your reach.
Disabling right click is worthless
Do you think disabling right-click will protect your source code or images? If someone is determined to steel your code they will do it regardless of whether he is able or not to access browser context menu. If they need your source code then there are too many ways to get your source code. Keep one thing in mind; whenever you are viewing a page from the internet, it’s a download. That is, the page is downloading from the server with all its content, which will be residing at your temporary folders. If someone is so determined to retrieve something from your webpage he can simply do that. There is an add-on for Mozilla Firefox, Firebug. Actually its developer tool, to debug or develop JavaScript, CSS codes, But with this Firebug you can download each single element from a webpage to you system. All that need is just open the page in Firefox, download and install firebug. I had downloaded .SWF files even the protected streaming videos using the firebug.
Disabling right-click will only make people to think about what you're exactly trying to hide. And this could end up being just opposite effect, as your images and source code attract unwanted attention.
Important: - you can only disable right-click on browsers that have JavaScript enabled: if a user is just disabling the JavaScript in his browser, the whole code will be an utter failure.
Disabling right click is unprofessional and insulting to the normal user
Disabling right click is unprofessional way to protect your asset. Most of your visitors will come to your site looking information or any services. Only a very small number of your visitors will visit your site with the intention to steal something from it. By trying to protect your asset from the crooked minority, you effectively insult the normal users, who will use the right-click menu for reasonable reasons. Do you really want to lose some of your repeated visitors by just trying to protect your contents?
Agreed, some crooked minded people may want to use your source code, but don't assume that everyone who looks at it will want to reuse it.
19 February 2009
1 Running an SAS program in 9S region
We had a problem in running a SAS program in 9S region.
If anyone has executed a SAS program in 9S with connection to Teradata it will be helpful.
The description of the problem is as follows:
- We have a sample SAS program which is running fine in 1D.
- But when we tried replicating the same program in 9S it’s not able to connect to Teradata.
- We have imported CONNECT and other macros to 9S region. We even changed the CONNECT macro to point to the load id location in 9S.
- We have also changed the SASAUTO location in the JCL to point to the corresponding location in 9S
- The error displayed is: “Teradata Connection Error”
- Apart from Connect to Teradata I have given PROC PRINT statement which is working fine in 9S. Only problem is while connecting to Teradata I am getting the error.
In order to connect to Teradata from the 9S, your job must run specifically on the 9S04. Even if you log on to the 9S04, your job might run on another partition (eg. 9S01, 9S02, etc) unless you add the following after your jobcard:
//*+JBS BIND SYS9S04.PERM
This will “bind” your job to the 9S04.
For example, here is the JCL I use:
//T48983J JOB 00412,'SAS TEST',MSGLEVEL=(1,1),
// CLASS=0,MSGCLASS=V,NOTIFY=
//*+JBS BIND SYS9S04.PERM
//SAS EXEC SASMSTR,LOAD='SYS3A.TERADATA.
// SASAUTO=SAS.MACLIB'
//SYSIN DD *
0 What is Social Engineering
Social Engineering is a collection of techniques used to manipulate people into performing actions or divulging confidential information. Things aren’t always what they seem. So please engage your mind before you open your mouth and act. Always check a caller’s identity before leaving any confidential information.
05 February 2009
0 Know More about Favicons
A Favicon (short for favorites icon), also known as a website icon, shortcut icon, url icon, or bookmark icon is a 16x16 pixel square icon associated with a particular website or webpage. A web designer can create such an icon and install it into a website (or webpage) by several means, and most graphical web browsers will then make use of it. Browsers that provide favicon support typically display a page's favicon in the browser's Address bar and next to the page's name in a list of bookmarks. Browsers that support a tabbed document interface typically show a page's favicon next to the page's title. The Microsoft Windows Shell also uses favicons to represent "Internet shortcuts" to web pages.
The original means of defining a favicon, introduced in Internet Explorer 5, was by placing a file called favicon.ico in the root directory of a web server. This would then automatically be used in Internet Explorer's favorites (bookmarks) display. Later, however, a more flexible system was created using HTML to indicate the location of an icon for any given page. This is achieved by adding a link element to the section of the document as detailed below. In this way any appropriately sized (16×16 pixels or larger) image can be used and, although many still use the ICO format, other browsers (though notably not Microsoft's Internet Explorer) now also support the PNG and animated GIF image formats.Facts about Favicon
However, later versions of Microsoft Internet Explorer only truly support icons that have a legitimate extension of Microsoft Icon Files and that are coded in the icon file format. Many webmasters have changed their preferred image's extension to .ico without first actually converting them to Microsoft Icon Files. This creates a conflict that Microsoft Internet Explorer cannot resolve; such icon images will not be displayed.Most modern browsers implement both methods of Favicon support.
Standardization Of Favicon
The original favicon feature was created by Microsoft for Internet Explorer which would request a favicon from a set URL (/favicon.ico) in the root directory of every website. Microsoft's supported format for the link tag did not conform to the World Wide Web Consortium (W3C) HTML recommendation because:- The rel attribute must contain a space-delimited list of link types, so a two-word link type would not be understood correctly by conforming web browsers. (viz. rel="shortcut icon")
- The ".ico" file format (a raster format used for icons on Microsoft Windows) did not have a registered MIME type and wasn't likely to be automatically understood by most web browsers. In 2003, however, the format was registered with the Internet Assigned Numbers Authority (IANA) under the MIME type image/vnd.microsoft.icon, eliminating the first part of this problem.
- The use of a reserved location on a website conflicts with the Architecture of the World Wide Web and is known as link squatting or URI squatting.
e.g.
<title><link rel="icon" type="image/png" href="/path/image.png"/></title>
Most web browsers have since added support for this feature, and it is generally used for all new content.
4 How do I add Animated Favicon to my Blog
Did you ever wonder about the little tiny animated favicons displayed at the address bar of the browser? With help of animated gif image format we can easily implement animated Favicon.
While dealing with animated Favicons You should keep the following useful things in mind.
- Only animated gif image format can be used as animated favicon. No other formats will do the trick.
- Currently, Only Firefox and Opera support animated Favicons(animated gif Favicons). Even though Google chrome renders gif images, it will display only first frame of the gif, Hence there will not be any animation effect.
- IE, still most popular browser, who introduced the concept of Favicons, still having support only for .ico format even with its recent version IE8 and hence it will not render animated favicons at all.
- Favicon should be a distinguishing feature of your site, so I suggest selecting a unique Favicon.
- Preferably Favicon should be in square shape.
- Preferable size of Favicon is either 16x16 or 32x32
See How my animated Favicon displayed by Google Chrome
I will suggest, add an image with .ico format as your Favicon, and then override that Favicon with the animated .GIF image. By doing so, you will be able to display your Favicon in the browsers which are currently not capable of rendering animated gif as favicon, and you can show your animated favicon in the browsers which is supporting it.
Adding Favicon to your blog by editing blogger Layout
From the blogger Dash board-->Layout-->edit HTML
<title><data:blog.pageTitle/></title> Find this code in the edit HTML page (refer screenshot). Just below this code add the code snippet given below.
On adding this script, please replace the 'URL of your icon file' with the correct URL of your Favicon.
Once you have this script ready, save the template and check your blog, your Favicon should be loading fine. When you refresh your blog, you should see your nice little animated Favicon just before the blog address.