Lunch Hour

A little food for thought

Thursday, June 25, 2009

Why so many version of JDeveloper

I don't get it. I am not sure why oracle is coming up with so many version of JDeveloper. Recently I wanted to try Oracle SOA suit. SOA suit has its own version of JDeveloper. I also know there SQLDeveloper and JDeveloper with OA Framework, JDeveloper with ADF and JDeveloper with BI tools. I am sure oracle can come up with one JDeveloper which has all there features as plugins like SQLDeveloper plugin and SOA plugin etc. Life would be so easy with that.

Thursday, June 11, 2009

Microsoft But it's not google attempt

Microsoft has release its new search engine called BING. Looks like with BING Microsoft has replaced all their previous search engine attempts.That includes MSN search and Live Search. BING is good. At least a lot like WEB 2.0. However Microsoft needs to give BIN a little more time to pick up. People are so used to Google that it will be a very tall order to be able to get people to use BING. However, Microsoft can use some of insights mentioned in book called "Crossing the Chasm: Marketing and Selling High-Tech Products to Mainstream Customers" (http://www.amazon.com/Crossing-Chasm-Marketing-High-Tech-Mainstream/dp/0066620023) This books shows how a new distruptive technology just like BING can get more mindshare by concentrating on Innovators. The book use term Innovators for people who like to try any new technology that comes to the market. If Microsoft can convince few good innovators, they can reach many people. Ofcourse for that Microsoft needs to use network nodes. BING is very interesting and will be very interesting to watch path Microsoft takes to reach the people. For me I will be using BING as my main search site for next 1 month.

Thursday, June 04, 2009

Regular Expressions Syntax summary

Items to match a single character

Meta characters

Matches

.

Dot

Matches any one character

[….]

Character class

Matches any one character listed

[^….]

Negated character class

Matches any one character not listed

\char

Escaped character

Matches literal character

Items appended to provide “Counting” : The Quantifiers

?

question

One allowed but it is optional

*

star

Any number allowed but all are optional

+

Plus

At least one is required; additional are optional

{min, max}

Specified range

Min required , Max allowed

Items that match a position

^

Caret

Matches the position at the start of the line

$

Dollar

Matches the position at the end of the line

\<

Word boundary

Matches the position at the start of the word

\>

Word boundary

Matches the position at the end of the word

|

Alternation

Matches either expression it separates

( )

Parentheses

Limits the scope of alternation, provides the grouping for quantifier and captures for back references

\1 \2

Back references

Matches the text previously match within first , second etc.

\t

Tab character

 

\n

Newline character

 

\r

Carriage return

 

\s

 

Matches any whitespace

\S

 

Any thing not \s

\w

 

Matches any word

\W

 

Matches non word [^a-zA-Z0-9_]

\d

 

Matches any numeric digit [0-9]

\D

 

Any thing not \d

(?<=…)

Look behind

Successful if can match to the left

(?<!...)

Negative look behind

Successful if can not match to the left

(?=…..)

Look ahead

Success full if can match to the right

(?!....)

Negative look ahead

Successful if can not match to the right

Thursday, May 28, 2009

Getting syntax highlighting work in Blogger

As my previous post suggest I was trying different methods suggested by different blogs. But none of them working. Part of the problem was that blogger doesn not support CSS and JS files upload. So you need to depend on external sites to refer to these files. The other problem was instructions on these different blogs. Most of them said the to put first set of files before </head> But the problem is there are many </head> tags in Blogger template. Finally I could get it working. This is what I did

1> I added following lines after <$BlogMetaData$> tag.
<link type="text/css" rel="stylesheet" href="http://syntaxhighlighter.googlecode.com/svn/trunk/Styles/SyntaxHighlighter.css"></link>
<script language="javascript" src="http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shCore.js"></script>
<script language="javascript" src="http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCSharp.js"></script>
<script language="javascript" src="http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushXml.js"></script>
<script language="javascript" src="http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCss.js"></script>
<script language="javascript" src="http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushJScript.js"></script>
<script language="javascript" src="http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushSql.js"></script>
2> Add following lines before </body> tag. This should be just after <!-- End wraps --> tag.
<script language="javascript">
dp.SyntaxHighlighter.ClipboardSwf = "http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/clipboard.swf";
dp.SyntaxHighlighter.HighlightAll("code");
</script> 
This worked for me. Most probably will work for you as well. Enjoy.

Trying Syntax highlighting

Yesterday I wastrying syntax highlighting for my previous post. Not decided to create this post just to try it.
class myClass
{
/* Add code here */


}



Wednesday, May 27, 2009

Notepad++ and PLSQL

In addition to my previous post. You also need to add PL/SQL for syntax highlighting. To get that working you need to follow these steps. 1> Goto %APPDATA%\Notepad++ (Start->Run>%APPDATA%\Notepad++) 2> Check for the file userDefineLang.xml 3> If file exists then add following code into it just before tag


        
            
            
            
        
        
            000000
            begin
            end
            ! " % & ( ) * , / : ; ? @ [ \ ] ^ ` | ~ + < = >
            1 2 0#
            ALL ALTER AND ANY ARRAY AS ASC AT AUTHID AVG BETWEEN BINARY_INTEGER BODY BOOLEAN BULK BY CASE CHAR CHAR_BASE CHECK CLOSE CLUSTER COALESCE COLLECT COMMENT COMMIT COMPRESS CONNECT CONSTANT CREATE CURRENT CURRVAL CURSOR DATE DAY DECLARE DECIMAL DEFAULT DELETE DESC DISTINCT DO DROP ELSE ELSIF EXCEPTION EXCLUSIVE EXECUTE EXISTS EXIT EXTENDS EXTRACT FALSE FETCH FLOAT FOR FORALL FROM FUNCTION GOTO GROUP HAVING HEAP HOUR IF IMMEDIATE IN INDEX INDICATOR INSERT INTEGER INTERFACE INTERSECT INTERVAL INTO IS ISOLATION JAVALEVEL LIKE LIMITED LOCK LONG LOOPMAX MIN MINUS MINUTE MLSLABEL MOD MODE MONTH NATURAL NATURALN NEW NEXTVAL NOCOPY NOT NOWAIT NULL NULLIF NUMBER NUMBER_BASE OCIROWID OF ON OPAQUE OPEN OPERATOR OPTION OR ORDER ORGANIZATION OTHERS OUT PACKAGE PARTITION PCTFREE PLS_INTEGER POSITIVE POSITIVEN PRAGMA PRIOR PRIVATE PROCEDURE PUBLIC RAISE RANGE RAW REAL RECORD REF RELEASE RETURN REVERSE ROLLBACK ROW ROWID ROWNUM ROWTYPE SAVEPOINT SECOND SELECT SEPARATE SET SHARE SMALLINT SPACE SQL SQLCODE SQLERRM START STDDEV SUBTYPE SUCCESSFUL SUM SYNONYM SYSDATE ABLE THEN TIME TIMESTAMP TIMEZONE_REGION TIMEZONE_ABBR TIMEZONE_MINUTE TIMEZONE_HOUR TO TRIGGER TRUE TYPE UID UNION UNIQUE UPDATE USE USER VALIDATE VALUES VARCHAR VARCHAR2 VARIANCE VIEW WHEN WHENEVER WHERE WHILE WITH WORK WRITE YEAR ZONE
            ac asnp clc cli clp clv cpi cpp cvpa diff epal epcsv fc fl foreach % ft fw gal gc gci gcm gdr ghy gi gl gm gp gps group gsv gsnp gu gv gwmi iex ihy ii ipal ipcsv mi mp nal ndr ni nv oh rdr ri rni rnp rp rsnp rv rvpa sal sasv sc select si sl sleep sort sp spps spsv sv tee where ? write cat cd clear cp h history kill lp ls mount mv popd ps pushd pwd r rm rmdir echo cls chdir copy del dir erase move rd ren set type
            
        
            
            
            
            
            
            
            
            
            
            
            
            
            
            
        
    

4> If file does not exists then create the file and add following code


    
        
            
            
            
        
        
            000000
            begin
            end
            ! " % & ( ) * , / : ; ? @ [ \ ] ^ ` | ~ + < = >
            1 2 0#
            ALL ALTER AND ANY ARRAY AS ASC AT AUTHID AVG BETWEEN BINARY_INTEGER BODY BOOLEAN BULK BY CASE CHAR CHAR_BASE CHECK CLOSE CLUSTER COALESCE COLLECT COMMENT COMMIT COMPRESS CONNECT CONSTANT CREATE CURRENT CURRVAL CURSOR DATE DAY DECLARE DECIMAL DEFAULT DELETE DESC DISTINCT DO DROP ELSE ELSIF EXCEPTION EXCLUSIVE EXECUTE EXISTS EXIT EXTENDS EXTRACT FALSE FETCH FLOAT FOR FORALL FROM FUNCTION GOTO GROUP HAVING HEAP HOUR IF IMMEDIATE IN INDEX INDICATOR INSERT INTEGER INTERFACE INTERSECT INTERVAL INTO IS ISOLATION JAVALEVEL LIKE LIMITED LOCK LONG LOOPMAX MIN MINUS MINUTE MLSLABEL MOD MODE MONTH NATURAL NATURALN NEW NEXTVAL NOCOPY NOT NOWAIT NULL NULLIF NUMBER NUMBER_BASE OCIROWID OF ON OPAQUE OPEN OPERATOR OPTION OR ORDER ORGANIZATION OTHERS OUT PACKAGE PARTITION PCTFREE PLS_INTEGER POSITIVE POSITIVEN PRAGMA PRIOR PRIVATE PROCEDURE PUBLIC RAISE RANGE RAW REAL RECORD REF RELEASE RETURN REVERSE ROLLBACK ROW ROWID ROWNUM ROWTYPE SAVEPOINT SECOND SELECT SEPARATE SET SHARE SMALLINT SPACE SQL SQLCODE SQLERRM START STDDEV SUBTYPE SUCCESSFUL SUM SYNONYM SYSDATE ABLE THEN TIME TIMESTAMP TIMEZONE_REGION TIMEZONE_ABBR TIMEZONE_MINUTE TIMEZONE_HOUR TO TRIGGER TRUE TYPE UID UNION UNIQUE UPDATE USE USER VALIDATE VALUES VARCHAR VARCHAR2 VARIANCE VIEW WHEN WHENEVER WHERE WHILE WITH WORK WRITE YEAR ZONE
            ac asnp clc cli clp clv cpi cpp cvpa diff epal epcsv fc fl foreach % ft fw gal gc gci gcm gdr ghy gi gl gm gp gps group gsv gsnp gu gv gwmi iex ihy ii ipal ipcsv mi mp nal ndr ni nv oh rdr ri rni rnp rp rsnp rv rvpa sal sasv sc select si sl sleep sort sp spps spsv sv tee where ? write cat cd clear cp h history kill lp ls mount mv popd ps pushd pwd r rm rmdir echo cls chdir copy del dir erase move rd ren set type
            
        
            
            
            
            
            
            
            
            
            
            
            
            
            
            
        
    


Enjoy

Notepad ++ and PLSQL

Recently I installed notepad ++ on my machine. As I am doing lot od javscript programming lately. And I found Notepad++ is one of the best editor for Javascript. Other being Visual Studio. But since I also do PLSQL programming I was looking for a way to get PLSQL Syntax checking and autocompletion. With some minor tweaking I could get both working. If you have similar requirement please follow these steps. 1>Create a file called plsql.xml in 'C:\Program Files\Notepad++\plugins\APIs' directory. 2> Copy and paste following code into this file.
 
 
    
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
    

3. Close and restart the notepad++. Enjoy

Monday, May 25, 2009

Back to blogging

I am back to blogging. After a very long time. However I will try to blog more frequently this time. Let us see how long that lasts.

Wednesday, October 19, 2005

One more test

I am again testing it.  Its very convinient to create a blog entry through email.
 
by the way I gave up on blogging through word.  I guess it has a bug. It was hanging my word whenever I tried to copy and paste some huge content.
 
 
Lets see how this thing goes.