tag:blogger.com,1999:blog-90769866022271420532024-03-14T00:02:27.535+05:30ozinisleShare your thoughts and find that its getting better every day. This work of mine helps me realize that.Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.comBlogger379125tag:blogger.com,1999:blog-9076986602227142053.post-1894571908346229662016-12-29T13:43:00.001+05:302016-12-29T13:43:48.764+05:30'node' is not recognized as an internal or external command, operable program or batch file - even after installing node in Windows <!--[if !mso]>v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} <![endif]--><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com2tag:blogger.com,1999:blog-9076986602227142053.post-45930461341870308612016-12-29T13:29:00.001+05:302016-12-29T13:29:39.489+05:30typings ERR! caused by certificate not trusted I happened to fix this issue by creating a file named “.typingsrc” with the following contents in my project’s root directory { "rejectUnauthorized": false, "Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-44764341502750056192016-08-23T18:12:00.001+05:302016-08-23T18:12:32.845+05:30Detecting IE11 and other browsers with plain Javascript
I found that IE11 does not support document.all any more. I had tradinally used it for quickly detecting if an existing browser is IE or not.
Well I did find a work around for that, will come to that later. As of now, I find the following code to be generic to be used across browsers for browser detection
// Opera 8.0+
var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-84561516452578250512016-07-19T13:12:00.002+05:302016-07-19T13:12:53.513+05:30Creating text file with lotusscript
Following is a block of lotusscript code that helps one understand how a text file can be created and updated using Freefile and NotesStream concepts
As a catch, the code employs a validation mechanism that check if a given file exists or not and create it only if its not found.
Hope this helps
Function
updateLog(logText As String)
Dim session As New Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com1tag:blogger.com,1999:blog-9076986602227142053.post-23095131335133404832016-06-23T22:09:00.002+05:302016-06-23T22:09:40.144+05:30Screen flickers when hovering on li elements - a possible relief
I had a list of nested un-ordered list which were working fine until I made a few changes.
I am speaking about nested ul and li tags.
I spent an hour trying to figure out what was causing the issue and had been inspecting through the style associated with the page and nothing seemed to help.
The culprit was the chrome's developer tool itself. I turned off the developer tool and the Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-89425470016253312502016-05-25T16:19:00.003+05:302016-05-25T16:26:06.160+05:30Some basic experiments with dojo/_base/lang
Dojo/_base/lang
The important pointers to remember about this package are, this provides following functionalities
Clone – helps clone a node to an other. A literal copy
Delegate – helps create a bounded subclassed object. Changes are reflected to child when parent object is changed, provided, its done in the oops way *(note1:refer note below)
exists getObject setObject
extend mixin partial – Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-4700530038096640572015-08-25T10:51:00.001+05:302016-05-25T15:52:45.173+05:30This compilation unit is not on the build path of a Java project
Problem: Eclipse Showing error message - "This compilation unit is not on the build path of a Java project"
If you import a project as a General Project, it wont have the java nature and that will be a problem. In my case this was true . And rectifying the same will be as follows,
Add the below lines in the .project file of your workspace and refresh.
&Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-39860552370287274482015-05-14T12:47:00.001+05:302015-05-18T13:11:08.665+05:30Deploying dojo in Apache Tomcat v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} <!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0;} @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-7017762867031666332015-05-12T12:24:00.001+05:302015-05-18T12:39:58.030+05:30A simple dojo JSONP example
Well I almost got sick of find out the missing link. The missing link I am talking about is something like “What the hell am I missing for a dojo JSONP request to work?” as I was trying those examples provided in dojotoolkit.org.
Thanks to the post by Jason Schock titled “So how does JSONP really work?”. With little tinkering I understood how native plain JSONP requests work.
Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-55842041785292231602015-05-12T12:21:00.001+05:302015-05-18T12:56:44.797+05:30Ajax in dojo are deep
<!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0;} @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} @font-face {font-family:Consolas; panose-1:2 11 6 9 2 2 4 3 2 4;} /* StyleKarthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-76063462762468508122015-05-12T12:17:00.001+05:302015-05-12T12:37:59.144+05:30Handling security errors due to Cross Domain Ajax (JSONP) Some basic issues that I face while working with iframes include t not limited to the following, <!--[if !supportLists]-->1. <!--[endif]-->Unable to access iframe – document object <!--[if !supportLists]-->2.t when I am unable to access iframe’s document object or vice versa, the issue could be due to browser settings or because the url in the Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-45624384931057211042015-05-12T12:02:00.001+05:302015-05-18T12:59:03.923+05:30Apache Tomcat server runs but does not display home page
<!--[if !mso]>v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} <![endif]<!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-26539406637156971802015-02-13T19:58:00.001+05:302015-05-12T12:09:01.893+05:30Got Crazy with nested classes :)This time I tried enclosing 23 levels of sub classes with a combination of static and plain nested subclasses and guess what!!! It worked for me. Guess My demo of nested sub classes in java is world class rofl
Step 1: created a class like the following
package com.oz.core.NestedClasses;
public class OuterClass {
public static class NestedClass {
public class SubNestedClass {
public Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-79946225373890178512015-02-11T18:11:00.001+05:302015-02-11T18:11:24.738+05:30LOL with Arrays in JavaWell I do get crazy when I start experimenting some times. Never dared to do this in real life aparting from pushing my limits when it came to swallowing stuffs and touching electric bulbs. But I really do feel like I get very crazy when it comes to my computers. It does not cost me much ehh... apart from the time I spent on doing it :D
Coming to the point, I grew interest in Nano technology, Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-29148133431678728392015-02-11T17:24:00.001+05:302015-02-11T17:24:41.425+05:30A day for Enumeration perhapsI had written a post about how to implement a Switch Case using String in past. I had to do a similar thing now and felt like it time I dig more about Enum Classes and objects.
I understand that an object definition using the Enum keyword is similar to a class definition and can be put in its own file. And that the Enum objects by default will extend java.lang.Enum implicitly
An enum type is aKarthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-6389091275796082882014-11-15T16:43:00.001+05:302015-05-12T12:30:56.752+05:30Extjs best practises 1.use MVCKarthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-26844580761070371142014-11-12T14:38:00.001+05:302014-11-12T14:38:45.209+05:30
While trying samples with Ext.tab.Panel, as usual I though about the next step of using nested panels and load an external html file into a panel.
And I tried a few simple straight forward stuffs and for some reason it kept failing. Eventually I came up with an answer as usual. Guess I dont want to be stuck with this silly issue every again. And hence this post. Following is a part of my Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-16910210948707251772014-11-12T14:27:00.000+05:302014-11-12T14:27:01.216+05:30Nested Tab example in Ext-Js
While trying samples with Ext.tab.Panel, as usual I though about the next step of using nested panels.
And I tried a few simple straight forward stuffs and for some reason it kept failing. Eventually I came up with an answer as usual. Guess I dont want to be stuck with this silly issue every again. And hence this post. Following is a part of my practise project which is necessary for the Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-49116867253257736822014-11-05T15:54:00.002+05:302014-11-05T15:54:44.654+05:30File Upload using Servlets
Create a simple Dynamic Web project in the eclipse IDE. I have installed Apache Tomcat 7.0.10 and following is my folder stucture. You can safely skip the HelloWorld.java and LogFilter.java files from this folder structure as they don't have any thing to do with this post.
My motive is to give a simple explanation/illustration on how a file upload control can be implemented in java Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com1tag:blogger.com,1999:blog-9076986602227142053.post-17284621765947489532014-10-17T20:26:00.001+05:302014-10-17T20:26:46.187+05:30replacing newline with characters in java<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Consolas; panose-1:2 11 6 9 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-5056412295881061262014-08-14T19:14:00.001+05:302014-10-15T15:22:36.567+05:30error c00c0240 - "Could not complete the operation due to error c00c0240." - AJAX request in StrutsI happened to encounter this error when I was attempting to debug an Ajax call to a Struts action. It made me feel miserable for a while as both firebug as well as eclipse debuggers with console showed no trace of the origins of the error. As usual I searched out for the error number and ended up with a lot of stack overflow posts. One of these posts were typically explaining me the same issue Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-36307249305704578442014-07-25T15:24:00.001+05:302014-10-15T15:21:40.009+05:30Writting run time code in eclipse for debugging as in firebug console<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-74729422565982290422014-07-24T20:30:00.011+05:302014-07-24T20:32:50.332+05:30Customizing the UNIX User Environment - Part 1 - UNIX shell configuration files - Part 1Customizing the UNIX User Environment**********************************************************************************UNIX shell configuration files**********************************************************************************Introducing shell configuration files--------------------------------------- A shell is an interactive interface that you use to communicate with the UNIX kernel. Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-31852752167675401092014-07-24T20:30:00.009+05:302014-07-24T20:32:39.040+05:30Customizing the UNIX User Environment - Part 1 - UNIX shell configuration files - Part 2Customizing the UNIX User Environment**********************************************************************************UNIX shell configuration files********************************************************************************** Configuring user profiles----------------------------------------The file that most directly affects a user's experience of a shell is the .profile file located Karthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0tag:blogger.com,1999:blog-9076986602227142053.post-78016912526746336612014-07-24T20:30:00.007+05:302014-07-24T20:32:27.480+05:30Customizing the UNIX User Environment - Part 1 - Working with UNIX environment - Part 3Customizing the UNIX User Environment**********************************************************************************Working with UNIX environment**********************************************************************************Global and local variables----------------------------- You use variables to customize how a shell looks, behaves, and responds to user input.There are two kinds ofKarthikeyan Alagirisamyhttp://www.blogger.com/profile/14135230008737125877noreply@blogger.com0