Migration hell: moving printers in Windows

Share with:


Our campus, Faculty of Architecture, VGTU is moving to the totally new subnet. As we use DHCP for IP distribution, no real problems except `sed` are going to appear.
The pleasing moment is we are getting a fresh IP range.
The headache is TCP/IP printers.

WPKG has good printer addition/ installation guide in http://wpkg.org/Printer_configuration , but it does not cover changing IP port numbers.
As a CEO on all computer infrastructure, I need to find any solution to make the movement smoothly.

I was unable to find a ready-made solution, and in-house tool appeared after several hours in the Net.
I need to apologize for bugs and errors, as it is the first (and hopefully the last) VB script. It uses WMI. Testing box was W7, x64.
Maybe someone will find it useful.

Call the file chprinterport.vbs Read the rest of this entry »

A single song

Share with:


I’ve been working for maybe the third day when i’ve heard it on some Internet radio station. The song was performed by Mary Hopkin. It’s tracing back to 1920-ies, was banned up to 1950-ies. Anyway Wikipedia knows more about it.

Dude, i’m feeling to old for rock-n-roll 😉

“Дорогой длинною”, Сергей Зыков (Youtube post by tombene77):

Read the rest of this entry »

Localised fonts

Share with:


The very first try on “Flux-the-Architect“. Added Ą,Č,Ę,Ė,Į,Š,Ų,Ū,Ž glyphs and some minor symbols (°, ±, ², ³). The font is OpenType in TrueType encoding. OpenType fonts in PS encoding does not work in AutoCAD.

Troubles in Virtual World

Share with:


For testing OpenOffice.org i’ve set up a VirtualBox, running Debian/testing in x86and amd64 architectures.
In some cases, mouse integration does not work correctly. Although mouse works perfectly in the Guest window, it’s impossible to move it out without pressing Host key (left Ctrl in MS Windows).
VirtualBox guest additions are installed, guest resizing and shared folders works perfectly.
The solution was found in VirtualBox forums :
/etc/X11/xorg.conf must contain

Section “InputDevice”
Identifier “Configured Mouse”
Driver “vboxmouse”
Option “CorePointer”
EndSection

note two lines: vboxmouse tells X.org to use mouse driver from VirtualBox guest additions, and CorePointer instructs to use this pointer as primary. Without CorePointer line the vboxmouse driver is used, but it’s still impossible to move it outside guest’s window.

Unknown column ‘tplname’ in ‘order clause’

Share with:


Found an error when deploying GLPI plugin “Generic Objects Management” v 1.1.3 from https://forge.indepnet.net/projects/show/genericobject/

I could add and modify object types, but was unable to add objects. Clicking “Add” button did nothing.

Uh.

Switched GLPI to debug mode and found “SELECT * FROM `glpi_plugin_genericobject_…` WHERE is_template = ‘1’ AND FK_entities=’0′ ORDER BY tplname 0.001 Unknown column ‘tplname’ in ‘order clause’ ” near the bottom.
Of course, the was no ‘tplname’ field in the DB.

A quick search in the sourse revealed:
the apropriate database is created when object’s type is created;
the function “plugin_genericobject_addTable($name)” resides in “inc/plugin_genericobject.objecttype.function.php”

$diff -u plugin_genericobject.objecttype.function.php.orig plugin_genericobject.objecttype.function.php

— plugin_genericobject.objecttype.function.php.orig 2009-12-21 00:01:19.000000000 +0200
+++ plugin_genericobject.objecttype.function.php 2009-12-21 00:06:34.000000000 +0200
@@ -251,6 +251,7 @@
`is_template` INT ( 1 ) NOT NULL DEFAULT 0,
`comments` TEXT NULL ,
`notes` TEXT NULL ,
+ `tplname` VARCHAR( 255 ) NULL ,
PRIMARY KEY ( `ID` )
) ENGINE = MYISAM COMMENT = ‘$name table’;”;

‘tplname’ field should be altered in “plugin_genericobject_enableTemplateManagement” function, but for some reason it isn’t.
That’s all.

The Dolomites

Share with:


Here is the (unfinished) map of passes in Dolomites, created in Google Maps.
You can also search for photos of the passes.

Tags: ,

How to start multisite Gallery2 on Debian

Share with:


I had a little disc and database crash, so the site was not updated recently.

Well, WordPress was updated easily, but i had problems with Gallery2.

I need a multisite deployment of Gallery2. Although it is supported from the installer, some important steps are missing.

In order multisite Gallery2 to work, you will need to add some symlinks to every deployment of the Gallery2:

Read the rest of this entry »

Tags: ,

bnx2: Can’t load firmware file bnx2-06-4.0.5.fw

Share with:


After migration from 2.6.18-6-amd64, a newly installed kernel 2.6.26-2-amd64 failed to load:

[ 2.871916] Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v1.7.5 (April 29, 2008)
...
[ 3.631838] firmware: requesting bnx2-06-4.0.5.fw
Read the rest of this entry »

Tags:

The site was down. Why?

Share with:


Actually, it wasn’t down. Just the information was not displayed.

The reason is simple – after a prolonged migration to Atom MoBo, data crash in one of physical discs, loss of some MySQL databases, a new WordPress installation was missing the theme i’ve used. So, quick edit in ‘options’ table, replacing ‘option_name’ ‘template’ and ‘stylesheet’ with walue ‘default’ made the trick.
As you see, the blog is up and running again.

It happens

Share with:


Meet the Junior 😉

Junior

Junior