The only advice I should always remember.

Standard

It was the first year of my university, and in addition, it was the first year living alone, in a different city, away from my parents and relatives and that could only mean one thing — freedom! I never felt restricted around my parents, but being completely on your own is a totally different experience. Meeting new people in the same situation as me, with almost the same interests and the same “thirst” for life and adventure was amazing and it led to many crazy experiences.

At the end of that year we decide to have a BBQ (more like a booze party as you imagine) with some friends. Everything went as planned, which is always a good thing, and we had a great time eating and …. riding the trolley downhill!

Continue reading

Κερδιζοντας στο Quizdom!

Standard

Το Quizdom είναι αυτήν τη στιγμή ένα από τα καλύτερα (αν όχι το καλύτερο) ελληνικά παιχνίδια γνώσεων. Πάνω από 650.000 άτομα απαντάνε καθημερινά σε χιλιάδες ερωτήσεις και προσπαθούν να νικήσουν τους φίλους τους!

quizdom logo
Θα μπορούσα άραγε να φτάσω στο top 10 της ημέρας; Να νικήσω 200 συνεχόμενα παιχνίδια; Να κάνω το τέλειο σκορ, απαντώντας 16 στις 16 ερωτήσεις; Η απάντηση είναι απλή! Θα μπορούσα, αν με κάποιον τρόπο, ήξερα την σωστή απάντηση, πριν χρειαστεί να επιλέξω μια από τις 4 πιθανές!

Continue reading

Locale from country code

Standard

There are quite many applications that offer translated versions. Many of them are using some translate APIs like Google’s translator or Bing translation API. In order to translate from English to another language, you have to provide the API with the target locale. An easy way to do this with Java 1.6+ is this little method:

public static String getLocaleFromCountryCode(String countryCode){
    for(Locale p:Locale.getAvailableLocales()){
        if(p.getCountry().equalsIgnoreCase(countryCode)){
            return p.getLanguage().toLowerCase();
        }
    }
    return "en";
}

With this little method, we can get the locale of quite many countries and default return value, in case it doesn’t find the appropriate locale, is of course English.

Welcome to my blog!

Standard

Hello people!

First of all thanks for visiting my blog! You may already know me, but if you don’t , just meet me here!

This is my first attempt to create a more professional blog, other than tumblr or anything else! Don’t get me wrong, i love tumblr but I just think that it’s not for this type of blog I’m into now.

The main purpose of this blog, is to express myself in a way I feel comfortable with, and at the same time meet some new people who have same passions like me, for example programming! I will try to keep it up-to-date and post some new content regularly. Moreover, i will do my best to post some tutorials, simple or more complicated, about programming, cloud services, android and…… minecraft 🙂 !!

Overall, it will be awesome to have some interesting discussions and exchange opinions on different subjects! We will see how this will go!

Thanks for your time! Cu soon with more awesome content,

Apostolos