ownCloud and News application for FirefoxOS

Its really been a while. I huge while! 🙂 Almost a year man.

The news are I got full time job working as a Linux sys admin and in RND. Also, my master thesis is still waiting to be finished. I can’t stress out how much full time job takes up your energy and will to do anything similar off job. Almost none. That is why I took some time saving it for time that has come and now I’m hopefully going to finish it until next year 😀 lol.

Anyway, I just wanted to say that I have been involved in open source project (YEY), which was my goal in early geek days 😛 Main project is called ownCloud and is a cloud platform for commercial and private use. One part of it is News application, which is like a RSS aggregator. This year Google Summer Of Code accepted some ownCloud ideas, which included making News application for mobile platforms, specifically for Firefox OS. Technologies involved are JavaScript framework AngularJS for developing frontend (which will basically be a application in FF OS), JSON as a form of communication stream between FF application and ownCloud News API, which is RESTful btw. Technologies involved below the frontend, are node.js for testing frameworks, test runners, task runners and package maintainers (Jasmine, Karma, Grunt, Bowl).

This is my github profile, so you can check the development phase and get involved… maybe? 🙂


Have a nice day, and take care! Bye!


Using Komodo Editor Symfony plugin

This would be the continuance of the PHP Symfony Editor post.

This time, I’m going to tell you something about this particular plugin for Komodo Editor. I think you can use it in Komodo IDE, but I’m not quite sure.

Anyway, you can download it here.

When you download file with the kpz extension, you have to open toolbox in Komodo Editor, and select import kpz package. You can import it from the URL also.

When you finish importing and open the menu in the toolbox, you’ll see shortcuts to symfony commands. There is a little problem here, or at least it was for me.

Since I use centralized Symfony installation, and also work on GNU/Linux, accessing symfony commands with symfony wont do the job. Also there is the problem with the configure->database shortcut.

First things first!

To work around first problem, I did next:

Created symfony.sh file in my home and typed next code: php5 /var/www/symfony-1.4/data/bin/symfony $*

With it, I’m sure that running the symfony.sh, I will be running script of centralized Symfony installation. $* is for all arguments that are passed to my symfony.sh. Then I make it executable with chmod u+x, but you can make it executable for all users on system. Then, you have to make soft link in /usr/bin pointing to the symfony.sh script. Basically, with this, you can be in any directory and still be able to run symfony command, which will run the symfony.sh script. This way, following any of komodo editor shortcuts, you will be accessing reall symfony commands.

Second thing is that, when you try to do configure->database you’ll get this output:

Task “configure:database” is not defined.

This is because, database command is not positioned in the project directory, and is trying to run symfony command, which is not available if you do not have created project. This thing is easy, you just right click on this shortcut, and type %p in Start in edit.

These are the problems I found, while testing this plugin. I did not test every command, so if you get some error, I’d be glad to hear the problem.


PHP Symfony Editor ?

Hey hey! Fresh stuff again! 🙂 This time it is symfony again!

Lets cut the chatting and get straight to the point!

What IDE are you using? Is it fast, is it comfortable, does it have plugins for Symfony?

You are saying, yeess, NetBeans has it, though it is not very fast 😦 All that Java is eating my memory…

If you have it a lot, that that is not a prob, but what if you are short with that resource??? Lets say you have, oh I don’t know, a virtual machine, which you use for developing. You don’t want all that projects, files and junk to be in your sweet home and to look it every day in your spare time :D. So you make virtual machine and use it to do all the work, then shut it down, and the nightmare is forgotten. YEY! But in case you do not have a resource monster computer, or some kinda super computer, virtual machine will have less RAM than host on which you are running it. That is the main part, where you might have the problems with NetBeans or Eclipse. They are sooo sloow on virtual machines… Or I am not well informed, and I do not know some hints to make them faster. If you do, please inform me below 🙂


I went some googling about php editor which has support for symfony. There were NetBeans (newest version), Eclipse (with its plugins), PHPEdit (which is shareware, and being a student, I don’t have too much money to spare on software), Komodo IDE (shareware), but WAIT! Komodo Editor!?

That is free, as in speech, dynamic languages editor. Mmmm nice? PHP, Python, Shell, Perl etc. Mmm nice!!! Built in C++!? Weeell, it is based on Mozzila Framework, which among all includes C++ libraries. Faster than NetBeans or Eclipse, which are Java based… Has some plugins for symfony… WOW! You must be dying from wish to try it! 🙂

Here you go http://www.openkomodo.com/ Komodo Edit

So you download it, and what? How, to use if for developing Symfony projects??? That is the right question! And, since this post took me some time, I’ll describe basic project generation in this post.

I’d be very interested in reading your comments, because I see some interest in symfony… Bye 🙂

Learning Symfony pt. 1

Ok guys, today I’m not going to speak about any of my computer adventures (read horrors :)). Since I’m starting to learn Symfony, I have one nice tutorial for everyone who is PHP developer. If you are interested in good and bad sides of it, I can’t help you, but you’ll find a lot of articles about that, on google.
Anyway, I had bad luck starting with symfony’s official jobeet tutorial. It is not! for the begginers, if you ask me. Lot of information, and not even a nice intro in how MVC is implemented in it. I guess that you could start learning from it after you read this tutorial, which is really a beginners tutorial.


So, enjoy in symfony and I hope I’ll too 😉 Bye!

Web aplication almost finished pt.2

Since being a good blogger I have to worry about my blog being read, every now and then, I had to start writing on English, as you can see. Now, I don’t know if that is going to make my blog more visited or not, but at least I can give it a try :).

So, in last article there was some talk about my “new” web site for faculty library. Now, you’ll say: “WOW, that must be AWSEOME”… And I say yes, it is awesome, but not super awesome since it has one page and practically just reads from database. No insertion or administration possibilities. Now you’ll say: “Dude WTF did you do then?” 🙂 and I’ll say, I built it with my ten fingers. From the scratch! I don’t want to make myself super dude or super programmer. This is just one basic web application which I programmed as I went through course of web programming in my classes. Technologies that were used are: PHP5, MySQL5, PDO, jQuery’s DataTables and of course HTML, CSS, JavaScript. I want to make special thanks to my home server with Ubuntu 8.04 Server OS, set up by me 🙂 and other things related to it… (if there are any left).

The web application had a really simple design, and that was not so appealing for the everyday use, so one professor from my department had some suggestions and I changed design.

Here you can see the new design and, I’m sorry if you can’t read it but it is not meant to be for foreigners. It is still simple web application for the intern use. If some day it becomes pretty used app I, or whoever keeps improving it  will certainly add English language.

Anyway, thanks for reading and I’d like to see some comments bout my new design…

Biblio веб апликација скоро па готова

Када сам се упустио у коштац са технологијама потребним за ову веб апликацију, одлучио сам да своје проблеме и решења постујем овде. Тако је настао овај блог. Неколико претходних постова су били на тему веб програмирања. Сада када је све готово, условно речено, могу да се похвалим и да кажем да је ово било једно супер искуство за мене као ученика. Доста интересантних и корисних ствари сам научио.

Веб апликација је настала из идеје да се студентима омогући преглед и брзо тражење књига библиотеке факултета. Као неко ко је у датом тренутку могао тако нешто да одради, почео сам и после пар месеци резултати нису изостали. Наравно, апликација није ни екстра компликована ни ултра једноставна :). Било како било, ево линка па просудите! Можда од мене и постане неки веб програмер/дизајнер!

PHP и MySQL, 2. део

Знам да је нездраво висити на блогу и нон стоп постовати :), али боље да то урадим док је “свеже”. Надам се да ћете ми опростити ;).

Вечерас говоримо о раду са југо знацима латинице у MySQL бази података. Даћу вам пар савета како да свој живот учините једноставнијим и не проживљавате бол и патњу коју сам ја проживео :). Хвала богу па је кратко трајало. Ево пар савета:

1. у раду са MySQL базом, битно је да поставите collation на utf8_unicode_ci.
$dbh->query("ALTER DATABASE $database DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci");

2. после остваривања конекције са базом, из PHP-a, постављате сет карактера којим ћете моћи да вршите упите тј. које ће и PHP и MySQL разумети. Може се одредити на пар начина:
$baza = new PDO("mysql:host=$server;dbname=$db;charset=UTF-8", $user, $password);
$baza->exec('SET CHARACTER SET utf8');
$dbh->query('SET NAMES utf8'); (више објашњења овде);

На крају, када желите резултате представити на веб страни морате јој рећи како да тумачи ваше карактере. То се једноставно каже браузеру са:
<meta http-equiv="Content-Type" content="text/html charset=UTF-8" >
тагом који се постави унутар head html тага.