Today I was building a simple authentication system for a web project of mine using CodeIgniter with Dx auth Library. and found a bug in the Dx-auth code when used with gmail as smtp server. i was breaking my head for hours to fix it and finally I got the solution. so here is the small tourtial as to how to fix it.
I was using windows vista, Xampp server (php 5.2) with mysql database.
first varify your SMTP connection details Especially port its not 25 (default) but its 465.
Even after you giving all the right configuration details for your SMTP connection like
$config = Array(
‘protocol’ => ’smtp’,
’smtp_host’ => ’ssl://smtp.googlemail.com’,
’smtp_port’ => 465,
’smtp_user’ => ‘username’,
’smtp_pass’ => ‘*******’,
‘mailtype’ => ‘html’,
‘charset’ => ‘iso-8859-1′
);
your code still might not be working and you may get activity time out by localhost or SSL errors . the exact reason i still could not figure out
But Here is how you can fix it
1. go to System\application\libraries\DX_Auth.php
search for the function _email($to, $from, $subject, $message)
$this->ci->load->library(‘Email’);
$email = $this->ci->email;
$email->set_newline(“\r\n”);
$email->from($from);
$email->to($to);
$email->subject($subject);
$email->message($message);
return $email->send();
as you might have observe the line $email->set_newline(“\r\n”); might not be present in your function so just add the line and problem is solved. I found this solution at this place check the video and comments section .
feeling bored today so thought of sharing some reviews about the Books, and documentaries
Books
- Seeds of terror I wrote a review for this check out the Hiperlink
- Indian Caste system A study by Hayavadana Rao : This is a very small book about the Cast system in india. the book tells about how caste sytem got started and how its been followed from the centuries and book gives analysis about different Theory proposed by different people both Indian and foreigns about the origin of Caste sytem. he also talks about Why the bramins are at the top and how they tried to influence the society. there are some references about Buddha, shankeracharya, and there role in caste system. he compares caste system in north India and south India I got to learn many things from this particular chapter. overall the book is very informative its may not be for a light reading but its for the people who want to do some research into caste system.
Documentaries:
Germs Guns and Steel : A friend of mine Sudeep has suggested me to read this book but i did not get it and luckily i got the documentary made by National geographic derived from same book narrated by Jared Diamond the author of the book, The title of this thing can also be called as “A short history about everyone for the last 13,000 years”. have you ever got a doubt that why only Europeans have concerned the whole world and why not Indians or Africans. Are they gifted human beings ? why there is lot of inequalities in human societies like Africans are poor and less technologically developed and why American are highly developed. this documentary give the answer about one simple question even though we all started from the same Origin but why there are inequalities in the societies. the documentary is divided into 3 episode of each 1 hr i guess. check out wiki for more info
The Story of India : The Story of India is a BBC TV documentary series, written and presented by historian Michael Wood, it comes with 6 Episodes. Wow its amazing Show with lot of info abt the history of India present in a very wonderful way. I came to know many new and great things about India If you people don’t know following things then you have to watch the Show.
- There is a fire festival which is being celebrated in india(kerala) (i don’t no the name) where they sings songs with no Words only sounds like the birds and owls make its originated 10,000 years back when there was no language discovered in this world still to this day its followed in kerala in the very same way its done 10.000 years back. this thing you can see only in india
- The harappa is the biggest city in the world at that time.
- there is one village in Tamil Nadu where the entire village is having the genome which roots back to Africa (the African genome is preserved in those people because those people married only people from there village) so they say south Indians came from Africa and North Indians are from central Asia (Aryans)
- Do you know india is the richest country in the world in the medieval period with the Largest GDP in the world.
- Do you know about Soma drink.
- cruelty was ashoka and mugals.
- people died at the time of India and pak division and the things you don’t know abt Indian freedom struggle
- war of the worlds at gaugamela ,greatness of chandragupta maurya, chola kings, Kushan Empire,Raja Kanishka
- and lot more abt India.
I feel this is must watch for all Indians and If you like the idea of watching a really good National Geographic article brought to life, with the lush photography, fascinating facts, sense of discovery and slight superficiality that implies, you’ll love “The Story of India.”
Read the review of Story of India at NYtimes
Emotional life :This Emotional Life is a three-part PBS series that explores ways to improve our social relationships, cope with emotional issues, and become more positive. its very good i learnt lot of things form this show and i rate it 4/5 BTW you can see the real person who has asperger’s syndrome in this show (shahrukh khan MNK) this show is all about social relationships (friends Family and Love) , Effects of stress and depression, what makes people happy and how can we be happy.
Today I would like to share with you how Hackers can hack your Password when you are local network or wireless shared network. (like the Wi-Fi at Starbucks, CCD or in a hotel).
So first I would like to tell you very quickly some thing about how the data you enter on a web page is communicated with the web server.Basically there are be two protocols which can be used to talk to a webserver, they are Http and second one is Https. Https is the secured one its used SSL certificates to encrypt all the data you enter on a webpage and sends to the web server ideally speaking it is very secure and unbreakable until and unless a very HiFi organization (like NSA ) get into the work, they cannot break the code and crack your password.( assuming they are trying to hack using network packet sniffing)
There are two ways the web browser can send info to the webserver one method is GET and second one is POST so if you want to know which one the form is using just open the code and see it will be written some thing like <form action=”some link” method=”Get”>
Now the difference between the two is GET will simply append the parameters inside the form to the url and send it to server some thing like say for example somewebsite.com is having a form like userid and password and a submit button and it uses get method so when you enter userid and password then click submit then the url will be appended like [somewebsite,com/?userif=userid_you_enterd&pass=Password_youentred] the user-scores wont be there i included for better readability. normally any form which asks userid and pass will not use get method. so the second method is POST post also does the same thing but it wont append the parameters in the url but send them to the server in the background without user seeing it. and remember POST do not encrypt your password if there is any way we can see this post message which browser is sending then we will be knowing the password. In this post i will explain you how to see the post message that the browser is posting to the server.
Example of GET Method. check out google : search some thing and see the url.
Example of POST Method. Facebook and all the webpages where Userid and pass is asked.
Now to see what browser is communicating with the server there is a nice plugin for firefox that is live HTTP headers Plugin.
- open your firefox browser go to this link : live HTTP headers
- Install that Plugin
- Restart firefox.
- go to the menu section of firefox tools>livehttpheaders click on it
- A new window will open and there is small check box at the bottom named as capture. check it.
- minimize the window and keep it like that .it is going to capture all the data the browser is sending and receiving.
- open Facebook.com in firefox and enter your id and password click submit. thats it.
- Now go to the window that you have minimized before. it will show some large no of lines with out much meaning for you
On top of this window there are four small tabs Headers,generators,config,about. click on Generators there you will find all GET and POST messages. you see the post message in it you can notice id and password
of your facebook account Shown in Plane Text
Here is the screen shot of how it looks the red colored one is My id and Password
I know you people will try to crack mine so i have that pass
.

So this is how your browser send the data.
This data that you are sending from your system to your local router to the facebook server can some times to taped and the hackers look for such Packets and try to crack your password.
Here are some tools that people use to sniff the data from the local Network or wireless network. these tools will give you all the data that local network users are sending and receiving through a router so it simply works like the httpliveheaders for the firefox but for netwroks ( some of the tools are Kismet Netstumbler Nmap )
Next time when you are brousing on free unsecured network be carefull
Note: As far as my knowledge is concerned about internet that about things presented are correct Please let me know if i made any mistake or Error. and Please take this article as a guide to protect your self from hackers and not to Hack other Passwords.
I recently read the book Seeds of Terror by Gretchen Peters,a good book to know middle east and terrorism. In this book she mainly talks about how terrorists get funds and how they operate, and about why America and NATO are failing in Afghan. and the book also tells us about the power of poppy, as WSJ writes Poppy trade in Afghan witnessed three stages ( good, bad and ugly).
Good: In 1980 at the time of cold war opium funded the holy warriors who fought against invading Russians which is backed by US. Afghan’s used the poppy, Russian soldiers hooked on drugs and later Russia need to call off the battle. ( at this time it was said that CIA was involved in drug trade and had dealing with drug smugglers)
Bad: In 1992, the holy warriors came to power when the Russians left Afghanistan. They grew poppies at a phenomenal rate and used the profits to underwrite their internecine killing, support terrorist training camps and fatten their overseas bank accounts.
Ugly: From 1996 to present is the ugly stage with the Taliban and Qaeda being funded by the Drugs(that is what she says).
She stresses on the point that war on terror can only be won if the high level drug traders are bought to justice and the poppy farmers are shown the alternatives. The book also gives info about how ISI, pakistan and saudi are involved in the drug trade and the economics of it and how the black money is circulated and where most of it ends up.
Over all I get to know many things about Terrorisms,American Tactics, Policy, poor situation of Pak in this issue,plight of afgan farmers, pak stock exchange, and many more thing .
Finally I would like to tell you about the author. First of all I was awestruck when I saw her Picture and wondered how such a beautiful women has dared to go to Afghanistan to do research on terrorism . She is really great. I admire her. She went to afghan in her twenties, did interviews with military officers, local farmers, and even went to the houses of some of the top terrorists.
Thanks Harish Kumar Tungaturthi for sharing this book with me :)
Here I am posting my most favorite poem. I feel this is how a place of learning should be. The first time when I saw this poem , was on a wall at the Delta college in Hyderabad(this is where i studied my 10+2) . I understood the meaning of this poem at that time when Srikanth sir and Ravi kumar was teaching me .I can say that place is exactly like the one mentioned in the poem and till date it is the best part of my learning life. Those 2 years at delta I can’t forget. All thanks to srikanth and ravikumar sir. Very soon I will be posting about best teachers in my life you can read about these people over there
.
Here is the poem
Where the mind is without fear
and the head is held high,
Where knowledge is free;
Where the world has not been broken
up into fragments by narrow domestic walls;
Where words come out from the
depth of truth;
Where tireless striving
stretches its arms towards perfection;
Where the clear stream of reason
has not lost its way into the
dreary desert sand of dead habit;
Where the mind is led forward
by thee into ever-widening
thought and action–
into that heaven of freedom,
my Father,
Let my country awake.
By Rabindranath tagore.
Some time back on a Sunday me a Abhay (colleague) went for an English play “An Idot For A Dinner” and it was laugh riot.
It seems the play was a translation from French Play Le dîner de cons and The hindi movie Bheja Fry was also an adoption from the same play.
Bangaluru has good crowd for plays I was surprised to see the number of the people attended the play. I was expecting some 200 people but I think there were more than 400 I guess thats a huge crowd. the play was at Good Ahepherd Auditorium Residency Road. staged by Evam and the Boardwalkers.
I was laughing like anything for the entire play it was superb and they acted very well. specifically the golden group’s character is tooo good.
Here are some the Pic’s from the play.

May be because it was my 2nd of third play I was watching after very very long time i found it so good. but i can say one thing that its not just worth money but a lot more and good entertainer. if you know the story of the bheja fry it is more or less the same but performed on the stage thats it. I did not watched beja fry before thats also one of the reason i enjoyed it so much

The one standing at the right most is golden gopu.
First of all let me tell you how i got to know about this event that is been organised at iim. i was following a guy called ajay mohan reddy on twitter he is an entrepreneur based in hyderabad and work’s on a startup in google maps for trips and adventures so he posted it on twitter that he will be attending the meet at IIIT Hyderabad so i googled about it and i immediately got to know about startup saturdays which are orginised on second Saturday of every month at differnt locations across india by headstart
So got up early in the morning at is 9:00 and had shower and rushed to banargatta road and to IIM . as expected the campus is beautiful huge buildings and greenery every where. i reached in time there and the meeting started .
Here is the agenda of the meet.
Event Agenda:
- 10 – 11:00 AM – Lightning Pitches
Lightning Pitches as the name suggests are quick presentations for a duration of 2 minutes or less followed by a Q & A session with the audience. They can help you in various ways including providing with a valuable audience to gain feedback, suggestions, and ideas to move ahead in your business.
Presenting startups in this month’s LP session:
- Printisfun (www.printisfun.com)
- Noesis Info Services (www.noesistec.com)
- DonateYourPC.in
- Beezang (http://www.beezang.com)
- Vpe Knowledge Solutions Pvt Ltd (www.vpeksolutions.com)
- Indian Drinks (By Anirudha & Nivedita)
- Campus2Hire (www.campus2hire.com)
- ZimZim
- Sportskeeda (www.sportskeeda.com)
- Almechants Systems LLP(www.almechants.com)
- 11 – 12:30 AM – To be or not to be an Entreprenuer
Session and Moderated discussions by Surya covering
- Pre start up
- Firming up the idea
- Formation of the team
- Boot strapping
- When to raise money
- How to reach cash stability
- When to call quits
About Suryanarayanan:
Surya, a Chartered Accountant by qualification, is the Chief Operating Officer at the NSRCEL. He is also an alumnus of the International Masters Program in Management of IIMB.He has over 28 years of professional experience, both as a corporate executive and entrepreneur. After spending the initial years in the finance function at Union Carbide and Nicholas laboratories, he joined a family run pharma start up company, Recon and served as its Group Finance Director. His stint as a serial entrepreneur started in 2000 and since then he has successfully founded, funded and exited healthcare ventures including MedyBiz, a disease management company and LifeKen, an organized pharmacy retail chain.
- 12:30 – 1:00 PM – Questions and Networking
minutes of the meeting
the initial session of the meetup was some thing like each team form different startups have come and told about there startups and how its gone a work from them. some people raised some doubts and they ware answered some people gave suggestions and some critics as well.
- The print is fun guy is really crazy in his looks as wells as there business check out there portal. its kewl.
- Beezang people are addressing a really different problem i have some doubts as to how they can make profits out of it but its UI is good. I have talked to them and got email contacts of the developers.
- some glance about what people are doing in the health care industry and products developed.
- Indian Drinks (By Anirudha & Nivedita) these are the two people from ISB there business model is like trying to sell indian drinks like suger cane juice or lasi or butter milk in a very hygienic and great ambiance like the one in CCD’s and MecD’s they plan to open up outlets at universities campus, petrol refill stations, and software companies like that. they said they are building a wending machine to serve indian drinks. quite a number of people have ask some serious censerns about the viability and business model.
- There is one non profit working on collecting old computer parts from people who are willing to donate them and assembling them and give them to schools of orphan ages .. he said they do it in there spare time and with a little money.
the second session was given by Surya
it was very very good i have learned so many things and the way he delivered the lecture was excellent. here is the list of thing i got form his speech
- common pit falls of a startup
- How not to give shares to partners of the startup’s at the early stages and how to evaluate how much each one is owns in the startup. i.e based on the value they are bring into the enterprise.
- How to deal with mentors and how important they are.
- Difference between mentor and a advisor.
- what to expert from the employees of your startup its like how u can motivate them to work. that is selling a dream and driving there passion.
- the main differance between a manager and a entrepreneur
- opportunist and entrepreneur
- and lot more
after this two people from Microsoft have spoke about how Microsoft is going to help startup’s in india in giving there software licences for free and stuff like that..
and in the networking session i met the Co-founder of headstart that is Akash Mahajan very kewl guy and very approachable and got some suggestion regarding an idea. i also met a guy called freeman he is having a venture frim like y combinator here in india and Bangalore i.e upstart.in if you guys have any ideas post to him may be u will get a good mentorship or support. he said he is ok with any platform and what actually he looking at is passion to do and the idea. he also said currently they are working in telecom, education sector and some other .
at the end i took some pics here they are :
i am not that good at my English but i tried my best. if this was of any useful for you guys in any ways please post it here. that way it motivate me to write such thing in the future.


