iOS versions Percentage

I was making some analysis in order to understand something more about aWings users. This is the chart of iOS version percentage for the users:


iOS Version


This graph shows clearly that for technology or startups apps, you could develop only for iOS 7.


Mac OSX Lion HP Color Printers Drivers

If you have recently moved to Mac from Windows and you want keep on using your old HP color printers, you are having some issue for sure.

The most drivers present in OSX are not compatible with yours and so you are only able to print in black and white.

To simply solve this problem, just install he HPijs driver from Linux Foundation. Just go to this site:


and install all the three package:

  • Foomatic-RIP
  • Ghostscript

Now you have only to switch on your printer and all your colors prints are there!



iOS Developing: App Compatible with iPhone 3G and armv6

XCode 4.2 uses as default armv7 for processor instructions. As iPhone 3G is armv6 compatible only, all apps created by default in XCode 4.2 cannot run on these devices.

Fixing this problem is very easy. First af all you should add armv6 in your compiler settings in “Architectures” and “Vallid Architectures” for your Target:


Secondary you have to edit your info.plist file by substituting “armv7” with “armv6” as “required device capabilities”.


NOTE: in info.plist you have to insert only “armv6”, otherwise this app will require both of the architectures and it will work only on iPhone 3GS, 4 and 4S.

I took the pictures to write this post from this article: http://stackoverflow.com/questions/7760946/is-it-possible-to-target-older-ios-versions-when-using-xcode-4-2-and-ios-5-sdk




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:


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
@previousPage = params[:page].to_i - 1
@nextPage = params[:page].to_i + 1

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.



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.