Dreams of Thought

Are dreams thoughts… or are thoughts dreams..

RSS Feed

How to solve the “local edit, incoming delete upon update” issue in SVN

0 Comments

When I removed a file from svn it caused me lot of problems. This particular file was in CamelCase and I needed to replace it with a file in lower case. I svn deleted the CamelCase file and committed a copy of the lower case file. All this happened in a windows system. When I updated the checked out branch I got the error :

At revision 17582.
!  +  C FooBar.php
>   local edit, incoming delete upon update

Multiple attempts at svn cleanup, svn update etc. failed. I came across this stack overflow thread which recommended svn resolve. This did not work for me. Further down the thread I came across another solution which worked.

  1. create FooBar.php ( $touch FooBar.php )
  2. svn revert it ( $svn revert FooBar.php )
  3. Check status ( $svn status ) . It should say ?FooBar.php
  4. Now remove FooBar.php ( $rm FooBar.php )

That’s it, you’re done :)

Filed under code

apt-get with proxy

0 Comments

You will notice that the proxy settings you provide in the network settings may not be picked up by apt-get while installing a package. So if you want to run apt-get via a proxy then you need to use a tool like proxychains. Proxychains is a tool that allow you to run a command via a proxy even if the command itself does not support proxies. You can install proxychains by running apt-get install proxychains. In case this is not possible for you, then get the proxychains tarball from the proxychains site.Compile and install – it’s very simple to do. Just run ./configure and then make and make install. Run make install as root.

Once this is done you have proxychains installed in your system. Proxychains takes its settings from one of 3 files :

1)    ./proxychains.conf
2)    $(HOME)/.proxychains/proxychains.conf
3)    /etc/proxychains.conf

I edited the /etc/proxychains.conf file directly. I have a SOCKS5 proxy running on localhost over port 8080. So I add an entry towards the end like this -

socks5  127.0.0.1 8080

Once you have this and have your socks proxy running, you’re ready to start running your commands. Imagine you want to run apt-get update. This is how it would be done -

$ sudo proxychains apt-get upgrade

That’s it :)

Filed under Linux

Illegible captcha

0 Comments

How in heaven’s name am I supposed to fill this one! :)

 

( click on image to see a bigger one )

illegible captcha

Filed under technology

Zindagi Na Milegi Dobara

0 Comments

Zindagi Na Milegi Dobara is what they call a  “coming of age” film. At times it might seem preachy, but overall it’s a good film and definitely deserves a watch. I would give it 4/5.

 

The film begins with Kabir ( Abhay Deol ) proposing to Natasha ( Kalki Koechlin, recently married to Anurag Kashyap ). Before Kabir gets married to Natasha he wants to go on a 3 week trip to Spain with his buddies Imraan ( Farhan Akhtar ) and Arjun ( Hrithink Roshan ). The “3 musketeers” had made a pact with each other to go on a trip where they would surprise each other with an adventure sport of each one’s choice that the others had to participate in. The 3 arrive in Spain and complete 3 adventure sports. Along the way they meet Laila ( Katrina Kaif ) who is a part – time driving instructor. During the trip each of the friends learn about life and come out the better. How they do so during the journey is what forms the film.

The movie is beautifully picturised. One of the sponsors is Spain Tourism and the movie provides a very good promo of this beautiful country. Not only is the scenic beauty captured well, but attractions of Spain like La Tomatina festival are also highlighted.

The movie deals mainly with relationships and life. Occasionally the film can get mildly preachy – particularly the scenes where Katrina’s character teaches Arjun how to live life. Even in such scenes the philosophy does not stick out but rather blends in. By sending demon’s in each of the character’s ways and by portraying their transformation with each adventure they face the movie shows a mirror to our own fears and insecurities. Each adventure that the characters participate in proves to be a turning point for one of the characters who must take his fear head on. Towards the end the characters take on the ultimate of fears – the fear of death.

The characters have been crafted beautifully by Zoya Akhtar ( who is also the director ) and Reema Katgi. Executed well by the star cast, the audience is able to appreciate each character and realise why it is that they do what they do.

The songs in the movie as well as the shayari of Farhan’s character have been penned beautifully by Javed saab. One expects nothing less than the best from him and he delivers with ease. Shankar – Ehsaan – Loy provide the beautiful music to Javed saab’s words.

Overall it’s a nice movie. Do catch it.

Filed under review

Restaurant review : Four Seasons, Indiranagar

0 Comments

Hi, reader. How do you do? Well fed and well watered I hope. If not, you should stop reading. That’s right. Go read something else, please. You probably won’t be able to take this post. You’re on a diet. What are you waiting for – get the hell outta here before you succumb to your tongue!

Today, i.e. July 29 2011, a new restaurant opened up in Indiranagar, Bangalore. Goes by the name of Four Seasons. What the name has to do with the food there I can tell you not. What I can tell you is how good the food there is. This I now proceed to do without further ado.

I walked into the place and noticed that only a few were there. People were just arriving. This was a good sign. The food would come faster. The ambiance was nothing fancy. Simple, but nice. The menu also stuck to that theme. Rather simplistic, but the highlight of the menu turned out to be the gorgeous pictures of the dishes listed. There were no fancy descriptions next to the items. There were a fair number of items, less organised in the menu than I would’ve liked. However, a person like me worries less about these things and more about the “meat of the matter”, in a manner of speaking. Yes, how good is the food?

A quick perusal and I noted that most dishes were North Indian or Arabic/Lebanese. With me were 2 of my friends. One a vegetarian and the other a non – vegetarian. I was a veggie for the day. We started with the err.. starters. Both were vegetarian – Veg Shangri La and some Middle Eastern dish with an unpronounceable name. The Middle Eastern dish consisted of dice cut vegetables sprinkled with salt, powdered spices and soaked in Olive Oil. This was nice. As nice as it can get – but would be a bonus for the health conscious I suppose. The Shangri La consisted of vegetables fried and coated with a chinese sauce. It had a slight sweet taste and tested quite nice. I would heartily recommend this one.

Since this was the opening night we were treated to some excellent water melon juice at first. Quite sweet and fresh. Brought up my spirits in an instant.

We moved on to the main course. The non – vegetarian dish ordered was once again a Middle Eastern dish with an unpronounceable name. Essentially it was a mutton biriyani. I cannot vouch for the overall taste, though the rice was quite tasty. As with all the dishes of the day the spice was neither in excess nor too mild. Just right. For the veggies we had roti and mixed veg curry. The roti was decent. The curry though was a different thing altogether. It was rich and thick. It excited different parts of my tongue, but there was no cacophony. It was a symphony of taste – the right amount of different spices and a hint of sweetness. The regular vegetables – potatoes, cauliflower, carrot etc. provided a good base. Together it made for a wonderful dish. Though one does not expect wondrous feeling from a dish with such a commonplace name, it managed to make me truly happy. Full marks to the chef for this one.

A note about the service. There was no one at the front desk to welcome you and escort you to your table. It’s not that kind of place. But the steward was gracious and made excellent suggestions regarding the dish to order. There were hiccups you encounter occasionally in any restaurant. When we asked for roti, naan was brought. We asked for normal water, mineral water was brought. The bottle was left unopened on the table – one would’ve expected that they would serve the contents of the bottle. However, the pleasant demeanour of the steward more than made up for these minor faux pas.

However, the real Pièce de résistance was just hiding around the corner. We indicated that we were done. Though it took a while, we were brought complementary desserts. Let me tell you my friend, I will return to that place and will keep doing so because of this dessert. It was rather simple – fresh apricots cocooned in custard on top of a layer of pudding. But the combination was so good that I threw my now broken diet out of the window and had one and half cups of this delectable dessert. It was quite cold and everything combined so well that I could cry tears of joy. I could sing, mon ami. Why do you think I felt like writing a review – the epitome of laziness that is me! The blame falls squarely on that vile dish. It ensnared my senses and befuddled my brain. I went into the place with a long face, the troubles of the day weighing me down. I left the place a new man, invigorated and happy as a man can be.

The next time I go there I will meet the magician they call Chef and shake him warmly by the hand. Ladies and Gentlemen, if your tongue craves for some happiness do send it to this place.

 

Location : Opposite the Peter England showroom in 100 ft road near the KFC signal, Bangalore

Filed under food

Differences between IRCTC and Indian Railway’s new ticketing service

0 Comments

I had previously mentioned that Indian Railways plans to introduce a new e-ticketing service like IRCTC. Here are some of the differences noted between the two services -

  1. IRCTC is a separate corporation. Its services will likely continue.
  2. IRCTC has separate logins for agents and passengers. The new service will be only for passengers
  3. A maximum of 10 tickets can be booked per month in IRCTC. Initially at least, this limit will be 8 in the new service.
  4. The new service will be hosted out of www.indianrailways.gov.in . The IRCTC website will continue to be at irctc.co.in
  5. Users will have to create fresh login for the new service

More updates as I get more news. Stay tuned :)

Filed under misc

Indian Railways to bring out new e-ticketing service like IRCTC

0 Comments

Indian Railways is going to bring out a new e-ticketing service like the IRCTC, says Economic Times. The new service is meant only for users and not for agents. IRCTC allows both agents and passengers to book tickets from its site. “irctc login” was the most searched term on Google India in the year 2010. The site is often overloaded and unusable. This is particularly so at 8 a.m. on Fridays and Wednesdays. The huge traffic on the site results in a very slow experience while booking. The payment and booking often fails.

One hopes that the new website would go on to be much better than the IRCTC. Of primary importance would be scalability – it should handle heavy load from it’s users and still provide a reasonably fast experience. Improved user experience would also be welcome. Another site that they own – http://indianrail.gov.in/ – is a brilliant example of how a website should NOT be designed.

Here’s to the Indian Railways wishing them the best in their endeavour. Be tuned for more updates :)

Filed under misc

How to log requests to specific paths on Apache

0 Comments

It is possible to log requests to specific paths of your website in your Apache log. Imagine you need to log all access requests to www.example.com/widgets/ path and whatever is under it in a separate file. You can use a combination of the CustomLog directive and SetEnvIf directive to achieve this. The SetEnvIf directive needs the mod_setenvif module enabled.

On a Linux machine you can do this by using the a2enmod command. On my Ubuntu I ran

$sudo a2enmod setenvif

On a Windows machine you probably need to edit the httpd.conf file in the conf directory of your Apache installation directory.

Once this module is enabled you can issue such directives from your VirtualHost configuration.

The CustomLog directive allows you to specify how and where logging should be done. The last parameter that this directive takes is an environment variable. This environment variable can be set the with SetEnvIf directive conditionally. What you would do inside the VirtualHost definition of the domain is something like this


SetEnvIf Request_URI '^/widgets/' widget_page=yes

CustomLog ${APACHE_LOG_DIR}/widgets.example.log combined env=widget_page

The SetEnvIf module above sets the widget_page variable as yes if the Request URI matches the regular expression '^/widgets/'. The CustomLog directive below it directs Apache to log a request in the combined format if the widget_page variable is set.

Filed under technology

National Enquirer reports on Steve Jobs’ health

0 Comments

The tabloid, National Enquirer, has claimed that Steve Jobs has only 6 weeks to live. Their website does not reveal much. It says “Shocking photos obtained exclusively by The ENQUIRER show the 56-year-old cancer-stricken computer genius has become rail-thin and heartbreakingly weak in recent days despite putting up a tremendously courageous battle.” and “But after studying the new photos of the world-renowned entrepreneur – taken on February 8th in California – medical experts consulted by The ENQUIRER say it appears he’s losing his battle.” I do not know how much to believe a doctor who has predicted the time to live for a person by looking at the photograph, but the Enquirer seems to have much faith – ‘One of our experts – Boca Raton, Fla., critical care physician Dr. Samuel Jacobson, who has not treated Jobs – told The ENQUIRER: “The poor guy! Judging from these photos, he is close to terminal. I would say he has six weeks.’ . If it is indeed true, then this is very sad news indeed.

National Enquirer report on Steve Jobs health

Filed under news

A game of chess

2 Comments

He couldn’t sleep. No use fighting it. Counting sheep could take you only so far into the sandman’s kingdom.Listening to music could clear his head only so much. Drinking water had its limits. Yeah, there was nothing he could do to fight it. Might as well get something done.

He got up from the bed and walked to his laptop. The bright light pierced the darkness and stabbed at his eyes. He lowered the brightness and opened the document he had left unfinished a few hours back. His fingers moved onto the keyboard and started typing. As the letters started appearing on the screen he felt himself slipping into thought. This mundane stuff wasn’t what he was supposed to do. He could do this kind of stuff even when he was asleep. It didn’t require his brain, just his fingers. As his fingers moved ceaselessly on the keyboard he started dreaming of a better life. Oh what he would give to …

His reverie was broken by a sound from the kitchen. As his brain processed the sound of breaking plates and a mew his legs started moving. Cursing the cat he reached the kitchen to find milk all over the floor. “No use crying over spilt milk”, he grumbled. He mopped the floor and threw the broken vessel into the dustbin. It was easier when she was around. I didn’t have to know anything. He thought with bitterness.

It was in fact an year before the day when she had left him there. His unkempt beard stood testimony to the fact that he had trouble adjusting to life ever since. Not used to the daily chores he had found himself less and less inclined to take care of his house. One had to wade through the stink of neglect to get around the house. Clothes and various other items were strewn haphazardly everywhere. Unwashed dishes and a faint smell hinting at the age of uneaten pizza slice in the box hung about the kitchen. A closer inspection would reveal ants scurrying about on some sticky residue left behind on the kitchen floor. Not that he cared.

As he walked back to his laptop he looked at the clock. The clock and the calendar next to it reminded him that it was now his birthday. No phone calls. Not that he expected any. The past one year seemed to pass through his mind’s eye. It seemed like eternity.

As he sat down once again in front of his laptop and numbed his mind for the work ahead he felt a sudden chill. He checked if any of the windows he could see from his place were open. All closed. Then why the sudden chill? “That would be because of me”, said the cloaked figure who had suddenly appeared behind him. He jumped out of the chair in shock and hit his legs on the table. It was still smarting when he shouted at the figure, “What? Who? How?”.

“Very articulate you are.”, Death said.

“Who are you? What are you doing here? How did you get in?”

“Good good. For a moment I thought I was in the wrong house”, Death grinned. Except you couldn’t make that out. The hood put his face in shadow.

“You haven’t answered my question”.

“Quite right. That was quicker than the others”, Death said and not without a slight sense of wonder.

“Others? What others? You get the hell out of my house”.

“And I thought you would be more intelligent than the usual lot. But you’re just like the rest of them. I had a lot of expectations you know. She told me a great deal about you.”, Death said.

Thoroughly confused was a feeling he was not used to. That was the kind of feeling that others felt when he talked to them. He vaguely noticed the figure looking at his wrist watch and unconsciously realised who it was that stood before him. No, this wouldn’t do. It wasn’t time. Think think think! What’s the use of reading so many books and watching so many movies. There must be something out there. Some loophole…

“I challenge you to  a game of chess”, he announced with what he hoped was a challenging tone.

“What!”. Confusion passed through Death’s face. The shadow did not let the expression out. “OK. Fine. Whatever”. He conjured out a chess board from thin air.

“Time to put all my chess skills to use”, he thought and moved the pawn two squares ahead.

And so the game continued. Death was a smart player, but so was he. The game continued for an hour.

“Checkmate”, he announced with relief clearly showing through in his voice.

“Hmm. Nice match. Haven’t been beaten in a long time. Let’s go then”, Death said.

“Wait. I beat you in a game. You have to let me stay”, he pleaded.

“What nonsense”. Death threw his lasso and pulled the soul away from the body. As he stuffed the soul into his sack he wondered – “Why do so many people keep challenging me to chess and expect me to let them stay when they win?! These humans are crazy”.

Death never knew why that was.

Filed under story