Welcome in ttech.it blog

iPhone – TTech.it RSS available on App Store

July 31st, 2010 Tommy No comments

TTech.it RSS

Finally available on App Store, the official App of this blog, TTech.it

Through this application, very basic at the moment, you can easily display the news of ttech.it blog.

You can download it through this iTunes' link.

Categories: My Softwares, News, iPhone Tags:

Antennagate – iPhone 4 problem is not the same as other phones (UPDATED)

July 17th, 2010 Tommy 4 comments

 

This is an automatic translation.

I am writing this article to give my opinion on the phenomenon antennagate (as christened by Steve Jobs during the conference yesterday), and then to have my say on this issue.

Let's start off by what I say, the iPhone 4 has a problem, is an hardware problem, and is not a problem that all other smartphones.

First of all I hope that those who go against my thoughts, do it in an objective and has at least the basics of electronics.

Let's start off by images of this popular antenna:

The famous death grip

 

 

Read more…

Categories: News, iPhone Tags: ,

(Script) Compiling App for iPhone without Provisioning Profile with Xcode 3.2.1/3.2.2/3.2.3 (UPDATED X2)

June 11th, 2010 Tommy 15 comments

@UPDATE (June 22, 2010): NOW THE SCRIPTS WORKS WELL.

Here we are, with the WWDC last July 7, was presented the new iPhone 4 and was released the new iOS 4 GM before the final release. As always, I created my script compatible with those versions that allows you to build applications without Provisioning Profile.

To follow the manual procedure, please follow the instructions in this article, otherwise you can download the new script that automatically make the changes:

DOWNLOAD

In your project's properties, find “Code Signing Identity” and “Any iPhoneOS Device” in the list, and set to “Don’t code sign”.

Xcode Codesign

IMPORTANT!

After running the script: If you want to debuging on iPhone, you must also create a certificate called "iPhone Developer" and consider it trusted. Follow this link to see the guide to create a certificate. Also, you must have AppSync installed in your iPhone.

Read more…

Categories: News, iPhone Tags:

Compiling App for iPhone without Provisioning Profile with Xcode 3.2.2/3.2.3 (UPDATED)

May 10th, 2010 Tommy 51 comments

@UPDATE (May 14, 2010): As with the previous version, I created a script that executes all changes automatically with a few simple steps. Read here.

@UPDATE (Jun 10, 2010): This guide also works for Xcode 3.2.3 beta and iPhone SDK 4 GM.

With  Xcode 3.2.2 I failed to compile applications for my iPhone 3.1.3 according to my previous article (I don’t know if I wrong something). I had to look a bit ‘on the Internet and finally I found a nice article that explains how to compile applications with Xcode 3.2.1 but it works also with Xcode 3.2.x. This is the link: http://www.alexwhittemore.com/?p=354

If you want to debug on iPhone, you must also create a certificate called “iPhone Developer” and consider it trusted. Follow this link to see the guide to create a certificate.

Categories: News, iPhone Tags:

Zend Framework – All project’s files on DOCUMENT_ROOT

March 12th, 2010 Tommy No comments

You often have to publish the sites where, on the server, you have write access on the main public directory only, the DOCUMENT_ROOT of the site. This is always (or almost) on shared server. How to solve this problem?

Our goal is to have the same structure of a default Zend Framework in the DOCUMENT_ROOT folder, but allowing the user access only to the public folder. To do this we must create an .htaccess file in the DOCUMENT_ROOT, telling Apache to redirect all requests to the index.php file we have in the public directory.

The contents of the .htaccess file on DOCUMENT_ROOT, which we will use as default .htaccess (the same that you should put on the public folder, which you’ll can delete), will be the following::

SetEnv APPLICATION_ENV development

RewriteEngine On
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{REQUEST_URI} =""
RewriteRule ^.*$ /public/index.php [NC,L]
RewriteCond %{REQUEST_URI} !^/public/.*$
RewriteRule ^(.*)$ /public/$1
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [NC,L]
RewriteRule ^public/.*$ /public/index.php [NC,L]

The first line, as you should know, is to define the type of use (then, the different configurations) of the project.
The other set Apache’s mod_rewrite rules for redirect requests on public folder.

Categories: News, Zend Framework Tags:

Word Reference Dashboard Widget for Mac OS X

February 23rd, 2010 Tommy 14 comments

Word Reference Widget for Mac OS X Dashboard


This widget allows you to search quickly through the site wordreference.com , one of the best sites to translate words from / to several languages. Download it, write the word, choose the original language and the language to translate it … and you will have all the information, translations, profiles, etc …

Word Reference Widget Screenshot 1.0.6

Download

What’s new in version 1.0.6 .
- Bugs fixed in spanish translations
- Bugs fixed in definitions and synonyms
- Bugs fixed in tables
- Added the dictionary info

Categories: My Softwares, News Tags:

iPhone: How to compile applications with Xcode 3.2.x (x<2) without the Provisioning Profile

October 23rd, 2009 Tommy 2 comments

@UPDATE (02/11/2009): I make a script to automatically execute the following steps, you can download it from here: http://www.ttech.it/downloads/?did=2. (Only for Xcode 3.2.1)

@UPDATE (08/05/2009): WARNING! This method did not work for me with Xcode 3.2.2 and 3.1.3 iPhoneOS. I do not know if I’ve done something wrong or there were changes in Xcode 3.2.2 or in iPhoneOS 3.1.3.

Here I am, this time for a tutorial on how to compile applications 3.1 for iPhone, with Xcode 3.2 .* without provisioning profile. If you do not know what is provisioning profile, I can summarize briefly, that in order to create and install an application on the iPhone, Apple requires a “subscription” where you must pay $ 99 per year. But with a jailbreaked iPhone and some small change, you can install applications on your iPhone! I was wandering around the net trying to find how to build applications, as I was starting to make a small test program. Gradually I came to the attention of provisioning profiles and much more, but I always found old guides that no longer work with latest versions of Xcode and iPhone firmwares. I had tried everything, but there was always some problem. I finally found a workable solution … I found a guide “ Compiling iPhoneOS (3.1) apps with Xcode 3.2 without Provisioning Profile “.

Categories: News, iPhone Tags: , ,

Zend Framework and Zend Tool

June 23rd, 2009 Tommy No comments

Ok, this is my first tutorial in english, then sorry if my english is not more good :)

Few months ago, I started to know the Zend Framework (aka ZF), a library of PHP classes and components created by Zend. Despite its complexity, relactive to others frameworks, I chose this for several aspects, but mainly because I think it is the only one framework that has a future; Zend is the PHP’s company and is not possible that Zend will close the project.

At the time of writing, the last release is 1.8.3. With 1.8 have been introduced changes especially in the initial part of the creation of a project, and a very usefuf tool was integrated (Zend_Tool), wich allows us to initialize the project via shell. I tried it and it’s very useful!

Now we will see how to use Zend Tool. I use a test environment using a distribution of Debian in one of our web server, but can also be used on Windows and Mac.

Configuring PHP and Zend Framework

First, we must download the Zend Framework from http://framework.zend.com/download/latest, then:

[code lang="plain"]dev:~# wget http://framework.zend.com/releases/ZendFramework-1.8.3/ZendFramework-1.8.3.tar.gz
dev:~# tar zxvf ZendFramework-1.8.3.tar.gz
dev:~# cd ZendFramework-1.8.3[/code]

(change the version number with the actual or your version)

I decide to move the “ZendFramework” directory in /var/www, that isn’t the documentroot of Apache, because I have configured the Virtual Hosts. You can decide where move or copy the directory.
PHP allows you to set the “includes” directory, ie each time that a script uses the command include or require, PHP checks the directory of current script in the directories set with the include_path directive.

Then configure the php.ini in /etc/php5/cli and /etc/php5/apache2 (the first is the configuration that typically uses the shell, the second is that it uses the PHP used as a module in Apache 2):

[code lang="plain"]dev:~# nano /etc/php5/cli/php.ini
<pre>dev:~# nano /etc/php5/apache2/php.ini[/code]

and we have the following directives: safe_mode_include_dir and include_path including the path of the ZendFramework library:

[code lang="plain"]safe_mode_include_dir = &quot;.:/var/www/ZendFramework/library&quot;
include_path = &quot;.:/var/www/ZendFramework/library&quot;[/code]

Well, the ZendFramework is installed in our server, now we’ll install Zend Tool.

Installing Zend_Tool

Now, we must confoguring Zend Tool, so:

[code lang="plain"]dev:~# chmod 770 /var/www/ZendFramework/bin/zf.sh
dev:~# ln -s /var/www/ZendFramework/bin/zf.sh /bin/zf
dev:~# zf show version
Zend Framework Version: 1.8.3[/code]

Now everything should be ok! If you did everything right you should see something similar to the above. Now type:

[code lang="plain"]dev:~# zf ?[/code]

You should see a little guide with the available commands.

Next time I will explain how to create a basic project.

Welcome

June 18th, 2009 Tommy No comments

Welcome in my blog.

I’m sorry if english posts are very few. I’m hope to send more english posts in future, so… wait please!

Categories: News Tags: