Search the site :

Chennai to Banglore a whole new experience

Its been 1 month now since i moved to banglore.
I thought of sharing my awesome experience in Indias largest IT hub.

How i started my journey

Earlier in 2012 I started working with Reduce Data in chennai.
The work was really intresting i got a mentor like Asif Ali, and was really enjoying my work.
Initially chennai was good with lots of activities going arround with @chennaigeeks.
But banglore have always been tempting with its super cool climate and offcourse lots of
activities with many geek communities in banglore.

Something that i had never experience before:

I was coming back from my home town @Durgapur in Westbengal(India).
It never happened before in train i heard someone explaining about MySql transactions
to his wife. you don't find such companinons specially in trains , Atleast i never got similar co-passengers in my way to chennai , Soon i realized its banglore dude, and an intresting journey is about to start.


Finally @14th dec,13 I was in banglore.

Since my arrival in banglore it had been a crazy journey meeting geeks,
entrepreneurs and attending hackathons. Some of my experience are worth mentioning.

#Waartaa

It all started with hacking for #waartaa an Irc web-client as service . I met @rtnpro. he guided me through on learning node and meteor to get-started with #waartaa. Experimented with few new technologies "NodeJs" , "Meteor" , "Mongodb".

#A bit of scraping work with @Rashmi Ranjan Padhy

I was quite excited to meet Rashmi ranjan founder of banglore startups and currently trying to launch his new startup http://techchamp.co .With Rashmi, I started with something offbeat to my previous experience . I started on to scrapping reddit.com and Hacker news with beautiful soup [python]. .
Note: Yes offcouse following there robots.txt.
Disclaimer: Hacker News went down on 6th january 2014 that was not us :p.

#hackathon 31st december geekNight by @hasgeek"

Soon 2013 was about to end and in geek style.
I along with @rtnpro and @sayan_chowdhary went to geeknight organized by @hasgeek.
So we went on hacking with our #waartaa project.
@sayan gave a wonderful demo :
Online Banking Login

My new nikola website

Write your post here.

set your maximum time range of selection for DateRangePicker.js

I wanted to create a date range picker where we i can set maximum dateselection range of 3 months so i edited the Daterangepicker.js :

let us first look at the date range picker you can add the beautiful date range

selector by adding this code

HTML:

input type="text"

jQuery:

$('input').daterangepicker();

now you have to edit daterangepicker.js :

i have setted the max date selection range as 3 months you can make it

to any of your choice here is my code : http://jsfiddle.net/W2YLr/

what i have edited :

i edited the datepicker option section as :


if(rp.find('li.ui-state-active').is('.ui-daterangepicker-allDatesBefore'))
 {
  var edtemp = new Date(new Date(ed).setMonth(ed.getMonth()-3));    
  rangeA=fDate(edtemp);   
 startingDate=edtemp;
  endingDate=ed;                    
  }

you can find some -3 and +3 codes inside the date picker you can change this values with

how many months you need it .

i also edited the hideRP() function so that now you can get the startdate and enddate

through jquery call of the event onClose


$('input').daterangepicker()

{

onClose:function(startdate,enddate)

{

alert("start date:"+startdate+"end date:"+enddate);

}

}

Call a java function from a javascript function [play framework]

There are many ways to pass data and acess data from a java code and a javascript functionwithin play framework.But i was in a condition where i was to exchange

data from a javascript to java code and from java code to javascript.I figured out

it to be done using simple ajax code.

my ajax code :

$(document).ready(function(){

$("#ourl").keyup(function() {

var surl=$("#ourl").val();

var listAction = #{jsAction @UrlGeter.genurl(':url') /}

$.get(listAction({url: surl}), function(data) {

$("#newurl").replaceWith(data);

});

});

});

you can see the jsAction object here is the action invoker which calls the java function from

UrlGeter controller class

now you need to create a java function genurl() into the controller UrlGeter as:

public static void genurl(String date)

{

render(date)

}

note: String is more compatible argument type

now create genurl.html

${date}

include your controller into routes of your application and you are ready to go

whats new in play framework

how much time would you take to make a complete web app ?? -> use play you are just a command away <-

programmers are working massively with great work load .

they need frameworks to create a structure and to take care

of all the routes and security purposes .programmers

are lazy and sont want to code all this again and again

so to take care of all this we always have good frameworks

like django,.net,ruby on rails etc .

whats the basic difference on all this ?

The difference lies not on programmers taste on language choice

they are not an issue .But the main issues are

->scalability

->security

->robustness

->platform

->deployment cost and issues

points to support play framework is better than others :

->its highly scalable

->with new japid templating engine its supports massively fast loading of pages

->supports scala , java commonly known languages

->rythm template

->dynamic objects passing to html files using json

Though play is new in market its already sucesfull .

Hope it serves more and people continue its use

Starting with play framework

Play framework is new and in demand .I started a week back and i find it a awesome experience working with it.

Installation|setup steps:

-> just download it and unzip your play folder into some directory for

convinience let us take it as /usr/local/

->Path setting :

now you have to export your play folder path to your bash resource

edit it as

$ gedit .bashrc

and add your path

JAVA_HOME=/usr/lib/jvm/jdk1.7.0

export JAVA_HOME

PATH=$PATH:$JAVA_HOME/usr/local/play-1.2.4/

export PATH

note: you have to add java home to your bash for proper working of play

run play :

you can offcourse look at the documentation

play 2.0.* onwards the documentation and usage have changed so i would not write any usage instrucion it would be better to refer the docs

Hands on windows phone 7 apps

started buildin some of windows phone7 apps for Iunlockjoy contest of microsoft

you may find my published apps in the market place by this link

http://www.windowsphone.com/en-IN/publishers/kaushikgandhi

some posts which inspire me

    More posts about:  
  • foss

Hey is FOSS really worth it .???

.I get this question over and over again ..I got this wonderful post you must see if you have same doubt !!

Will Foss get me a Job?[slideshare id=5781805&w=425&h=355&sc=no]
What should a computer science engineer do to get a job !!!
I had this question for a real long .And it really haunted me till i saw this post :
http://matt.might.net/articles/what-cs-majors-should-know/

Getting ready for gsoc 2012

I was not sure if i could participate this year being a final year student in college .But gsoc 2012 #faqs made it quite clear , that i have nothing to fear.

I am in to gsoc preperation and now going quite messy .I have not been in touch with foss for quite a time now .Started off with looking arround with django (thought this could be a best option) .There has been a real good buzz about Askbot and Transifex Sayan chaudhary a mate has really been in to this and he has nailed it quite good .

I am also thinking of looking into Gnome 3.0 bugs ,may be i can get a good option over there too. I have now started of to read the django book in mean while and gathering more information about previous projects related to django .

Lets hope for the best thats what i can do right now .

hello world

hi this is kaushik .I am making this blog to update about my works in 2012 and upcoming years !!

    Contents © 2014 Kaushik Gandhi - Designed and built using Nikola, and hosted on github
    Creative Commons License BY-NC-SA