I haven’t really posted anything here for a while, because in the summer I did a small app using PhoneGap and kind of forgot about the blog, but I think I will start writing regular again. Right now I am doing my diploma work, which has a lot of functionality in it. The only problem is that I have a deadline and I want it to work on all mobile devices. And that’s why I chose PhoneGap. If you aren’t familiar with it, you should defiantly go and check it out. It’s basically a free and open source framework that allows you to create mobile apps using standardized web APIs for the platforms you care about. In other works it let’s you write your app with HTML5, CSS3 and JavaScript. When you are done with a part of your app I recommend you to check PhoneGap Build, which requires only the “www” folder and gives you installation files for 6 platforms including iOS, Android and Windows Phone. And right now I’m almost done with it, but now comes the most unpleasant part of the whole diploma work: the documentation. However the app is expected to go on stores for all major phone operating systems for FREE. Yes, I don’t really thing I need to put a price on it, because if I do of course I will generate some profit, which can go up to few thousand dollars, but I really think it’s better to have 1 000, 10 000 or hopefully 100 000 people using it thank get few thousand dollars. After all I made it for personal use (I would have made it even if it wasn’t my diploma work) and I didn’t think even for one sec for getting revenue from it.

C++ Template classes

This is what I’ve done in class for about 30 min. It was like an exercise for what we have learned the week before. It is mainly a normal stack class in c++, but the interesting thing here is that it doesn’t have a specific type and by creating an object from that class you can tell the type you want to use in the stack. It’s nothing quite new for me, although there was something new by writing methods from that class outside it.

Here’s the code for the program: https://github.com/powerworr/OOP/blob/master/TemplateClass/stack.cc

School Project: Androiod App

Before couple of weeks we were given a task to make a project that will take us at least 2 months to make. I and one of the best programmers in the class combined and decided to make an android application. Thinking of something extremely innovative and new isn’t easy so we decided to make something that we need. So we both haven’t found a good and in the same time easy working application for notes. So we decided. He is mainly working on the main application and I on the website and widget, but we help each other so mainly it is a great teamwork.

Here’s the code only for a something like pre-widget:


Today or tomorrow I’ll make the widget more like it should look at the final of our project.

Blue Belt School Exam Preparation

Next week I will have my final exam for this semester. I will have to write a simple program with few classes and test all that with JUnit tests. It shouldn’t be that hard, because I’ve already done a similar task that is in my github, which is linked below. The only problem may be the time since we have only 30 min to make minimum 3 classes and test everything in order to get 100% code coverage.

Here are the links to my Github:


If you have any questions to this specific program something else related to programing, feel free to contact me!

Processing websites with java

Today in less than an hour I managed to make a program that reads the user input, which should be a valid URL. Then it can give you the number of pages that the link has, the html code in the console or make a new html file and save the html code there. I should also give all the links that the site has, but I wasn’t able to do this properly in the given time and it was only returning the whole html line in the source code. However I will continue the work later and make that function work. I used eclipse IDE and a lot of internet browsing in order to make the program work.

Here’s a link to my repository and the working java program: https://github.com/powerworr/TP/tree/master/C14

Using eclipse and object oriented design

I know I haven’t posted anything in a while, but there wasn’t really anything intresting to post about.
So now I’ll tell you again about my homework. I was supposed to rewrite the program with the airplane in object oriented way and add some additional stuff like name and gender to the people that I add to the plane.

So here’s the source code:


Yellow Belt

//Училище : Технологично училище “Електронни системи” към ТУ-София
//Клас: 11 Б
//Номер: 8
//Име: Виктор Георгиев Стоянов
//Задача: Да се намери сбора на първите 10 числа от .csv file

import java.io.*;
import java.util.*;
import java.lang.*;

class Yellow{
public static void main(String[] args){
float[] time = new float[10];
String fileName = args[0];
String line;
int i =0;
BufferedReader reader = new BufferedReader(new FileReader(fileName));
}catch(Exception e){

float timeSum = 0;
for(int j=0;j<10;j++){
timeSum += time[j];
BufferedWriter writer = new BufferedWriter(new FileWriter(“TopTests.csv”));
writer.write(timeSum + “;\n”);
}catch(Exception e){