thekonst.net sections.   propaganda :: about :: konstware :: writings :: resume :: photohunt :: ::
 
[30.07.02] the hot evolution
[16.07.02] heavy stuff
[14.06.02] Nightwish and not only them
[13.06.02] a trip to Lacu Rosu
[10.06.02] digicam
  [31.05.02] Friday the 31st
[28.05.02] news mailing list
[24.05.02] cheers, Slavs!
[14.05.02] mountains. mice. squirrels
[22.04.02] spring sketchings
  [ subscribe ]
[ archive .. ]
24 Mar 2003 :: During my last coming home about half a year ago, sincerelly, I didn't see anything like this. This time some really clever one, and not a long ago, proposed a very wise solution: not to translate titles and own names of various things, leaving them as they are instead... [ more.. ]

03 Jun 2004 :: The renewed railway-station in Chisinau surprised me. In the end of the last year it suffered a major repair, so it looked really magnificent... [ more.. ]

27 Dec 2001 :: At last, today I have finished the report about our trip to Chisinau. It took me about one week to finish, for there were a lot of impressions, and I didn't want to miss any. I wrote it in Russian, so here in the English version of news section, for now, I put only this small notice... [ more.. ]

[ 10th Jun 2002 ] digicam | 2 comments | leave a comment

Have you ever had a dream, my dear readers? A modest, not so modest or a very perverse one? I bet you had. To touch silicon of Pamela Anderson, or to earn one millon dollars developing software, without selling heroine or killing someone.. I had a dream too. I'd been wanting a digital photo camera during last three years. The point is that having once tried this product of the modern technology I realized that all of those development, printing and scanning steps were extraneous. Anyway I scanned printed shots. And if it's possible to press a button and to get a result immediately, why be bothered with other stuff? However, everyone knows the situation with electronics of such a kind in Ukraine. When in shops it's only possible to find expensive models for the minimum price of 700$. With my incomes there it was absolutely impossible. It appeared though that in Romania it's the same, as well as in Moldova.

Finally, two days ago I get such a gadget for myself. There was a company which had a good variety of prices. I chose the HP C318, model, the U.S. price of which is about 200$. Here though I had to pay three hundred and something. But did I have a choice? At least it had 2.3Mpix, 1800x1200 and an acceptable price.

Had to play around to get it work in Linux. Finally I had to compile the SCSI and USB storage devices support in the kernel, so now it's just enough to connect the camera and to mount it as an USB hard disk. A tree of directories appears, through which it's possible to navigate and to copy images to the disk.

After there was no problem to fetch the shots from the camera, I got my hands on another thing - publishing images on the site along with comments for them. There are a lot of intresting things in everyday life which are worth noticing. And I'm really upset when I do miss them not having a camera with me. Hope now the situation will change. For example, here in Romania numbers of cars consist of two letters of a region (IS - Iasi, B - Bucharest, etc), two numbers and other three letters. Sometimes it's possible too see very funny combinations, like SUX, TUX, WTF, etc. So, I'm gonna start collecting shots of such stuff. Anyway, I was speaking of another thing. Had to find a useful toolset to put out photographs. It was not convenient anymore to make thumbnails and update HTML code manually. On freshmeat I found an intresting project called The Gallery. It was a set of PHP scripts which made it possible to make a web gallery. All the interface for a user as well as for an administrator was simple. Photographs were uploaded through web, and all the transformations were made "on fly". There was no need to make something by half on the site of the server. Also, it's easy to install. BTW, the photos section had turned into a real gallery powered by the tool.

Though, I wish it had been that easy. Since my site is bi-lingual (at least for now; there can be also a version in Romanian if it will go well with publications in Romanian computer press), I needed the header with the menus and stuff to be shown in a language which a user had chosen browsing pages. Having thinked a little bit, I found a recipe which I'll share with you now.

Everything's done with a single global variable. It's called lang in my code. For entering into gallery the "entry point" script language.php is used (see below). Since it resides in the gallery/ directory, redirection refers to index.php in the same place.

<?php

session_start();
session_register("lang");

$HTTP_SESSION_VARS["lang"] = $l;
header("Location: index.php");

?>

The gallery link now will look like this: /gallery/language.php?l=.

Once it's done, we have a possibility to use the lang variable in the header and footer templates. For example, to include files with site elements in different languages. Here's how I did that:

<?php

session_start();
if(empty($GLOBALS["lang"]))
    $GLOBALS["lang"] = "eng";
require("/path/to/".$GLOBALS["lang"].".inc");

?>

As to multi-lingual comments and captions for albums and pictures, the software author answered the following: This would be very challenging in G1. We *may* do this in G2, but it's been a subject of much debate on the -devel mailing list. Read the archives and get involved in the discussion there. Really, it's quite a difficult task to implement such a feature within an easy to use user interface. So it needs to be projected well before. However, for now the gallery suits me perfectly. BTW, about its author. From the project's site there is a link to his homepage. Worth taking a look ;)

design and content, copyright © , 2001-2017 | ~ 5822 visits daily | statistics