Tuesday, January 22, 2013

Galaxy S4 Release Date Is Not MWC 2013


Galaxy S4 - جلاكسي اس 4

جلاكسي اس 4


Most of the tech publications are speculating about the Samsung Galaxy S4 release date these days, one of the smartphones set to become one of the overachievers of Android world in 2013. Some said it will be officially announced next month at Mobile World Congress 2013 event in Barcelona, but now we have the confirmation that it won’t happen.




Monday, September 10, 2012

iphone 5 in all over the world in one appointment

iphone 5 in all over the world in one appointment
iPhone 5: Britain's first 4G mobile network hopes for

LEAKED Official Apple iPhone 5 Promo Video - Keynote 2012

Sunday, September 9, 2012

iPhone 5, is that you?

Here is new picture for iPhone 5 .. do u like it ?



iphone 5

the new iphone 5

iphone 5


I love iPhone 5 I think is better than iPhone 4

Saturday, January 14, 2012

Creating Yii theme from a HTML template

Last week I was working on a  project,that was developed  using YII.Client requested some new features in the existing application and asked us to change the old layout of the application.In this post I am using a HTML template to integrate in YII app.
I have built a default webapp using YII command line tool.If you are not familair with YII command line basic app creation you can check my previous post on YII.
The three simple steps are:
1.Choose a HTML template and keep it under the theme directory an declare it in application configuration.
2.Making valid directory structure so that framework configuration can identify the theme
3.Add PHP code to the static HTML template
Step 1.For this post I have used a Open Source Free HTML5  template,you can choose you own and play with it.
Declare the theme name into the application configuration and it is application/protected/config/main.php and add
1'theme'=>'custom_theme',
Here “custom_theme” is the name of the theme I am using.
Step 2.Keep the HTML template into the themes folder of the application.And create four directory named as follows:
>>js: here we will keep all the javascript files
>>css: here we will keep all the css files
>>images:will keep images related to the theme
>>views:here we will have to create two more directory inside it=> sites and layouts.Here we will keep our files.
Inside layout the main.php file should be kept and this file is inherited by all over the theme.
And inside layout we can keep static and custom layouts like contact us,log in etc.
Step 3.In t his step we will add php code to our html template so that it can work properly and dynamic.
1
2clientScript->registerScriptFile(Yii::app()->theme->baseUrl.'/js/script.js'); ?>
For title you have to add
1<?php echo CHtml::encode($this->pageTitle); ?>
For menu you have to add
1widget('zii.widgets.CMenu',array(
2            'items'=>array(
3                array('label'=>'Home', 'url'=>array('/site/index')),
4                array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
5                array('label'=>'Contact', 'url'=>array('/site/contact')),
6                array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
7                array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
8            ),
9        )); ?>
And the main layout is ready,as other pages are inherited from this main.php the theme is almost ready.
As we are working with YII default command line app,I have to create a form for contact us page.The form is created during the application creation now
we have to put a custom widget to have the contact us form.I have used all the default code from the app just added form inside new custom theme.
The theme is ready.

And Contact us is:

You can fork into my git repo and play with it from here.


N.B:My git YII_THEME app is outside the YII Framework directory,to run it you should keep the framework directory just before it.
To learn more about YII theming,you can check it.

laptops for designers 2012

Top 5 Laptops for Designers

 top best laptop deals

5. Dell Studio XPS 16

http://www.denisdesigns.com/blog/wp-content/uploads/2009/04/laptops_dellxps16.jpg


4. Lenovo ThinkPad W700

laptops_lenovo-thinkpad-w700

 

 

3. MacBook Pro 17”

laptops_mbp17 



2. Dell Precision M6400

laptops_dell-precision-m6400

 

 

1. Sony VAIO AW

laptops_sony-vaio-aw

 There are a few other notable 18+ inchers on the market, but none are as superior as the 18.4” Sony VAIO AW. The advanced 1920×1080 LCD is capable of displaying a whopping 137% of the color gamut, for starters. This Sony laptop is one of the lightest 18.4” laptops around and the specs – Intel Core 2 Duo, 8GB RAM, 512MB GPU, 1TB HDD – are right in line with the rest of the pack. Sony is almost as well known as Apple for style in its VAIO line, so the package is complete. And with that impressive gamut display, there isn’t a better laptop out there for the serious designer.

 top best laptop deals

Toshiba 14-inch ultrabook prototype


Toshiba ultrabook

Asus Transformer Keyboard Dock Review!