Wanna help out? Read this!

Published on by Karl Lindmark2 comments

Hello world!

If you’ve missed the multiple tweets on the subject, here’s a recap on what you’ve missed:

* I won’t release a Market version until the app-stopping bugs are squashed (sorry).
* I have however started to put out test-releases for you people to play around with, while waiting for the work to be done.

What does this mean? Well, basically it means that you can help me help you (and your fellow soldiers)… and with that said, this is what you should do straight away:

* Head over to the forum
* Register an account
* Grab the beta-ish
* Join the community!

Currently we’re like five members over there, so my guess is that “the more the merrier” still applies! :-)

image

Thanks in advance ‘folks!

Merry Christmas!

Published on by Karl Lindmark0 comments

Hello world!

I’d just like to wish you all a Merry Christmas, full of joy and good food. Personally I prefer the mini-sausages (also known as “prinskorv”) that end up on the table, and snack-wise it’s the phenomenon called “knäck” (solid fudge-ish)  that I roll with.

Regarding BF3 Battlelog, I’m experimenting a bit with local caching so that you guys won’t have to wait for everything to load *every single time*. The first time you visit a users’ presentation, you’ll obviously have to wait for it to download, but the visits after that should be showing the most recent cache. :-)

Sounds good? I sure hope so!

Kostradgivarna.se – at your service

Published on by Karl Lindmark0 comments

I’ve been a bit busy lately, not just with school and programming apps – I’ve also been working on a secret project… well, ok, it’s not that secret anymore as it’s literally right in-front of you now.

Kostradgivarna.se is a newly launched website within the “feel good”-sector and aims to show you how you can achieve great health by eating correctly. As we all know there are quite a few diets out there ranging from LCHF (low carb high fat) to the Cambridge Diet and VLCD (very low calorie  diet). All in all, you can pretty much just pick out one that seems fair to you and go with it. The people over at Kostradgivarna.se specialize in these kind of things, some in LCHF that I mentioned earlier, so give them a visit if you feel like trying something new.

The work I’ve done for the blog is to set-up WordPress, create a plugin to handle content and a also a little bit of things both here and there on the website. I recommend that you people out there give it a visit, if not only to try to learn Swedish (as most of you reading this probably don’t know the language at all). :-)

Generating XML via PHP throws an HTTP-500.

Published on by Karl Lindmark0 comments

I’ve been working on an easy way for the translators to translate the strings.xml for my current, as well as upcoming, projects. It worked perfectly on my localhost, but when I uploaded it onto this server… well, let’s just say that it didn’t quite work as planned.

Consider the following code.

<?xml version="1.0" encoding="utf-8"?>

At first I didn’t get an error message at all, but when I finally managed to get it to actually speak to me, here’s what it said:

Parse error: syntax error, unexpected T_STRING in /translate/download.php on line 1

Makes sense? No, not at all at first glance, however if you consider the fact that shorttags might be allowed on a host, the actual code would be parsed in the following way:

<?php xml version="1.0" encoding="utf-8"?>

As you can see, the code above would indeed be invalid when it comes to php, and there are two solutions (that I know of) available. One would be to switch off the shorttags-option, so that only will be considered a valid php-tag (and it should only be that way too in my opinion). The second one would instead have you output the xml-header programmatically:

<?php echo '<?xml version="1.0" encoding="utf-8"?>'; ?>

Hope this helps someone else out, as it did trouble me a bit until I managed to get ahold of an error message.

Forum launched!

Published on by Karl Lindmark5 comments

Hello world (again)!

I just launched a forum over at http://ninetwozero.com/forum, and hopefully it’ll become a place for you guys to engage in great discussions regarding any of the past, current as well as upcoming apps/services/other things that I’ve created. It’s not much, but probably a step in the right direction and most important – a way for us all to meet up and share our thoughts. :-)

Over and out!

BF3 Battlelog version 1.0.6 uploaded

Published on by Karl Lindmark0 comments

Hello world!

Just dropped by to let you guys know that I’ve hotfixed 1.0.5 (into 1.0.6) so that the unlocks should be working again. Note that this update doesn’t contain any new functionality – in other words, only the fix… the goodies will come when 1.0.7 is ready for everyday-use!

As always – here’s the link to Android Market: https://market.android.com/details?id=com.ninetwozero.battlelog

Translating WordPress – missing msgstr[] section

Published on by Karl Lindmark0 comments

I don’t quite know how often one actually does translate WordPress itself, or maybe a plugin/theme, but when you do… well, you kinda expect everything to go smoothly with poEdit and the given language files. Does it always? No.

When I tried to localize the the fix is pretty easy. Start by opening the language file with a text editor of your choice, and locate the following two rows:

msgid "One Response to %2$s"
msgid_plural "%1$s Responses to %2$s"

At first, they do actually seem alright, but if you look around in the file, you’ll notice that every other string has a matching set of msgstr by it. Add the following two rows underneath the ones you see above (and poEdit should be able to generate a full-blown .mo-file upon saving):

msgstr[0] ""
msgstr[1] ""

Last but not least – I’m pretty sure that this can be applied to any language file, regardless of intended platform or similar things. Hope someone out there finds this useful – I know I would’ve!

Mail-issues are rendering my inbox empty

Published on by Karl Lindmark2 comments

Hello world!

I just dropped by to let you know that I’m currently unable to actually recieve e-mails to all my e-mail accounts (except for the GMail ones), as the my new webhost since four (!!) days back literally just died on all of it’s customers. Alright, not died as in having to “close the shop” or anything like that, think of it more as their whole e-mailing system just crashed. With that said – please leave a comment below and/or resend any e-mails that you’ve sent to me in the last 24-48 and still not gotten a response to – I’ll do my best to answer them as soon as they enter the inbox (as usual). :-)

Thank you for your patience!

Link to more information (unfortunately in Swedish): http://www.driftbloggen.se/?p=2638

PHP Country-array with dial codes

Published on by Karl Lindmark0 comments

This is actually a snippet I’ve wanted to share with the world for a while. It’s not that it’s complex or anything like that, it really isn’t, however a compiled list of countries identified by their ISO-code as well as containing the dial code.

Read more »

BF3 Battlelog just hit 50 000 downloads!

Published on by Karl Lindmark6 comments

First thing’s first – the app I created a little more than a month ago just hit 50 000 downloads. Wow! 50 000 is like… the population in Luleå, Sweden (the city I’ve lived in most of my life), or a really good computer. Thank you very much for your support!

To celebrate this  moment, I’d like to show you some awesome statistics regarding the app:

  • 63% of you users out there are running Android 2.3.3 on their devices (awesome!)
  • 14% of you users out there are using the Samsung Galaxy S2

It always makes a developer warm in his/her heart to see that people got updated and (hopefully) high-performing devices – hopefully we’ll be seeing a bunch of Ice Cream Sandwich-users emerge in a near future.

Read more »