Show PHP errors

error_reporting(E_ALL);
ini_set('display_errors', 1);

You can remember the all Shakespeare’s sonnets, but not those 2 lines.

Need framework? Why not Yii?

What is Yii?

Yii is a high-performance PHP framework, not so complicated like Symphony or Zend.

About performance!

The graph below shows how efficient Yii is. We compared Yii with other PHP frameworks.

In the graph, RPS (request per second) describes how many requests an application can process per second. The higher the number, the more efficient a framework is.

Yii performance

As we can see that Yii outperforms all other frameworks in this comparison. The performance advantage of Yii is especially significant when the widely used APC extension is enabled.

What about Yii features?

  • Model-View-Controller (MVC) design pattern
  • Database Access Objects (DAO), Query Builder, Active Record, DB Migration
  • Form input and validation
  • AJAX-enabled widget
  • Authentication and authorization
  • Skinning and theming
  • Web services
  • Internationalization (I18N) and localization (L10N)
  • Layered caching scheme
  • Error handling and logging
  • Security
  • Unit and functionality testing
  • Automatic code generation
  • Friendly with third-party code
  • Detailed documentation
  • Extension library

all what you need ;)

My personal experience.

To test this framework, i create an online CV – www.kasparaitis.lt.
I have seen it was easy and intresting.
Further development of this project and will write a more detailed description.

Conclusion

If you are looking framework, why not Yii? Easy for beginners and full of features for more advanced users.

Remove duplicate values from an array in PHP

Today’s chalenge: How to remove the duplicate values from a PHP array?

after short search i found solution array_unique.

How this function works:

<?php

$input = array(1, 2, 2, 3, 3, 4);

$result = array_unique($input);

var_dump($result); ?>

will output:
array(4) {
[0]=> int(1)
[1]=> int(2)
[3]=> int(3)
[5]=> int(4)
}

Remember: Output of array_unique() will have the same key of input array.

Google Currents app updated !

US people have been able to use the Google Currents app to read various websites with magazine-style layout.

Now other countries can finally get in on the act as well. Google has release version 1.1 of the app for Android and iOS.

New version makes the service available worldwide with support for 44 languages, adds a number of other improvements:

  • the ability to select which editions have images for offline reading
  • instant online sync
  • translation for 38 languages
  • promised 7X performance boost

And the best – app is completely free, and adapts the layout to suit both phones and tablets.

Scan QR code below to download it for the platform of your choice.

MIT launchesApp Inventor public Beta

the Android apps creation tool is no longer being managed by Google. MIT worked up its own version.

Now you can go and log into the MIT App Inventor with valid Google ID.

App Inventor lets you develop applications for Android phones using a web browser and either a connected phone or emulator. The App Inventor servers store your work and help you keep track of your projects.

You build apps by working with:

  • The App Inventor Designer, where you select the components for your app.
  • The App Inventor Blocks Editor, where you assemble program blocks that specify how the components should behave. You assemble programs visually, fitting pieces together like pieces of a puzzle.
  • Your app appears on the phone step-by-step as you add pieces to it, so you can test your work as you build. When you’re done, you can package your app and produce a stand-alone application to install.

Google+ launches Pages for businesses

Google opened up Google+ to business.

It’s calling Google+ Pages. Google+ Pages appears to be little difference between a Page and an individual account.
You’re able to add Pages to any of your regular Circles. Page owners are able to post and take part in Hangouts.
Pages turn up in Google search results. Company’s introduced a new Direct Connect and lets you search specifically for Google+ Pages.
Both features are rolling out starting today.

P.S. my first google+ page MediaArt

about nerds

I visited with my boss, and a client whose website I’m going to do. The client had met my boss before, but not me. So, my boss introduced me:

Boss: Well, this is the guy who’s doing your website, Bob.
Client: Hi there! So you’re the nerd, right?

 

from: clientsfromhell.net

Adobe Photoshop CS6

Today found nice torrent – „Adobe Photoshop CS6 v13.0 Pre Release Incl Keymaker-CORE „.
After search of new features I watch nice video:

and some fake video to:

Will check more new future from CS6 and post here.