Monthly Archives: October 2013

My Favorite Music [Symphony Metal] include bands and videos

December 2012 , i got message from my friend about his new favorite music. Because we’ve ever made a band before, so i read his message. he told me about symphony metal. What was that ? I know metal only belongs to Metallica. yeah. you’re right but symphony metal is not only about metal but also there are some differences from metal it self. first, the music genre is not only metal there is classical music and progressive rock, second, most lead singer in the band is female. Actually there are 3 subgenres in symphony metal it self : symphony black metal, symphony power metal, and symphony gothic metal. But, as long as those are symphony metal, i don’t really care about that. i just love it. Here is my favorite symphony metal bands. Really love it.
1. Delain : Delain is a Dutch symphonic metal band formed in 2002 by former Within Temptation keyboardist Martijn Westerholt and Charlotte Wessels. The name of the band comes from the Kingdom of Delain in Stephen King’s novel, The Eyes of the Dragon [wikipedia]

My Favorite Delain’s videos :


2. Epica : Epica is a Dutch symphonic metal band, founded by guitarist and vocalist Mark Jansen subsequent to his departure from After Forever.

They are known for their symphonic sound and the use of female vocals and male growls, performed by Simone Simons and Mark Jansen respectively. All six members participate in composing their songs, whilst their lyrics are primarily written by Simons and Jansen. Their songs largely deal with philosophical topics, including science, religion, and world events.[wikipedia]

my favorite Epica’s Videos :

3. Lacuna Coil is an Italian metal band from Milan. Since their formation in 1994, the group have had two name changes, being previously known as Sleep of Right and Ethereal[wikipedia].

My Favorite Lacuna Coil’s Videos :

4. Nightwish : is a symphonic metal band from Kitee, Finland. The band was formed in 1996 by lead songwriter and keyboardist Tuomas Holopainen, guitarist Emppu Vuorinen, and lead singer Tarja Turunen. The band soon picked up drummer Jukka Nevalainen, and then bassist Sami Vänskä after the release of their debut album, Angels Fall First (1997). In 2002, Vänskä was replaced by Marco Hietala, who also took over the male vocalist role previously filled by Holopainen or guest singers [wikipedia]

My Favorite Nightwish’s Videos :

5. Sirenia : is a symphonic metal and gothic metal band from Stavanger, Norway.

The band uses melodic instrumentals, synthesizers, and distorted guitars with female vocals, male death vocals, clean male vocals, a choir and violins. The lyrics are concerned with human existence, emotion, and mental states[wikipedia].

My Favorite Sirenia’s Videos :

7. Runtime (System Level Process) using groovy

System level process means create program that interact to system level to process code written in program. In UNIX, we usually do system level process through terminal meanwhile, on windows system we usually use command prompt (cmd). All the process on system level can actually be done by using program. In java we usually call it with runtime process. There are several steps to do it in java. First, we need to import java.io then, inside of try and catch block, we need to use instance of Process object to execute the command. And for the output, we can use BufferedReader as the temporary container. Here is the example :

class RuntimeProcess{
    public static void main(String [] args){
        String command = "help";
        Process p = null;
        try{
            p = Runtime.getRuntime().exec(command);
            BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
            String result = "";
            while((result = br.readLine()) != null){
                System.out.println(result);
            }
        }catch(Exception e){
            System.out.println("error "+e);
        }
        finally{
            if(p!=null){
                p.destroy();
            }
        }
    }
}


As we know that the process above there quite complicated and need a long way to code. On the other hand, groovy has GDK as the extension of JDK or it’s called Groovy JDK. We can do runtime in quite simple on line code and see the output directly there. By using [COMMAND].execute here is the code.

So, which one do you choose long and complicated or the simple and sweet one. 

6. Various of looping in Groovy

We can actually improvise our way in writing code to be more comfortable to be read, or simpler to code. By using several add from groovy we can improvise those traditional loops into modern one. We have 3 new ways to make it different from the traditional one. We can choose which one is the best for us. I think it depends on how the way we code and read it. Let’s learn it by the example

public class TraditionalLoop{
    public static void main(String[] args){
        for(int a=0 ; a<3; a++){
            System.out.println("Hello World");
        }
    }
}

Here is the result

Improvisation :
Type 1:

for ([VAR] in [STARTLOOP]..[ENDLOOP]){
     //statement
}

Type 2:

[STARTLOOP].upto([ENDLOOP]){
        //statement
}

Type 3:

[NLOOP].times{
     //statement
}

For the last one, if we want there is skip values while looping, we can use
[STARTLOOP].step( [NLOOP], [NSKIP] ) method. Here is the example :