June 28th, 2009
One of my client wanted me to make a flash Carousels in Actionscript 2.0 , it would have been more easier using Actionscript 3 with Astro’s Z support.
Finally after 4 hours of cos, sin, atan and xscale, yscale here is what i have and i really like this one
I just pasted logos and mascots of thing that i love
Click here to view this flash
Posted in JAVA | No Comments »
June 16th, 2009
here is our experiment loading 3ds file with Away3D, Niran has been busy with 3ds max since his class 12 exams were over we were able to get a single jpg file of the texture which is here top.jpg
and here is the swf file
http://codewithme.com/blog/flashstuff/MANGO.swf
we hope to make a small flash 3d game soon this year ,
we are also having some fun with scumm engines
Posted in JAVA | No Comments »
May 27th, 2009
i have decided to build the a sample application using jmatter on top of postgres database i just changed the nepali/english calendar thing into postgress so much of changes almost took a day. postgres have more defined type of data type then mysql, like in mysql you could be doing concat(1,2) but in pg you cannot concat integers with concat rather the concat operator is || and you need to do select 1::varchar||2::varchar . guess it :: is the type conversion operator.
and when we do select a b from table1 then it is wrong the field a is not aliased into b we need to select a as b from table1.
i will up2date as i go on
Posted in JAVA | No Comments »
May 25th, 2009
I created a jar files by coding in java and using the classes
java.util.jar.JarEntry;
java.util.jar.JarFile;
java.util.jar.JarOutputStream;
java.util.zip.CRC32;
I created the jar file but the jar file is not runnable using java.exe but it could be opened by using programs such as 7zip or winrar the mistake i did was adding the zip entry with \ .
it took me hours to figure out but if we need to jar files that contains folder structure in it and it must run using java.exe or will be in classpath then \ must be replaced with / in windows platform
Posted in JAVA | No Comments »
April 23rd, 2009
My small flash program now knows hot to find the path and pick things
bhaktapur2.swf
Posted in JAVA | No Comments »
April 21st, 2009
Now that I've lost everything(not exactly other projects and clients need me too) to you
You say you wanna start something new (F*** who cares weather you want to do new or old )
And it's not breakin' my heart you're leavin' (finally no more break points)
Baby, I'm not grievin' (i am happy that it happended this fast)
But if you wanna leave, take good care (of course don't bother me with phone calls)
I hope you have a lot of nice things to wear (now what ever have a good system analyst before hand )
But then a lot of nice things turn bad out there
Chorus:
Oh, baby, baby, it's a wild world
It's hard to get by just upon a smile
Oh, baby, baby, it's a wild world
Posted in JAVA | No Comments »
April 18th, 2009
SCUMM tools have been here since 1980 but very few tools are available for Flash
here is my first experiment with scumm flash.
scumm
Posted in JAVA | No Comments »
April 14th, 2009
Just reminding my self with the new year cards that i have been making since long time
New year 2066 (suffering with heavy powercuts)
New year 2065
New Year 2064
and i lost some of the cards
New Year 2060
New Year 2003
Posted in JAVA | No Comments »
April 12th, 2009
PHP is easier typed language than java, dynamic typing and easy available functions make php development and deployment faster than other compiled and statically typed languages. We have full stack framework for mini erp based upon Spring/Hibernate with its client spread to EXT/JS+DWR and ZK .
We still have problems with quick reports presentation with EXT/JS+DWR still makes us to write a service function in java, and restart the tomcat (testing server).
ZK is good choice except we don’t require the richness in the ui for the report that is provided by zk. and still here in my country PHP programmers are more easy to find than rare java programmers.
I tried Quercus my first mis understanding was that i needed Resin for running Quercus but it is run it can run in any java web container i just needed to add a servlet and mapping to .php pages.
adding to my web.xml and placing the jar files in my lib
<servlet>
<servlet-name>Quercus Servlet</servlet-name>
<servlet-class>
com.caucho.quercus.servlet.QuercusServlet
</servlet-class>
<init-param>
<param-name>ini-file</param-name>
<param-value>WEB-INF/php.ini</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>Quercus Servlet</servlet-name>
<url-pattern>*.php</url-pattern>
</servlet-mapping>
and here is how i access my spring beans with quercus
<?PHP
session_start();
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;
import org.springframework.orm.hibernate3.HibernateCallback;
import org.springframework.orm.hibernate3.support.*;
$servletContext=$request->getSession(true)->getServletContext();
$webAppContext=WebApplicationContextUtils::getRequiredWebApplicationContext($servletContext);
function getBean($name)
{
global $webAppContext;
return $webAppContext->getBean($name);
}
$template=getBean(”template”);
$ras=$template->find(”from FIN_LEDGERS”);
?>
hope this will save my time and push some php pages in my java app.
Posted in JAVA | No Comments »
February 20th, 2009
Showing report that renders well and commands printer well is a difficult task in webbased applications. We do not have strong api to control printer with javascript nor does java script apis such as extjs and dojo talks about this thing we can control some layout thing with css but could not control things like page wise navigation and zoom/ chart thingsWe have been using Custom applet to show jasper report in web based application. The disadvantage with applet is that the client machine needs to have jre installed and the dependency jar of the applet( jasper report runtime ) is more than 3 M.BLast week i came across a project http://sourceforge.net/forum/forum.php?forum_id=830690 . Good idea i downloaded the source and had a small minor changes and built a SwF file which was less than 500 KB. The swf file can render well the xml exported from jasper report system here is how it looked like (sorry about the font PCS nepali )
Posted in JAVA | No Comments »