Skip to main content

Posts

export db in hibernate3 ant

I try the example in "Hibernate Quickly" ebook and found that using SchemaExportTask to export database in build.xml file is not work in hibernate3. In hibernate3, export database done by use annotations like this <target name="schema-export" > <taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="schema.classpath" /> <hibernatetool destdir="${sql.dir}"> <annotationconfiguration configurationfile="${src.java.dir}/hibernate.cfg.xml" /> <hbm2ddldir}/hibernate.cfg.xml" drop="true" create="true" export="true" outputfilename="helloworld-ddl.sql" delimiter=";" format="true"/> </hibernatetool> </target> thanks, Jon Rose for ho...

Install win32 codecs for mplayer in Ubuntu Gutsy

If you have trouble in playing media file, stream [like me] may be this will help. Today I try open video stream with mplayer and get no sound. So I go to run mplayer from terminal and get errors about codecs below pnix@pnix-a7n:progdl$ mplayer mms://61.47.35.66/NTTV MPlayer 2:1.0~rc1-0ubuntu13 (C) 2000-2006 MPlayer Team CPU: AMD Athlon(tm) (Family: 6, Model: 8, Stepping: 1) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 ... Opening video decoder: [dmo] DMO video codecs Win32 LoadLibrary failed to load: wmv9dmod.dll, /usr/lib/win32/wmv9dmod.dll, /usr/local/lib/win32/wmv9dmod.dll IMediaObject ERROR: 0x8773d96 could not open DMO DLL (0x0 : 0) Failed to create DMO filter ERROR: Could not open required DirectShow codec wmv9dmod.dll. You need to upgrade/install the binary codecs package. Go to http://www.mplayerhq.hu/dload.html VDecoder init failed :( Opening video decoder: [dmo] DMO video codecs Win32 LoadLibrary failed to load: wmvdmod.dll, /usr/lib/win32/wmvdmod.dll, /usr/...

pnix report on gutsy

I start upgrading to Gutsy on last Friday night with slow speed. Estimate time to finish package download is vary from 3 hours to 2 days depend on speed it get at that time so I just go to bed and come back again on Saturday 11AM. Downloading is finished it waiting for my response to config some package to install. After that it reboot and try to startx first time and fail!! It ask me to config my display.Monitor are detected correctly[dell 1905FP] but resolution only give me 800x600. I go to Graphic Card tab, the driver said vesa. At this point if I go to choose nvidia or nv x will fell to failsafe xserver and reconfig my xorg.conf to use vesa driver. Checking on Xorg.0.log I saw my old friend. "The NVIDIA kernel module does not appear to be receiving interrupts". Nvidia driver is installed but on Gutsy my "acpi=off irqpoll" kernel option doesn't seem to work anymore. I stumble many kernel option for three days and last night I found that for my gutsy it need t...

I change my mind...

Look like everyone try to upgrade now, maybe I should be patient and wait for one or two days. Update-manager has a hard time to connect to server. I have 1M adsl but download upgrade tool give me 7KB/S.

Prepare the box before get Gutsy

Gutsy is already released now. It should be better to have original updated Feisty before upgrading. I mean no software from 3rd party repos. What I have are wine, fm2007[under wine] and compiz-fusion. First uninstall FM2007 leave me some menu entry that i need to manually delete it. I will post about this later. Afterthat i remove wine then compiz-fusion. Compiz-fusion set has a few packages installed and I can't remember the names what i do is .. pnix@pnix-a7n:~$ echo "sudo aptitude remove "`sudo dpkg -l |egrep compiz| awk '{print $2}'`|sudo bash Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Building tag database... Done The following packages will be REMOVED: compiz compiz-core compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-fusion-plugins-unofficial compiz-fusion-plugins-unsupported compiz-gnome compiz-plugins com...

VM crash on Feisty

During use netbeans5.5 to create webapps. I insert table and suddenly netbeans crash. It generate error log[hs_err_pidxxxx.log] in my home dir and here is it said. # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0xb51b8d5a, pid=5417, tid=3025587088 # # Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode, sharing) # Problematic frame: # C [libmawt.so+0x81d5a] # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # Few months ago, I add "AWT_TOOLKIT=MToolkit" to fix blank window problem in swing application when enable "Desktop Effect" and now look like java hotspot has problem with MToolkit too:( "AWT_TOOLKIT=XToolkit" fix the problem but i will get blank window under compiz-fusion. So for now my solution is no eye-candy when use java apps.

Gutsy Gibbon

It's about a week from today that Gutsy[ubuntu 7.10] will come out. I read through new feature in beta version and feel enthusiastic to see the change. - new gnome2.2, it's new feature here . - compiz fusion will be in official repos. that good, on feisty i use third party repos. and sometime got error when updating for last few weeks. - ntfs writing enable. i rarely need to write file on ntfs partition, anyway it may be useful. - automatic printer installation, this will be great for other[I have no printer at my house] I really hope that my hardware[athlonXP1700+,512DDR,fx6200 and A7N8X-E] can run gutsy with 3D effect smoothly.:)