Nautilus problem in Natty

Posted May 18th, 2011 in News, ubuntu by Gevork

Ubuntu? Natty? You have installed 11.4 and have problem, that Nautius is not opening any folder? Hm… If you don’t care and need Ubuntu One syncro service, than just do

Continue Reading »

Codeigniter’s function to make thumbs like phpThumb

Posted January 16th, 2011 in News by Gevork

I was thinking on how to integrate phpThumb in CodeIgniter when I found a great answer on StackOverFlow.com

You can do this with the codeigniter image manipulation class.

Just create a helper with your image resize code, here is a basic example:

In the Helper

if ( ! function_exists('generate_image'))
{
    function generate_image($img, $width, $height){

        $obj =& get_instance();

        $obj->load->library('image_lib');
        $obj->load->helper('url');

        $config['image_library'] = 'gd2';

        $config['source_image'] = $img;
        $config['new_image'] = './resources/images/img_tp/tn_img.png' ;
        $config['width'] = $width;
        $config['height'] = $height;

        $obj->image_lib->initialize($config);

        $obj->image_lib->resize();

        return $config['new_image'];
    }
}

Name as you wish and ensure to load the helper in your controller constructer.

Then in your view:

You can create a set of functions in the helper to perform different manipulation tasks and use them directly in your view using this method.

Here is the image manipulation documentation. http://codeigniter.com/user_guide/libraries/image_lib.html

Source: http://stackoverflow.com/questions/3336627/how-to-integrate-phpthumb-into-a-codeigniter-applications-architecture

цены в ереване просто бешеные

Posted November 10th, 2010 in News by Gevork

Скоро  НГ, а в Ереване УЖЕ началось… Цены странно повысились.  Например за день сыр  который был от силы максимум 1600драмов сразу же вырос до 2800драмов. Цены не только на сыр а в общем  очень высокие. Картошка, Хлеб, Сахар, ЯБЛОКИ!

Яблоки стоят 500др, что есть  почти евро! А в австрии те же яблоки 2кг я покупаю за 1,4Евро.

Вот люди и убегают….

как спрятать себя от нежелательных друзей на facebook-e

Posted October 19th, 2010 in How-To, News by Gevork

Часто нам надо работать а друзья всё пишут и пишут в чат на фейсбук.. В одноклассниках есть например функция , правда не бесплатная-Невидимка. На фейсе же есть один очень универсальный путь… Можно для одних быть видимим, а для других уйти в оффлайн..

Сначала нажмите на кнопку “Списки Друзей”  и создайте одну специальную… Я назвал свою ‘??????” что на армянском и значит “специальная”…

Screenshot-1

Сначала правда ваш лист будет пуст. Не знаю почему у меня не получилось в пустой лист в самом чате путем перетаскивания бросить людей из нижнего списка в пустой список “??????” … Наверное не усмотрели… Поэтому идем в модуль Друзья, и нажимаем на Редактирование друзей. и выберем первую жертву. И кидаем его/ее в список первым.

Screenshot-3

После этого можно в самой окошечке чата  путем перетаскивания  бросать  друзей снизу из группы Другие пользователи в наш магический специальный лист.

И все!Вы имеете например 3 человека в вашем специальном списке. Если они те которые вас достают иногда и не дают работать просто уйдите оффлайн для них нажав на волшебную кнопку ….

Screenshot

А может вы захотите вырубить просто всех остальных а видимым оставаться для Специальной группы?

Ну на вкус и цвет …….

(c) Gevork Grigorian

Codeigniter Cache Libraries

Posted June 25th, 2010 in News by Gevork

ci_logo_flame-150x150Hi there.. I am not sleeping and searching for a good library to use . I am looking a multipurpose cache library for my social network made on codeigniter. So Now question about the scaling stands out and I am gonna to integrate some memcache .

So will do parallel list of all found libs. Maybe you will need it.

  1. Elliot Haughin’s Codeignuter Multicache Library (memcache , PHPCache) download
  2. Khaos::Khcache(eAccelerator, APC und XCache)  download
  3. Cache Library (memcache, file)    download

Add some more in comments if you know

Wishlist 2010-2011

Posted June 3rd, 2010 in News by Gevork

1. Iphone or Android Phone with GPS navigation  ———500Eur

2.Ipad————————————————————700EUR

3. Bicycle with headcover and some closes special for driving it and not to catch a cold  800EUR

4. Volkswagen Polo————————————————————————2500EUR

…………………………………………………………………………………………………………………………………

Total ——————————————————————————————————–4500

DBAD-Don’t Be a Dick software license :))))))

Posted May 26th, 2010 in Development, News by Gevork

I have found this pretty avesome and funny and nice thing at Phil Sturgeon Web-site.

Don’t Be A Dick software license…

Original text you can find here

If you are so lazy to click on the link  then..

  DON'T BE A DICK PUBLIC LICENSE

                    Version 1, December 2009

 Copyright (C) 2009 Philip Sturgeon <email@philsturgeon.co.uk>

 Everyone is permitted to copy and distribute verbatim or modified
 copies of this license document, and changing it is allowed as long
 as the name is changed.

                  DON'T BE A DICK PUBLIC LICENSE
    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  1. Do whatever you like with the original work, just don't be a dick.

     Being a dick includes - but is not limited to - the following instances:

	1a. Outright copyright infringement - Don't just copy this and change the name.
	1b. Selling the unmodified original with no work done what-so-ever, that's REALLY being a dick.
	1c. Modifying the original work to contain hidden harmful content. That would make you a PROPER dick.

  2. If you become rich through modifications, related works/services, or supporting the original work,
	share the love. Only a dick would make loads off this work and not buy the original works
	creator(s) a pint.

  3. Code is provided with no warranty. Using somebody else's code and bitching when it goes wrong makes
	you a DONKEY dick. Fix the problem yourself. A non-dick would submit the fix back.

CUADS:Codeigniter Unified Addon Development Standard

Posted May 22nd, 2010 in News by Gevork

Hi there who is making nice web-sites on Codeigniter. I like this framework. But I think it has some lack of standard. Really, I am not kidding. It would be great to have a standard of addon development, so that after when you share your code, the person who wants to use it would need to make 3 main steps.

1) Run mysql query from /addon_folder/install.sql

2)read /addon_folder/readme.txt

3)upload /addon_folder/application  to the /system folder of his web-site or wherever the application folder he put , and don’t worry that anything will be overwritten

4) in case there should be any hacking made to the system files, like config.php, routes.php or else , ther should be  very well described

/addon_folder/hackit.txt you do what is written, and  yummy!

5) YOU GO to mysite.com/addon/ and feel happy! Everything should work!

I will add the rules step by step here. Your comments will be very appreciated

So  I am begining to add .

1) The addon should have  DBAD License (Don’t Be A Dick)

Get Last Inserted Row ID in Codeigniter

Posted May 9th, 2010 in News by Gevork

It’s Simple like magic. How? Just one line

$this->db->insert_id();

Note: Helper uses php  php function mysql_insert_id

Note2:

Retrieves the ID generated for an AUTO_INCREMENT column by the previous query (usually INSERT).

Have Fun.

How to upload your project to github.com

Posted May 2nd, 2010 in News by Gevork

After you add a repository, you get something like this

Global setup:

 Download and install Git
  git config --global user.name "Your Name"
  git config --global user.email maridansoft@yahoo.com

Next steps:

  mkdir CodeIgniter-Shop
  cd CodeIgniter-Shop
  git init
  touch README
  git add README
  git commit -m 'first commit'
  git remote add origin git@github.com:maridansoft/CodeIgniter-Shop.git
  git push origin master

Existing Git Repo?

  cd existing_git_repo
  git remote add origin git@github.com:maridansoft/CodeIgniter-Shop.git
  git push origin master

Importing a Subversion Repo?

  Click here

When you’re done:

  Continue