Wednesday, January 20, 2010

Donate for Haiti Victims.....Pray for them

Guys,

Its really shocking to see the devastating after effects of the Haiti earth quake.
Even before recovering from last weeks shock, they were hit by another one today...

Request anyone who reads this to donate generously to Haiti victims in what ever way they can. No amount is small amount and even a penny or rupee can help them feed their hunger..

I sincerely hope that they recover fast from this horrendous misfortune.

Thanks......

Monday, January 4, 2010

2010 after a year that has gone by..2009

I wish all my friends a happy new year.

Its been a long time since I updated my blog. I havn't really updated my blog for more than an year now.everytime I update my blog i feel like i should do it every day :)....

2009 a Year gone by....

Positives:

I should say 2009 by far is the most exciting year of my life till date...started with me in ayyappa deeksha and ended with me partying in times sq with my frnds...

Covered all seasons of Dexter, Californication ,How I met your mother,Big Bang Theory..

I was in Boston for more than 9 months and really enjoyed working there in one of the complex projects in our company. The project is completed successfully now and I am back in vacation mode :)

Got settled in US, bought a new car(My first liability) here Mazda 3i 2010 on my B'day as a gift to myself :D and driven more than 1000 miles in less than a week.

Setbacks:

hmm.. I have emotional setback but now I am back to normalcy, thanks to my childish attitude and beers :D

Looking forward for 2010.

Well for now I am staying in SFO for 2-3 weeks on business purpose and then might work in Chicago, New Jersey, Boston or Phily(Will get to know next week)...

Started watching south park(Everyone should cover this series... hands down to the author...)

I have been to the 17 mile drive on the first week end of the new yr..It's the most romantic drive that one can have..just that i do not have a gf with me( Driving alone watching couples is the next best romantic thing..:D)..Will drive again as a couple next time for sure...

Resolutions:

I have to gain weight this yr no matter what..thats it...damn u..sick of hearing that i am skinny...

Once again happy new yr..
Will be back again soon...everybody have fun....

Sricharan.

Thursday, April 3, 2008

DJango comments.....

OK...

Well of late I have starting on Django to develop a website .
Everything went well till we came to a point where in we got to use the comments module and tell you its such a pain in the ass to find a good tutorial which will explain how to use Django comments.

After struggling for a bit I could learn how to use it though.
As a developer I would like to learn by seeing some realtime examples and unfortunately there are not many good sites explaining the usage of Comments module of Django.
So I decided to write one on my blog for the benefit of those who want to learn Django Comments.

In this blog I will be explaining how to use the Free comments module of Django.
Ofcourse some or most if it is from the official djangosite www.djangoProject.com

I will be explaining the use of ratings in the coming blogs.I assume you have got the basic knowledge on Djando to build the app, run the server and syncdb.

Ok lets start building the movies app with comments.

In this exapmple we will be developing a movie application where in we will be displaying all the theatres the movie is played . and when the user clicks on the individual movie link the movie detail page is displayed where the user is allowed to post comment

the application is named movies.
The following are my models.py, views.py and forms.py

models.py

from django.db import models

# Create your models here.
class Movie(models.Model):
name = models.CharField(maxlength=60)

def __str__(self):
return self.name

class Theatre(models.Model):
movie_id = models.ForeignKey(Movie)
name = models.CharField(maxlength=60)
timings = models.CharField(maxlength=60)

def __str__(self):
return self.name


____________________________________________
views.py

# Create your views here.
from django.shortcuts import render_to_response
from django.http import HttpResponseRedirect
from forms import MovieForm
from movies.models import Movie
from movies.models import Theatre
from django.contrib.comments.views.comments import post_free_comment
import datetime

def movie(request):
current_date = datetime.datetime.now()
return render_to_response('index.html', locals())

def movieinfo(request):
#current_date = datetime.datetime.now()
if request.method == 'POST':
mname = request.POST['mname']
m,created = Movie.objects.get_or_create(name = mname)
t,create = Theatre.objects.get_or_create(movie_id = m,name = request.POST['tname'],timings = request.POST['timings'])
return HttpResponseRedirect('http://127.0.0.1:8000/moviedetail')
else:
form = MovieForm()
return render_to_response('movieinfo.html', locals())

def moviedetail(request):
movie_list = Movie.objects.all()
mov_dict={}
tlist = []
for mov in movie_list:
theatre_list = Theatre.objects.filter(movie_id = mov)
mov_dict[mov.name] = theatre_list
movname_list = mov_dict.keys()
return render_to_response('moviedetail.html', locals())

def movienext(request):
moviename = request.GET['movie']
m = Movie.objects.get(name=moviename)
return render_to_response('movienext.html', locals())

def my_post_free_comment(request):
if request.has_key('url') and not request.has_key('preview'):
response = post_free_comment(request)

# Check there's a url to redirect to, and that post_free_comment worked
if len(request['url'].strip()) > 0 and isinstance(response, HttpResponseRedirect):
return HttpResponseRedirect(request['url'])

# Fall back on the default post_free_comment response
return response

return post_free_comment(request)
______________________________________________

forms.py

from django import newforms as forms
from models import Movie
from models import Theatre
from django.newforms import form_for_model

TOPIC_CHOICES = (
('general', 'General enquiry'),
('bug', 'Bug report'),
('suggestion', 'Suggestion'),
)

class MovieForm(forms.Form):
mname = forms.CharField()
tname = forms.CharField()
timings = forms.CharField()
________________________________________________
in the urls.py file

add the entries

from movies.views import my_post_free_comment
from django.contrib.comments.models import FreeComment

and in the pages section of urls.py add

(r'^comments/postfree/', my_post_free_comment),
(r'^comments/', include('django.contrib.comments.urls.comments')),

Note:The urlsfor the normal pages are not added.It is required to add the pages by the users as per their requirement.
_______________________________________________________________
in the settings.py file add the entry under the installed apps module.

'movies',
'django.contrib.comments',

This will add the comments app and the movies app to your project.

______________________________________________________________

The last item is the templates module

In order to run the comments application

you need to have the following html files in the comments directory of your templates file.

freepreview.html
posted.html

These files are available from the official djangotutorial located at
http://code.djangoproject.com/wiki/UsingFreeComment.
_____________________________________________________________________

to set up the app to run the movies application you also need the following files under your template directory

index.html
moviedetail.html
movieinfo.html
movienext.html


I am not able to display the above html pages in the blog .. but one needs to embed the following code in the page where comments neds to be displayed

{% load comments %}
get the code from example of comments from the first Example of Django official tutorial at http://code.djangoproject.com/wiki/UsingFreeComment and paste it here
--------------------------------------
once you have the above things setup , you are ready to run and test the application..

first run
"python manage.py syncdb" to set up db
then run the server using the

"python manage.py runserver"
once the server is up without errors , in the browser enter the address

127.0.0.1:8000/movie/

form there you can proceed.If you have any doubts please post them as comments and I will try to answer them asap.

Also, please dunt foget to read the basics from the official django site http://code.djangoproject.com/wiki/UsingFreeComment.

PS: if required I will send my entire application when requested in comments.

Happy reading,
-Sri.

Wednesday, November 28, 2007

anukokunda oka roju



sunday nite padukoboye munchu india nundi friend apude online vachadu..(appati varku okadine hotel room lo kurchuni hayi ga tv chusthu njoy chesa rojanta)

frnd:hi kaka
charan:mama hru?
frnd: me doin gr8 kaka as usual poddunna 4 ki vachina party kelli slept and just woke up..
charan: kool buddy(pedda nenedo akkada potugadini ayinattu)
frnd: inka
charan:em le kaka nidra vastondi sleep veyali malla maatladudam
frnd:ok bye



padukoboye mundu anukunna manaki kuda oka pori unte baagundedi ani, alaa ammayila gurinchi aalochisu aalochistu padukunna.entha sepu padukunnano teleedu poddunna 7 ki alarm mogindi.leva buddhi kaaledu manchi chali , malli podduna lechi good morning cheppatani gf unte baaguntundi kada anipinchindi, aina manaki avasarama ani saddicheppukuni ready ayi breakfast chesi 7:43 ki bustop lo unnanu(vaaraniki min two days 7:30 ki lestanu , aaroju snanam and breakfast undavanamata).7:45 bus pattukuni office ki bayalderanu.

Malla bus lo malli mind loki ade topic vachindi,naaku enduku gf's lera ani..
appudu flash back loki vella ..

adi 8th class nenu first bench lo kurchene vaadini school lo,pakka row lo first bench lo inko andamaina ammayi(pori) kurchuni undedi. appudu manasu lo anukune vaadini neneu 3 lekkapette lopala aa ammayi nannu chusthe she is in love with me ani.correct ga two lekka pettagane aame naa vanka chusi navvedi anthe naa anandaniki inka antu ledu(ila oka sari kadu prati sari ilage jarigedi enduko naaku kuda teleedu). appatlo ide love anukuni anandapadipoye vaadini.aametho mariiii avasaramaithe teacher ichina homework gurinchi maatlede vaadini anthe(maatladaanu anna anandam kosam).sare 10th class lo vere school ki maaranu. eemeni vidichi vellipotunnanu ane baadhatho undevadini roju.ee lopala princeton junction busstop vachindi daily coleague ikkada bus ekkutadu , eeroju ekkaledu.(waste gadu late ga lechi untadu ani tittukanna)

malli bus start kaagane flashback start.
kotta school vellagane first day ne inko andamaina ammayi class lo kanipinchindi. kaani pakka seat lone maa relative(sister varasa) kurchuni undi(appati nunche naaku sani start).maatladalani anipinchina maatlade vaadini kaadu other than studies aa ammayitho.emanna ekkuva maatladithe maa sister dwara intlo telisipotunde mo ani bhayam.aa ammayi inti deggara ground lo cricket aade vallam .appudu bowling chestu manasulo anukune vaadini ee ball veselopala aa ammayi balcony loki vaste nannu love chestunnattu ani.ball vesi chuse lopala aa ammayi balcony lo undedi.inka naa anandaaniki rekkalu vachevi. alla anandapaduthu aa ammayitho konchem close ga maatladuttna(ofcourse studies gurinche) tarunam lo maa frnd gadu aa ammayini ishtapadtunnattu naaku cheppadu . anthe heart break inka. emi cheyaleni , evariki cheppukoleni paristhithi.anthe 10th ayipoyindi.

eelopala bustop vachindi sare bus digutu driver ki thank you cheppanu(ikkada ala andaru cheptaru so nenu kuda cheppanu). malla bus stop nundi office potu same topic gf's gurinchi aalochinchanu intermediatte lo daily busstop nannu chue pori(ammayi) gurinchi aalochistu aha aa ammayiki propose chesunte entha baagundedi anukuntu office loki vellanu.

ee lopala maa collegue naakante mundu office ki vachesadu(waste gadu tondaraga lechi vachesadu ani manasulo tittukunna).sare konchem sepu pani chesi coffee break ki vella
appudu maa coleague valla gf tho phone lo maatladutunnadu.yeahe manaki aina porilu avasaram ani saddicheppukuni coffee taagi vachi pani cheskuntu gtalk lo maa frnd gadini gelika

vaadu dora babu-veedu puttaka munde veediki telsu veedu america potadani.
basically veediki kuda gf's leru,veedu naa engg class mate.

sare ani kelika

charan: mama em doings
dorababu: em le be college assignment unte chestunna(veedu MS chestunnadu)
charan:em ra nuvvu eppudu office anna lekunte assignments anna chestuntav mari ekkuva chadvaku be.
dorababu: antha ledu beta , intlo tv and internet ledu so timepass kaavante office ki anna or lab ki anna raavali.
dorababu: ardham ayinda saale
charan: ok ok ok
charan: mama uni lo any poris patayinchinava?
dorababu: arey telugu baasha lo naaku nachani oke okka padam 'pori'.
dorababu:valla gurinchi manam maatladatam avasarama
charan: ok anna
dorababu:arey omaha lo e weekend om shanti om
me: maaki kiri kiri
me: mama mein bol raha hu potti ko leke jaa
dorababu: arey mogodu ananaka illanmti aasalu undadam thapu kadhu
kani limits lo undala
ardham ayinda?
charan: ayindi anna

paina convesion lo vaadi last statement chusthe meeku vaadi frustration level ardham ayindi anukunta kada.


ee lopala maa manager pilichi charan , did u get a chance to work on the query annadu
hey , i am still working on it and will update you asap ani response ichanu .(ikkada andaru desilu cese pani ide maximum)

ee lopala naa gtalk lo inko ammayi online vachindi. eemeni chustene naaku terror(terror endukante eeme naaku rendu sarlu pedda twistlu ichindi). ee ammayi naaku engg lo parichayam.

eemeni kuda first time chudagane 10th and inter type lo love at first sight ani feel ayyanu.engg kada previous experiences laga tappulu cheyakudadu ani rechipoyi propose chesanu.kaani propose chesina tarvatha telisindi naaku baaga kovvu ekkuvaindani (scene meeku ardham ayindi anukunta). naaku ippudu maa dorababu cheppina maatalu vedalla vinipinchayi(dorababu: arey mogodu ananaka illanmti aasalu undadam thapu kadhu
kani limits lo undala.
ardham ayinda?
me: ardham ayindi mama.)ala engg ayyevaraku aa ammayi kanipinchinappudu alla hurt ayyanu enduku ala chesav ra waste fellow ani.

ee ammayi already committed ani naaku naa engg sources valla tarvatha telisayi(inka manam assalu pattinchukoledu).
engg lo ardham ayina neeti: ammayilu manakante chala ekkuva aalochistaru.manam oka angle lo aachiste vallu 100 angles lo aalochistaru.
"ammayilatho pettukunte baasha kuda badmaash ayitaadu."

sare as usual ee ammayini light teskuni malla sare job lo evaranna dotakkapotara ani positive thinking tho job lo join ayya.kaani join ayyina tarvatha naaku ardham ayindi naa leg power. team ninda maga purugule. okka ammayi kuda ledu alaa baadha paduthu rendellu gadipanu.

job maaranu. manchi hike vachindi + US pampista annaru company vallu. ila aananda padutunna tarunam lo oka sunday naadu naaku oka phone vachindi. anthe naaku heart attack. em maatladalo ela react avalo kuda ardham kaaledu.

aa phone maa inko relative(sister) deggara nunchi vachindi. maa sister oka software company lo pani chestundi . phone chesi neeku palana ammayi telusa ani adigindi . telusu ani annanu emi ardham kaaka.aa ammayi ippudu naa room mate . nee gurinchi naaku antha cheppindi ani maa sister andi . anthe naa fuse out, egiri tannayi nannu.
intaki aa palana ammayi evaro kaadu nenu engg lo propose chesina ammayi. sare ee vishayam evadiki cheppku naa paruvu potundi ani batimiladu maa sister ni kaani apatike aalasyam ayidi . jaragalsina anardham jarigipoyindi. maa sister ee vishayam maa relatives ki cheppesindi. innellu kastapadi kutumbam lo sampadinchukunna peru oka nimusham lo matti kalisipoyindi.

so mitrulara deeni valla meeku telsina neeti

1.school lo evarinanna istapadithe appude aameki cheppeyani, aalasyam cheyakandi.
2.intermediatte lo evananna nachite konchem matladi bagoggulu telsukuni propose cheseyandi.
3. engg lo evaranna nachite aametho maatladi , amegurinchi telsukondi kaani meeru maatram propose cheyakandi.

sudden ga venakal nundi evaro pilustunnatu vinapadindi, maa manager inko 1/2 hr lo meeting annadu. ventanu anni aalocanalu out.
query complete chesi vaadiki ichesi inka bayalderataniki ready ayyanu.

ee lopala maa colleague tho
me: mama ivvala maa room ki raa be
ninna monna okadine unna tikka lestundi maatladakapothe evaditho(hotel lo okadine unta anamata).
colleague:aaaa vastanu kaani naakenti????
me: nee ayya edvaku velthu velthu mandu konukkuni veldam
colleague: oks kool buddy (veedodho potu gadu lada).

vastu vastu bottle konukkuni intiki vachi iddaram 3 pegs taagam tarvatha tinnam.vaadiki nidra vachi padukunnadu.nenu ila blog update chesi chala rojulu ayindi ani raastunnanu.ee blog raastu inko iddariki cheppanu


ee blog raastu inko idariki cheppanu ee sangati, vallu kuda impress ayyi valla experiences raayatm start chesaru. adi avangane links ee blog lo pedatanu so that u can also njoy their experiences.

alrite the two persons that i am talking about have completed writing their blogs .Here are their blogs address and remember that the most precious things for the blogger is the comments as it encourages him to write further thinking that the blog written by him
made other people think and laugh

Seenu
Opesh

till then have fun.

ee bolg chadivina vaarandaru comments roopam lo tama pratispandana teliya cheyavalasinadiga manavi.

-charan.


Note: ivi evarini hurt cheyalani raayaledu . just for fun . chadivandi, njoy cheyandi marchipondi.

Sunday, July 1, 2007

1 week to go.........
















The decision has been made... and I joined a s/w company in Hyd.

The initial days at the company have been wonderful.No work :) was assigned to me yet ,thanks to the training programs that were being held.

And i will be flying to US this week end. that's pretty cool :).

This will be my first experience of working directly with the client in the client location.Work apart, me enjoying with every thought of being on land of opportunities and hoping to have a lot of fun. Also, heard that a beer can is cheaper than a water bottle[:P]

This month is full of surprises with lots of my B'Tech memories, some expectedly and some unexpectedly coming back to me...Believe me guys the world is a very small place and you keep meeting people again both and again and again, no matter you like or not..

I will update the blog once I land in US.

-Charan.

Monday, May 14, 2007

When everything falls on your plate at once.



Its been a while since I updated my blog.....










I must say that lot of things are happening at this point of time when I decided to change my current job profile.

As I stated in my previous post I planned to do MS course this fall and applied for UNI's.

I got admit from most of the Uni's that I applied, but did not get any sort of AID.
Since I havn't received any sort of aid I decided to test my luck in INDIA and started aplying for better jobs here.
Motto behind applying for Job: Lets not spend money when I am capable of earning :).....

Now I got couple of good offers one in Hyd, one from Pune etc...
One fine morning to my surprise I got a call from Uni saying I got the Graduate Assistantship for MS-MIS course that too in Las Vegas :).

hmmmmmm.....

All the offers seem to be tempting and the most difficult part is to choose one that best benifits me rite?

So me still in the process of choosing one and will update you on the decision is made.

you guys can help me out with your advice using comments........

-Sricharan.

Tuesday, January 9, 2007

Welcome 2007....

Hi everybody,

I wish you all a happy and prosperous new year.

Intro:
A typical hyderabadi.
Bindaas going person.doesnt take anything seriously.
doesnt care or crave for anything.
Thats how i am till 2006.

Currently i am working as a software developer and i am enjoying every part of developer life coz i know i will not be a developer after 2007.
I know you guys must also have many resolutions for new year and i have mine too.Here are a few
1. Quit smoking .
2. Increase boozing.

lol apart from those major two i plan to do channelize my carreer path as i am seriously considering a career shift.
I Will join MS in MIS course in 2007 Fall and focus on management of software related projects (mostly related to consulting.).

Last but not least the most important of them all,

My friend chundi has got some big plans and i will put most of my effort on implementing his palns and making them a success.

In 2006 we started our first website www.irani-chai.com.
need less to say i was a lazy bugger and chundi did most of the stuff (my contribution is around 1%).
I would like to change that in 2007 and I am planning to concentrate on a completely new career path.

I hope 2007 will be a challenging year for me and i am very much ready to take the challenge.

Lastly there are coulple of blogs already created by me ,but this should be the ultimatum.

I am planning to update this blog twice a week.
It will be entertaining both for you and me , and also will be a kind of reminder to me for implenmenting my new resolutions.

-Sricharan.
















Google