Friday, December 9, 2011

UML free drawing programs for Mac

Some of my colleagues developers use these programs for UML drawing:

First of all, try this UML drawing application ONLINE:
http://www.diagram.ly/

DIA http://projects.gnome.org/dia/
ArgoUML http://argouml.tigris.org/ (the most popular, but some say it is for a geeks)
MagicDraw https://www.magicdraw.com/ (those who think ArgoUML is for a geeks wants try this one)

Just use ArgoUML, that's it ))

Monday, December 5, 2011

Where is Apache's httpd.conf on Mac OSX Lion

The file httpd.conf on Mac OSX Lion is located here:

/etc/apache2/httpd.conf

How to know the apache user by Terminal command

This commando will list the current apache user name:

ps aux | grep apache

Friday, November 25, 2011

How to use AppleScript menu lets

Check this link if you want to know about how to use AppleScript menulets, http://www.geekymac.com/?p=216
I'm going to add some comments later on this subject.

Friday, November 11, 2011

How to use Eclipse plugin for Maven

Read this post:
http://googlewebtoolkit.blogspot.com/2010/08/how-to-use-google-plugin-for-eclipse.html

Wednesday, November 9, 2011

Monday, November 7, 2011

How to add CODE block to Blogger post

If you want to add some code snippet to your post on Blogger just copy code snippet you need and go to this site http://www.simplebits.com. It has tools that will configure your snippet  (it will change some signs).


How to hide and show div block with Javascript

1. Javascript
Add to the header the script that will hide/show div you need

<script language="JavaScript">
    function toggle(id) {
        var state = document.getElementById(id).style.display;
            if (state == 'block') {
                document.getElementById(id).style.display = 'none';
            } else {
                document.getElementById(id).style.display = 'block';
            }
        }
</script>

2. CSS
In order to hide your div at the beginning add this to your CSS style:

#div1 {
        display:none;
}

HTML
In your HTML add hyperlink that will trigger the script for the id with the specific name:

<a href="#" onclick="toggle('div1');">Your text is here</a>

<div id="div1">
The content of this div will be hidden or shown after click on the link above.
</div>

Thursday, November 3, 2011