SilverRing
SilverRing · 共 51 篇文章
[Flex] to display unrecognizable characters correctly of trace()
By adding these two at the startup line of Eclipse. -Dfile.encoding=utf-8 -Dsun.jnu.encoding=utf-8
2011-03-04 17:06 · Flex · 评论(0) · Flex · Eclipse
[IPod] Scroll problems with IPOD
Try this method. Move the hold button to on. Press the middle button. Move the hold to off & switch on the ipod. The scroll will start working again.
2010-12-08 18:38 · Others · 评论(0)
[MySql] Generate random string
SELECT SUBSTRING(MD5(RAND()) FROM 1 FOR 6) AS password The characters are from the MD5 command (and therefore in the range a-z and 0-9).
2010-12-01 13:54 · Mysql · 评论(0) · MySQL
[Flex3] CSS type selectors are not supported in components XXX
This warning probably means CSS type selectors are defined or the css file is referenced in a custom component. Solution one: Move the type selectors definition into the main application. Solution two: Replace the type selectors with class selectors. Label { font-weight: 'bold'; } replaced with .la…
2010-11-30 11:35 · Flex · 评论(0) · Java · CSS
[Flex3] can't switch to design view
Issue When switching to design view after changing flex sdk to 3.2 in FB 3.0, I hit an error message: This component is based on Canvas, which is not a visual component. Switch to source mode to edit it Solution Upgrade flex builder to version 3.0.2 via this site: [url]http://www.adobe.com/support/…
2010-11-12 11:19 · Flex · 评论(0) · HTML · Flex · Adobe
[CentOS 5.4] error while loading shared libraries
Today I got an error like this one: error while loading shared libraries: libmp3lame.so.0: cannot open shared object file: No such file or directory After checking the system, I found lame is properly installed. The only possibility is this library can't be found. A simple link should solve the pro…
2010-10-29 15:16 · Linux · 评论(0) · CentOS
[Flex] compilation error
If this error occurs: *Access of possibly undefined property DIRECT_CONNECTIONS through a reference with static type Class. * Flex compiler settings need to be changed to compile for flash player 10, not 9 any more.
2010-10-19 18:35 · Flex · 评论(0) · Flex · Flash · Access
[Hibernate] one cause of LazyInitializationException
Sometimes a LazyInitializationException will be thrown on getHibernateTemplate().load(). Reason being when using load(), Hibernate simply retrieves you a Proxy, which has only the id set, rest of the fields being queried from database when needed. At that time, the hibernate session might have been…
2010-10-19 16:08 · Hibernate · 评论(1) · REST · Hibernate
[Java] IllegalArgumentException of method inflection
If this exception is encountered: java.lang.IllegalArgumentException: object is not an instance of declaring class Check whether the object instance is correct: Method method = invoker.getClass().getMethod("testMethod"); method.invoke(invoker); // must be invoker, don't set "this" invoker is the in…
2010-10-19 15:04 · Java · 评论(0) · Java
[Flex] two ways of loading modules
There're two ways of loading and unloading modules: ModuleLoader - higher level API ModuleManager - lower level API Using ModuleLoader define a ModuleLoader <mx:ModuleLoader id="moduleLoader"/> when the button of loading the module is clicked moduleLoader.url = "SimpleModule.swf"; moduleLoader.load…
2010-10-14 22:42 · Flex · 评论(0) · HTML · Java · Flex · XML · Adobe
[Flex4] Could not resolve <mx:X> to a component implementation
The namespace for halo components is incorrect. new one: xmlns:mx="library://ns.adobe.com/flex/mx not the old one: xmlns:mx="library://ns.adobe.com/flex/halo
2010-10-04 09:27 · Flex · 评论(1) · Flex · XML · Adobe
[Flex] to see trace() info
First of all, must define an mm.cfg under the following directory: Windows 2000/XP : C:\Documents and Settings\user_name Windows Vista : C:\Users\user_name\ The **content **of mm.cfg is like the following: ErrorReportingEnable=1 TraceOutputFileEnable=1 The first parameter means it enables the loggi…
2010-05-07 13:05 · Flex · 评论(0) · C · Flex · Windows · Flash · XP
[Windows XP] Cannot copy ... Access is denied.
If you encounter the stated problem, that means you need to take the ownership of the file or folder. Prerequisites: 1. Log on as an administrator 2. Start Windows XP Home Edition in safe mode Beware of the home Edition need to be started in the safe mode, no need for the professional Edition 3. Di…
2010-05-07 00:06 · Windows · 评论(0) · Windows · UP · XP · Access · Security
[Java] Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
When unit testing a remote service with Spring today, I got an error like the one below: [code="java"] org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [test/spring-organizationService.xml]; nested exception is javax.…
2010-03-18 16:06 · Java · 评论(0) · Java · junit · Apache · Eclipse · XML
[Flex3] An internal compiler error occurred
If you encounter the "An internal compiler error occurred" in Flex Builder, open the error log view (window > show view > other > PDE Runtime > Error Log) and double click the error item. If something like the below happens, check to see whether the code pieces contain empty switches. This bug has …
2009-10-16 14:29 · Flex · 评论(0) · Java · Flex · Eclipse · Adobe