Member of
Techlipse.com

 

Total Eclipse of the Heart

99.99% times I do not like to re-post youtube video links but this time I just have to spread some genius rework of a music video. And what’s more — song title is “Total Eclipse of the Heart”. So let’s use the video to find some out-of-the-box inspiration for our Eclipse platform future!




Thanks for watching! Do you see a message related to the Eclipse Platform?

Share:
  • del.icio.us
  • digg
  • Reddit
Comments (1) Thursday, June 4, 4:18 pm

Changing number scale for Oracle NUMBER columns

Whenever you try to change your NUMBER column to more specific scale like NUMBER(10,2) you end up with an error message:

SQL Error: ORA-01440: column to be modified must be empty to decrease precision or scale

There is a way out of this but it is a bit hacky. Let me know if there is a more elegant solution!
Following example also takes care of the situation when your column is not nullable.

SQL:
  1. ALTER TABLE MYTABLE ADD AMOUNT_TEMP NUMBER;
  2. UPDATE MYTABLE SET AMOUNT_TEMP = AMOUNT;
  3. ALTER TABLE MYTABLE MODIFY AMOUNT NULL;
  4. UPDATE MYTABLE SET AMOUNT=NULL;
  5. ALTER TABLE MYTABLE MODIFY AMOUNT number(10,2);
  6. UPDATE MYTABLE SET AMOUNT=AMOUNT_TEMP;
  7. ALTER TABLE MYTABLE MODIFY AMOUNT NOT NULL;
  8. ALTER TABLE MYTABLE DROP COLUMN AMOUNT_TEMP;

Take care!

Share:
  • del.icio.us
  • digg
  • Reddit
Comments (1) Wednesday, June 3, 6:27 pm

Quick hint: Ignore bin, target, build etc dirs in Eclipse CVS and SVN Synchronize View

 

Directory ignore feature for svn and cvs in Eclipse Synchronize View is located in a straightforward place but still from time to time we tend to forget. I keep looking at SVN settings and synchronize View Menu but it is not there.

Here it comes:

Window->Preferences->Team->Ignored Resources
Faster is to simply type "ignored" into preferences quick search!

Here you can add patterns like "bin", "build", "target" etc so these will be ignored.

Please be aware that this kind of ignore patterns are not conceptually correct -- ignored resources should be configured at the svn repository meta-info level!

Share:
  • del.icio.us
  • digg
  • Reddit
Comments (0) Tuesday, June 2, 10:12 am

No, Cancel, Yes?

New Eclipse 3.5M7 provides an interesting approach for confirmation dialogs. Previous "Yes, No, Cancel" has been replaced with "No, Cancel, Yes" options.

I wonder what is the reasoning behind it.. Read more (including screenshots) at Ivar blog.

Share:
  • del.icio.us
  • digg
  • Reddit
Comments (4) Thursday, May 14, 1:07 pm

MySQL and Oracle — founders take

 

Nice reading about MySQL future at Oracle is available at Michael Widenius blog. He is the founder of MySQL, was involved in successfully transferring MySQL business to Sun and left the company in the beginning of 2009.

Share:
  • del.icio.us
  • digg
  • Reddit
Comments (0) Thursday, April 23, 10:13 am