some words from technology briefcase

Google Code Jam 2012 – Qualification round What Happened

by admin on apr.15, 2012, under are you curious?, gtug

Saturday morning i received a mail that explain to me that the qualification round is beginning, so i logged to the google code website and i found the questions to complete the qualification round!
There were four questions:
  • A. Speaking in Tongues
  • B. Dancing With the Googlers
  • C. Recycled Numbers
  • D. Hall of Mirrors
So i begun to read the first problem …The first one was very simple to solve… (continue reading…)
Leave a Comment :, , , , more...

Cordova 1.6 rc1 directly from GitHub

by admin on apr.11, 2012, under are you curious?

As you can know the new edition of PhoneGap is called Cordova because now it is a project of the Apache foundation…

And now, for you, i have build the release candidate 1.6 that you can download here!

Click Here to download

Cordova 1.6.0 rc1 Release Notes:

+* Updates for Media API
+* Contacts updates for Unified JavaScript
 (continue reading...)
Leave a Comment :, , , , , more...

WordPress: How to block Edit single post

by flotruglio on apr.10, 2012, under Developers, are you curious?

Wordpress Hack!Hi guys,
Have you ever needed to Block the editing of a single post (or a group of they) for a single role or a single user?
I think that this little hack can help you…

You need to intercept this action: admin_head with the common function add_action and then write your redirect code like in this sample:

add_action(‘admin_head’, ‘BlockSomePost’,10 );

function BlockSomePost() {
	//Assuming that blockPostArray is and array that contains your locked post ID...
	global $blockPostArray;

    //get The Current user
	$cUser = wp_get_current_user();
	//Check the User Role:
	//assume that blockrole is your blocked Role...
	if(array_search('blockrole',$cUser->roles)!==FALSE) {

		if($_GET) {
			if(isset($_GET["post"]) && $_GET["action"]=='edit') {
				$currentPost = $_GET["post"];
				if(array_search($currentPost,$blockPostArray)!==FALSE) {
					//If the current edit post in into the array redirect to your wordpress homepage!
					header( 'Location: ' . get_settings('siteurl') );
					exit();
				}
			}
		}
	}
}

I hope that you appreciate this snippet…that is only a starting point to do something more complex, for example you can use the User_Meta fields to attach some post to the user or a database table to store the list of the blocked posts!!

Have a nice coding day!

Leave a Comment :, , , , , , , more...

PhoneGap and GoogleAnalytics (without plugins!)

by admin on apr.10, 2012, under Developers, IOS

PhoneGap - NitobiHere for you a little tip (on Ios) to start with the Google Analytics during the developing of an IOS PhoneGap Project:

 

First of all download and do everything is written into this short guide: http://code.google.com/apis/analytics/docs/mobile/download.html#Google_Analytics_SDK_for_iOS; this guide is very simple to follow and if you need any help please contact us!

Then, open your AppDelegate.m File, and look for the function :

- (BOOL) webView:(UIWebView*)theWebView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType

When you are into the function, it looks like this:

- (BOOL) webView:(UIWebView*)theWebView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType
{
return [self.viewController webView:theWebView shouldStartLoadWithRequest:request navigationType:navigationType];
}

And you need to add these few lines to the top of the function:

NSString* path = [NSString stringWithFormat:@"%@",request];
if([path hasPrefix:@"mailto"]==NO) {
NSRange range = [path rangeOfString:@"/" options:NSBackwardsSearch];
NSString* fileName = [NSString stringWithFormat:@"/%@",[path substringFromIndex:range.location + 1]];
NSError *error;
if (![[GANTracker sharedTracker] trackPageview:fileName
withError:&error]) {
NSLog(@"error in trackPageview");
}
}

With these few lines we can intercept the reload of the webview and then send a PageView to the Google Analytics tracker!!
Do not forgot to include the tracker into your AppDelegate!

Have a fun coding!


Leave a Comment :, , , , more...

Mobile School: The mobile Revolution has begun (in Italian Way!)

by admin on set.14, 2011, under Android, Developers, are you curious?, gtug

MobileSchool is now ready for you… and the Italian Developer can improve their knowledge through it!

Now the subscriptions are open!
Subscribe yourself to one of the stages of the Mobile Revolution; the tour starts in October from Palermo (Sicily) and get to Milan in various stages to disseminate the mobile knowledge.

You can learn more from the website that speaks about it, such as RabenBlog (visible at: http://rabenblog.eraben.com/w/index.php/difficolta/saputello/sviluppare-applicazioni-android-con-mobileschool/) that wrote a beautiful post about Francesco Lo Truglio and his role in the MobileSchool!

and now, what do you want to do? Do you want to stand outside and watch this revolution? Join it!

http://www.mobileschool.it

2 Comments :, , , , , , , , more...

Apple: Steve Jobs resigns as CEO

by flotruglio on ago.25, 2011, under General, are you curious?

As you know Steve Jobs yesterday resigned as CEO of Apple..and now?

He, the amazing mind behind  “new era devices ” such the iPhone and the Ipad, he that turned Apple  into one of the world’s most powerful and innovative companies, now maybe for unspecified medical condition leave the leading of Apple..and now? Now that the war has just bugin? What will happen?

Now that Google has bought Motorola Mobile and now that Nokia will use Wp7 in its mobile devices?Now that Apple has to show to the whole World his Lion teeth…The only thing can we can expect is a period in whitch the shares will be strange and they do some up and down…but now we just have to wait for the next move of Tim Cook (the new CEO of Apple)  and wait for recovery of the shares and the launch of the new devices…

What do you think about these facts?
Add comment or write to myself to increase the prediction of the new Apple era!

Leave a Comment :, , , , more...

MobileSchool: Challenge 1Idea1App

by admin on mag.28, 2011, under Android, Developers, gtug

Hey guys!
Have you an idea for a mobile app? or do you want to learn how to make a mobile app?

Join the challenge and explore the mobileschool contest, the first traveling mobile school!

Leave a Comment :, , , , , , more...

Palermo GTUG “News from Google I/O 2011″ live streaming

by Adriano Tornatore on mag.24, 2011, under are you curious?

You can watch the event LIVE here or clicking here

Watch live streaming video from palermogtug at livestream.com
Leave a Comment :, , , more...

Beginning with honeycomb (new developing experience)

by admin on mag.22, 2011, under Android, Developers, are you curious?

Hello to everybody,
after more than a two year on Android platform, we have a new powerful framework to develop tablet based application.

Android HoneyComb! what is ? i cannot spend a lot of words on this but you can read the specs on another post of mine (honeycomb), because in this post i want describe the most important news, needed to have a first approach to this developing environment!

The language and the tools are the same (eclipse, java …and so on!) but the approach need to be different, in honeycomb we have the “Fragment”.

The Fragments be a great way to display content, and allow easier navigation of tablet devices, they are similar to the activity but they are only a piece of the global activity. A Fragment object is something between a View and and Activity: It can be part of a layout, but it isn’t a subclass of View. It implements the ComponentCallbacks interface, and it has a lifecycle, but that lifecycle is dependent on the Activity the Fragment object belongs to. Let’s see what it can do for us in a tablet-sized user interface.

There are four important thing that the fragment do for you:

  • Dialogs: there is a Fragment called DialogFragment that makes it easy to show a Dialog that is managed as part of the Activity lifecycle.
    This replaces Activity’s “managed dialog” APIs.
  • ListActivity: Another kind of Fragment called ListFragment makes it easy to show a list of data.
    This is similar to the existing ListActivity (with a some new features), but answer to the common question about how to show a list with some other data.
  • State and restoring: all fragments currently attached to an activity are saved for you by the framework in the activity’s saved instance state and restored for you when it restarts. With this you get help on saving (and restoring) the state of the single fragment.
  • History and Navigation: The backstack of all the fragment object loaded is managed by the framework; so it is very easy the use of the activity back button, and you can integrate the existing activity to the fragment backstack! This kind of state is also saved and restored for you automatically.

Now we are ready to begin! follow us, in a couple of day we will prepare a complete example regarding a first honeycomb application to interact with facebook!

Stay tuned!

Leave a Comment :, , , , , , , more...

News from Google I/O 2011

by Adriano Tornatore on mag.20, 2011, under Android, Developers, are you curious?, gtug

All ready for May 24 when at ITIS Vittorio Emanuele III (via Duca della Verdura, 48 – Palermo) starting at 3 pm will take place another GTUG (Google Technology User Group) event called “News from Google I/O 2011″.
We will talk about last technologies and solutions shown in the biggest Google I/O event in San Francisco on 10-11 May. Here the full program:
  • News from Google I/O 2011
  • Case study on Chrome Webstore: developing tools and best practices
  • Palermo GTUG members developed Android apps showcases
  • Introducing Android Tablet “ASUS Eee Pad Transformer” by Infograf sas company
  • Google Jobs: recruitment and applications collection
  • Question time

Main speaker will be Claudio Cherubino from Sicily, Developer Programs Engineer at Google’s offices in London, he works on Google Apps API and on  Google Apps Marketplace.
He worked also as software developer, technology evangelist, community manager, consultant, technical translator and several open-source projects got his contributes like MySQL, PHP, WordPress, Songbird and Voldemort Project.

To see his developer profile just click here http://code.google.com/intl/it-IT/team/.
We will also show our current project and our ideas about all mobile world, especially about the growing Android world that is getting more importance day by day among middle-low profile mobile users.
We also will talk about our starting project referred to our mobile schools in all Italy and all its mobile developing opportunities.
Free entry.
This event is organized by Palermo Google Tecnology User Group in partnership with ITIS Vittorio Emanuele III.
Leave a Comment :, , , , , , more...

dizi izle dizi izle dizi izle dizi izle dizi izle dizi izle dizi izle çizgi film izle bakugan izle dizi izle kayu izle caillou izle ben 10 izle ben ten izle