rajesh gollapudi's blog http://rajeshg.com Most recent posts at rajesh gollapudi's blog posterous.com Wed, 12 Oct 2011 09:49:00 -0700 Nice quote by Dalai Lama http://rajeshg.com/facebook http://rajeshg.com/facebook

 

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi
Wed, 12 Oct 2011 09:46:00 -0700 Bike vs Car http://rajeshg.com/bike-vs-car http://rajeshg.com/bike-vs-car

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi
Thu, 03 Mar 2011 14:03:00 -0800 Christiana Care Chart http://rajeshg.com/christiana-care-chart-0 http://rajeshg.com/christiana-care-chart-0

Here is an interactive component that I developed for Christiana Care Health System.

Designed by Sarah Stup.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi
Tue, 22 Feb 2011 11:00:00 -0800 Rethinking the Mobile Web by Yiibu http://rajeshg.com/rethinking-the-mobile-web-by-yiibu http://rajeshg.com/rethinking-the-mobile-web-by-yiibu

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi
Wed, 02 Feb 2011 15:40:00 -0800 Online Performance is Business Performance http://rajeshg.com/online-performance-is-business-performance http://rajeshg.com/online-performance-is-business-performance

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi
Fri, 07 Jan 2011 10:39:00 -0800 Neil Pasricha: The 3 A's of awesome http://rajeshg.com/neil-pasricha-the-3-as-of-awesome http://rajeshg.com/neil-pasricha-the-3-as-of-awesome

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi
Wed, 05 Jan 2011 12:12:00 -0800 Brene Brown: The power of vulnerability http://rajeshg.com/brene-brown-the-power-of-vulnerability http://rajeshg.com/brene-brown-the-power-of-vulnerability

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi
Mon, 20 Dec 2010 07:34:33 -0800 Indy-Chicago highway in the 1960s http://rajeshg.com/indy-chicago-highway-in-the-1960s http://rajeshg.com/indy-chicago-highway-in-the-1960s

Saw this in the North by Northwest movie. This is how the Indianapolis-Chicago highway looks in 1960s

Screen_shot_2010-12-18_at_12

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi
Mon, 13 Dec 2010 13:26:00 -0800 Recent TED talks that I liked http://rajeshg.com/recent-ted-talks-that-i-liked http://rajeshg.com/recent-ted-talks-that-i-liked

Sirena Huang: Dazzling set by 11-year-old violinist

Kiran Bedi: A police chief with a difference

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi
Mon, 29 Nov 2010 11:54:00 -0800 Lean Startup 101 for Developers « The Hacker Chick Blog http://rajeshg.com/lean-startup-101-for-developers-the-hacker-ch http://rajeshg.com/lean-startup-101-for-developers-the-hacker-ch

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi
Tue, 23 Nov 2010 12:56:42 -0800 Unix - mkdir and cd in one line http://rajeshg.com/unix-mkdir-and-cd-in-one-line http://rajeshg.com/unix-mkdir-and-cd-in-one-line

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# mkcd command
# This is an improvised version of the mkcd command at http://superuser.com/questions/152794/is-there-a-shortcut-to-mkdir-foo-and-immediately-cd-into-it
# This function has to be added to the ~/.bashrc file
# After that you can run command like: mkdir abc, mkdir -p one/two/three
#
function mkcd {
  last=$(eval "echo \$$#")
  if [ ! -n "$last" ]; then
echo "Enter a directory name"
  elif [ -d $last ]; then
echo "\`$last' already exists"
  else
mkdir $@ && cd $last
  fi
}

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi
Fri, 12 Nov 2010 03:38:57 -0800 Re-Inventing How We Do Start-Ups! « Business Model Alchemist http://rajeshg.com/re-inventing-how-we-do-start-ups-business-mod http://rajeshg.com/re-inventing-how-we-do-start-ups-business-mod

This slidedeck gives the 101 of such a systematic start-up process by combining the business model concept to shape and structure your business ideas with the customer development approach to test, prove and build them.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi
Fri, 05 Nov 2010 07:41:00 -0700 Delicious bookmarklet http://rajeshg.com/delicious-bookmarklet http://rajeshg.com/delicious-bookmarklet

This is a slightly modified version of the official delicious javascript bookmarklet. There are different versions available currently:

  • one which opens in a new window from the same page and
  • one which redirects to the delicious website to save the bookmark. This later redirects you the origin.

All I want is a bookmarklet which opens the save to delicious form in a new tab and closes the window on save without going back. 

Advantage??

  1. I can use the 1Password chrome extension to fill in the password, if it doesn't exist. Currently it's not able to fill passwords in login forms which exist on a new window.
  2. I don't have to tag and add description immediately. You can click this bookmarklet which watching a video and don't have to enter all the information immediately to see the video

1
javascript:(function(){window.open('http://www.delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&jump=doclose');})()

How to add this bookmarklet

In chrome, go to Bookmarks >Bookmarks manager > Organize > Add a page

Then fill in the information as shown in the image below. In the url field, paste the javascript posted above.

Screen_shot_2010-11-05_at_10

 

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi
Fri, 29 Oct 2010 13:23:32 -0700 How to export twitter favorites to a csv file http://rajeshg.com/how-to-export-twitter-favorites-to-a-csv-file http://rajeshg.com/how-to-export-twitter-favorites-to-a-csv-file

If you have numerous twitter favorites like me, then here is a handy script to export all your twitter favorites to a csv file. Handy if you want to import them to delicious or backup your favorites. Feel free to improvise upon it.

Note: This approach works only if your tweets are set to be public

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71

#!/usr/bin/ruby -w
# author: rgollapudi
# description: Script to fetch all your twitter favorites and write them to a csv file

require 'open-uri'
require 'rss/1.0'
require 'rss/2.0'

# For reading rss from a url:
# refer http://benwoodall.com/2010/10/ruby-rss-parser/
#

# Open a file for exporting all favorites from the rss
$i = 1
$csv = File.open('mytwitfavs.csv', 'w')
$username = 'rajeshgollapudi'

#
# gets 20 favorites from twitter rss
#
def getfavorites
  url = "http://twitter.com/favorites/#{$username}.rss"
  unless $i == 1
    url = url+"?page=#{$i}"
  end
  puts "url : " + url
  content = ''
  open(url) do |parse|
    content = parse.read
  end

  rss = RSS::Parser.parse(content, false)
  return rss
end

def writefavorites(rss)
  # Output the feeds title, URL, and number of entries
  puts "=================================="
  puts "Title: #{rss.channel.title}"
  puts "URL: #{rss.channel.link}"
  puts "Total Entries: #{rss.items.size}"
  puts "=================================="

  # Setup to read feed and parse all items
  # Change for this: parse top 5 posts, ask if more, (Y/N?), get/end

  rss.items.each do |item|
     puts "Title: #{item.title}"
     puts "Published: #{item.date}"
  # puts "#{item.description}"
     puts "=================================="
     $csv << ["#{item.title}", "#{item.date}\n"]
  end
end
#
# => write the fetched rss to a file
#
rss = getfavorites() # => call once to initialize the loop
size = rss.items.size
writefavorites(rss)
while size > 0
  $i += 1
  rss = getfavorites()
  size = rss.items.size
  writefavorites(rss)
end

# close the file handle
$csv.close()

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi
Wed, 27 Oct 2010 16:23:00 -0700 DOs and DON'Ts of Mobile Strategy http://rajeshg.com/dos-and-donts-of-mobile-strategy http://rajeshg.com/dos-and-donts-of-mobile-strategy

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi
Fri, 15 Oct 2010 12:56:59 -0700 How to fetch all the meta tags from a website and export to excel http://rajeshg.com/how-to-fetch-all-the-meta-tags-from-a-website http://rajeshg.com/how-to-fetch-all-the-meta-tags-from-a-website

Wrote this little ruby script to fetch all the meta tags from one of our clients' website and export it to excel. It could use some refactoring, but just wanted to get this done quickly. Feel free to modify and use.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/ruby -w
require 'rubygems'
require 'hpricot'
require 'open-uri'
require 'spreadsheet'

class MetaReader
  attr_reader :url, :outFile, :links, :book, :sheet1, :rownum
  attr_accessor :url, :outFile, :links, :book, :sheet1, :rownum

  def initialize(url, outFile)
    @url = url
    @outFile = outFile
    @links = {}
    @rownum = 0
    @book = Spreadsheet::Workbook.new
    @sheet1 = book.create_worksheet
  end

  def writeMeta(tempurl)
    fullurl = "#{url}#{tempurl}"
    puts tempurl
    outFile.puts "#{tempurl}\n\n"
    keywords = ''
    desc = ''
    begin
      doc = Hpricot(open(tempurl)) # open web page
      doc.search('meta').each do |meta|
        if meta.attributes['name'] =~ /keywords|description/
          outFile.puts "#{meta.attributes['name']}: #{meta.attributes['content']}"
          if meta.attributes['name'] == 'keywords'
            keywords = meta.attributes['content']
          else
            desc = meta.attributes['content']
          end
        end
      end
      sheet1.row(rownum).push tempurl, keywords, desc
      @rownum += 1
      
      doc.search("a[@href]").each do |param| # for every link do
        param_string = param.to_s
        href = param.attributes['href']
        unless (href =~ /\.pdf|\.jpg|\.mp3|\.flv|\.jpeg|\.flv|\.swf|netreturns|staywellsolutions|javascript\:|mailto/i)
          href = param.attributes['href']
          href = href.gsub(/\.\./,'')
          if(href =~ /http|www/ )
            if (!links["#{href}"] && href =~/nch\.org/)
              links["#{href}"] = 1
              writeMeta("#{href}")
            end
          elsif href=~/^\//
            href = href.gsub(/\/\//,'')
            unless (links["#{url}#{href}"])
              links["#{url}#{href}"] = 1
              writeMeta("#{url}#{href}")
            end
          else
            href = href.gsub(/\/\//,'')
            unless (links["#{url}/#{href}"])
              links["#{url}/#{href}"] = 1
              writeMeta("#{url}/#{href}")
            end
          end
        end
      end
      book.write "links.xls"
    rescue OpenURI::HTTPError => e
      puts "The '#{tempurl}' page is not accessible, error #{e}"
      sheet1.row(rownum).push tempurl, '', '', "#{e}"
      @rownum += 1
    rescue SocketError => e
      puts "The '#{tempurl}' page is not accessible, error #{e}"
      sheet1.row(rownum).push tempurl, '', '', "#{e}"
      @rownum += 1
    rescue ECONNRESET => e
      puts "The '#{tempurl}' page is not accessible, error #{e}"
      sheet1.row(rownum).push tempurl, '', '', "#{e}"
      @rownum += 1
    end
  end
end

myfile = File.new('links.html', 'w') # the output file
MetaReader.new("http://www.example.com", myfile).writeMeta('http://www.example.com')

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi
Fri, 01 Oct 2010 20:34:21 -0700 How do computer addicts look like http://rajeshg.com/how-do-computer-addicts-look-like http://rajeshg.com/how-do-computer-addicts-look-like

Nice collection of computer addict pics which I found online

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi
Mon, 13 Sep 2010 15:22:15 -0700 Bulk add google calendar events using GoogleCL http://rajeshg.com/bulk-add-google-calendar-events-using-googlec http://rajeshg.com/bulk-add-google-calendar-events-using-googlec

Just wrote a quick ruby script a create a Birthday calendar for a list of contacts.

Note: To see your Google contacts' birthdays in Google Calendar, you can just use the "Contacts' birthdays and events" calendar gadget.

For this, I want to automate creation of google calendar events, based on information available in a csv file (row - name, birthday).

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/local/bin/ruby -w
require 'csv'
CSV.foreach("contacts.csv") do |row|
  name = row[0]
  if name.nil?
# do nothing
  elsif name.empty?
# do nothing
  else
    command = "google calendar add --cal \"Finelighters Birthdays\" \"#{name}'s Birthday #{row[1]}\""
    puts command
    `#{command}`
  end
end

The above script reads a csv file and creates events using googlecl. For this to work, you need to have googlecl installed. We create events using the same way that we create events using Google Calendar 'Quick Add'.

Google_calendar
 

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi
Sat, 11 Sep 2010 15:04:00 -0700 DevDerby 2010 http://rajeshg.com/devderby-2010 http://rajeshg.com/devderby-2010
Participated in the DevDerby 2010 programming competition today. I worked on the front-end as part of the Python group.

The goal was to:

Build a web based python application where volunteers and
volunteer groups can sign up and offer their volunteer efforts to
non-pit organizations who need the help.  The hope is that this will
augment existing solutions like the Bloomington Volunteer Network:
http://bloomington.in.gov/volunteer/ charity work

Screenshots of the working prototype.

Although this is far from complete, the focus is on building a decent looking web app, within the 6 hours of time available. Worked on this along with Charles Brandt (consultant from IU) and Vijay (postdoc from IUPUI). Also, we had the help from a couple of kids (13 year and 15 year old) - Very impressed with their enthusiasm and how much they know.

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi
Fri, 10 Sep 2010 22:33:00 -0700 The Combine 2010 pics http://rajeshg.com/the-combine-2010-pics http://rajeshg.com/the-combine-2010-pics

Pics from the Combine 2010 event at the Buskirk-Chumley Theater. A day of presentations from people like Ben Huh(icanhascheezburger), Frank Gruber (Tech Cocktail), Chris Wanstrath (from GitHub), Micah Baldwin (graphic.ly) and several others.

 

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/746812/12329_10150168338645080_706545079_11957456_8096167_n.jpg http://posterous.com/users/36jwzEOMAcIF Rajesh Gollapudi Rajesh Rajesh Gollapudi