DirectoryTechnologyBlog Details for "Beanpicks - Techno, me and my box"

Beanpicks - Techno, me and my box

Beanpicks - Techno, me and my box
What's happening in the circles of Java, Open source and Linux ?
Articles: 1, 2, 3

Articles

Difference in the overloaded createConnection() methods in javax.jms.Connec
2007-08-05 12:56:00
This is the first thing you do when you work with JMS — Get a connection. ConnectionFactory factory = (ConnectionFactory)ic.lookup("MyConnectio nFactory"); conn = factory.createConnection(); // You call either this conn = factory.createConnection(userName, password); // or this. But, what is this “username” and “password” in your connection, when you have already logged into your application server and there are no provisions to ...
More About: Methods , Difference , Ferenc , Create , Econnect
Interchange column values in a single update query
2007-08-03 16:30:00
Have you ever met with a situation, wherein a single SQL update query should interchange the values of two columns? If you have had a chance to look at the update statement’s syntax, you would have immediately answered this. UPDATE {table_name | view_name} SET [{table_name | view_name}] {column_list | variable_list | variable_and_column_list} … [, {column_listN | variable_listN | variable_and_column_listN}]] [WHERE ...
More About: Update , Column , Single , Values , Chang
Parse your XML file
2007-08-02 05:56:00
Felt that this will be useful some time. package com.nu; import java.io.File ; import java.io.IOException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationExce ption; import org.w3c.dom.Document; import org.xml.sax.SAXException; public class ValidateXML { public static void main(String[] args) { String xmlFilePath=args[0]; new ValidateXML().validate(xmlFilePath); } public void validate(String xmlFilePath){ Document document=null; try { DocumentBuilderFactory factory=DocumentBuilderFactory.newInstanc e(); factory.setValidating(true); factory.setNamespaceAware(true); DocumentBuilder builder=factory.newDocumentBuilder(); document=builder.parse(new File(xmlFilePath)); } catch (ParserConfigurationException e) { e.printStackTrace(); } catch (SAXException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } }
More About: Arse
Premature termination of a Topic Subscriber program
2007-07-31 21:10:00
Simple threading trick. However, it looked interesting to me. When you look at my Subscriber .java, you would see that i wrote something like this Object ob=new Object(); synchronized(ob) { ob.wait(); } in my subscribe() method. The reason for writing this is to keep my Subscriber alive and keep on waiting for the Publisher to push messages. Simply put, I ...
More About: Topic , Program , Premature , Term
An attempt was made to create a named consumer (name) on a connection with
2007-07-31 20:30:00
While creating a DurableSubscriber please do specify the client id before specifying a named consumer. Please have a look at the small code i wrote. Do remember to set the ClientID before creating a session from it. The clientID becomes null and immutable after the session is created. Also remember to give the ...
More About: Connection , Consumer , State , Made , Exception
Configure JMS Server in Weblogic 9.2 ? Pub Sub
2007-07-31 19:30:00
Following yesterday’s sample code i wrote for P2P, here is an example code and configuration procedure of Topics in Weblogic 9.2. I have tried my best to do justice to the PDF I have created. Please go through and revert if i need to make some corrections. Find the PDF here And the code here. Publisher.java ...
More About: Server , Logic , Figure , Configure , Config
First time in my net life. Google goes down?
2007-07-31 05:35:00
Time is in IST On the other hand, at the same timestamp, look at my del.icio.us.
More About: Google , Life , Time , First Time , Googl
Configure JMS Server in Weblogic 9.2
2007-07-30 21:24:00
I did this homework today. Just wanted to share it with you. I have uploaded the JMS Sender and the Receiver files and the JMS server in Weblogic 9.2 configuration procedure in a separate pdf file. You can find these files HERE As for others who has reached this page after getting a ...
More About: Name , Server , Queue , Exception , Logic
Abstract Class inside an Interface??? Interface inside an Abstract class???
2007-07-30 21:12:00
Interface inside an abstract class is static. package com.nu; public abstract class Class Interface { public interface Intrface{ public void m1(); } } And so is an Abstract class inside an interface package com.nu; public interface IntrfaceClass { public abstract class AbstrClass{ public void m1(){ System.out.println(”from m1″); } } } Usage : package com.nu; public class ImplClass extends IntrfaceClass.AbstrClass implements ClassInterface.Intrface{ public static void main(String[] args) { } }
More About: Inside , Interface , Trac
USER_SOURCE ? View the source SQL of your Procedure, Type in Oracle
2007-07-14 10:47:00
Yesterday i came across this particular system table USER_SOURCE.  Gives the source SQL for a variety of Oracle objects including Procedures and Type s.  I dont have oracle installed in my home. So no screenshots. You would have already known that USER_VIEWS table will give you the source select statement of a VIEW.
More About: Source , The Source , View
Merrill Lynch interview questions
2007-07-13 09:08:00
I am not sure how my previous post got deleted.  Let me tell you something before you go through the questions.  I had three tests and three tech rounds (actually speaking).  Most of the questions were just questions from my answers.  So, basically you drive the interview. Trust me, the interviewers are damn good in ...
More About: Questions , Interview , Merrill Lynch
Merrill Lynch Interview Questions ? a few of them
2007-07-06 19:44:00
1)                  Table level and row level lock 2)                  How to force a row level lock in a select query (for update clause) 3)                  Explicit locking in oracle (NO) 4)                  Deadlock 5)                  Shared and Exclusive Lock 6)                  Difference between wait and sleep (the timout seconds as arguments) 7)                  static synchronized methods possible? YES                   What do they mean? What does static ...
More About: Questions , Interview , Merrill Lynch
Back Home !!!
2007-05-29 00:14:00
Back to my beautiful bungalow in Saidapet — filled with dust and love. Sister’s marriage got over. Be back in chennai office on Thursday. This also means the restart of scribbling on this big sheet of paper. And if you really wanted to ask what i learnt these days, here are sample pics
More About: Home , Back
?THE? Lucene Tutorial
2007-05-18 06:15:00
I feel ashamed to tell that I am just now putting my head into learning Lucene.  “Never too late”, I am trying to tell to myself. Here is one beautiful tutorial on Lucene. Tutorial by Steven J Owens Please do refer to this page too 
More About: Tori , Rial
Hold variables across page refreshes in Javascript ? The infamous ?Close Al
2007-05-17 22:58:00
  Say, you have an expandable menu (like the one in picture but the expansion is not Javascript driven) on the parent window and the parent window refreshes on every click of the node of the menu (the (+) and (-) kind of menus). You also have a “Close All” button on the parent window which ...
More About: Page , Across , Variables
Junk values during Excel export/Image display
2007-05-10 22:11:00
I happen to face this problem a year back.  I was expected to show an image on a JSP which is stored as a BLOB in the database.  (I also wrote another post a few days back with uploading and showing image from a MySQL database (with Hibernate)).  The problem I faced a year back ...
More About: Display , Image , Excel , Export , Values
Radio on Software Engineering?
2007-05-06 01:57:00
Radio for Soft ware Engineer s? That’s a great idea. And here is the idea come real at http://www.se-radio.net/.  And dont miss episodes 37 and 43 on Extreme Programming.
More About: Radio , Engineering
Windows Vista Home Premium ? Unable to uninstall software
2007-05-01 17:07:00
Yeah. This is a post on Windows Vista by a Linux user. (I am forced to use Windows temporarily due to this Flex Builder trap by Adobe). I bought this Dell Inspiron notebook which came bundled with Vista Home premium. I was trying to uninstall some useless software and I got this error. “The system administrator ...
More About: Software , Windows Vista
Why did a Microsoft employee switch to Linux?
2007-05-01 05:27:00
Read this very interesting article “When did i stop being creative?”
More About: Linux , Microsoft , Switch , Soft , Micro
Hacking Windows Vista
2007-04-28 00:46:00
Never thought it is that easy…
More About: Windows , Windows Vista , Vista , King , Indo
Adobe open sources Flex
2007-04-26 20:59:00
Even though the idea of free Flex is exciting, I was one of the many who complained that Flex should be made open source than free. But today, Adobe made a press release stating that the source code of Flex is to be released soon under Mozilla Public License. MXML, ActionScript compiler, command ...
More About: Open , Sources
Live free or Die.
2007-04-13 22:28:00
It really pains when people tell me that Linux Operating System isn’t user friendly. I would feel happy when people say that it is “habit friendly”. When i used to talk to my colleagues and friends about how superior Linux is, I have heard questions like “Where is the C: drive?”, “Does Linux ...
More About: Free , Live
Open Firefox inside Firefox
2007-04-13 17:53:00
Running web applications offline with Fire fox 3.0 is great. But look at this cool trick with your current version of Firefox. Try this URL chrome://browser/content/browser.xul
More About: Open , Inside , Side
Why Linux doesn?t need defragmentation?
2007-04-12 23:56:00
I accidentally came across this wonderful and short article on why Linux filesystem doesnt need defragmentation.  Is ext2/reiserfs/all other filesystems available for linux realy superior to FAT/NTFS? Why Linux performs better than Windows? 
More About: Men , Need , Menta , Defrag
Gutsy Gibbon is the next Ubuntu
2007-04-12 21:57:00
  With Feisty Fawn due this 19th, the stage is all set for the next player to show its trick.  Strange enough, the next release of Ubuntu is named Gutsy Gibbon .  A treat for the code monkeys, i guess. Unfortunately, Gutsy will not be an LTS (Long term support) release. This  is Mark’s letter to the community. (FYI ...
More About: The N , Next
Gaim is now Pidgin
2007-04-08 23:15:00
It is common for many projects to be renamed, following lawsuits by proprietory companies.  Linspire is what comes to my mind immediately.  But it is very rare for a project to be renamed the second time :-)  Gaim has earned this special reputation.  Following the lawsuit by AOL, the GTK+ AOL Instant Messenger was renamed as Gaim. Now that AIM is ...
More About: Pidgin
Boot Mac OS X on a normal PC
2007-04-08 21:15:00
Is this true? I am planning to try it out this weekend. But here is the link. Boot Mac OS X on a normal PC - Guidelines Windows based steps are here If you are looking for the easiest installation steps,  here is the Linux (Ubuntu) based installation.
More About: Mac os , MAC OS X , Normal
In a new world?
2007-04-03 05:31:00
Hi guys,     Sorry for not informing you people. I just happen to come to Florida for doing the same work that i did in Chennai — Keyboard massaging.     Will be back to blog work from tomorrow.  Ever yours, Arun
More About: World , New World
How to look smart before Java developers? ? A manager?s guide
2007-03-29 22:05:00
Funny as hell. Enjoy. Before the initial project meeting go to jcp.org. List all JSR’s learn some (5 are enough in general) numbers and headers.. If you have to do with more advanced developers - also read the abstract. Mention the JSRs during the meeting and enjoy the impact. If you project is going to be a ...
More About: How To , Java , Developer , Smart , Manager
Stack trace without line numbers ? Unknown Source
2007-03-29 06:27:00
Sometimes, application servers don’t display the line numbers during printing the trace but instead just print the method name with the “(Unknown Source )” on it. eg. something like this. Exception in thread “main” java.lang.ArithmeticException at TraceWith outLineNumb ers.main(Unknown Source) I wrote this small class to just help me learn why the line numbers get missed and Unknown Source comes up when ...
More About: Race , Numbers
More articles from this author:
1, 2, 3
111757 blogs in the directory.
Statistics resets every week.


Contact | About
© Blog Toplist 2012 - Supported by Web Catalog - SEO by FeWorks
eXTReMe Tracker