Server-side pattern rendering

Posted in Programming, Uncategorized by Steffe on November 6, 2012 No Comments yet

I’m getting closer to the core of friendship-bracelets.net… Pattern rendering. It is the most vital part. This is what almost all users go to the site for. I’m going to make it as good as I can.

One advantage with doing this in Node.js and JavaScript is that if there is a need for client side rendering, the same code could be used. An example could be to change the colors in the pattern interactively, to check whether a set of colors are good looking together or not.

Many things are falling into place now. I want to launch a beta testing site soon but before that I need generators and server-side rendering for all types of patterns… And probably a lot of other stuff that has nothing to do with patterns at all. I hope you can wait.

Kiruna

Posted in Uncategorized by Steffe on July 12, 2012 No Comments yet

image

image

image

image

image

image

image

How to create a central git repository

Posted in Uncategorized by Steffe on March 1, 2012 No Comments yet

I’ve been working a lot with git lately and one of the problems I had was to create a central git repository that two people could push and pull to. It’s a simple problem, and it’s got a simple solution. Run this in a terminal:

mkdir code; # Make an initial working directory
cd code;
git init;

Now add some files, and run “git add” on them. Then commit.
echo "Hello git!" > testfile;
git add testfile;
git commit -am 'first commit';

The next thing you want to do is creating the “central” repository. You do this by cloning your current working directory with the “–bare” flag:

cd ..;
git clone --bare code central;

The working directory does not yet know of this central directory called “central”. To fix this, one could either go through the config for the folder or just make a clone of the central directory. We will do the latter, and therefore we will not need the current “code” directory.

rm -Rf code;
git clone central code; # make new coding dir

All done! You can now edit files in “code” and run “git push” or “git pull” as you like. Good luck!

Making Spotify for Linux work in Ubuntu

Posted in Uncategorized by Steffe on January 9, 2012 3 Comments

The Spotify for Linux software is a great initiative, but it is a little buggy. As I am a music freak, I had to make it work on my favorite operative system Ubuntu.

The solution that worked for me was deleting the spotify cache before the program start. It can be done by running the following in a terminal:

rm -Rf ~/.cache/spotify

Doing this every time you want to launch Spotify is too much of a trouble, therefore I made a small shellscript to do this for me. Start a text editor by executing the following:
gedit ~/spotify.sh

Enter the following code:

#!/bin/bash
# Remove spotify cache
rm -Rf ~/.cache/spotify;
# Start spotify
spotify;

This code removes the spotify cache and starts Spotify. Save the file.

Now, to make the file executable, run the following in a terminal:

chmod +x ~/spotify.sh

To run this script, execute
~/spotify.sh
If you want to make Spotify quick started, make an own program starter for it in the Ubuntu panel:

If you want the Spotify icon on your program starter, it is located at /usr/share/pixmaps/spotify-linux-512×512.png.

Now lean back and enjoy your music.

Lost and found

Posted in Uncategorized by Steffe on January 1, 2012 No Comments yet

image

Found this original Game Boy system at my parents house while visiting them last week. The console is fully functional and I have four games to play: Super Mario Land, Battletoads, Ducktales and Pokemon yellow version.

Birthday!

Posted in Uncategorized by Steffe on December 29, 2011 1 Comment

As always, my closest relatives showed up at my parents’ house to wish me a happy birthday and have some fika. You guys are the best, thanks :)

So… Now I’m 24. Still young.

image

Tommy and Emma.

image

Sofia and Martin, my brother.

image

Coffee time.

Asphalt 5 for Android: screen tap controls bug + quick fix

Posted in Uncategorized by Steffe on December 23, 2011 No Comments yet

While playing one of the most visually attractive games for Android, I discovered this annoying bug. Sometimes the steering locks without reason. This did only happen in the ‘screen tap’ controls mode.

This forced me to restart the race every time it happened. However, by visiting the controls menu and cycling through all control modes, the steering lock disappears and you can continue the race without restarring it.

I hope this bug gets fixed, as the last races are quite hard to win. This bug steals a lot of time while in the race and that makes it even harder.

In the whole picture this is a great and visually nice racing game that reminds me a lot of Need For Speed 2. Good work, Asphalt developers :)

Christmas in Boden

Posted in Uncategorized by Steffe on December 23, 2011 No Comments yet

image

Back in Sonja and Berth’s house in Boden. There is a lot of snow outside and there is hardly any daylight. The christmas tree is decorated and the christmas spirit is in the air.

I guess Christmas celebration in Boden  is a tradition now since we did the same thing last year. Can’t complain about it, it’s really great here.

Photos from Tenerife

Posted in Uncategorized by Steffe on December 13, 2011 No Comments yet

A selection of the photos I took while in Tenerife. It was a great vacation.

image

image

image

image

image

image

image

image

Smoothie

Posted in Uncategorized by Steffe on September 12, 2011 No Comments yet

1 apelsin
3dl äppeljuice
1 banan
250g frusna frukt och bär
Färsk spenat

Kör i mixer till en slät smoothie. Jättegott :-)

Next Page »