Sunday, November 07, 2004
error: can't create transaction lock [Fedora rpm installation]
# rpm -ihv RealPlayer10GOLD.rpm
# error: can't create transaction lock
Above is nothing but Super User access problem, All you have to login as Super user (su), like following.
# su
# password:[XXXXXXXX] <------------This will be invisible
# rpm -ihv RealPlayer10GOLD.rpm
# Installation....
A Small tip, but helps a lot for beginers
Friday, October 15, 2004
SOA Meets Compliance: Shift from age old to COA
Are we following rules provided by Governance, to make SOA bullet-proof?
Good article about SOA Meeting Compliance Compliance and Integration - SOA Meets Compliance: Compliance Oriented Architectures - ebizQ
We have seen this shift for ages
Raw Text -> XML->Web Services->SOA-COA
Every organization, who implement SOA in their indiviual business units they can not leave their services loose, it needs to meet whole nine yards of compliance, SOX (Sarbanes-Oxley),
Message to them is "do it slow but do it right",
More to come on this soon...stay tuned..
Tuesday, October 05, 2004
SOA; Open source Push
Basically the way I'm trying to take SOA as a example for Open source representation, and use Michael Curry's Blog as justification for my words.
SOA started with simplistic idea, as concept and stanard around XML based communication from different systems and went ten fold from basic Web service invocation framework (WSIF) to Web service Modeling Language/Web Service Management Layer, well it will go much further to moon..
Michael Curry's words about stanards like CORBA; why it didnt fly as much as SOA/Web Service, justifies Open source widespread and its fundamental adoption in the developer community for any technology/concept/standard faster than anything that happened decades ago.
As community grows, reach becomes easy, more power to open source.
Wednesday, September 29, 2004
Backing up and restoring MySQL databases
Helps a lot in migration process. This is a good article where you can start doing things quick and clean.
Monday, September 20, 2004
Wednesday, September 15, 2004
Yahoo! News - Next Phase For Web Services Pioneer : Web Services in a Box
Everyone is moving towards packaging their solution in a Hardware box and selling it as appliance, then why not web service management/security software.
Its like "Take it to Go" model for Software makers with blend of hardware appliance.
one more important point on this article was "Services orientation is an architectural principle that you can use to build anything, no matter what kind of application or architecture you do", Indeed its how people see SOA and making that useful to business derivatives like Business Process Management.
Monday, September 13, 2004
LinuxWorld | How will companies ever make money off Open Source?: Governance explained in few lines
One way to present Open source and revenue model from open source, making sure creator of the Open source software and subscriber/modifier obey the rule.
Wednesday, September 08, 2004
sodaplay: amazing machine intelligence
Its a 360 degree spin on How human visualize Maths. check out the constructor
More on this coming soon..
Thursday, September 02, 2004
What is REST ? : REST By example?: Collabrate with Web Services
This website defines REST in a beautiful way, absolutely must read for novice users.
REST: An Architectural Style, Not a Standard: Good definition, clears 1000 questions at the first instance itself
REST uses standards to build architecture, a very fundamental concept of any framework. Together REST with Popular web standards (HTTP, XML, SOAP) will form a Framework for innovative business solution.
Knowledge is contagious!...
Tuesday, August 31, 2004
Service Orchestration with WSML : SOA gets more power.
WSML is Web Service Management Layer , or Web Service Model, In depth its all about Service orchestration for smooth and sweet SOA.
Enterprise Service BUS gets a a new face in the form of WSML.
Tune in for more....
Oracle Sequecnes and Cache Value "20" mystery: Sequences with "cache" option can skip numbers
The default CACHE value for a sequence is 20, which means that after every 20 callsfor nextval Oracle has to update seq$ and refresh its cache.
Small tip over here about how to write sequences with or witout cache .
Monday, August 30, 2004
Uninstall Oracle 9i
Saves your time, believe me without this you will waste whole day.
Wednesday, August 25, 2004
Welcome to longtime; Social movement of this era
Amazingly simple and easy to see how people can be linked to you thru your profile.
You can say what our ancestors (fathers, grand parents, way before that...) used to spend years in finding a contact linking with their friends and missing family, Linked In will do it in seconds. Its amazing to see what this age of intelligence can do and cut years of hard work into ease.
Whole social movement is driving into mass meeting time, where millions of people meet on the X * Y resolution computer screen and greet each other. Its truly a "Meet and Greet" board for people.
Are you linked in??!! , I'm.....Keep watching for new social movements like Blogging and Wiki phenomena. First Glance its "Write and Publish" but in depth its humangous in potential, to revolutionize today's social context. Stay in tune.. For more!!..
Thursday, August 19, 2004
Practical Adoption of Design Patterns: Hybrid Implementation Pattern
Applying all together creates fundamental building block for architecure and framework. It also gives birth to Anti-Pattern (different from AntiPattern) thinking .
1) Where developer/Architect has the knowledge of what design patterns he/she wants to adopt or shortlist.
2) With This knowledge come up with raw design thinking, more radical is much better
3) Apply raw design thinking into trusted design patterns. What you get is Hybrid Implementation pattern (Anti-Pattern + Design Pattern(AntiPattern))
Eventually implementattion should be reused, thats a true out come of design patterns and its study.
Monday, August 09, 2004
How to Convert and Sort Dates in XSL : Small Tip..
Scenario : Pick the biggest date from the list of dates.
Solution:
- Converting a Date from one format to another
- Sort them in ascending order.
- Pick the first Date from the list ( thats the one you looking for ;) )
Assume your input XML is something like this (Date format is YYYYMMDDTHH:MM:SS)
<DateList>
<Date>20040931T18:31:04</Date> <Date>20040831T18:31:04</Date> <Date>20040715T18:31:04</Date> <Date>20041223T18:31:04</Date>
</DateList>
XSL file
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform;
<xsl:template match="/">
<xsl:for-each select="DateList/Date">
<xsl:sort order="ascending" select="translate(.,'T::', ',')"/>
<xsl:if test="position() = last()">
<xsl:value-of select="."/>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
This will print output as
20041223T18:31:04
This is biggest date. you can also print the date in a different format.
- translate() : does the same job as search and replace
- ".,'T::', ',' " : "." means Date node value, "T: : ',' " means search for T and : and replace with ' ' (blank space)
- position() = last()" : means if current index == last index (position(): returns current index)
Happy XSLTingggg!!..
Tuesday, July 27, 2004
OpenSource OverWhelming OverPowering : 3 O's: Free Software, Pay For Services.
- Day by day open source is becoming overwhelming, why is that ??. 'cauz indeed it is.
Everytime you have some need for small utility, which you are quite sure exists out there on the web, you "google" and land up in some open source repository. initially you were intended to spend 5 mins in grabbing your utility and get the hell out of there, but now by the time you are out of this website you must spend hours in it, reason, its too "Overwhelming", there is tons of information out there, too hard to resist. - Traditional product based companies in a pre-Open source era (early to mid 90's ) wrote the dazzling products and sold it for millions. Today you go and look for similar products you will find atleast 3-5 products on an average all for "FREE" (Sounds so good!!). So what is the conclusion.
"Did all those customers wasted millions of $$ ??", probably not for their time, but todays time, yes its what "Software" should be open source and free, and what customers should pay is for "Services". So Open source is "OverPowering" over traditional/commercial sofware products.
Its all about justification of Customer's "Artha" (Money in Sanskrit) and making them happy for what they pay.
more to come soon.. on this subject. its endless.!!
Monday, July 26, 2004
MySQL / Windows XP dilemma ; Check your version
Windows XP / MySQL 4.1 (beta release) / Connection problem via MySQL Connector/J
Error like : java.sql.SQLException: Server connection failure during transaction...Attempted reconnect 3 times...
My Blah! Blah!
I learned this hard way (real hard way!!) , I wish someone would have told me this, so much for not reading product documentation. I'm not even sure whether its documentated somewhere. Well "Googling" works all the times. I'm doing something with Apache Torque and MySQL under struts/tomcat. recently moved to Windows XP from NT for some secret business reasons (;)) . So on NT my whole setup is works like charm, as soon as i started setting up everything on XP machine, I downloaded (unstable small little beast!!) and what i see the behavior which is very frustrating and painfull search for the problem, but no clue at all what could be the problem.
- Downloaded & Installed MySQL 4.1 (beta release) , running Torque with this version what i see is no error, all Torque says "Connection is null...." doesnt make sense when all the parameters are right
- Went down to much lower level, wrote my jdbc calls, connection, statement whole nine yard, what i get is following java.sql.SQLException: Server connection failure during transaction...Attempted reconnect 3 times... absolutely ridiculous, MySQL works fine with Control center, all permissions seems to be fine, With GRANTS/ACCESS on the user.
Guessed this could be nasty version issue, uninstalled MySQL 4.1 and installed MySQL 4.0. Daeeeeeemmmnnn! it worked like a charm again.
Solution
Roll back on Old version MySQL 4.0 still rocks. They Say for new developement use MySQL 4.1 ; Think twice before wasting 4-5 days on this and later discovering that its a version issue. MySQL 5.0 ; Hell No!! , Dont even go there yet!. till things stabalize.!!..
Quick and Dirty Apache 2.0.48 –SSL-mod_ssl
o openssl.exe, libeay32.dll, ssleay32.dll in
o mod_ssl.so in
o ssl.conf in
o openssl.cnf in
• Open
o LoadModule ssl_module modules/mod_ssl.so
(Sometimes it’s already present in httpd.conf, in that case just uncomment the line)
• Make sure following block is present in httpd.conf
o
o Include conf/ssl.conf
o
(This will load ssl.conf when mod_ssl module is loaded, above block is usually present in default httpd.conf)
• Open ssl.conf and make sure server paths are correct in the file, especially
o DocumentRoot
o Server name
o Server admin
• Go to
o openssl.exe req -config openssl.cnf -new -nodes -out server.csr -keyout server.key
o openssl.exe x509 -in server.csr -out server.crt -req -signkey server.key -days 365 -set_serial 1
(Increment the serial number each time you create a certificate.)
• Move files "server.key" and "server.crt" to your apache2\conf folder. Delete files ".rnd" and "server.csr".
• Start Apache. Assuming it starts ok; test it with your preferred web browser.
• Point to https://localhost/myworld
• Now you are SSL enabled.
Quick and Dirty Apache 2.0.48 –Jk2-Tomcat 4.1.29X
• Download compiled Jk2 Connector from Apache site which has jk2 dll/shm files also.
• Before installing Apache make sure system is not running any Web server on Port 80, like Microsoft IIS, if yes stop the web server and then Install Apache. Once Apache is installed it starts the web server on port 80
• Go and Stop Apache web server
• Go to
• Add following ; text in < shouldn’t be added>
o handler.list=channelSocket,request
o channelSocket.port=8009
o channelSocket.address=127.0.0.1
• Go to
• Open httpd.conf and add following
o LoadModule jk2_module tomcat-connector/mod_jk2-2.0.43.dll
(We will create tomcat-connector directory in next step)
• Create file called workers2.properties in
o [shm:]
o file=C:\Program Files\Apache Group\Apache2\logs\jk2.shm
o size=1000000
o [channel.socket:localhost:8009]
o [uri:/examples/*]
o [uri:/myworld/*]
o [uri:/tomcat-docs/*]
• Copy jk2.shm to
• Create tomcat-connector directory under
• Start Tomcat first and then Apache
• Go to http://localhost/myworld , you should be able to get into your application without Application server port now.
• You are all set.
Jakarta Ant and Reflection Conflict: Power of FORK!!
Have you ever seen java.lang.NoClassDefFoundError: sun.reflect.SerializationConstructorAccessorImpl while running from your application via Ant target.???. ever wondered how come this error when you run an application, but never conflicted while compiling with current set of jar files??..
You must have speculated reasons like
- Java version might be a problem , Hey jdk_14XX is not right lets switch to jdk_13..
- May be my ant version is not rite or conflicting with jdk version.
The main reason is Ant and its Virtual machine. whenever we write
Solution
All you have to add fork="true" (some ppl do it "yes" option too..feel free to experiment:)), to your Ant
From above tweak we say use another VM . which means it kicks in class execution in another VM.
tasks will look something like this
><javac srcdir="${src_dir}" fork="true" destdir="${deploy_dir}"><classpath refid="class.path"></javac><java classname="" fork="true"><classpath refid="class.path"></java>