synergy with two macbooks
if you are trying to use synergy - http://synergy-foss.org/ with two macbooks pick version 1.3.1. Because with other versions the keyboard won't switch to the clients at all.
if you are trying to use synergy - http://synergy-foss.org/ with two macbooks pick version 1.3.1. Because with other versions the keyboard won't switch to the clients at all.
I never thought that 67000 people will download this extension when I wrote this :) It grew organically and fun to watch.
Vehicle Towed
I had my vehicle towed for the first time in bangalore today. I parked my (friend's) two wheeler in front of a SBI ATM on MG road to withdraw some cash. I did not notice that there was a towing vehicle behind me and also did not know that I was not supposed to park there. It took me just 45 seconds to figure out that the atm was not working, I turned back and my vehicle was being loaded into the towing vehicle. I argued that I did not know that I should not park here and pleaded to give the vehicle back. But the towers instructed me to come to the traffic police station, pay the fine and pick the vehicle.
At the Traffic Police Station
I took a auto immediately, rushed to the police station mentioned. My two wheeler was already chained in front of the station, ultra fast. I went to the station and enquired for the procedure. They instructed me to pay 300 rupees fine and take the vehicle. It was very straight forward, a) pay the fine b) get the receipt c) ride the vehicle back. I should say that I was very happy with the experience at the station. There is no unnecessary questions, no asks for bribe, etc, etc. The auto owner mentioned that Bangalore is like United States and policemen are very strict. All in all I felt very happy about the experience, even though I had to pay 300 rupees. I made a mistake and I paid for it. I should better know the parking and traffic rules at Bangalore before I start to drive.
Quirks
Note that there were no documents asked at the station to prove that you own the vehicle. I just provided my driving license (tamilnadu license) and 300 rupees. I also did specify the vehicle number. Its just very easy to go outside the station, look at a vehicle that is chained, note down the number, go in pay the fine and take the vehicle away. So if your vehicle is towed I advice you to go and get it back as soon as possible. Obviously someone else needs a key to drive your vehicle away, but its very easy to get a master key for some vehicles.
Receipts
|
||||||||
|
||||||||
|
||||||||
|
||||||||
|
||||||||
|
||||||||
|
||||||||
|
||||||||
|
||||||||
|
I recently started using Titanium from appcelerator for mobile development and wanted to share some tips. Its actually more of the problems I encountered and solutions I discovered.
Problem 1 - A project created by my friend won't import properly on my machine. When I mean it won't import properly, titanium developer reported that the import was successful. But when I navigate to test & package tab, it would be blank.
Solution: The problem here was that my friend did not commit the build directory that was created by titanium, to the repository. So when I imported the project there was no build directory in it. Titanium should ideally error out while importing or atleast give some sort of warning, but it did not do that. And normally as engineers, we assume that build directory contains some build output so we won't commit them. But you have to when you develop with Titanium.
Problem 2 - When I try to create a new mobile project, titanium will say "error creating project, try again" but nothing about what the error is.
Solution: the problem here was the default sdk version selected by titanium when I created a new project was not supported. So I had to change it to successfully create a project. Again, a generic message from titanium here doesn't help much. Once I change the sdk to 1.2.0 it was successful.
---------- Forwarded message ----------
From: Douglas Crockford <douglas@crockford.com>
Date: Tue, Mar 6, 2007 at 9:30 AM
Subject: Re: Minor fix in json.js
To: Prathapnirmal <prathapnirmal@gmail.com>
Thanks.
Prathapnirmal wrote:
Hi Douglas,
First of all thanks for the awsome JSON. Even a subset of javascript does excellent job.I am using json.js in one of my projects and came across a minor bug which requires a fix. It's in the filter walker function,if (typeof filter === 'function') {
function walk(k, v) {
if (v && typeof v === 'object') {
for (var i in v) {if (v.hasOwnProperty(i)) {
v[i] = walk(i, v[i]);
}
}
}return filter(k, v);
}j = walk('', j);
}
return j;The final result of the walker should be the return value, else the following example fails,
var filter = function(k, v) {
switch(v.type) {
case type1:
return type1();
case type2
....
}
}
var json_data = {type: "type1", collection: [{type: "type2", ...}]};
var type1_obj = json_data.parseJSON(filter);
In the above example I will be expecting a type1 object whereas what will I actually get is a simple object. The actual reason is that the final object that is created in the filter function is lost.Again thanks for such a good alternative to xml. Please let me know on what should I do to do this fix so that it becomes useful to everyone and not everyone spends time on debugging the same issue.
thanks
~
Prathap
Keep life simple!! - http://www.facebook.com/video/video.php?v=446284490742
Just got my Speed DNS Addon approved on Mozilla! Check it out.
I was wondering on how many meetings I had this week and was trying to write some thing to figure that out automatically. AppleScript came to help since I was using ical and it took me about 3 hours to start from basics to get what I have, the following code. Result is 18 meetings and the total time I spend on meetings is 17 hours.
code on pastebin for better viewing - http://pastebin.com/69Ag5sNP
global total_meeting_hours
global num_meetings
set total_meeting_hours to 0
set num_meetings to 0
tell application "iCal"
tell calendar "calendar"
set theEvents to every event
repeat with e in theEvents
set sd to start date of e
set sm to month of sd
set d to day of sd
if sm contains March and (d > 21 and d < 27) then
set ed to end date of e
set h to (ed - sd) / (60 * 60)
set m_summary to summary of e
set total_meeting_hours to total_meeting_hours + h
set num_meetings to num_meetings + 1
end if
end repeat
end tell
end tell
display dialog total_meeting_hours
display dialog num_meetings