how to intergate simplepie with codeigniter 2.1.

Posted January 26th, 2012 in Development, News by Gevork

Codeigniter 2.1.0? And you need to use simplepie? Have you downloaded already the usual 1.2.XX  version from simplepie website and have got an error?

There is better way…
First please download simplepie’s latest development build from here

http://dev.simplepie.org/SimplePie.compiled.php

Continue Reading »

Best and simple portfolio theme for wordpress

Posted January 15th, 2012 in Development, News by Gevork

I have been struggling to find a very simple, nice and good theme for wordpress, which will give me possibility to adjust the categories of each project, add multiple photos to one project, order them in categories, add photos/videos and so on….

I am gonna build one! Will post any update here…

Fix myeasyDb for wordpress(fast method)

Posted October 18th, 2011 in Development by Gevork

Installed myeasyDB plugin for wordpress and it’s not working?

Maybe showing an infinite loading animation?

then open

/wp-content/plugins/myeasydb/js/myeasydb.js

and on line

15-20

find 2 variables  ajaxURL and imgUrl and define them as follows….
var ajaxURL = window.location.protocol + ‘//’ + window.location.hostname + ‘/wp-content/plugins/myeasydb/ajax_ro.php’;
var imgURL = window.location.protocol + ‘//’ + window.location.hostname + ‘/wp-content/plugins/myeasydb/img/’;

fast and dirty method, but works…

change

Mapnik,Ubuntu and 10m-populated-places.zip

Posted September 16th, 2011 in Development, ubuntu by Gevork

Yesterday all day long I was trying to install mapnik and generate some map tiles with openstreetmap of my country, to make some offline map application . I came up to a great tutorial on ubuntu how to install mapnik here

http://weait.com/content/build-your-own-openstreetmap-server

Continue Reading »

How to install memcached on ubuntu

Posted June 25th, 2010 in Development by Gevork

memcache_logoHow to install memcached on ubuntu?

Just go to System-> Administration-> Synaptic Package Manager

Enter in search field memcache and then find 3 packages on the screen below. It’s memcached, libevent, and php5-memcached. The last is optional , libevent is required for memcached.Even if you will not check green it for installation ,the system will force you to install it :)

Screenshot-1

That’s all.

If you don’t have synaptic package manager, and maybe you are installing it on server via command line,

then use

sudo apt-get install libevent memcached

In Next post I will tell you how to use it with CodeIgniter Framework ;)

Mr Gewa

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.

Bitbucket Usage Code

Posted May 19th, 2010 in Development by Gevork
No changesets recorded yet.

Quickstart

$ hg clone http://bitbucket.org/maridansoft/madrasti
...
$ hg pull -u # to pull changes and update
$ hg push # to push changes to this repo

Import existing data?

$ cd /path/to/existing/hg/repo/
$ hg push http://bitbucket.org/maridansoft/madrasti

Prefer SSH?

$ hg clone ssh://hg@bitbucket.org/maridansoft/madrasti
$ hg push ssh://hg@bitbucket.org/maridansoft/madrasti

Further reading: “Using Bitbucket” & “Getting started with Mercurial

php программирование под Убунту 9.10

Posted February 5th, 2010 in Development, How-To, ubuntu by Gevork

Итак… Наконец то … Решил написать для тех кто переходит с Винды на Линукс Убунту как настроить все для программирования на php ,mysql .

шаг 1. Для разработки ПХП приложений нам конечно надо будет сервер с поддержкой ПХП. И конечно же mysql.

для этого ж коммандой строке терминала вводим

sudo apt-get install lamp-server^

тут вас строка спросит пароль администратора. введите. Потом после недолгих проверок он спросит типа он загрузит и поставит около 60МБ данных. Вы уверены? введите Y если у вас англоязычная установка или Д если русскоязычная. Если русский язык не установлен  то советую до этого  зайти на Система->Настройки->Клавиатура

Клава Убунту

Я ставлю Фонетический Русский. Вы как хотите. После если вы прогер, покопайтесь в настройках и найдите место где можно активировать переключение через CTRL+ALT

Итак после того как вы ввели комманду

sudo apt-get install lamp-server^

И ответили ДА , то вас еше спросят предоставить пароль для mysql-сервера.

И Вуаля!

Заходим на localhost

если видим надпись

IT WORKS!

значит все в порядке… У нас у теперь Есть Сервер.

Шаг 2.

Папка /var/www/ где расположен ХТМЛ файл index.html  где и написано it works не пренадлежит текущему юзеру.

Чтоб избавить себя от гиммора каждый раз как root файлы менять , итд итп я меняю хозяина.

для этого  открываю наутилус под рута так

gksudo nautilus

нахожу папку /var/www

и меняю в настройках хозяина так

/var/www

почему? да чтоб обычный юзер, то есть прогер мог делать в этой папке что захочет.

Шаг 4 : Редактор

Я выбераю редактор Аптана. Он сделан на базе eclipse так что любой мод под него можно поставить

Качаем из http://aptana.org/studio/download

распаковываем в папку любую. я поставил в папку /home/gevork вы как угодно. Тока ставьте где есть у вас права записи , там потом чтоб без гиморов привилегий  на создание и изменение файлов было.

Если у вас Убунту 9.10 как у меня у вас будет проблема в Аптане или эклипсе или в Зенд Студио …. Кнопки некоторые не работают. Без паники…. После распаковкы делаем следуюшее..

Создаем файл start.sh в папке /home/gevork/Aptana Studio 2.0

внутри пишем

#!/bin/sh
export GDK_NATIVE_WINDOWS=1
/home/gevork/Aptana Studio 2.0/AptanaStudio

надеюсь как прогер вы понимаете что у вас пути к папкам другие и надо вместо

/home/gevork/Aptana Studio 2.0  свои папки приписать

Потом в свойствах start.sh заходим и ставим птичку перед

allow file executing as program   в Permissions

потом делаем линк на этот файл на Рабочем Столе. И все. Если Аптана не стартет, то провер’те пути. Если эррор, то наверняка надо установить java.

Дерзайте… В След раз расскажу как домены подкрутить к Апачу

Дополнительно можно поставить любой виндовский trueType фонт скопировав ее в /usr/share/fonts/trueType

и дав команду на обновление кеша фонтов

sudo fc-cache -f -v

JQUERY UI TAB AND PAGINATION HTML

Posted December 31st, 2009 in Development by Gevork
<script type="text/javascript">
$(function() {
$("#tabs").tabs();

$('#demo').tabs({
load: function(event, ui) {
$('a', ui.panel).click(function() {
$(ui.panel).load(this.href);
return false;
});
}
});
});

</script>

<div>

<div id="tabs">

<ul>
<li><a href="#tabs-1">My Wall </a></li>
<li><a href="#tabs-2">Friends</a></li>
<li><a href="/no_header/handshakes/">FriendsOfFriends</a></li>
<li><a href="/no_header/comments/">Comments</a></li>

</ul>

<div id="tabs-1">

<button onClick="showSlidingDiv(); return false;">Write Here</button><br />

<div id="quickReply" style="display:none">

<div style="padding: 5px 12px">

<form id="submit" method="post">

<input type="hidden" id="to" value="43">
<input type="hidden" id="from" value="43">
<textarea  id="comment"  name="comment" raws="20" cols="80" ></textarea>  <br>
<button> Write </button>
</form>
</div>
</div>

<div id='msg' style='display:none'><b>MessageSent.</b></div>
<div id='msg_graffiti' class='msg' style='display:none'>Graphic Sent.</div>
<div id='msg_audio' class='msg' style='display: none'>Audio Added.</div>
<div id="dld" style="display:none">Message Deleted.</div>

<div id="back" >

<div id="c24">
<div id="c24">
<table border="0" cellspacing="0" width="100%">
<tr>
<td>
<a href="/users/43">
<img src="/images/uploads/sm_d5821e71b7c39a3dc93fb07acfc05fb0.JPG" width="60"
</a>

</td>
<td>

<div>
<a href="/users/show/43">sdasdad</a> has wrote<br />
<small>2009-12-30 00:01:29</small>
</div>

<div id="wPost69912511" style="width: 315px; overflow: hidden;">каскдсадас</div>
<div><a href="/test/">Test</a>

<small>Write on my wall</small><span>|</span><a href="javascript: deletePost(69912511,8900318)"><small>Delete</small></a>
</div>
</td>
</tr>
</table>

</div>
</div>

<div id="c22">
<div id="c22">
<table border="0" cellspacing="0" width="100%">
<tr>
<td>
<a href="/users/43">
<img src="/images/uploads/sm_d5821e71b7c39a3dc93fb07acfc05fb0.JPG" width="60"
</a>

</td>
<td>

<div>
<a href="/users/show/43">sdasdad</a> has wrote<br />
<small>2009-12-29 23:59:18</small>
</div>

<div id="wPost69912511" style="width: 315px; overflow: hidden;">А я иду за питачком куку муку жуку</div>
<div><a href="/test/">Test</a>

<small>Write on my wall</small><span>|</span><a href="javascript: deletePost(69912511,8900318)"><small>Удалить</small></a>
</div>
</td>
</tr>
</table>

</div>
</div>

<div id="c21">
<div id="c21">
<table border="0" cellspacing="0" width="100%">
<tr>
<td>
<a href="/users/43">
<img src="/images/uploads/sm_d5821e71b7c39a3dc93fb07acfc05fb0.JPG" width="60"
</a>

</td>
<td>

<div>
<a href="/users/show/43">sdasdad</a> has wrote<br />
<small>2009-12-29 23:58:11</small>
</div>

<div id="wPost69912511" style="width: 315px; overflow: hidden;">А я иду за питачком куку муку жуку</div>
<div><a href="/test/">Test</a>

<small>Write on my wall</small><span>|</span><a href="javascript: deletePost(69912511,8900318)"><small>Удалить</small></a>
</div>
</td>
</tr>
</table>

</div>
</div>

<div id="c19">
<div id="c19">
<table border="0" cellspacing="0" width="100%">
<tr>
<td>
<a href="/users/43">
<img src="/images/uploads/sm_d5821e71b7c39a3dc93fb07acfc05fb0.JPG" width="60"
</a>

</td>
<td>

<div>
<a href="/users/show/43">sdasdad</a> has wrote<br />
<small>2009-12-29 23:30:11</small>
</div>

<div id="wPost69912511" style="width: 315px; overflow: hidden;">А я иду за питачком куку муку жуку</div>
<div><a href="/test/">Test</a>

<small>Write on my wall</small><span>|</span><a href="javascript: deletePost(69912511,8900318)"><small>Delete</small></a>
</div>
</td>
</tr>
</table>

</div>
</div>
</div>

HERE I WANT PAGINATION LIKE THIS ONE

<a href="/no_header/load_comments/1/1.html" id="pagination">1</a> | <a href="/no_header/load_comments/1/2.html" id="pagination">2</a> >>

</div>

<div id="tabs-2">

<div id="ctl00_cphMain_pnlFriends"><h3>My Friends</h3>
<table style="width: 700px;" border="0" cellpadding="0" cellspacing="2"><tbody>
<tr>
You have no friends Yet
</tr></tbody>
</table>

<br>
<a href="/account/friends/">All Friends(0)</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="/account/invite_multiple/">Invite Friends</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/search/">Find Friends</a></div>
<br>

</div>