On trip to Slavin

Some photos shot on trip to Slavin. Used camera was Canon EOS 20D with old manual M42 lenses.

Lens: Helios 44M-4 2/58
IMG_8759
filename IMG_8759.jpg
make Canon
model Canon EOS 20D
exposure time 1/400s
aperture unknown
focal length unknown
ISO 100
software RawTherapee
datetime original 2014:03:29 15:51:25


Lens: Mirage Auto Reflex f=200mm 1:3.5
IMG_8776
filename IMG_8776.jpg
make Canon
model Canon EOS 20D
exposure time 1/4000s
aperture unknown
focal length unknown
ISO 100
software RawTherapee
datetime original 2014:03:29 15:58:33


Lens: Helios 44M-4 2/58
IMG_8787
filename IMG_8787.jpg
make Canon
model Canon EOS 20D
exposure time 1/500s
aperture unknown
focal length unknown
ISO 100
software RawTherapee
datetime original 2014:03:29 16:04:00


Lens: Helios 44M-4 2/58
IMG_8789
filename IMG_8789.jpg
make Canon
model Canon EOS 20D
exposure time 1/400s
aperture unknown
focal length unknown
ISO 100
software RawTherapee
datetime original 2014:03:29 16:04:33


Lens: Helios 44M-4 2/58
IMG_8803
filename IMG_8803.jpg
make Canon
model Canon EOS 20D
exposure time 1/1250s
aperture unknown
focal length unknown
ISO 100
software RawTherapee
datetime original 2014:03:29 16:15:55


Lens: Helios 44M-4 2/58
IMG_8811
filename IMG_8811.jpg
make Canon
model Canon EOS 20D
exposure time 1/6400s
aperture unknown
focal length unknown
ISO 100
software RawTherapee
datetime original 2014:03:29 16:27:37


Lens: Helios 44M-4 2/58
IMG_8820
filename IMG_8820.jpg
make Canon
model Canon EOS 20D
exposure time 1/5000s
aperture unknown
focal length unknown
ISO 100
software RawTherapee
datetime original 2014:03:29 16:34:23


Lens: Helios 44M-4 2/58
IMG_8834
filename IMG_8834.jpg
make Canon
model Canon EOS 20D
exposure time 1/1250s
aperture unknown
focal length unknown
ISO 100
software RawTherapee
datetime original 2014:03:29 16:43:12


Lens: Helios 44M-4 2/58
IMG_8849
filename IMG_8849.jpg
make Canon
model Canon EOS 20D
exposure time 1/6400s
aperture unknown
focal length unknown
ISO 100
software RawTherapee
datetime original 2014:03:29 16:49:59


Lens: Helios 44M-4 2/58
IMG_8852
filename IMG_8852.jpg
make Canon
model Canon EOS 20D
exposure time 1/5000s
aperture unknown
focal length unknown
ISO 100
software RawTherapee
datetime original 2014:03:29 16:50:31


author: niekto@niekde.sk (Jaroslav Petráš)

date: Sun, 30 Mar 2014 15:06:33 +0200

link: CyberAsylum.eu/photography-on-trip-to-slavin

Cold lamps line

Salt lamps arranged in line shot in the dark. Post-processing with RawTherapee and manipulated in GIMP.
If you want you can use it as a wallpaper - photo is in fullHD resolution. Second photo bellow is the original.

cold-lamps-line
filename cold_lamps_line.jpg
make Canon
model Canon EOS 350D DIGITAL
exposure time 1/1s
aperture f/8.0
focal length 55.0 mm
ISO 100
software GIMP 2.8.0
datetime original 2014:02:28 19:59:03


salt-lamps-line
filename salt_lamps_line.jpg
make Canon
model Canon EOS 350D DIGITAL
exposure time 1/1s
aperture f/8.0
focal length 55.0 mm
ISO 100
software RawTherapee
datetime original 2014:02:28 19:59:03

author: niekto@niekde.sk (Jaroslav Petráš)

date: Fri, 28 Mar 2014 15:50:00 +0100

link: CyberAsylum.eu/photography-cold-lamps-line

How to change GeSHi stylesheet

I'm using syntax highlighting very often on this site and two days ago I switched my website to dark theme which caused some troubles because by default GeSHi (Generic Syntax Highlighter) uses light color scheme.

This can be easily changed by some modifications.
 
function use_geshi($match)	{
	$geshi = new GeSHi($match[2], $match[1]);
	$geshi->enable_classes(true);
	$geshi->set_overall_class('geshi');
	return $geshi->parse_code();
}
 

So this is my current callback function. The key component for customization is method enable_classes(true) which in this case enables classes for HTML elements generated by GeSHi and set_overall_class('geshi') method which will add geshi named class for each HTML element. I chose 'geshi' but you can choose any string you need eg. 'darkscheme', etc...

So and from now you can start to style the GeSHi output. There is my stylesheet which you can use if you want.
 
/*  
 * Geshi stylesheet
 * 
 * CyberAsylum.eu
 * dark theme by niekto@niekde.sk (Jaroslav Petras)
 * there is no licence and you can use it, copy it, sell it
 * or burn it
 *
 */
 
/* all			*/
.geshi
{ border: none !important; }
 
/* lines		*/
.geshi .li1
{ background: #252525 !important; }
.geshi .li2
{ background: #272727 !important; }
 
/* brackets		*/
.geshi .br0
{ color: #bfbfbf !important; }
 
 
/* comments		*/
.geshi .co0,
.geshi .co1,
.geshi .coMULTI
{ color: #7a7a75 !important; }
 
/* strings		*/
.geshi .st0,
.geshi .st_h 
{ color: #ff4444 !important; }
 
 
/* methods		*/
.geshi .me0,
.geshi .me1
{ color: #ffffff !important; }
.geshi .me2
{ color: #ffcc66 !important; }
 
 
 
/* keywords		*/
.geshi .kw1
{ color: #99ee00 !important; }
.geshi .kw2
{ color: #eeaa22 !important; }
.geshi .kw3
{ color: #dd88ff !important; }
.geshi .kw4
{ color: #ff7744 !important; }
 
/* operators		*/
.geshi .sy0
{ color: #44ffbb !important; }
 
/* numbers		*/
.geshi .nu0
{ color: #ff2288 !important; }
 
/* variables		*/
.geshi .re0
{ color: #88c0ff !important; }
.geshi .re1
{ color: #88c0ff !important; }
.geshi .re2
{ color: #ccddff !important; }
.geshi .re3
{ color: #88c0ff !important; }
.geshi .re4
{ color: #88c0ff !important; }
.geshi .re5
{ color: #ddddff !important; }
 
/* EOF			*/
 

author: niekto@niekde.sk (Jaroslav Petráš)

date: Thu, 20 Feb 2014 09:07:00 +0100

link: CyberAsylum.eu/how-to-change-geshi-stylesheet

Mobile clients detection in PHP

 
<?
 
function detect_mobile()	{
 
	$mobile = TRUE;
	$useragent = $_SERVER['HTTP_USER_AGENT'];
 
	// don't forget to remove pipe from last one cause it will match everything in OR
	$pc_dstr =	'/('
			. 'X11|'
			. 'Windows NT|'
			. 'Macintosh'
			. ')/i';
 
	// don't forget to remove pipe from last one cause it will match everything in OR
	$mob_dstr =	 '/('
			. 'android|'
			. 'meego|'
			. 'iphone|'
			. 'ipad|'
			. 'ipod|'
			. 'cyanogen|'
			. 'mobile|'
			. 'mini|'
			. 'blackberry|'
			. 'cyanogen'
			. ')/i';
 
 
	if ( preg_match($pc_dstr, $useragent) > 0 )	{
		$mobile = FALSE;	
	}
 
	if ( preg_match($mob_dstr, $useragent) > 0 )	{
		$mobile = TRUE;	
	}
 
	return $mobile;
}
 
?>
 

This is the simple function you can include from file. By default there is an assumption that client is mobile. This can be changed by match for strings defined in $pc_dstr variable. There is also an another match for common strings used by mobile devices which can revert changes made by first match in case that identification contains some strings common for mobile devices too.

So a better description based on how it works should be "function to detect desktop/workstation client".

I'm using this on this site to decide if is it good to insert javascript function which enables fixed sidebar menu instead of static one.

author: niekto@niekde.sk (Jaroslav Petráš)

date: Wed, 19 Feb 2014 16:02:00 +0100

link: CyberAsylum.eu/mobile-clients-detection-in-php

Some core changes to the streams archiving

Greetings, there are some changes about unnoficial archive and way how it works.

author: niekto@niekde.sk (Jaroslav Petráš)

date: Mon, 02 Dec 2013 16:45:00 +0100

link: CyberAsylum.eu/some-core-changes-to-the-streams-archiving