Tablets and mobile phones now supported

Ejectamenta puzzle games have been tested to be working on a 7 inch Android tablet using the Google Chrome mobile browser html5 puzzle games have been tested on a low specification Android tablet using the Google Chrome mobile browser and, although full screen mode is not currently supported with this browser, everything works fine (Opera mini browser however still has some problems with touch screen input). Since full screen mode is not possible, game play can sometimes be tricky (MegaTangram), however the new zooming and panning functionality allows for the accurate placement of pieces.

Upload tangram image to facebook

Now you can upload an image featuring your completed tangrams to facebook

There is a new feature on MegaTangram called “create tangram picture” it is accessible either from the menu or by double clicking on one of your completed tangrams in the top of the screen. You must be logged or have completed some puzzles to add them to the canvas area. Any completed tangrams can be used as stamps and individually resized and re-coloured. An image can also be uploaded and used as the picture background. Once you are happy with the picture it can be send to facebook using the facebook upload button (directly above the zoom control).

How to migrate a wordpress website to a new server using softaculous

How to migrate a wordpress installation to a new server using softaculous

1) Perform website backup with softaculous, download file

2) Upload to /home/USERNAME/softaculous_backups directory on new server (check file dir permissions are not restrictive (eg chmod -> dir 755 file 644)

3) Find similarly named info file in /home/USERNAME/.softaculous/backups on old server, download file

4) Modify info file, change softpath to actual PATH used on new server, change softdbuser to DATABASEUSER on new server (you may have to create new user and associate with DB), update softdbpass with new DATABASEUSER’s PASSWORD

5) Upload the modified info file to /home/USERNAME/.softaculous/backups/ on new server

6) You should now be able to see backup file on new server in softaculous and successfully restore from backup

You probably have to change the wordpress config file to reflect the new usernames, paths etc.

User tangrams now displayed in the user home page area

User tangram puzzles can now be saved and viewed in the user home page area.

The user home page is a place where you can view all your completed puzzles. The tangram puzzle now has the ability to create your own tangram puzzles using unlimited amounts of the 7 tangram building block pieces.
the user home page showing completed puzzles and user completed puzzles
To do this just click on the user tangram button in the top right corner of the MegaTangram screen and start building your tangram design. To save your user tangram click the button again. The new puzzle will be added to the user home page and also shown in the completed puzzle area on the top of the puzzle screen.

User tangram functionality

Construct your own tangram picture using as many shapes as needed

By clicking on the user tangram button a tangram picture can be designed. As many shapes as needed can be dragged from the bottom of the screen into the puzzle area to use making a pattern or picture. Zoom in and out and move the canvas around to give yourself more space in which to build. User tangrams can be seen on the user home page as well as in the MegaTangram game

Simple wordpress language switcher

Easily create a multilingual wordpress site with no need for complicated plugins

this example is for English and German languages but could equally be for anything

  • 1) Create 2 new posts in your 2 languages eg. Welcome and willkommen.
  • 2) Create a new menu called languages add a menu item for each page.
  • 3) Rename the menu items english and deutsch.
  • 4) Add the new language menu to the website in a suitable position, (eg. using a widget or theme settings).
  • 5) Create 2 new menus one for your german pages and another for the english pages.
  • 6) Install the nice and lightweight zen menu logic plugin, activate and check the settings that your main menu is selected.
  • 7) Go to your german home page and down the bottom is the zen logic menu select options – select the german menu.
  • 8) Go to your english home page and down the bottom is the zen logic menu select options – select the english menu.

You’re good to go!

The one disadvantage with this setup is that you will always be directed to the home page when you click the language menu item.

There are also WordPress plugins to add images to menus so on your languages menu you could instead use flag icons

Vocabulist bookmarklet working in android browser

Vocabulist bookmarklet working in the default Android web browser

To install bookmarklets on an android device the best way to do this is using the browser sync function. So add the Vocabulist bookmarklet to your web browser on the desktop (chrome/firefox recommended) in the normal way. Then, in the case of chrome, when you log on to google with your username all your bookmarks along with any bookmarklets are available (still not sure how to make the bookmark bar appear though). Since there is no mouse hover on tablets and smartphones you have to click on the word to get the popup. Here are some example images

vocabulist language choosing dialog on android Vocabulist bookmark translation popup on Android

Online software for making a repeating pattern or texture

The ejectamenta texture maker software lets you create a repeating pattern from a single image. This is useful to create wallpaper or as a texture to be mapped to surfaces or just to create interesting patterns.

To create a repeating pattern the edges of the image have to be similar to each other, for instance the top edge should mirror the bottom edge and likewise for the left and right edges. The corners need to mirror all the other corners. We talk as the image to be repeated being the unit cell, in our case we are doing a 2D translation of the image to form the pattern.

You can design a pattern so that the pattern at the edges is continuous from bottom to top and the whole pattern then appears as a completely unified design. You can for instance leave the edge of the images blank and just have the design in the center of the unit cell, but this doesn’t make a very interesting pattern! It is better to draw parts of the design beyond the boundaries of the image and mapping these parts back to the unit cell (providing there is empty space at the other edge).

This software attempts to make a pattern from an arbitrary image by mixing or blending the pixel information at the edge of the images (you can choose how much of the edge is to be blended) from left to right and top to bottom. Its a simple algorithm that can only really work with semi-random textures, however it is still possible to create some interesting patterns. Once the texture image has been made it can be repeated in a grid pattern to see how good the texture looks. If you right click on the pattern you can save the image to disk.

Of course it is a pretty basic technique but useful for random textures. I will update it at a later date to use a wavelet pyramid technique and include it in the image processing application I am working on.

here is an example of an image and the repeated pattern it has been blended using 15% of the image edge.

befuddled image befuddled image
Original Image Repeating 4 by 4 pattern of the image