Skip to main content

Posts

Google Reader alternatives ?

None .. no really there is NO Google reader alternatives simply because Google reader is THE BEST. However since google reader will be shut down in few days and we don’t have a choice and we have to switch somewhere. So what are the alternatives one day before the google shutdown ? 1) Feedly : http://cloud.feedly.com/#latest I hate it .. no really it is HELL of a BUGGY .. it doesn’t mark my blog posts as read.. it requires some crappy plugins that will fetch the articles in the background otherwise it is not working, the android app is peace of buggy shit with some promotional popular craps and no real full article view for tablets. It is amazingly bad.. it looks shiny but it is shit, it requires login on all your machines each time when you make changes between the machine (work, home, phone). It is unusable even when it looks good : It looks good but it is not an alternative.. no my friends its peace of crap that just wants to steal some google reader users. 2) AOL reader : h...

Семинар: Новости в Java платформата.

  Анонса е леко нахално взаимстван от блога на Наков( http://www.nakov.com/blog/2011/07/21/seminar-java-7-java-ee-6-bgjug-27-july-2011/ ) поради мързел от моя страна да го напиша. Общо взето промените са replace на Найден Гочев с Аз.   Имам прекрасна новина за всички Java фенове. След като Java 7 официално излезе, дойде ред и на Българскота общност от Java разработчици да се присъедини към поредицата “Java 7 Launch” събития. Благодарение на много хора :+) ще си направим семинарче и парти по случай Java 7 и новостите от Java света, които идват заедно с нея. Програма на семинара     Kакво ново в Java 7?     Kакво ново в Java EE 6?     Kакво ново в JavaFX 2.0?     Kакво ново в JavaME? Лекциите са част от официалния “Oracle Java 7 Launch Kit”, който е предоставен от Oracle за Българската Java потребителска група (BGJUG) заедно с тениски и други рекламни материали. Кога и къде? Семинарът “Новост...

JavaScript inheritance (object-oriented programming)

  There are many posts explaining what JavaScript inheritance is how it works, is it bad or good, how it is comparable with Java inheritance with millions of examples using third party apis or function to make inheritance look more like C#/C++/Java Inheritance. This post is just to show HOW inheritance looks without anything else except browser so next time when you need to find it you can open this post which explains everything you need. JavaScript uses so called prototype inheritance you don’t need to know more except it is different then a C#/C++/Java way of doing inheritance Define a class In JavaScript you can define class like this: function A(){     this.aMethod = function (){         alert("A method");     }     this.bMethod = function () {         alert( "B Method");     } } Yes, yes there ...

[LINUX] How to find a specific String in file content with specific file name in specific folder

This is really the dumbest thing ever in linux, there are many many dumb things but this is the dumbest. Ultra trivial task you want to “find a specific string in a file content of specific file type starting from root folder” this is the easiest thing ever, it was not available in Windows XP/98 and because of that I was keeping one JBuilder which can search normally in any java file containing XXX in starting from this folder. But in Windows Vista / 7 this is done EASY just press F3! In Linux on the other hand it is a NIGHTMARE I was having a trivial task which takes… 10 seconds to search for a properties file which contains a default.session.timeout=600 which is a row in this file and this took me more then 30 mins because there are TONS of posts how this is done but none have worked there ware examples using grep, egrep whatever NOTHING is working total CRAP really. So in short I found it somewhere and I want to post it in order to have another POST in google which gives the answer...

Generate JavaDoc with UML diagrams

In my life many times has happened when I am assigned to a totally new project that I have no idea what it is about, that has to go live in 2 weeks and that I have to fix some issues in this ultra strange code sometimes even code written in different language. On my question is there any documentation the answer is: Yes but it is very old or no. So in short they want me to start working on a project with no documentation at all. My second question is is there a javadoc and the anwer is : yeah … kind of … so I am in a project with 30% javadoc with methods in French language for example ( I don’t know even a single word in French) so in short I am loosing 2 weeks to understand what is using what what is the model what is PersonnePhysique  and what is this crazy domain model. I believe this has happened with everyone of you at least once so what can you do ? You can start digging into the java code like crazy ( like everyone of us have tried many times) You can install ...

Using of Collections.emptyList() the right way in Java 1.5+

It is little strange that no one really uses emptyList like he should in Java. So this is small post showing how to use the emptyList method in the Collections class. Question: How to create an empty list ? lets assume that we have a class Book with multiple titles. So the class in our examples will be: import java.util.List; public class Book {       private List<String> titles ;       public void setTitles(List<String> titles) {             this . titles = titles;       }       public List<String> getTitles() {             return titles ;       } } Lets say that in our snippet we have something like :   Book myCrazyBook= new ...

Spring MVC, Spring Bean Validation Framework and validating confirm password / confirm email fields.

How to write validation like confirm password, confirm email and etc in Spring MVC. NOTE: To make bean validation to work its nice to read this tutorial: <a href=" http://wheelersoftware.com/articles/spring-bean-validation-framework.html" ></a> Today I was busy making some validations and implementations on very common scenario: change email and password. So we have a new password AND a new email also for both of them we have a confirm email/password field. And we want to validate everything nicely and to show to the user the real validation message if there is some error. So ... I've to use a form which already uses some annotations like @NoBlank and etc I think everyone of you is using annotations framework if you don't use it SHAME ON YOU !:) Anyway so I've added some fields to existing form bean: private String newPassword; private String confirmNewPassword; private String newEmail; private String confirmNewEmail; Bas...