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?



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.

Google Dart V.S. JavaScript

A technical overview on the Dart language site,

„Dart programmers can optionally add static types to their code. Depending on programmer preference and stage of application development, the code can migrate from a simple, untyped experimental prototype to a complex, modular application with typing. Because types state programmer intent, less documentation is required to explain what is happening in the code, and type-checking tools can be used for debugging.“

Google notes that with existing languages, the developer is forced to make a choice between static and dynamic languages. Traditional static languages require heavyweight tool chains and a coding style that can feel inflexible and overly constrained.

Google further explained the design goals for Dart by describing the issues web developers face today:
Small scripts often evolve into large web applications with no apparent structure—they’re hard to debug and difficult to maintain. In addition, these monolithic apps can’t be split up so that different teams can work on them independently. It’s difficult to be productive when a web application gets large.

Scripting languages are popular because their lightweight nature makes it easy to write code quickly. Generally, the contracts with other parts of an application are conveyed in comments rather than in the language structure itself. As a result, it’s difficult for someone other than the author to read and maintain a particular piece of code.

Google + API

Today, Google launching the first version of the Google+ APIs.

This API release is public data only — it lets you read information that people have shared publicly on Google+.

Note: The Google+ API currently provides read-only access to public data. All API calls require either an OAuth 2.0 token or an API key.

I wait for this API 2 month and it’s only read only service :(.

We’ll have to wait longer for full Google + API.

How To Reset Joomla Password

Information database editing.

  1. Get a randomly generated 32 character string such as:
  2. Add that random string to the new password.
  3. Perform an MD5 hash of the combined string.
  4. Add this string into the _users table in the joomla db followed by a : and the 32 character string.

This sets the password as „password“.

Getting WordPress to save your FTP Information

If your a WordPress user which runs WordPress on a server then you’ll know that each time you install or remove a plugin you need to provide FTP information in order for WordPress to  get authorization to add or remove a plugin.

But did you know you can get WordPress to remember the FTP information? Which means you won’t have to constantly keep typing in your password each time you add or remove a plugin!

All you need to do is locate your wp-config.php file which is located within the first directory of your wordpress installation.  Once you’ve located the wp-config.php file open it up in some form of text editor, you edit it via your webhost control panel or over FTP it’s up to you.

Now once you’ve got your wp-config.php file open this is where I will say, DON’T CHANGE ANYTHING. This file (while small) controls part of your WordPress installation and changing any part of it can stuff up your WordPress powered website unless you know what your doing. Luckily we won’t be changing anything just adding a couple of lines to the file. Scroll down to the bottom of the wp-config.php file until you see ?> This represents the closing tag of a PHP script. Add the following just before the end PHP tag:

/* WordPress FTP Information (For removing the constant password request on plugin install and removal) */

define("FTP_HOST", "");
define("FTP_USER", "username");
define("FTP_PASS", "password");

Change the example data to your settings. If you are unsure of your FTP account details contact your host, im sure they’d happily enlighten you!

Save your changes to your wp-config.php file. You can now go ahead and test out your addition by installing a plugin using the Add new feature you should fine that the plugin will install without requesting your FTP password.

SugarCRM: adding custom field in subpanel

How to add custom field into subpanel? Belo is example of Contracts subpanel that is showing in Accounts module/detailview.

irst thing that needs to be done is define a new field in subpanel definition and make that field point to a class. We are edititing the following file custom/modules/Contracts/metadata/subpanels/ForAccounts.php and adding additional field fot showing with following code:

'mediaart_new_field' => array(
'vname' => 'LBL_NEW_FIELD',
'widget_class' => 'SubPanelMediaartNewField', //class name
'width' => '10%',
'custom_link_only' => true,
'displayHeaderCell' => false,

After we have added that part of code we need to create coresponding SugarWidgetSubPanel class in the following path
/include/generic/Sugarwidgets/SugarWidgetSubPanelMediaartNewField.php with code like this:

<?php if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
class SugarWidgetSubPanelMediaartNewField extends SugarWidgetField //payattention to the name of class here

function displayHeaderCell(&$layout_def){
if(!empty($layout_def['displayHeaderCell']) && $layout_def['displayHeaderCell'] == false) {
return ' ';
else {
return parent::displayHeaderCell($layout_def);

function displayList(&$layout_def){
global $focus;
$key = strtoupper($layout_def['varname']);
$key = $this->_get_column_alias($layout_def);
$key = strtoupper($key);
// Current ProductTemplate record (in current subpanel row)
$module = $layout_def['module'];
$record = $layout_def['fields']['ID']; //id contract
$contractName = $layout_def['fields']['NAME']; //name contract


$parent_id=$_REQUEST['record']; //id account-a
//Here you define your logic, my quary to the database and the return from this function will be displayed in subpanel
//So for example you can do
$db = DBManagerFactory::getInstance();
$query = "SELECT * FROM contracts WHERE id = '$record' and account_id = '$parent_id'";
$result = $db->query($query, true,"greska");
$result = $db->fetchByAssoc($result);
$quantity = $result['broj_slucajeva'];
return $quantity; //value of this cariable will be shown in subpanel
} ?>