Archive for category Software

Rant on Apache2

Recently I was trying to move my sites to SSL – for various reasons.
The test site went fluently, while the work machine refused to serve SSL content. While testing with ‘wget’, the error I received was

GnuTLS: An unexpected TLS packet was received.

Read the rest of this entry »

Tags: , ,

Meet the fMRI Parrot

fMRI Parrot

Camera
LG-D405n
Focal Length
3.2mm
Aperture
f/2.4
Exposure
1/20s
ISO
600

What the heck is “fMRI Parrot”?

First of all, the heck is fMRI. fMRI stands for “Functional Magnetic Resonace Imaging”, as defined in Wikipedia. It involves tons of expensive hardware, like Magnetic Resonance machine, and software, used to reconstruct the scanned volumes. During fMRI scanning a series of stimulus are applied to the patient and the brain is scanned using fast scanning MRI techniques. The aim of fMRI is to record immediate changes happening in particular areas of the brain.

The single MRI scan is called “volume”. It is created from a series of slices of the predefined thickness. Having more slices creates more detailed volume and extends acquisition time. As the changes of the brain activity are momentary, a short volume acquisition interval, named TR or “Time Repetition” is needed. Usually it varies from 7 to 1.5 seconds, depending on the capabilities of the MR machine. Short TR time supposes lower quality scans, compared to the “traditional” MR scanning. So the level of detail of particular volume is a trade off between time and specific requirements.

The fMRI scans consists from a number of volumes, recorded at particular intervals. The key condition for a successful scan is the precise timing. In order to find a region with elevated activity, a stimulus must be started just when the volume acquisition begins. For this the MRI machine may expose a short pulse – start of a volume. The pulse may be brought to the MRI control room via the interface box and the required stimulus started automatically. Some stimulus require the patient to respond, eg. press the predefined button. The response from the patient is also brought to the MRI control room. As there are special requirements for any hardware at the MRI machine, only certified equipment is allowed to the MR room. The requirement at the MRI control room are more relaxed as well as the choice of the equipment There are different vendors of the interface boxes and response buttons, NordicNeuroLab (NNL) being one of them.

In order to create the simulation series, or paradigmas in fMRI terminology, a lot of time is needed. Each paradigma is to be verified before the clinical test, while some of them can not be tested without a signal form the MRI scanner or a response from the patient.┬áThere is no need to say the MRI equipment is expensive, so is the time spent in the MRI machine. Most of the MRI scanner interface boxed can be used in so called “simulation” mode, sending particular responses at the predefined moments, without actually running the scanner. For example the Sync Box from NordicNeuroLab will send “S” symbol at the start of the volume acquisition, while fORP from Cambridge Reserch Systems is to send “5”. So what is actually required to test a paradigma, is the response from the scan… WAIT!

It’s must not be the MRI scanner nor the interface box.

Read the rest of this entry »

Tags: , , , , , , ,

Search engine providers for Firefox and MS IE

I’m lazy person.
Here are search engine providers for Firefox and MS IE web browsers.

I’ve added keywords for these search engines, like evt for Evita.lt, lmn for lemona.lt. Now, searching in particular site is as easy as Lotus 1-2-3: type in keyword and the term you need to search in the address bar. So, typing lmn ds180 will search for ds180 in Lemona.lt site.

Firefox Lemona.lt Evita.lt Datasheetcatalog.com
MS IE Lemona.lt Evita.lt Datasheetcatalog.com

Cheers.

Managing HP P400 RAID card

It’s a summarising memo from the last Saturday.
What supposed to be slowish disk, actually was dead drive on array.
Thanks for the supplier, the entire collection of SAS drives was just waiting to be installed.

It’s possible to configure RAID adapter from the BIOS stage, but it’s more interesting to configure it on the live system. What you need is configuration tools for the adapter card. And they are called “hpacucli”. Ok, ‘CLI” stands for “Command Line Interface”, “hp” is too obvious. “A” could be for “array”. What “cu” stands for?

Debian repository is at http://downloads.linux.hp.com/SDR/downloads/ManagementComponentPack/pool/non-free/.

Get it, install and read on.

Run “hpacucli”, it should be located in /usr/sbin.

To get information on installed RAID cards, use

ctrl all show

The utility can warn you on the recommended firmware upgrade and will print the controller(s) information:
Read the rest of this entry »

Tags: ,

Case story: move the location of Revit Server 2012 models

Here is the other issue: due to the fast install of Revit Server 2012, the location of model was not important. After the server’s role was changed to “Central” instead of ‘Caching”, i wanted model be stored in more predictable location.

Again, I had no wish to reinstall the whole server, including w2008r2 server.
Read the rest of this entry »

Case story: change role of Revit Server 2012 without reinstall

Our company was running a caching Revit Server 2012 instance, to be able to work on a project. The central server was set in the kingdom of far away and was serving three architectural offices.
Recently we had to take care of the model created and the Revit Server 2012 instance itself. I hate to touch working system, but i had to.
Read the rest of this entry »

Where is my free space, windows, where is my free space?

I had a strong wish to install Autodesk Revit 2013 just a days ago. Besides it needs 38 GB of free space, it did not fit on my clogged 100 GB system drive.
Too bad. Ok, my drive is oldish 160 GB Seagate, but still, windows7 seems like a disc hog.

So i’ve decide to investigate the case. Using RidNac, i made a small tour to the HDD space. Read the rest of this entry »

Using Revit Server 2012 by non-domain members

The last issue in the Migration Hell was Revit Server. To be precise, not the application itself, but the client authentification.
With all it’s bells-n-whistles, it lacks most part of the documentation. The application itself runs on IIS, uses Windows (NTLM) or Basic authentification, but nothing is said about the Revit client. The only thing you can find – you must login as domain member to use the Revit Server.

It’s not true. You should, but must not.

Two things must be done on the client to use Revit Server:

  1. authenticate in the domain and every server you will need to use. You must use your domain login credentials to authentificate. The AD domain uses trust relations to authentificate you in the domain servers. If you prefer not to login to AD domain, you must take care of it by yourself
  2. change environment variables.
    • %USERDOMAIN% point to the current domain, if logged as domain member. If not, it’s pointing to the computer name. Setting the variable to the domain name needed (eg. SET USERDOMAIN=MYCOMPANY) will do the job. You should not use DNS domain name, eg. MyCompany.COM, it’s set in %USERDNSDOMAIN% and is useless in the case of Revit Server
    • %USERNAME% must be set to your AD’s username, without AD prefix or FQDN suffix. Eg. if your AD domain login is mycompany.com\PerfectUser or PerfectUser@Mycompany.COM, use “SET USERNAME=PerfectUser”.

That’s all. Enjoy.

PS: if you use Local Revit Server, and Central Server is located somewere in the Other Domain, you will probably need to authentificate to the Central Revit Server too. Not sure about this.

Tags: , , , ,

Migration hell: moving printers in Windows

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 »

Hacking the FlexLM keygens

Ok, it’s ugly and illegal, i know. The information here is for educational purposes only.

Sometimes i’m asked to “cure” one or another product, protected by registration or network license manager, like FlexLM. And you know, a lot of keygens for these product found in the Internet, do not work. The usual error is “Internal Error #{1..6} – Please be sure the app is running and on the license screen!”. What’s wrong, why the keygens from the glorious crack groups do not work any more?

Search on the Internet revealed almost nothing: from “the kyegen does not work” to “it works perfectly”, some says one must use genuine windows the keygen to work (wow…).

Let’s start a little investigation. Read the rest of this entry »