Thursday 21 August 2014

eventEmitter - Lets get that event emitted


eventEmitter a clone of node's own events.EventEmitter now compatible in Node and all major browsers .

Check out in Github .

Sunday 3 August 2014

Google app engine for java with eclipse and hello world

Installing stuffs in linux is not a joke , well apart from the addiction of solving the little intricacies which the kernel puts in our way sometimes you just can't get the kernel do what you want to do !


Having said that, i tried incorporating google app engine plugin with eclipse indigo which by default is available from the ubuntu software center. Some hours and few cusswords later i finally gave up and used juno.

So lets begin
1.Download juno from link
2.Running it is pretty cool , just click the executable and viola , but for the viola moment you need to have java installed.

sudo apt-get  install openjdk-7-jre
and
sudo apt-get install openjdk-7-jdk

3.Move the extracted eclipse folder to /opt
sudo mv eclipse /opt/

4.Create a eclipse.desktop file and move to /usr/share/applications with contents

[Desktop Entry]
Type=Application
Name=Eclipse
Comment=Eclipse Integrated Development Environment
Icon=eclipse
Exec=eclipse
Terminal=false
Categories=Development;IDE;Java;

5.Make a symlink at /usr/local/bin by

cd /usr/local/bin
and
sudo ln -s /opt/eclipse/eclipse

6.We are done installing juno , you can now search eclipse in dashboard or run via terminal


Now lets get a hello world running

In Eclipse choose help->install new software
and use https://dl.google.com/eclipse/plugin/4.2 to install
  Google Plugin for Eclipse (required)   
  and
  SDKs->Google App Engine Java SDK 1.9.7    1.9.7




Once that is done we need to download the GWT SDK from
download

Then go to window->preference->google->web toolkit
use the 'Add' button to browse the location where you have extracted and submit.

We are done , you can create projects using
file->new -> project -> google-> web application project

Good luck


Wednesday 9 July 2014

A webcrawler to detect 404 , using scrapy in python

Well i was recently presented with a problem of mitigating the ironic 404 pages for a web domain .

What best then to use a web crawler to crawl all the domain pages and observing the response !!

We shall summon scrapy spiders to do our biddings .

You can install it by

$ sudo apt-get install python-pip python-dev libffi-dev libxslt1-dev libxslt1.1 libxml2-dev libxml2 libssl-dev

$sudo pip install Scrapy

$sudo pip install service_identity

Then start the project by ,
$ scrapy startproject Project_name

This will create the directory structure :
Project_name/
    scrapy.cfg
    Project_name/
        __init__.py
        items.py
        pipelines.py
        settings.py
        spiders/
            __init__.py
           

Under spiders , create a python script with any name , and compose the soul of the spider

For the 404 you can use this





import scrapy
from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from scrapy.selector import *
from scrapy.item import Item, Field

class Item(scrapy.Item):
    title = Field()
    link = Field()
    response = Field()
    refer = Field()

class MySpider(CrawlSpider):
    name = "AcrazySpiderofDoom"
    allowed_domains = ["www.domain.com"]
    start_urls = ["http://www.domain.com/"]

    rules = (Rule (SgmlLinkExtractor(allow=(),unique=True)
    , callback="parse_items", follow= True),
    )



    def parse_items(self,response):
        item = Item()
            item ["title"] = response.xpath('//title').extract()[0]
            item ["link"] = response.url
        item ["response"] = response.status
        item ["refer"] = response.request.headers['referer']
        return item



Thats it, Give it life by

$ scrapy crawl AcrazySpiderofDoom


You can even make it enter the data to a csv by
$ scrapy crawl AcrazySpiderofDoom -o items.csv









Example screen grab of running the crawler for partypoker.com




Once completed (I killed it here) , it will also provide valuable statistics








Saturday 5 July 2014

The Demarcator facebook app , a new clutter free feed viewer

The Demarcator app presents the recent feeds on your wall in a categorized ,tabular way. Feeds from different sources are displayed in different tabs. It also allows a user to load more feeds directly in a particular tab (this feature is currently unavailable for personal feeds (user's and friends')). This is a beta version and we appreciate any feedback from you. (Send your feedback to ageekycrusade@gmail.com)


Lets cut the clutter !!!

Try it now :
https://apps.facebook.com/demarcate/

Friday 6 June 2014

Chrome extension for image compression

check out a cool image compression chrome extension , Free from chrome webstore .

Allows compression of images without compromising the quality.

Book mark graph visualizer chrome extension

Bookmark Viewer is a interactive graph based visualizer for chrome bookmarks, developed using arbor.js.

Get the chrome extension from the chrome webstore.

Chrome extension for playing Chess in 3D

Check out 3d-chess on chrome web store. Developed using various open source projects from Github.

Game on  ----  shāh māt


Monday 17 March 2014

Say2millions , Become a internet sensation overnight !!

Our latest gig ,

I'll get to the point straightaway

1.Like the facebook page

2. Every day we will pick a random fan to post a message

3.Think of a crazy viral message and post it

4.Become a sensation and start your own religion !!

Sunday 16 March 2014

Installing ruby on rails ubuntu 12.04


Lets start by installing a ruby enviroment by
runninh this on your terminal


$ git clone git://github.com/sstephenson/rbenv.git .rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bashrc
$ echo 'eval "$(rbenv init -)"' >> .bashrc

then

$ source ~/.bash_profile

Install ruby-build

$ git clone git://github.com/sstephenson/ruby-build.git
$ cd ruby-build
$ sudo ./install.sh


install ruby

$ rbenv install 2.0.0-p247

Then install rails

$gem install rails -v 3.2.16

You are done , welcome to the world of ROR

Monday 24 February 2014

Image based circuit simulation



Abstract:
In today's world of digitization time complexity, high accuracy and user friendly interfaces are key issues of any successful software system. A digitized image of any data or model drawn on paper is always useful in terms of content retrieval and analysis. This paper presents a new approach for circuit simulation named as Image based Circuit Simulation (ICS). ICS is a technique to convert sketched circuits into their digitized format and also generate a net-list for their analysis. Net-list is a kind of list based representation of circuits containing details of its components and their connections. Our algorithm allows a user generated image of an electric circuit to be simulated using open source simulation tools. Though the approach is applicable in various fields of engineering, we have concentrated its usage pertaining to electric circuit simulation.


Won the best paper award in a IEEE international conference , the paper summarizes the work done to render a net list for a user defined electric circuit image, which then can be used to simulate by a user selected simulator

Want to read more , check it here

Thursday 13 February 2014

Myshortflicks.com a portal for short film makers and addicts

Check out http://www.myshortflicks.com/ , it is motivated by all the amazing short films people do.
IF you are a movie maker, you can compete with like minded people on various competitions, Also you can get constructive comments from the audience by means of crowdsourced reviews.