Latest Publications

Enable UML for NetBeans

Hey there,

Today I have to create some UML Class Diagrams for my programming class, but as I mentioned before, I’m lazy, so I want to create the diagram from the source files, and I knew there was a way in NetBeans to do so. But they removed this Feature (package) by default. I don’t know why, because this is an amazing feature here’s a screen.

NetBeans UML

NetBeans UML

If you also want to use this feature I will give you an easy 4-step-manual:

  1. Go to the Netbeans Module Cluster download page
  2. Download the ‘netbeans-6.9.1-201007282301-ml-uml.zip‘ file (the version number should or could higher or lower, depending on your installed version)
  3. Unpack the ‘UML’-folder in your NetBeans directory
  4. Restart NetBeans

That’s it, easy, heh?

Have fun by trying it on your own! Leave a comment if there was any questions left or to made my day ;)

Code hinting in a loop with PHPDoc

Hey there,

I want to continue bloggin’ technical and programming stuff, so these time I want to talk about code hinting / auto completetion in a loop with PHPDoc.

I think you all knew this problem: you store one kind of object in an array. You iterate over this array and want to execute some methods of this object, but due to the loose typing of PHP your IDE cant give any type hints or auto completetion. A few days ago I had the same problem, I wanna have some kinda auto completetion in my IDE, cuz I’m lazy (BITCH!) :) .

I asked my friend Google and I found some answers, but they are all not that “complete” as I searched for. So I wanna try to give these kinda complete answer to this question, with example code. The answer is really simple, just use PHPDoc in the loop to tell your IDE with kinda object stored in this var.

/* @var $bar bar */

Easy, heh?

And the result is AWESOME (more or less ;) )

Autocompletetion in a loop!

Code Hinting in a foreach

And the complete example you’ll find here: [download id="2"]

See ya!

JavaScript for PHP Developers

Hi @all,

During the last Month I spend a lot of my time with JavaScript developing, And I found some very very cool slides from ed-finkler during all my researches. And I want to share it with you. There in there, there were a few very cool JS examples, and many Answers to Questions PHP-Developers often had during JS-Development.

JavaScript for PHP Developers

View more presentations from funkatron.
Hope you enjoy it, too.

Google Chrome Slides online!

Hey there,

As I promised last Weekend, I want upload and share my Google Chrome / Chromium Presentation, which I had this Monday at our Office. Notice it’s in German, sorry for the inconvenience.

Hope you enjoy it and it’ll have a bit Information you don’t know before. If there were any Questions left, feel free to ask at the comments.

Kill your Browser with JavaScript

Hey There, it’s me again,

On monday I will talk about Chrome as a Developer Browser, and during the preparation of this presentation I wrote this little JavaScript Object that kill your Browser, if you want to see more, be prepared for my presentation on Monday at InnoGames, and if you can’t come, due to missing access rights to our office. Be prepared for the slides here on my Blog.

var KillBrowser = {
	i : 0,
	withAlert : function(){
		while(true){
			this.i++;
			alert(this.i)
		}
	},
	withWhileLoop : function(){
		while(true){}
	},
	withMathPow : function(){
		while(true){
			this.i++;
			this.i+=Math.pow(this.i,2)
		}
	}
}

And you can try this script right here in my Blog. But …
ATTENTION! THIS WILL KILL YOUR BROWSER OR YOUR TAB!

DON’T CLICK ME!
DON’T CLICK ME, nether!
REALLY DON’T CLICK ME!

And yeah, that’s all. See you on Monday!

How to get jQuery Version for plugin development

Hey there,

Today I want to update to jQuery 1.4.4 but there was a Problem, with my self written fadeToggle() Plugin, due to this problem I have to find out which jQuery version the Plugin User has. And while I try to find an answer via Google, I recognize that there was no real answer for that. So I took a look into the jQuery source, and there was the answer:

// The current version of jQuery being used
jquery: "1.4.4",

This is one attribute of the jQuery Object. But this is a String… So how should I check against a String, I dont want do check for a Special version, I want so check if the Used source version is greater then another. But we already have the string so it shouldn’t be that harx to find it out. And to be honest, it isn’t that hard :) Just a bit JavaScript magic:

if (parseInt($().jquery.replace(/\./g,'')) > 144)  {
	...
}

Here i checked against the jQuery version 1.4.4 if you want to check against for example 1.2.1 it “121” but here Cpt. Obvious was at work. Ok just kidding, thats all.

See Ya!

Let’s do it in English

Hey there,

Due to my post to the Cowork of Fancybox and Cloud-zoom, I regognize that many people came here with a site translator like bablefish and google translate. That gives me a kick in my ass to realize that I can’t go on with bloggin in German.

So all further blog posts will be in English. And I translated the Fancybox/Cloud-zoom post into english.

Hope that this will help you all (and forsure my blog)! :)

CodeStars jetzt auch mit Facebook share

Ich glaube mittlerweile hat ja fast jeder einen Facebook Account, und da ich ja nun auch berufliche mit Facebook zu tun habe, ist es Quasi ein muss für meinen Blog das Ihr meine Artikel nun auch auf Facebook “sharen” könnt.

In diesem sinne,

Happy Sharing!

Cloud-Zoom inside Fancybox

Hey there,
I like to translate this post to english, due to this awesome interest.

Today I want to blog some programming stuff, its some time ago I do that. I give my attentaion to the cowork of fanybox and cloud-zoom, booth are jQuery plugins. And to be honest it’s not that hard as it sounds. Let’s go:

Fancybox init:

$("a.gallery").fancybox({
	'onComplete'	:	function(arg) {
		// Here does the magic starts
		$('#fancybox-img').wrap(
			$('<a>')
			.attr('href', $(arg[0]).attr('href'))
			.addClass('cloud-zoom')
			.attr('rel', "position: 'inside'")
		);
		// That's it
		$('.cloud-zoom').CloudZoom();
	}
});

Now deactivate the boarders in cloud-zoom.css:

/* This is the zoom window. */
.cloud-zoom-big {
/*border:4px solid #ccc;*/
overflow:hidden;
}

Thats it. Have fun!

Ein neuer Gast-Blogger

Hallo liebe Leser,

Damit dieser Blog mal wieder ein wenig Leben eingehaucht bekommt. Habe ich jetzt einen ersten Gast-Blogger ein zuhause gegeben. Er hat keinen Blog aber braucht dringendst eine Plattform um seine Gedanken mit der Welt zu teilen. Und da ist dieser kleine beschiedene Blog vielleicht für den Anfang genau das richtige.

Es ist  *Trommelwirbel* Levente, seines zeichens Software Developer bei der selben Firma wie ich es bin. Ich hoffe das ich damit die Qualität des Blog’s  erhöhen kann.

Ihr solltet ihm am besten auch gleich auf twitter folgen: anthraxx42