Tuesday, August 12, 2008
50 years ago
A program was..... a television show
An application was.... for employment
Windows were..... something you hated to clean
A cursor.... is profanity
A keyboard was.... a piano
Memory was.... something you lost with age
A CD was... a bank account
And if you had a 3 1/2 floppy you hoped no one found out
If you unzipped in public you went to jail
Compress was something you did to garbage
A hard drive was a long trip on the road
Log on was adding wood to a fire
A backup happened to your toilet
A mouse pad was where a mouse lived
Cut you did with scissors
Paste you did with glue
Copy was d soldiers slang
A web was a spider's home
Oracle was just another word
Java was just an island
Pascal was a Mathematicians name
Net was used in fishing
Python was a snake
Mouse.........U hate them sour
Bugs are a nuisance at home
And a virus was the flu!!!
TIMES SURE HAVE CHANGED ALL THAT!
Tuesday, July 22, 2008
SABLE + FESTIVAL
ciao
Thursday, June 12, 2008
Threadiculous
(6:21:03 PM) cyberdeen: quick in one min.....
(6:21:09 PM) cyberdeen: will this code compile?
(6:21:10 PM) cyberdeen: new Thread() {
public void start() {
busiLayer.doRegister(url);
}
}.start();
(6:21:56 PM) adeniranope: no
(6:22:09 PM) adeniranope: public void run()
(6:22:16 PM) cyberdeen: gotcha..it will compile
(6:23:22 PM) cyberdeen: but u are right..it wont do what it suppose to do
(6:23:47 PM) cyberdeen: but it will compile...to make do what its intended for use public void run()
(6:23:48 PM) adeniranope: as in what?
(6:24:09 PM) cyberdeen: the thread wont create a nw Thread wc is d essence of the code
(6:24:29 PM) cyberdeen: to make it create a nw process(sorry not thread) u must call run
(6:24:46 PM) adeniranope: dat's true
(6:24:50 PM) cyberdeen: which is called by the start() method
(6:25:07 PM) cyberdeen: dese are the kinda question u see on javablackbelt
(6:25:10 PM) adeniranope: where did u get dat from?
(6:25:30 PM) cyberdeen: i wrote it myself
(6:26:05 PM) cyberdeen: so that network connection wont block
(6:26:55 PM) adeniranope: so u mean dat code won't compile?
(6:27:10 PM) cyberdeen: it will compile...it will even run
(6:27:19 PM) cyberdeen: but networking will still be blocked
(6:27:38 PM) cyberdeen: i mean it will still block input until it is finished
(6:28:35 PM) adeniranope: so what's the solution?
(6:29:01 PM) cyberdeen: new Thread() {
public void run() {
busiLayer.doRegister(url);
}
}.start();
(6:29:21 PM) cyberdeen: public void start() ==== public void run()
(6:29:35 PM) adeniranope: i'm correct now
(6:29:41 PM) adeniranope: ?
(6:29:44 PM) cyberdeen: in a sense u are
(6:29:46 PM) adeniranope: abi
(6:29:55 PM) cyberdeen: but the question is will d code compile?
(6:30:01 PM) cyberdeen: wc u answered no
(6:30:22 PM) cyberdeen: but it will compile....the error is not syntax but semantics...she u get?
(6:30:47 PM) adeniranope: not at all
(6:31:02 PM) cyberdeen: i asked will d code compile?
(6:31:06 PM) cyberdeen: and u said no
(6:31:08 PM) cyberdeen: abi?
(6:31:15 PM) adeniranope: yes ooooooooo
(6:31:29 PM) adeniranope: en en why?
(6:31:43 PM) cyberdeen: but if u javac the code(compile) it will compile
(6:31:53 PM) cyberdeen: without errors
(6:32:00 PM) cyberdeen: u get? now abi
(6:32:07 PM) adeniranope: yes
(6:32:10 PM) cyberdeen: but still the code has errors
(6:32:33 PM) adeniranope: but if u run it what will happen?
(6:33:02 PM) cyberdeen: it wont create a new process
(6:33:16 PM) cyberdeen: which is what we want to code to do right?
(6:33:31 PM) adeniranope: and so ....
(6:33:37 PM) cyberdeen: so if a new process is not created....
(6:33:46 PM) cyberdeen: the code wont do wot its meant to do
(6:33:58 PM) cyberdeen: but it will COMPILE
(6:34:29 PM) adeniranope: what about the new Thread()
(6:34:51 PM) cyberdeen: a Thread is not a thread if there is no run method
(6:35:01 PM) adeniranope: ok
(6:35:16 PM) cyberdeen: u see the thing dt makes a thread a thread is run()..without run its just another class
(6:35:37 PM) adeniranope: so what about the .start()
(6:35:47 PM) cyberdeen: ok
(6:35:56 PM) cyberdeen: we need to call the run methos right?
(6:36:22 PM) adeniranope: dat means u've to replace the start method with run()
(6:36:29 PM) cyberdeen: dt is what the .start() will do for us
(6:36:41 PM) adeniranope: so dat when u call start() it will execute run
(6:36:50 PM) cyberdeen: when u call start...it will initialise the thread and then call run()
(6:37:07 PM) cyberdeen: u get it now abi...?
(6:37:23 PM) adeniranope: why can't u call start() straight and have a run method inside it
(6:37:38 PM) cyberdeen: i dont get u?
(6:38:48 PM) adeniranope: what i'm saying is instead of having a start method inside it and calling it ... why not override the run method of a thread and call start()
(6:39:31 PM) adeniranope: like this
(6:40:15 PM) cyberdeen: ?
(6:40:26 PM) adeniranope: new Thread{
public void run(){
balalalalalalalalalalalala
}
}.start();
(6:40:47 PM) cyberdeen: which is d correct version i sent to you
(6:41:20 PM) cyberdeen: new Thread() {
public void run() {
busiLayer.doRegister(url);
}
}.start();
(6:41:23 PM) adeniranope: ok i never took time to check it
(6:41:44 PM) adeniranope: yes it will work
(6:41:54 PM) adeniranope: dat will work
(6:42:08 PM) cyberdeen: dis conversation shud be posted where java guys can see it...i will blog about it right away...
Tuesday, June 10, 2008
What do we do?
Thank you
Monday, May 26, 2008
Version Control : Netbeans beats ‘em all
Although most of the time I do sole-development….I still use version control a lot…my tool of choice is mercurial and i’ve been using it for quite a while now….i do all my version controls at the command line…and I am quite happy…or so I thought….Sincerely I dont know when the version control was introduced to netbeans…but I was perusing through the menu and I saw it..I played with it a little and more than I expected Netbeans blew my mind…
First every of the commands I issue at cmd prompt are now visually represented and all I have to do now is click and go.
Next…My outputs are now by far better than what it used to be…the outputs are now well arranged so I dont have to look for where what is and what is not.
And this is what blew my mind…Now as I write my code I can visually see what has changed since my last commit, what has been deleted, what has been added etc….the developement team of Netbeans had really done a good job..the colouring scheme is superb too..like red arrow points to where line has been deleted…green stripe says new lines have been added…blue says lines have been changed…pointing the mouse also gives u a tool-tip of what the color means….and again visually I can revert these changes by click of a mouse…
Finally, Netbeans supports three of the most popular versioning systems, Mercurial, CVS and Subversion….
If you take versioning serious in your development process, you just need to try out the versioning system built into Netbeans..and as usual..there is no Rocket Science involved in using it…it takes only a few minutes even if you have not used version control before
Netbeans….My IDE of Choice
Saturday, May 10, 2008
Code, Chat and Share: With Netbeans...coding can't be easier
First I go to the plugins page and I install the Collaboration plugin...just 4MB.
Next I see a new Menu appear on the Menu bar called Collaboration in between versioning and tools
I click on the Menu and it gives me options to Login or end my session if I am already logged inNext I click Login and I have a side-bar where I can Manage my accounts.
I click on the Manage Accounts button and I have a new window where I can- Register for a new collaboration account with share.java.net
- Register for a new collaboration account with another collaboration server
- Access my already created account on any collaboration serve
After your account has been created your side bar is update to reflect your account settings. You can change any of these when you click on Manage Accounts button. if you are satisfied..click login
By now I guess all your friends have also done the same thing...so how do I add my friends to my contact...or better still how do two developers working on the same project collaborate real time without actually having to open an Instant Messaging Application? Some times ago I wrote about how Netbeans has helped me to eliminate most of the other GUIs that floods my screen...and now I have only one unified GUI...now its helping me to eliminate multiple Instant Messengers too......life is beautiful with netbeansNow right click on Contacts in the collaboration side bar and select Add Contact..type your friends first name and click find..if your friend is logged in...he will show on the open and you can add him..a message is sent to your friend too to add you....you have fufilled the first step to real time collaboration
Next right-click on your friend's ID and click on Start Conversation...a new tab is opened for you where you can chat, share files and even share a whole project!
Now click on a file..drag it to the window that says Drag files here to share them and blam!...you have started sharing...your friend at the other end recieves the file(s) you dropped.....this way you can drop a whole project here and the guy at the other end gets it......He can also do something really crazy at this point...he can remotely build, clean, and run this projectGo try out this cool tool...you'll be glad you did....I did something with this tool...At a time I have a server setup that I manage remotely...most times when I make changes...i do it on my development system and upload...
What I did now was to install Netbeans on my Server and upload all the project files to the server...Next I created another account for the server on Collaboration and then I do all the editing I need to do directly on the server....all I did was shared the project files and that is all...whenever I want to run the project..I connect to the server using VNC Viewer to see the output.