Archive for category Technology

Charge iPhone 3g with a usb in a sigarette lighter socket

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!

Will_paginate on Ajax for Ruby on Rails!

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 '&laquo; Previous', :url => { :action => "indexAJAX", :page => @previousPage }, :update => "content" %>&nbsp;&nbsp;&nbsp;Page <%= @previousPage %> of <%= @posts.total_pages.to_i %>&nbsp;
<% else %>
Page 1 of <%= @posts.total_pages.to_i %>&nbsp;
<% end %>&nbsp;
<% if @nextPage <= @posts.total_pages.to_i %>
<%= link_to_remote 'Next &raquo;', :url => { :action => "indexAJAX", :page => @nextPage }, :update => "content" %>
<% end %>

I know that there is a smart way to write this code, so please comment here!

Burn a playable DVD from a VIDEO_TS folder

Here the free and quick method for burning a VIDEO_TS folder to a pure UDF DVD, so that it would play in regular DVD players, as well trigger DVD Player to start up automatically. Just open a Terminal Windows:

hdiutil makehybrid -udf -udf-volume-name DVD_NAME -o MYDVD.iso /parent/folder/VIDEO_TS

Make sure that /parent/folder/VIDEO_TS is the path to the folder containing the VIDEO_TS folder, not the VIDEO_TS folder itself. Once the .iso file has been created, drag this to Disk Utility and hit the Burn button.

Enjoy!

Just ordered my Snow Leopard copy! Waiting for 28th…

Snow Leopard

Chrome, Google OS for netbook and PCs

Google is developing an open-source operating system targeted at Internet-centric computers such as netbooks and will release it later this year, the company said Wednesday..

The Chrome OS will be available for computers based on the x86 architecture, which is used by Intel and Advanced Micro Devices (AMD), and the Arm architecture.

Prototypes of Arm-based netbooks began appearing last month at the Computex show in Taiwan and Google’s support for the architecture could give it a significant boost. Microsoft’s mainstream Windows operating system doesn’t run on Arm chips so many manufacturers were talking about using Linux or a version of Google’s Android operating system. It’s not immediately clear how much the two operating systems share in common code but Google said they are aimed at very different devices.

“Google Chrome OS is a new project, separate from Android,” it said. “Android was designed from the beginning to work across a variety of devices from phones to set-top boxes to netbooks. Google Chrome OS is being created for people who spend most of their time on the Web.”

While Google is initially looking at the netbook segment of the market it might compete with Microsoft and Apple on larger, Internet-centric machines.

Chrome OS is “being designed to power computers ranging from small netbooks to full-size desktop systems,” said Google.

The heart of Chrome OS is the Linux kernel. Applications, which can be written in standard Web programming languages, will run inside Google Chrome in a new windowing system. They will additionally run inside the Chrome browser on Windows, Mac or Linux machines, meaning that a single application could run on almost any computer.

Wide support for the platform will be key to getting developers involved and so an important factor in its degree of success.

“We have a lot of work to do, and we’re definitely going to need a lot of help from the open source community to accomplish this vision,” Google said in its blog post.

For end users Google promised a better computing experience on machines with faster access to e-mail, fast boot-up times, access to data from anywhere and the end of problematic hardware configuration, software updates and security issues.

“We are going back to the basics and completely redesigning the underlying security architecture of the OS so that users don’t have to deal with viruses, malware and security updates. It should just work,” Google said.

Introducing our new venture capital firm Andreessen Horowitz

http://blog.pmarca.com/2009/07/introducing-our-new-venture-capital-firm-andreessen-horowitz.html

iPhone 3.0 firmware update

iphone 3.0 software

 

Apple just previewed the 3.0 update. It’s full of new features like, cut&paste, MMS, bluetooth P2P, App Push, Voice Memo and spotligth Search.

iPhone OS is really growing release after release.  The update will be released on next summer. at the moment developers can download the 3.0 Sdk that have over 1000 new API like Mail API, Bluetooth, Sound etc…

Looking forward to this summer!iphone_sdk_logo

A new Iphone coming in June?

The usual rumors tell that a brand new Iphone is ocming. Somebody says June, other the next years.

Designer, but overall people with great fantasy are trying to find out what the new style will be. Here the one I like it more than others.

new iphone 3.0 - restyle aluminuim

Google tell user to drop IE6, i don’t!

Google aver ever suggested to users drop ie6 and switch to modern browser. Now bigG don’t support ie6 user anymore. Recently other web-based app acted like google. I understand that ie6 sucks but a web app should work with any browser.
Maybe not all the function could works or you could have some UI problems but any javascript browser should be supported. This is my opinion, naturally and this the way i take my decision for my webapp Kontup. It’s designed to work with FF2.0 and above but it works with any browser. In Safari or IE6 you could find some bugs, but anyway it works! I took this decision because if you could decide which browser to install on your PC, maybe if you wish to acceess to your data from anywhere like a webapp should do, you must have the chance to really do it!

Capobianco on mobile browsing

Very interesting considerations on mobile phone browsing by Fabrizio Capobianco, Funambol CEO. http://tinyurl.com/5g4ogq