Why You Should Choose WordPress For Your Next Project

There are many reasons why your should choose WordPress for your next web project. One of the first reason is that its free. Its both free as in free beers, and its open source. You can go to wordpress.org and download the source code and install it on your own web server, or you can go to wordpress.com and sign up for a free account on a shared web server. The .com-version does not have all the features as if you have your own installation. But if you install it yourself on your own web server, you can install what ever theme or plugin you like. That is not something you should do, without knowing that there aren’t any security holes in the plugin’s (or theme’s) code first.

Continue reading Why You Should Choose WordPress For Your Next Project

Moving WordPress install to a different directory

(This is the first post in a serie of posts about WordPress that I’m working on.)

I guess that you all can install WordPress. WordPress is quite known for its “5-minute-install”, and almost every web hosting provider usually have a “Click one button to install WP”-option. Maybe I will write a short post about installing WordPress on your server later.

But how should you do if you want to move your installed WordPress to a new directory. Maybe you don’t want to have a cluttered root directory on your server. You can have many reasons to have WP installed in a directory other than the root directory, both for security reasons and to unclutter your directory tree.

Let’s say that you want have your URL, for example http://mydomain.com to reach your website, but you want to have WordPressed installed in a subdirectory, like http://mydomain.com/wpsystem/. Your visitors will see it like your WordPress is installed in the root directory, but you have to go to http://mydomain.com/wpsystem/wp_admin/ to log in to the admin dashboard.

For simplicity we will say that you already has installed WP in the root directory and want to move it to the /wpsystem directory. The first thing you should do is to log in to your admin dashboard, and go to Settings -> Permalinks. There you can set up the system to use the kind of links you want to use for your site, like “Post Name”, which gives http://mydomain.com/post-name/ as link structures.

After that you go to Settings ->General Settings, and change the WordPress Address (URL) to http://mydomain.com/wpsystem, and the Site Address (URL) to http://mydomain.com.

The WordPress Address should point to where you will have your WordPress system installed, and Site Address should point to the web address where your visitors will go to visit your website.

WordPress Site settings

Remember to click on the “Save Changes”-button to update the system and publish your new settings.

After that you can use a regular FTP program to move all files to the new directory, except for the index.php and .htaccess files. This two files should remain in the root directory.

When the files have been moved, you open the index.php file in your editor and look for this code:

require ( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );

and replace it with this code instead:

require ( dirname( __FILE__ ) . ‘/wpsystem/wp-blog-header.php’);

After doing that you might have to log in to the Admin Dashboard (now at http://mydomain.com/wpsystem/wp-admin/) to update the permalink settings again, and after that you’re done.

 

New book about ios8 game development

There is a new book over at Packt Publishing, about iOS 8 game development with Swift. I was involved in that project as an expert reviewer, and I can guarantee you that this book is very good if you want to learn how to program games in Swift.

Siddharth Shekar, who has written the book, is very good and professional in learning the writers in both SpriteKit, SceneKit and some Metal.

So head over to packtpub.com and order your copy today!

Skärmavbild 2015-06-02 kl. 14.50.22

 

Fixed the Wifi-problem on my MacBook Pro

Many people have had problems with their Wifi-connection after upgrading to Yosemite on their Macs. So did I, but now I have managed to fix it.

Apple have released a few bug fixes to OS X 10.10. I’m up to 10.10.2 on my MacBook Pro now, but none of this bug fixes fixed the problem for me. What I had to do was to reset the System Management Controller (SMC) on my computer.

To do this on a MacBook Pro or MacBook Air, you turn off your computer. Make sure that your power coord is connected to the computer. Then you hold down the Shift-, Ctrl- and Alt-keys and press the power button at the same time. After the you can release all the buttons and turn your computer on, and hopefully your problem will be fixed.

I want Live Writer on the Mac

I have a few blogs out on the internet. For all of them, I use WordPress, because that is the best platform for blogging today.

My problem is that I don’t like writing blog posts in the WordPress Admin interface. When I was using Windows on my computers, I used Live Writer. I really liked that program. Now, on the Mac OSX, I’m using ScribeFire directly in the Chrome webbrowser or the application PixelPumper. But I’m not really satisfied with them. I want something more like Live Writer on the Mac, but I haven’t found that yet.

If you have any suggestions, please make a comment here about it.

My five favourite apps

If you have to choose your five favourite apps on your mobile phone, which should it be?

I have both an Android phone and an iPhone, but for work-stuff I usually use the iPhone. The Android I usually have for testing and because I like it. And after upgrading the iPhone to iOS 8 and my MacBook Pro to OS X 10.10, I like the iPhone even more. I like how the computer and phone has started to work together in a new and better way.  There are apps that I use a lot more than the five I’m about to list here, but I think this five are my favourites after all.

Trello.

Trello is really helping me to organise everything I’m working on. You simply create boards with cards on it. On the cards you can add stuff like checklists, text, photos, videos, PDF’s and a lot more. If you are working in a team, you can work together on the cards and delegate to different persons. This makes it really easy to see what you need to focus on, and who is working on what. I found a really good instruction on the net for how I should organise my boards and cards. I will write a bit about it in a later post, as soon as I find the source again.

It’s also syncing really sweet between the phone and computer. Sweet!

Did I tell you that Trello is free? It is. Go check it out!

 

Lift.

This is my feel-good-every-day-app. This app helps me to put my goals into action. Every day it gives me an inspiring quote, and if I forget to train a day, it reminds me.

You simply choose which goals you have, and how often you want to do it. It reminds you if you forget, and it counts when you are checking in on your goals. Everyone really should have this app installed.

 

Sketch Mirror.

I do a lot of my mobile app designs in Sketch. This app makes it so simple to try the design right on the phone. If you are working serious in Sketch, this app is a must.

 

Evernote.

I believe that Evernote is the best note taking app out there. Both on the mobile phone and on the computer. You can write stuff down, you can save links, pages, and take pictures. I believe you can save everything in this app, seriously everything you can think on. Overtime I’m getting a great idea for an app or a new project, I jot it down in Evernote. And I can reach it from every device I have. I’m an expert on getting great ideas on strange places, so this app really suits me.

 

Dropbox.

Dropbox is one of my favourites, that I use all the time without thinking about it. I have sat it up for backing my stuff from all my devices. Without it, I sure would loose a lot of important stuff. You can use Dropbox for lot of different stuff.

 

That was my five favourite apps I have on my mobile phones. What’s yours?

Bokrecension: Guldläge på nätet

This post is in Swedish, as it is a book review of a swedish book.

Dags igen för en bok recension. Under det senaste halvåret har jag försökt att uppgradera mitt lilla bibliotek av databöcker. Det är ju som känt ett område där utvecklingen går väldigt snabbt, och det gäller att hålla sig uppdaterad för att kunna hänga med. Boken jag vill skriva lite kort om här är boken “Guldläge på nätet, sökmotoroptimering för alla”, som är skriven av Magnus Bråth och Michael Wahlgren.

Håller man på med webbutveckling på något vis, tycker jag att man bör hålla sig åtminstone lite uppdaterad med hur sökmotoroptimering fungerar. Och följer man några bloggar inom området har man säkert någon gång hört talas om bokens författare. De är mycket kompetenta personer inom området, och man bör försöka ta in det de tipsar om.
Det är en ganska kort bok på drygt 100 sidor, och den går inte in så djupt på ämnena den tar upp. Jag tror dock inte det är meningen med boken, att den ska gå så djupt in de olika delarna i att optimera sin webbsida för sökmotorerna. I stället ger den en väldigt bra bild på hur hela arbetet för optimeringen går till, och jag tycker att man får en väldigt bra bild av vad som krävs. Jag tycker det känns som en bra guide för att komma igång med sitt optimeringsarbete, och man kan enkelt gå på djupet genom andra kanaler i de områdena man känner att man behöver satsa mer på.
Jag tycker att det är en bra förstabok inom området, och man kan enkelt komma igång i sitt arbete after att ha läst den. Efter att ha läst den tycker jag själv att jag vill lära mig mer om de delarna som jag inte har haft 100% koll på.
Kanske inte så mycket att investera i om man redan är “proffs” på området, men absolut ett måste att ha i bokhyllan om man sysslar med någon form av webbutveckling, och vill komma igång med att sökmotoroptimera sin webbsida.

Enchant.js, perfect for aspiring HTML5 game developers

 

During the last year or so, I have tested the most HTML5 game frameworks out there. There is quite a few quality frameworks out there on the internet, and many of them are pretty good. Some of them are a bit more targeted for more advanced users. But if you are a novice HTML game developer, I can suggest that you should look at Enchant.js. Enchant.js is very easy to start developing smaller games, and a good start for the aspiring game developer. You can download and read a bit more about it here. There even is an online code editor at http://code.9leap.net/.

This is how easy it is to make a small “Hello World”-application in enchant.js:

Type this code in index.html:

<!doctype html>
<script src="enchant.js"></script><script>// <!&#91;CDATA&#91;
enchant();
    var game;

    window.onload = function() {
        game = new Core(320, 320);

        game.onload = {

            sign = new Label();
            sign.text = "Hello World!";
            game.rootScene.addChild(sign);
        };
        game.start();
    };
// &#93;&#93;></script>

Edit: I forgot to tell you about a good book about Enchant.js.
The books name is: “HTML5 Game Programming with enchant.js“, and its a really nice book about the framework. A really good investment if you want to start coding some HTML5 games.

cover-253x320

Mina favoritprogram för programmering

När man programmerar en hel del som jag gör, så skaffar man sig snabbt ett par favoriter bland alla texteditorer och IDE’er som finns. Mina klara favoriter fär tillfället är Aptana Studio och Sublime Text. Aptana använder jag för de lite större projekten och Sublime Text när det bara är några få filer som ska skrivas lite snabbt.

Aptana Studio har bra funktioner för webbutveckling. Man kan jobba effektivt med projekt och programmet har bra stöd för olika programmeringsspråk. Det finns även bra stöd gör GIT versionshanteringssystem inbyggt. Aptana finns att ladda ner gratis från deras hemsida.

Sublime Text är som Anteckningar på steorider. En kraftfull texthantare som mankan skräddarsy precis som man vill ha den, och det finns gott om plugins att installera. Sublime är inte gratis, men väl värt pengarna det kostar att köpa en licens.

Några av mina favorit-plugins som jag har installerat är:

Package Control. Denna plugin gör det så mycket enklare att installera och fixa med resten av pluginsen. Ett måste.

– DocBlockr. Självklart ska man dokumentera sin kod på ett bra sätt. Denna gör arbetet lite lättare. Ladda ner här, eller använd Package Control för att enkelt installera.

PHPUnit. Klart man ska testa sin PHP-kod. Använd Package Control för att installera.

Gist. För att arbeta med GIT.

Goto Documentation. För att enkelt komma åt dokumentationen för PHP.

Phoenix Theme. Jag tycker standard färgschemat i Sublime Text är lite störande i mitt arbete. Men här finns det flera som passar bättre.