Blog

ColorCodes website

Uploaded a small project today that I have been working on for a while.

The site is called ColorCodes, and it makes it a bit easier to choose colors for your next web project. The site shows you about 300 different colors and shades of colors. It also gives you the name for all the colors.

With just a quick click with your mouse, you can copy the colors hex codes to your clipboard for easy pasting into your code.

Go check it out at : http://peterahlgren.com/colorcodes

You can also fork the site on github: https://github.com/ahlgren1234/colorcodes

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

Why everyone can and should blog

For not that many years ago, it was considered very difficult and only for the most tech-savvy people to create a new website on the internet. It was quite hard to start an account at a hosting provider, and it was very difficult to create the website and to get it in place on the web server. And if you had something of value to write about, it was hard to know what the visitors thought about what you had written about. Very few of your visitors emailed you about what you had written on the website.

But the times has changed. Now we have all the blogging platforms, which makes all the hard work very simple for us. You can start a new blog with just a few clicks on the mouse, and the visitors can comment directly on the website for both you and other visitors to read and comment back to them. You don’t have to know any programming language to make a new post on your blog, and you can easily style your website with different themes without ever touching the source code of the website.

Continue reading Why everyone can and should blog

Back to Linux

For a few years ago, I was very active in the Linux world. I was developing, translating and I even was Team Leader one year for the Swedish Ubuntu Community. Since then I have been working in both Mac OS X- and Windows-environment. But I feel more and more that I miss the Linux environment. OS X is quite okay to work in as a web developer, but I feel a bit too locked in, in that system. Windows is like a nightmare in every way.  It’s a terrible environment to work in, and we hardly need to talk about the security and privacy bit of the system. I’m very interested in computer security and I want to have control over my privacy when writing something on my computer or checking something up on the internet.

Continue reading Back to Linux

The wonderful feeling of writing

The last few years I have had a growing interest in the art of writing. I have written a few books, and have a few books started or in the planning phase. I also have a growing number of blogs where I write. I have this blog, that is my personal blog with texts about the internet, software and web development, and my other “professional” interests. I also have a blog in Swedish about my other large interest, running. Another blog I have is a Swedish blog about my family and my life after loosing my wife last year. The last blog I have at the moment is my “business blog”, with my apps and that stuff.

I have written two books. One about XML programming, and one about freelancing. I have started writing on a novel, and have ideas for a few more books.

I like writing, and Windows Live Writer is a program on my computer I use more and more. I do feel that this software is starting to get a bit outdated, and I’m searching for a replacement. Any suggestions?

Some other fields that is quite near this that I’m getting more and more interested in is SEO (Search Engine Optimization) and copywriting. In the near future I will post some articles about those stuff here on the blog.

My daytime work is  to work as a Web Developer on a Swedish company, but when I get home from work I like sitting down writing something. Sometimes I write a few chapters on a book project, and some other days I write some texts for my blogs. The common thing is that I really like writing. It’s a wonderful media for teach something, or to express how you are feeling, or to keep a journal how your training is going.

When programming at my day work, I have to follow certain rules. Everyone have their own style when programming, but there are some rules you have to follow in order to get the result you want from your code. When I come home and write for my books or my blogs, I can let my mind wander free. How the texts comes out depends on how I feel at the moment, but it’s a wonderful feeling when you really let your imagination take you to places you have never visited before.

I haven’t written that much here on this blog in a while, because I did aim to keep the texts on this website in certain fields, but I’m starting to feel that maybe I will start loosening up on that. Hopefully I will post some text about blogging, SEO and near by fields.

Book of snippets

I have a lot of stuff going in my life at the moment, so I don’t have the time I wish I had to update my blog. But hopefully I will get more time for that soon.

I have started to collect all my little code snippets that I have spread all around my harddrive. Thinking about collecting it all in some sort of a book.  It will be quite some good-to-have code in PHP, JavaScript, CSS and some for WordPress too. I will let you know when I have decided how, where and when to release it.

New job

I haven’t updated my blog in a while now. That’s because I have signed up for a new job, and are preparing for that at the moment. I will work as a web- (and app-) developer for a swedish company. I will continue work on a few personal projects too, but in the beginning I will only concentrate on the new job.

I will write some more about the new work when I have started settled a bit in my new position.

 

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.

 

My new book about freelancing is out

My new book about Starting freelancing as a web designer is starting to sell over at Leanpub today. I have been writing on this book on and off for a few months now, so it feels good that it is finished now. It’s an easy to digest guide for the aspiring freelancer. Hopefully it will answer all your question about starting to freelance.

Read more about it here.

Head over to Leanpub and buy your ex of the book now. =)

Cover image of my new book Start Freelancing.