Skip to main content

Posts

Showing posts from 2011

Семинар: Новости в 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) заедно с тениски и други рекламни материали. Кога и къде? Семинарът “Новости от Java платформата” ще се проведе на 27 юли (сряда) от 19:00 часа

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 are different ways I find this one the most easy one  you can read more about the ways how to create a class in JavaScript here : http

[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 inte