Today i have found flash like animation creator tool , that too web based.
This reminded me of my days at college where i used to work on shock wave tools to create simple animations.
This tool is available at
http://antimatter15.com/ajaxanimator/wave/
Give it a try.
If you know how to create flash animation, it would be very easy, else try ur hands ...
Good Luck
Sarath.B
Monday, September 20, 2010
Thursday, May 13, 2010
Yahoo! Pipes
I have been using pipes for past 2 years or so .. and have created some useful pipes for myself.
Yahoo Pipes[http://pipes.yahoo.com/pipes/] allows you to create mash ups from sites providing RSS[http://en.wikipedia.org/wiki/RSS] feeds.
My latest pipe http://pipes.yahoo.com/bssarath/news displays the news feeds obtained from various news sites and plots them on a Map.
This i feel is a new way of looking at the news based on location.
Each news is indicated by a baloon and clicking on it will take you to the actual source.
I am reading my news from here instead of any one site.
Thanks Yahoo... for providing this functionality.
I am planning to take this up to next level and launch it as a site.
Lets see, if i succeed in this ... or this add to the TODO DREAMS list of mine.
My Pipes:
http://pipes.yahoo.com/bssarath/indianews
http://pipes.yahoo.com/bssarath/techup
http://pipes.yahoo.com/bssarath/javaupdates
Yahoo Pipes[http://pipes.yahoo.com/pipes/] allows you to create mash ups from sites providing RSS[http://en.wikipedia.org/wiki/RSS] feeds.
My latest pipe http://pipes.yahoo.com/bssarath/news displays the news feeds obtained from various news sites and plots them on a Map.
This i feel is a new way of looking at the news based on location.
Each news is indicated by a baloon and clicking on it will take you to the actual source.
I am reading my news from here instead of any one site.
Thanks Yahoo... for providing this functionality.
I am planning to take this up to next level and launch it as a site.
Lets see, if i succeed in this ... or this add to the TODO DREAMS list of mine.
My Pipes:
http://pipes.yahoo.com/bssarath/indianews
http://pipes.yahoo.com/bssarath/techup
http://pipes.yahoo.com/bssarath/javaupdates
Labels:
maps,
news,
rss,
yahoo pipes
Monday, April 26, 2010
How to use, Apache commons collections from jython.
How to use, Apache commons collections from jython.
Apache commons collections is an extension of java.util.Collections and has the following benefits over the default Collections from Java.
Apache collections package contains
1]Bags
2]Maps
Ordered Maps
Bidirectional Maps [BidiMaps]
MapIterators
3]Buffers and Queues
An usage example of MapIterator and BidiMaps is given below.
CODE:
from org.apache.commons.collections.bidimap import DualHashBidiMap
map = DualHashBidiMap()
map.put("A", "1")
map.put("B", "2")
map.put("C", "3")
print "### Accessing Map using values"
# Access the same map using keys.
print "Key for value 2 :", map.getKey("2")
print "Key for value 3 :", map.getKey("3")
print "Key for value 3 :", map.getKey("1")
print "\n\n### Accessing Map using keys"
# Access the same map using values.
print "Value for key B :", map.get("B")
print "Value for Key C :", map.getKey("C")
print "Value for Key A :", map.getKey("A")
OUTPUT:
### Accessing Map using values
Key for value 2 : B
Key for value 3 : C
Key for value 3 : A
### Accessing Map using keys
Value for key B : 2
Value for Key C : None
Value for Key A : None
### Iterator Usage :
A 1
C 3
B 2
Apache commons collections is an extension of java.util.Collections and has the following benefits over the default Collections from Java.
Apache collections package contains
1]Bags
2]Maps
Ordered Maps
Bidirectional Maps [BidiMaps]
MapIterators
3]Buffers and Queues
An usage example of MapIterator and BidiMaps is given below.
CODE:
from org.apache.commons.collections.bidimap import DualHashBidiMap
map = DualHashBidiMap()
map.put("A", "1")
map.put("B", "2")
map.put("C", "3")
print "### Accessing Map using values"
# Access the same map using keys.
print "Key for value 2 :", map.getKey("2")
print "Key for value 3 :", map.getKey("3")
print "Key for value 3 :", map.getKey("1")
print "\n\n### Accessing Map using keys"
# Access the same map using values.
print "Value for key B :", map.get("B")
print "Value for Key C :", map.getKey("C")
print "Value for Key A :", map.getKey("A")
OUTPUT:
### Accessing Map using values
Key for value 2 : B
Key for value 3 : C
Key for value 3 : A
### Accessing Map using keys
Value for key B : 2
Value for Key C : None
Value for Key A : None
### Iterator Usage :
A 1
C 3
B 2
Tuesday, April 20, 2010
Java Object serialization
Here i have used Java's object serialization to serialize a map into memory and create that map back from memory. This is helpful if your are trying to dump objects into databases [into blob cloumns] instead of Files.
Normal googling gives serialization of objects into Files.
from java.io import ObjectOutputStream, ObjectInputStream, ByteArrayOutputStream, ByteArrayInputStream
//JYTHON CODE USING JAVA OBJECT SERIALIZATION
from java.util import HashMap
m = HashMap()
m.put("Name", "Sarath")
m.put("Company", "Strand")
print m
bout = ByteArrayOutputStream()
oout = ObjectOutputStream(bout)
oout.writeObject(m)
bytes = bout.toByteArray()
bin = ByteArrayInputStream(bytes)
#bin.write(bytes, 0, bytes.length)
oin = ObjectInputStream(bin)
print "### output"
m2 = oin.readObject()
print m2
Normal googling gives serialization of objects into Files.
from java.io import ObjectOutputStream, ObjectInputStream, ByteArrayOutputStream, ByteArrayInputStream
//JYTHON CODE USING JAVA OBJECT SERIALIZATION
from java.util import HashMap
m = HashMap()
m.put("Name", "Sarath")
m.put("Company", "Strand")
print m
bout = ByteArrayOutputStream()
oout = ObjectOutputStream(bout)
oout.writeObject(m)
bytes = bout.toByteArray()
bin = ByteArrayInputStream(bytes)
#bin.write(bytes, 0, bytes.length)
oin = ObjectInputStream(bin)
print "### output"
m2 = oin.readObject()
print m2
Labels:
java object serilaization jython
Tuesday, January 19, 2010
Updates ...
Hyperlocal business directory MerchantCircle has been steadily growing as an online network and business directory for merchants in smaller towns to advertise to consumers. MerchantCircle has long targeted its site’s features towards merchants versus catering towards the consumer, as sites like Yelp and CitySearch do. Today, the network has hit a milestone by signing up its one millionth merchant. Not too shabby for the business directory, considering there are an estimated 15 million local merchants in…
updates
We first covered Wahanda , a social network for people who use spas and other “wellness” products, way, way back in 2008 but they've been busy. After raising £1.5 million to become the 'Amazon of wellness' it's now built the world's biggest vertical database of health and beauty spas via their Yelp-like social network. Wahanda now has 10,000 venues listed globally (4,600 in the UK alone), while main competitor, the US-based SpaFinder has just over 6,000. Wahanda soft launched in the…
Hyperlocal business directory MerchantCircle has been steadily growing as an online network and business directory for merchants in smaller towns to advertise to consumers. MerchantCircle has long targeted its site’s features towards merchants versus catering towards the consumer, as sites like Yelp and CitySearch do. Today, the network has hit a milestone by signing up its one millionth merchant. Not too shabby for the business directory, considering there are an estimated 15 million local merchants in…
Subscribe to:
Comments (Atom)