What you can find near your towel..
Archive for category Me
Poipu Beach in Kauai
Jul 4
Getting married…
Jun 19
If you try to charge your iPhone 3G by plugging it in a non-PC usb or not-specific-iPhone accessory, it wil not do it. this is due because a standard usb have 4 pins, Power, ground, Data- and Data+. Usually you need Power and ground to recharge anything, but the iPhone need also a signal on Data- and Data+. By googling I found this:
To charge an iPhone 3G / iPod Touch 2nd gen, usb data- (25) should be at 2.8v, usb data+(27) should be at 2.0v. This can be done with a few simple resistors: 33k to +5v (23) and 22k to gnd(16) to obtain 2v and 33k to +5v and 47k to gnd to obtain 2.8v.
Here what I did by using a male/female standard USB cable.
With more patience you can do something the looks better for sure.
Ahh… it works!
This is a little trick to use the rails plugin “will_paginate” with ajax and classic prototype rails helpers that I used on Kontup. Naturally you should start from here:
http://wiki.github.com/mislav/will_paginate
and follow the classical installation steps. After that you could do in this easy way:
in your controller:
@posts = Post.paginate :page => params[:page]
if params[:page] == nil || params[:page].to_i == 1
@previousPage = nil
@nextPage = 2
else
@previousPage = params[:page].to_i - 1
@nextPage = params[:page].to_i + 1
end
and in your view the links will be:
<% if @previousPage != nil %>
<%= link_to_remote '« Previous', :url => { :action => "indexAJAX", :page => @previousPage }, :update => "content" %> Page <%= @previousPage %> of <%= @posts.total_pages.to_i %>
<% else %>
Page 1 of <%= @posts.total_pages.to_i %>
<% end %>
<% if @nextPage <= @posts.total_pages.to_i %>
<%= link_to_remote 'Next »', :url => { :action => "indexAJAX", :page => @nextPage }, :update => "content" %>
<% end %>
I know that there is a smart way to write this code, so please comment here!
Here a code i wrote for generating alphanumeric code in “youtube style”. This code automatically increment using a..z, A..Z, 0..9:
def generate_code
carry = false
for i in 1..(shorturl.length) do
shorturl = “aaZ9″ #this is your starting string
index = shorturl.length – i
if index == shorturl.length – 1
char = shorturl[index]
char = char + 1
if char == 123
char = 65
elsif char == 91
char = 48
elsif char == 58
char = 97
carry = true
end
shorturl[index] = char
elsif carry
carry = false
char = shorturl[index]
char = char + 1
if char == 123
char = 65
elsif char == 91
char = 48
elsif char == 58
char = 97
carry = true
end
shorturl[index] = char
end
end
if carry
shorturl = “a” + shorturl
end
puts shorturl
end
Ten Busiest VCs of 2009
Oct 11
From a PeHub article:
We’re still a couple of weeks away from official Q3 venture capital data, so here’s a preliminary look at the year’s busiest firms to date.
The below statistics refer to investments in U.S.-based companies, and rank based on number of companies supported in 2009 (as opposed to investment rounds, which can be higher if certain companies raised multiple rounds). Enjoy:
#1. New Enterprise Associates
Deals this year: 36
3 recent deals: Serious Materials, Vuclip, Chelsio Communications
#2. Kleiner Perkins Caufield & Byers
Deals this year: 35
3 recent deals: Pacific Bioscience, Booyah, Juvaris BioTherapeutics
#3. Polaris Venture Partners
Deals this year: 31
3 recent deals: Adimab, Turbine, Cerulean Pharma
#4. Draper Fisher Jurvetson
Deals this year: 27
3 recent deals: TargetCast Networks, iSocket, Myshape
#5 (tied). Sequoia Capital
Deals this year: 26
3 recent deals: Achates Power, Mobile Iron, Ruckus Wireless
#5 (tied). U.S. Venture Partners
Deals this year: 26
3 recent deals: Factery, DFX Battery, Blekko
#7. Canaan Partners
Deals this year: 25
3 recent deals: Liquidia, Chimerix, Relievant Medsystems
#8 (tied). Highland Capital Partners
Deals this year: 24
3 recent deals: Zoove, InXpo, Mix1 Beverage
#8 (tied). Venrock Associates
Deals this year: 24
3 recent deals: Xconnect, Durect Corp., Constellation Pharma
#10. First Round Capital
Deals this year: 22
3 recent deals: Continuity Engine, GumGum, DNAnexus
For comparison’s sake, here are the Top 10 from 2008:
- Draper Fisher Jurvetson (92)
- New Enterprise Associates (76)
- Kleiner Perkins Caufield & Byers (65)
- Polaris Venture Partners (61)
- Intel Capital (55)
- U.S. Venture Partners (50)
- InterWest Partners (48)
- Venrock Associates (47)
- Sigma Partners (45)
- Sequoia Capital (42)
My Nike Running Goal
Sep 29
Interesting article by Scott Shane. Link to article.
Most entrepreneurs believe a bunch of myths about financing new companies that hinder their efforts to raise money. Here are a few:
Myth 1: It takes a lot of money to finance a new business. Not true. The typical start-up only requires about $25,000 to get going. The successful entrepreneurs who don’t believe the myth design their businesses to work with little cash. They borrow instead of paying for things. They rent instead of buy. And they turn fixed costs into variable costs by, say, paying people commissions instead of salaries.
Myth 2: Venture capitalists are a good place to go for start-up money. Not unless you start a computer or biotech company. Computer hardware and software, semiconductors, communication, and biotechnology account for 81 percent of all venture capital dollars, and 72 percent of the companies that got VC money over the past 15 or so years. VCs only fund about 3,000 companies per year and only about one quarter of those companies are in the seed or start-up stage. In fact, the odds that a start-up company will get VC money are about 1 in 4,000. That’s worse than the odds that you will die from a fall in the shower.
Myth 3: Most business angels are rich. If rich means being an accredited investor — a person with a net worth of more than $1 million or an annual income of $200,000 per year if single and $300,000 if married — then the answer is “no”. Almost three quarters of the people who provide capital to fund the start-ups of other people who are not friends, neighbors, co-workers, or family don’t meet SEC accreditation requirements. In fact, 32 percent have a household income of $40,000 per year or less and 17 percent have a negative net worth.
Myth 4: Start-ups can’t be financed with debt. Actually, debt is more common than equity. According to the Federal Reserve’s Survey of Small Business Finances, 53 percent of the financing of companies that are two years old or younger comes from debt and only 47 percent comes from equity. So a lot of entrepreneurs out there are using debt rather than equity to fund their companies.
Myth 5: Banks don’t lend money to start-ups. This is another myth. Again, the Federal Reserve data shows that banks account for 16 percent of all the financing provided to companies that are two years old or younger. While 16 percent might not seem that high, it is 3 percent higher than the amount of money provided by the next highest source — trade creditors — and is higher than a bunch of other sources that everyone talks about going to: friends and family, business angels, venture capitalists, strategic investors, and government agencies.
So don’t believe the myths, know the reality.
reading theopenfund.com business plan.




