Tag: tools

Java Concurrency in Practice

by plouj on Aug.05, 2010, under Java, concurrency, programming

Since I’m doing quite a bit of Java programming lately I’ve become curious about the state of writing concurrent code in it. I was fortunate enough to have a colleague let me borrow the following book:

Java Concurrency in Practice

Having gone through more than half of it already I’m rather surprised as to just how many different tools are available for solving concurrent problems and just how many are a instantly available to Java programmers. Unfortunately, and unsurprisingly, none of these tools in and of themselves are adequate enough for avoiding deadlocks and writing composable deadlock free code. My next step in the search for that silver bullet is to try writing something interesting in Clojure or Haskell using STM.

Leave a Comment :, , , , , , , more...

HOWTO build DXX-Rebirth for Windows with MSYS/MinGW

by plouj on Mar.07, 2009, under HOWTO, games

Introduction

In this post I’ll document the steps I had to take to build DXX-Rebirth (a modernized Descent game engine) for Windows using MSYS and MinGW.

MinGW, MSYS

From  Pantokrator’s blog:

  • install MinGW
    • choose a lowercase install path: c:\mingw
    • choose to download and install current version
    • enable g++ (for physfs)
  • install MSYS
  • install msysDTK

SDL and SDL_mixer

Also from  Pantokrator’s blog:

  • download the SDL source
  • in the MSYS shell, compile it with
./configure --prefix=/mingw && make && make install
  • download the SDL_mixer source and in a MSYS shell, build it with the same command:
./configure --prefix=/mingw && make && make install

PhysicsFS

  • Compile with the same command again:
./configure --prefix=/mingw && make && make install

SCons and Python

From Globulation2 MinGW instructions:

PATH=$PATH:/c/Python26:/c/Python26/Scripts
  • to the end of /etc/profile in MSYS so that SCons can run from the MSYS shell.

Subversion

DXX-Rebirth

  • checkout DXX-Rebirth from https://dxx-rebirth.svn.sourceforge.net/svnroot/dxx-rebirth
  • change the SConstruct script to call sdl-config as ‘sh sdl-config ‘:
...
Flags and stuff for all platforms...
env.ParseConfig('sh sdl-config --cflags')
env.ParseConfig('sh sdl-config --libs')
env.Append(CPPFLAGS = ['-Wall', '-funsigned-char'])
...
  • finally, in the MSYS shell, built with:
scons sdlmixer=1

Final Remarks

I had trouble with the latest version of PhysicsFS (1.1.1) because it uses cmake. For some reason it failing to find some prerequisites in MSYS. I also had trouble with version 1.0.1 of PhysicsFS (this is the version the official d1x-rebirth_v0.55.1-win.zip is built with) because the built failed with the following error:

warning: cannot find entry symbol _DllMainCRTStartup@12; defaulting to 00401000
...
undefined reference to WinMain@16

If you notice any problems or mistakes in this post, please mention them in the comments.

1 Comment :, , , , , , , , , , , , , , , , more...

Quick Picasa evaluation

by plouj on Dec.02, 2008, under review

This is a quick, biased, un-authoritative and incomplete evaluation of Google’s photo manager Picasa. In total, I’ve spent no more than a couple of hours using Picasa. I’ve already chosen to use Digikam as my photo manager so I was going to blatantly ignore its many faults and ruthlessly criticise Picasa. Don’t read this post to learn about Picasa. Download it yourself or look for more comprehensive reviews elsewhere on the ‘net. I’m writing this because I promised a friend at work to look at Picasa and later I decided to put my observations in writing. You’ve been warned.

What I liked

  • importing images into the gallery using a separate and (seemingly) lower priority thread makes  the UI usable right from the start.
  • it hasn’t crashed on me while importing 11,000+ pictures into the gallery
  • cute, but useless timeline display application:
  • Google provided an RPM repository which makes installing, upgrading and un-installing very easy for me

What I disliked

  • simplified colour tuning controls. They might be OK for beginners, but they don’t appeal to someone like me who has used colour curves before.
  • at first launch, Picasa started to import images from my whole home directory, which is huge and has tonnes of pictures. This only made me realize just how many images I have (mostly application icons and game project textures) that really don’t belong in a photo catalogue. I also couldn’t find a way to tell Picasa to stop and only look in certain directories.
  • Picasa froze when I first tried the “tools > folder manager”. It worked on the second attempt, and I realized that this is the tool used to tell Picasa exactly what directories to include when searching for images.
  • the “Tools > Experimental > show duplicate pictures” function was indeed experimental. It seemed to just give me a list of images without indicating what the duplicate pairs (or groups) were.
  • the search results for the “show duplicate pictures” also showed a strange status bar at the top of the main window. I never figured out the meaning of the constantly changing seconds value or what GPixel was referring to.
  • the “importing indicator”, although neat (it showed what picture was being imported in real time), was rather useless. Most importantly, it did not show the total progress percentage. When I tried to close it, it seemed to just re-appear in a different location along the side of the main Picasa window. Then it simply started sliding up and down without explanation.
  • after a lot of clicking, I managed to loose the album list view in the left pane and had to re-start Picasa
  • ugly dithered splash screen image – c’mon, we’re not in the 1990′s anymore!
  • the scrollbar in the main view controls the view scroll speed, not the actual movement of the view – annoying and misleading. It didn’t let me get near the bottom right away, and I got dizzy every time I scrolled. However, I think the search result view actually changed the scroll bar function to the usual scroll bar for reasons beyond me. [Edit: after more use I realized that the way the scroll bar behaves in Picasa (combined with really smooth scrolling) helps with showing many photographs to other people looking at your screen. You can just drag the scrollbar just a bit to achieve a nice steady scroll speed and discuss the pictures instead of having to continually "pull" the images up or down with the mouse.]
  • I somehow totally failed to find the familiar timeline/calendar view of my photos. Does Picasa really not have a way to organize photos in this manner?
  • this is proprietary software from Google. I actually like a lot of stuff that comes from Google, but when it comes to software licensing, I don’t play favourites. I simply try to avoid non-Free Software as much as I can.

What I ignored

  • uploading to and syncing with various web services
  • ordering prints
  • printing to a local/personal printer
  • picture backup feature – rsync is fine for me
  • passport photo function – This made me realize that I’m definitely not the intended audience of Picasa
  • the ability to store video flies, which I consider to be outside of the scope of this program
  • anything else I haven’t mentioned, obviously

Final thoughts

In conclusion, I’ve used my experience with Picasa to re-inforced my decision to stick with Digikam – a Free/OpenSource Software photo manager.

2 Comments :, , , , , , , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...