Year: 2008

  • Oracle Export (exp) and Initial Extent Size Issues

    If you have a large database in Oracle, with a tablespace with say 2 gigabytes worth of data in it, and you then go in a delete a large number of rows from a large number of tables, and shrink it down to about 300 megabytes worth of data, and then you create an Oracle…

  • An Easy Way to Drop All Tables in Your Tablespace in Oracle

    If you need to drop all tables in the database with Oracle, here’s an easy way!   run this command: select ‘drop table ‘, table_name, ‘cascade constraints;’ from user_tables; Then copy the output and run that as a sql script.  

  • How To Resize Uploaded Images Using Java

    Edit: please read the better way here: Better way to Resize Images Using Java! ———————– I am building a Seam application which need to support users uploading images, and then the site displaying them. I wanted to resize big images into something reasonable (say 1024 or 800 px wide) and generate a thumbnail, and I…

  • Displaying and Rerendering a RichFaces ModalPanel from a commandLink

    Let’s say that when a user clicks on something, perhaps selecting something from a DataTable or DataGrid, you want to call some server side code, and then popup a modal panel which needs to show content based on the new state setup by your server side call. In my case I have a DataGrid showing…

  • How to get RichFaces to not crash Safari

    RichFaces, a collection of open source JSF Components for building “rich” AJAXy interfaces, unfortunately makes Safari crash or hang or lock up with many of it’s components. I’m not the one who figured this out, but I wanted to document it here. You can solve this the same way you solve the JSF/Google Ad issue:…

PHP Code Snippets Powered By : XYZScripts.com