
I dragged a folder from one machine to the other and out popped this dialog. My mind has been frozen for that last 30 minutes. If I click yes,will it move the files or just copy them? If I choose no, will it cancel the operation, hopefully!! If this is a prank it is a scary. It can tie knots in one's brain. I am too scared to touch the mouse anymore.
I clearly dragged the folder from one explorer window to the other and as I was performing this operation across different workstations, I expected a move. How can one explain this prompt? What were they thinking?
Let me go to apple.com, look at a Mac and get my sanity back.
Tuesday, June 24, 2008
What the ......?
Posted by
Dinesh Bhat
at
1:34 PM
0
comments
Links to this post
Friday, June 13, 2008
Subversion: Generating a sortable list of changes made to a branch
I needed to generate a sortable list of all the changes made to a branch in subversion. svn log dumps a list, but is very difficult to sort, based on users, time, etc. I wrote a script based on a ruby script to dump the data in a comma separated format, that can then me loaded in Excel to analyze. Here is the script
# This script allows the svn log to be dumped as a comma separated list so that the data can be analyzed in excel
#!/usr/bin/ruby
require 'rubygems'
require 'hpricot'
username = ARGV[1]
svnUrl = ARGV[0]
#puts "Requesting SVN log, this may take a bit."
doc = IO.popen("svn log --xml -v --stop-on-copy " + svnUrl) do |f|
Hpricot.XML(f)
end
entries = doc.search("logentry").find_all do |entry|
if(username != nil)
(entry/"author").innerHTML == username
else
true
end
end
puts "Revision,Author,Date,Action,Path,Message"
entries.each do |entry|
revision = entry.attributes["revision"]
author = (entry/"author").innerHTML
date = (entry/"date").innerHTML
msg = (entry/"msg").innerHTML
paths = (entry/"paths").search("/path")
paths.each do |path|
action = path.attributes["action"]
puts "#{revision},#{author},#{date}, #{action}, #{ path.innerHTML}, #{msg.gsub("\n", " ")}"
end
end
Posted by
Dinesh Bhat
at
4:03 PM
0
comments
Links to this post
Labels: ruby, subversion, svn
Creating a shortcut to a schema using synonyms
I needed to access data from a live database, add some views and procedures, but I did not want to touch the schema. I wrote a script to create synonyms for all the remote schema object using a database link. There could be other uses for such shortcuts, for e.g providing more restrictive access, among others. Here is the script.
-- parameter 1: db link name
-- parameter 2: remote username
-- parameter 3: remote user password
-- parameter 4: remote hostname/sid
-- usage: mydblink user password remote_host/database_sid
-- NOTE: Tested on 10g
-- grant CREATE DATABASE LINK privilege to the user
-- DISCLAIMER: Use at your own risk
set serveroutput on
drop database link &1;
--create database link
create database link &1 connect to &2 identified by &3 using '&4';
--link all the database objects
DECLARE
l_count NUMBER;
BEGIN
FOR rec IN
(SELECT object_name FROM user_objects@&1 WHERE object_type in
('SEQUENCE', 'TABLE', 'VIEW', 'PACKAGE', 'PACKAGE BODY', 'FUNCTION',
'SYNONYM', 'PROCEDURE', 'TYPE')
)
LOOP
dbms_output.put_line('Creating ' || rec.object_name);
SELECT COUNT(*) into l_count FROM user_synonyms where synonym_name = rec.object_name;
IF l_count > 0 THEN
EXECUTE IMMEDIATE 'DROP SYNONYM ' || rec.object_name;
END IF;
EXECUTE IMMEDIATE 'CREATE SYNONYM ' || rec.object_name
|| ' FOR ' || rec.object_name || '@&1';
END LOOP;
end;
/
Posted by
Dinesh Bhat
at
11:41 AM
0
comments
Links to this post
Labels: oracle, schema, synonyms, tips and tricks
Thursday, June 12, 2008
Gas is $4 and IPhone is almost FREE!
IPhone 3G is priced at $199, which means it probably will be available for free with certain plans. What chance do other devices have? BlackBerrry Bold will also have to be priced appropriately. One can look forward to a huge price drop for other phones.
This summer it would be cheaper to download and play games on the IPhone than travel to the beach.
Posted by
Dinesh Bhat
at
7:10 AM
0
comments
Links to this post
Labels: BlackBerry, Bold, IPhone
Thursday, June 5, 2008
Review of Free GPS Software on my Blackberry 8820
With travel season in full swing, I got down to evaluating free GPS software for my 8820. I have recently installed 4.5, so was left with no choice but to install telenav. That was the only backdoor I had to unlocking the GPS on my device. AT&T Maps Trial version got installed instead.
AT&T Maps
It seemed promising. I got down to plotting my course and clicked on Drive To and entered my destination. I then got to select the origin. Could not find an option to select My Current Location anywhere. This was strange. Searched through all the menus, but could not figure out how to specify my current GPS location. Went outside, just in case GPS was not available, but no luck. The only location specific information provided was the weather. I can look outside the window and figure that out. I needed to upgrade to Telenav GPS Navigator.
I gave up in A&T Maps.
There is of course Google Maps and Yahoo Maps. Both are pretty good, but lack speech based directions. Yahoo Maps on 4.5 is missing menus, hence navigating through the software using keys is a hit or a miss. Yahoo Maps can recalculate a route, while Google Maps cannot.
I then installed the Co-Pilot 6 month free trial software. It is a decent application, though the UI needs a little finishing. It has voice turn-by-turn directions (without street names). It recalculates routes in a decent time. Sometimes it takes a long time for it to determine GPS coordinates and occasionally get the "No Response from server" error.
I then tried Nav4All. I was not sure about this free software, but on download, I really amazed at the amount of functionality packed in. The user interface at first glance does not look appealing, but is amazingly functional.
The address input could be more efficient, without having to provide the country every time, but it has so many features not even available in most standalone GPS Navigation systems.
Routing is pretty good and is based on the 9 driving styles (shortest rout, no highways,etc). It recalculates in good time and has voice turn-by-turn directions (without street names). The directions also include the lane assists and speed alerts.
One can flag (tag) locations and there is an option to mark your parking spot, a handy tool in big unfamiliar parking spaces and especially if the car you drive is also driven by million others.
The UI has a day and night mode for better readability which it automatically determines . It defaults to the safety view, with big arrows and text to be easily viewable while driving. Its plan route is awesome, where it allows one to plan ahead, by viewing all alternatives and demoing through the route.
It's speed limit alerts would also be very useful, especially on unfamiliar roads. There are few other options that make this a really great application.
One issue I had, (it may be any issue with the processing power of my blackberry) was that when I was also listening to podcast, there was a delay in catching up on my current location and recalculating the routes, which resulted in me sightseeing places that I had never been to.
All these apps have poor POI's, but having Google and Google Maps on the blackberry makes up for it.
I have also noticed that Yahoo Maps are more current than others, but unfortunately is difficult to use.
Posted by
Dinesh Bhat
at
2:29 PM
5
comments
Links to this post
Labels: 8820, BlackBerry, GPS, Nav4All
