Adding an external library on Android Studio

No Comments

When I started writing Android apps, I(just like everyone else) used Eclipse. Then Google released Android Studio, a whole new IDE designed for Android development. Things are obviously different from Eclipse. One of my first questions was “How do I import a library into my project?”. It turns out to be very easy!

To import a library click on File > Project structure.


Creating your first iOS app

No Comments

In this tutorial I’m going to teach you how to write your first iOS app(aka Hello World). I will assume you already know logic programming. If you’re reading this, then you’re probably not familiar with Objective-C and maybe even scared of it! Objective-C looks scary at first, but once you learn it, you won’t want to write code in any other language. It’s just easy, organised and readable. But why people find it so scary? Because of its unusual syntax! In Java, you’d write something like this:


In Objective-C, that would be:

[object method:argument];

It looks nothing like C, Java, PHP or other popular languages. But all you have to do is to open your mind and start from simple things, like this app I’m going to teach you how to write.


I’m on GitHub

No Comments

It toke a while to convince me to start using GitHub, but a few days ago a friend finally convinced me. I already published a few projects there and intend to publish a lot more. I will stop publishing open source projects on this blog(at least for now). Anyway, go check it out!

Emirjan Prela, the thief

No Comments

So, there I was, in a hostel in Italy. I left my backpack with my 2 MacBooks Pro, iPad, Galaxy Tab, external HD, medication and documents in the luggage storage. That would be just a normal day, if it wasn’t for an Albanian asshole called Emirjan Prela. This little piece of shit, who lives in Paris, stole my backpack with everything inside. A lot of work stuff was inside the laptops and lost. Re-doing that will be difficult. Italy is a dangerous country for a few reasons. One of them is that the police doesn’t give a fuck about crimes. Even with his name, passport number and so on, there’s nothing they will do about this. Finding where the guy lives will be difficult. But I do have his Facebook. As a bonus, I also found his girlfriend. He also has an email address. There aint much I can do, so I will just leave some pictures of the asshole. Something tells me this post might cause him trouble in the future. I wish I could find him. A skinny guy like that would get really hurt after facing me…



This song describes my situation

No Comments

Certain parts of this song describe pretty much what I’m going through now. I’d like tho highlight those sentences:

You kept everything inside and even though I tried, it all fell apart

I tried so hard

And got so far

I had to fall

To lose it all

And I thought things could be different. But I’m just seeing I’m doomed and destined to certain things. :(

Last year

No Comments

Last year was completely different of every other year. For the very first time in my life I had courage and discipline to fight for what I wanted. I saw a lot of results, some came very quickly. But certain things are too good to be true. I lost everything twice and in the second time, I also lost my hope, discipline and strength.

From a self-confident, respectable winner I ended up turning into a big loser. I think I was never such a loser in my whole life. My self-esteem is incredibly low and I don’t have strength enough to keep going. Years of being mistreated, repressed and beaten are coming all at once.

I wanna find a reason to continue living. I already know where to find it, but getting there is proving to be very difficult. If I was not totally fucked up, this would be way easier. Unfortunately, even if I get there I don’t know if I will be able to find it. I do have two “artificial alternatives” which might not work at all. Besides, I don’t know how easy they will be.

I also tried to get better slowly, but the society just doesn’t help. The world is full of frustrated people and unfortunately they feel important by smashing people who are weaker than them. My body language, facial expression and way of speaking pretty much advertise that I’m a way bigger loser than they’re. So when I start to get better, a loser comes and fucks my progress up. I’m considering fighting those people back, but unfortunately I’m stuck in a city full of cameras, so this is likely to put me in jail.

I really gotta sort this out quickly. I still have a few resources to keep me alive, but unfortunately I won’t have them for long. If I don’t act fast, I will be unable to survive and will lose quite a lot of opportunities that will be hard to get in the future.

Somewhere in London – United Kingdom

In London

No Comments

So it’s been a few days since I arrived in London. This city is very cool and big, but I don’t think I will stay here forever. My heart is still in Berlin. I will get back to Germany in next year, at least for a few months. I might eventually settle here, but not at the moment. I’m not sure about what I’m gonna do in the end.

London is a very nice city. It’s HUGE, beautiful, exactly the way I like. It has its problems, like the cost of living and crime. For first world standards the United Kingdom is very violent, but I wouldn’t dare comparing it to South Africa, Brazil and some parts of Russia. The salaries here don’t seem to be that high. It seems they’re higher in Germany, at least for IT. A great thing about the UK is that the people here are *VERY* nice. British people are polite and helpful. I’d say they’re even nicer than Germans(which people usually hate, I don’t know why).

In the past few weeks I got to the end of the rope. For years I’ve been carrying several times more weight than I can. So many traumas of years of physical and emotional abuse are now comming. Ever since I smoked weed for the first time, I cannot repress my emotions anymore. Which is good in some ways. I read a couple psychology books in the past, but nothing focused on childhood traumas. Now I’m reading one that’s focused on it and I hope to get over certain things. I’m quite glad to find out certain things. I got a personality that’s not mine. I’m glad I’m not this looser I’m right now. Two nice things I found out is that I’m not hateful and that I’m not macho. In fact, I hate violence. Now it’s time to bring back the rest of my original personality that was lost years ago and start living a normal, happy life.

I’m having a hard time here in London with the money. Pound sterling bills are quite easy to identify, but coins are a pain in the ass. It’s very hard to read their value. All you can see is a HUGE picture of the queen. A classic example of a cult of personality.

FVGetApp, an open source class to get and set default apps

No Comments

I’m pleased to announce the release of FVGetApp, an open source class to get and set default apps on Mac OS X. Say your Cocoa app needs to change the default browser. Not only FVGetApp can change it, but it also can get a list of apps that can handle the HTTP protocol. FVGetApp’s not limited to HTTP and HTTPS. It’s also possible to deal with any other protocol like mailto, ichat and ftp.

You can also deal with MIME types and extensions. So if you created an audio player and you want to let the user change the default app for MP3 files with a click, you will like my class too.

As a plus you can also check if an app can open a certain file.

I developed and tested it on Mountain Lion, but it should work on previous versions of Mac OS X. Adapting it to non-ARC code would take less than 1 minute. You can download a ZIP file containing the class, documentation and a test app by clicking here. To help you to understand the capabilities of this class before downloading the ZIP, here’s a method list:

+(BOOL)isAppCompatible:(NSURL *)appURL withFile:(NSURL *)fileURL;
+(NSDictionary *)appForProtocol:(NSString *)protocol;
+(NSDictionary *)appForMIMEType:(NSString *)MIMEType;
+(NSDictionary *)appForExtension:(NSString *)extension;
+(NSArray *)allAppsForProtocol:(NSString *)protocol;
+(NSArray *)allAppsForMIMEType:(NSString *)MIMEType;
+(NSArray *)allAppsForExtension:(NSString *)extension;

[Quick post]Diet

No Comments

I started a diet on saturday. Basically I’m on a huge caloric deficit(about 1 thousand calories) and am eating almost no carbs. This is how my diet is:

-200 grams of casein(which I absorb about 180 grams of protein)
-50~80 grams of carbs
I’m also taking caffeine. I started from 200MG a day kept increasing the dosage. Yesterday I toke 600MG.
When I started, my belly was 86CM and it’s now 82CM. The bad thing is that there was also some muscle loss. My forearm went from 29CM to 28CM and my arms are like 2CM smaller. Muscle loss is bad, but I can get my muscle back easily once I start working out again!
I think my abs will be visible in about a week! Today I’m going to take a break as I will go out tonight. But I will be back to it tomorrow.


No Comments

Older Entries