Alex (SirShurf) Frenkel's Blog

A web log of a PHP professional

Archive for the ‘Uncategorized’ Category

WordPress gone Green – 3.4 is out!

leave a comment »

The latest point release of WordPress was just launched to the masses a few hours ago.

We’re most excited about all the nifty new theme customization tools.

Written by Alex (Shurf) Frenkel

June 14, 2012 at 7:51 am

Posted in Uncategorized

Tagged with

A hack to temporary fix Zend Server on Ubuntu 12.04

with 2 comments

User brinleyang on Zend forums has posted a temporary fix for the bug Zend introduced in their server on Ubuntu 12.04.

What he did is he created a quick hack and removed the dependency on libkrb in libpq and php-5.3-imap-zend-server deb packages and manually installed the packages after which installing zend server ce should work.

However, this will most likely break postgres and imap zend modules so it may not be the solution for people who require those modules.

You can follow the post here:
http://forums.zend.com/viewtopic.php?f=44&t=49693&hilit=ubuntu+12.04&sid=2435e3c7c2ebea1d4e4f3342f4148753&start=10

Advertisement

Written by Alex (Shurf) Frenkel

April 29, 2012 at 10:03 pm

WordPress 3.4 Beta 1 – Developer preview

leave a comment »

WordPress developer team have released Beta 1 of the next version of WordPress.

This is not a production release, only install it on test servers to check on your themes and plugins!

If all goes well, WordPress 3.4 will be released  in May. If you want to be a beta tester, you should check out the Codex article on how to report bugs.

Here’s some of what’s new:

  • Theme Customizer with Previewer
  • Flexible Custom Header Sizes
  • Selecting Custom Header and Background Images from Media Library
  • Better experience searching for and choosing a theme

And some of the under-the-hood changes:

  • New XML-RPC API for external and mobile applications
  • New API for registering theme support for custom headers and backgrounds
  • Performance improvements to WP_Query by splitting the query (Please test!)
  • Internationalization improvements (improved performance and locale support)
  • Performance and API improvements when working with lists of installed themes
  • Support for installing child themes from the WordPress Themes Directory

Remember, if you find something you think is a bug, report it! You can bring it up in the alpha/beta forum, you can email it to the wp-testers list, or if you’ve confirmed that other people are experiencing the same bug, you can report it on the WordPress Core Trac. (We recommend starting in the forum or on the mailing list.)

Written by Alex (Shurf) Frenkel

April 10, 2012 at 2:07 pm

PHP 5.4 is out, and here is the list you should be watching

leave a comment »

As of today PHP team has released PHP 5.4.

Since this is a major version here is the list of things you should look at:

    • The break and continue keywords don’t accept variable argument anymore. Consider using a static constant argument.
    • Safe mode is no longer supported. Any application that rely on safe mode may need adjustements in term of security.
    • Salsa10 and Salsa20 hash algorithms have been removed.
    • In Date extension, setting the timezone with the TZ environment variable is no longer supported. The extension will no longer guess the default timezone if none is set, instead it will always fall back to “UTC”.
    • get_magic_quotes_gpc() and get_magic_quotes_runtime() now always return false. set_magic_quotes_runtime() raises an E_CORE_ERROR
    • Non-numeric string offsets – e.g. $a[‘foo’] where $a is a string – now return false on isset() and true on empty(), and produce warning if trying to use them. Offsets of types double, bool and null produce notice. Numeric strings ($a[‘2’]) still work as before. Note that offsets like ‘12.3’ and ‘5 and a half’ are considered non-numeric and produce warning, but are converted to 12 and 5 respectively for BC reasons.
    • Turning null, false or empty string into an object by adding a property will now emit a warning instead of an E_STRICT error.
    • Converting array to string now will cause E_NOTICE warning.
    • Shadowing names of superglobals for parameter names now causes a fatal error.
    • array_combine() now returns array() instead of FALSE when two empty arrays are provided as parameters.
    • call_user_func_array() no longer allows call-time pass by reference.
    • htmlentities() now emits an E_STRICT warning when used with asian characters, as in that case htmlentities() has (and already had before this version) the same functionality as htmlspecialchars().

The following keyword(s) are now reserved and may not be used in function, class, etc. names.

  • trait
  • callable
  • insteadof

The following functions have been removed from PHP :

  • define_syslog_variables()
  • import_request_variables()
  • session_is_registered(), session_register() and session_unregister()
  • mysqli_bind_param(), mysqli_bind_result(), mysqli_client_encoding(), mysqli_fetch(), mysqli_param_count(), mysqli_get_metadata(), mysqli_send_long_data(), mysqli::client_encoding() and mysqli_stmt::stmt()

Have fun coding!

Written by Alex (Shurf) Frenkel

March 2, 2012 at 8:53 am

WPMU Ultimate Facebook plugin Fix

with one comment

In addition to this post:Problem with UTF, Excepts — AND GOOD CODING PRACTICES!

I have created a fix to Ultimate Facebook:
This fix address next things:
* Facebook OpenGraph fails if the text in description is incorrect – especially in Hebrew
* Current version of the plugin sends in wall post description blog tag line. In my fix I am sending Excerpts.

The plugin can be downloaded at wordpres.org.

http://wordpress.org/extend/plugins/wpmu-dev-facebook-addon/

Written by Alex (Shurf) Frenkel

February 20, 2012 at 9:42 pm

A new generic module for Zend framework – Menu Module

leave a comment »

I have created a new generic self containing module that works with Zend framework MVC application.

The module is a Menu Module, it manages menu for MVC application and using a bootstrap and substitutes it over the menu added in the config.

Here is the link to it:
https://github.com/sirshurf/MenuModule

Currently it depends on my jQGrid Library https://github.com/sirshurf/iphp and on Belleron-Frenkel library (an extension on Zend Framework standard modules) https://github.com/sirshurf/Belleron-Frenkel

Any help/idea is welcomed 🙂

Written by Alex (Shurf) Frenkel

October 22, 2011 at 12:10 pm

Posted in IDE, jQGrid, Uncategorized, Zend Framework

Tagged with , , ,

A new domain…

leave a comment »

Well not know if anybody noticed but I have decided to move this blog to it’s own domain name.

Going to play with WordPress MultiSite

Written by Alex (Shurf) Frenkel

October 20, 2011 at 8:23 pm

Posted in Uncategorized

JQuery & CSS Dropw down menu

leave a comment »

I have been looking for a long time for a JQuery/CSS drop down menu that would not clash with Zend Framework, and especially with Zend Navigation.

This is the one that comes closest:
http://www.noupe.com/tutorial/drop-down-menu-jquery-css.html

Written by Alex (Shurf) Frenkel

August 23, 2011 at 10:17 am

Posted in Uncategorized

Tagged with , , , , ,

Remove .svn files from directory list

with 4 comments

One of my projects had an old .svn files from the ckeditor checkout.

The problem was that there are too many directories to remove it manually so after some searches and tries here is the command to clean this .svn files.

find ./ -name ".svn" | xargs rm -Rf

Have Fun

Written by Alex (Shurf) Frenkel

May 4, 2011 at 4:52 pm

Posted in IDE, Uncategorized

Tagged with , , ,

How to Add Folder Locations to the “Places” Menu on Ubuntu

with one comment

I was googling lots to understand how to add custom folder locations to the “Places” menu in my Ubuntu.

What I have found finally is that you simple need to open the location in the file manager (The file manager is named Nautilus) and drag the folder to the left side menu!

Simple as that.

Written by Alex (Shurf) Frenkel

February 3, 2011 at 10:39 pm

Posted in Uncategorized

Tagged with ,