another test with box2d

August 20th, 2009

Here are my other tests with box2d engine

  1. test 1
  2. main3.swf
  3. main4.swf
  4. main5.swf
  5. main7.swf
  6. main8.swf

Physics for flash with box2d

August 18th, 2009

I have been teaching myself box2d engine for as3 despite few resources and poor documentation i have come up with first test here is how it looks like .flash test with box2d

some linq like implementation for java

August 11th, 2009
  1.  Groovy closures
  2.  Quaere (http://quaere.codehaus.org/)I have been using this great for grouping and filtering
  3.  Lambdaj (http://code.google.com/p/lambdaj/)looks great with wonderful support for static typing
  4.  JRuby closures
  5.  JOSQL   http://josql.sourceforge.net/

webpage diff in google appspot

August 5th, 2009

I have recently worked with a diff tool (daisey) and installed a tool to compare two html files and get the difference.
i could not use built in xslt engine that comes with standred jre because it is not supported by google app engine. i had two choices xalan and saxon i prefered to go with saxon as because saxon is light weight than xalan.

regniraj.appspot.com is where my diff tool lies

very useful delete .svn and files

July 20th, 2009

copy following lines make a batch file and run the batch file

FOR /F "tokens=*" %%G IN ('DIR /B /AD /S *.svn*') DO RMDIR /S /Q "%%G"

i got this one somewhere

http://blog.snakehit.be/2007/08/29/svn-recursively-delete-svn-folders/

flash Carousels

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

Flash Away3d with 3ds

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

pgsql differs from mysql

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

Jar files created by code that does not run

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

scumming with flash

April 23rd, 2009

My small flash program now knows hot to find the path and pick things

bhaktapur2.swf