Wednesday, May 5, 2010

Saturday, May 1, 2010

Produce and Consume Linked Data with Drupal!

Check out this SlideShare Presentation:

What is RDFa?

Check out this SlideShare Presentation, it explains the RDFa in a very nice manner.

Thursday, January 7, 2010

FAST FACTS ABOUT COFFEE

FAST FACTS ABOUT COFFEE...
http://theoatmeal.com/img/comics/coffee/header.jpghttp://theoatmeal.com/img/comics/coffee/1.jpghttp://theoatmeal.com/img/comics/coffee/2.jpghttp://theoatmeal.com/img/comics/coffee/3.jpghttp://theoatmeal.com/img/comics/coffee/4.jpghttp://theoatmeal.com/img/comics/coffee/5.jpghttp://theoatmeal.com/img/comics/coffee/6.jpghttp://theoatmeal.com/img/comics/coffee/7.jpghttp://theoatmeal.com/img/comics/coffee/8.jpghttp://theoatmeal.com/img/comics/coffee/9.jpghttp://theoatmeal.com/img/comics/coffee/end.jpg


Love Thy Coffee.... :)

Saturday, December 26, 2009

A Look at Motorola Droid

Motorola Droid seems to get a buzz around on its arrival into the mobile market...

What is it that makes us think it’s a great gizmo and will it overtake the I phone.

Let’s see some quick fact sheet on the Droid.

  • Android™ 2.0
  • CDMA CDMA 1X 800/1900, EVDO rev. A
  • SLIDER
  • Wifi
  • GPS
  • 5 MP camera
  • Email sync
  • MSOffice and PDF viewers.
  • Close integration with Google apps.

The overall composition looks very appealing who likes google products with motorola hardware, clearly has a list of much needed features like Wifi and GPS and email sync to office and certainly available unlocked so that I could switch over to any service provider.

I certainly appreciate that Motorola made it available as unlocked though exclusive offers are given by Verizon.

Motorola DROID

I like it hoping the price would come down much further to get my own Driod…

This site has an good comparison have a look http://www.infoworld.com/d/mobilize/mobile-deathmatch-motorola-droid-vs-iphone-side-side-875&current=2&last=1#

Wednesday, June 10, 2009

Advantage PostgreSQL XML power

All of us know the greatness of the opensource database PostgreSQL, which is shortly called as PGSQL. This article outrights the power of XML functions usage available in the postgreSQL database.

Lets take a small sample.

Create a small table

CREATE TABLE "user_add"
(
id serial NOT NULL,
"name" character(100) NOT NULL,
address character varying(100),
phone character varying (12),
city character varying(20),
CONSTRAINT id PRIMARY KEY (id)
)

now let insert some sample records for our further actions


INSERT INTO "user_add"("name", address, phone,city)
VALUES ( 'John', '10, East st,Chennai', '111-111-111','Texas');

INSERT INTO "user_add"("name", address, phone)
VALUES ( 'Peter', '11, West st,Chennai', '222-222-222','Texas');

INSERT INTO "user_add"("name", address, phone)
VALUES ( 'Mike', '12, North st,Chennai', '333-333-333','Newyork');


now if you do a select of the table as select * from user_add;

1 | John | 10, East st,Chennai | 111-111-111 | Texas
2 | Peter | 11, West st,Chennai | 222-222-222 | Texas
3 | Mike | 12, North st,Chennai | 333-333-333 | Newyork

now I plan to give these data for an web service request or an ajax request for a request of user by city.

Generally we will be getting this data and then will be formulating that as xml format, which generally is a very consuming and exhausting process, PostgreSQL provides a simplistic way to achive this using its power full xml functions

here is a query

SELECT xmlelement (name city,
xmlattributes(city as "city" ),
xmlagg(xmlelement(name user,
xmlattributes(name as name),
(xmlelement(name address,address)),
(xmlelement(name phone,phone))
)
)
)
as xml from user_add where city = 'Texas' group by city;

you should get the xml



So just inaf to be passed on directly. Sounds amazing....


Monday, August 4, 2008

Get Reviewboard running using apache.


ServerName yourservername
DocumentRoot /var/www/html/reviewboard
ErrorDocument 500 /errordocs/500.html
# Serve django pages

PythonPath "['/var/www/html/'] + ['/var/www/html/reviewboard'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
SetHandler mod_python
PythonHandler django.core.handlers.modpython
PythonAutoReload Off
PythonDebug Off

# Serve static media without running it through mod_python (overrides the above)

SetHandler None

# Alias static media requests to filesystem
Alias /media /usr/lib/python2.4/site-packages/django/contrib/admin/media
Alias /css /var/www/html/reviewboard/htdocs/css
Alias /images /var/www/html/reviewboard/htdocs/images
Alias /scripts /var/www/html/reviewboard/htdocs/scripts
Alias /errordocs/ /var/www/html/reviewboard/htdocs/errordocs




The /var/www/html/reviewboard is the path of the my review board installation and
/usr/lib/python2.4/site-packages/django/contrib/admin/media is the path of the django installation.