Skip to main content

Posts

Showing posts from November, 2007

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/