We have a DT-470 temperature sensor in the cryostat of the project I'm currently working on. The problem is that our software is displaying the wrong readout. I'm trying to figure out how to display the correct value in Kelvin.
I've got the following to work with:
The software has the ability to apply a polynomial to a raw value (i.e. a value that's read out from the electronics), as well as apply a user-configurable function to a value. That is usually used for convenience like electronics giving us a negative value, when we'd rather receive a positive value.
In this case, the polynomial is applied to correct the value for the way our electronics influence the raw value. Then, the user-configurable function is applied, which in this case is the polynomial that follows from the data sheet.
So the steps are:
Early december 2009, Google launched the beta version of the Chrome browser for Linux. They provide RPM and Deb packages, allowing for easy installation.
Sometimes however, you're working on a Linux PC where you do not have root access. The following procedure allows you to install and run Chrome as a normal user:
$ dpkg -x google-chrome-beta_current_i386.deb temp
$ cp -r opt ~
Who is logging into my Linux workstation?
At my most regular workplace (I have several), I have a Debian Linux workstation. The username/password information is managed over NIS, and is configured such, that every user can log into every workstation.
I have no problem with this, but do like to know who is logging in when I'm using the desktop. Thus at startup, I run the following script in the background:
#!/bin/sh
[ ! -e /usr/bin/whoami ] && exit 1 [ ! -e /usr/bin/gmessage ] && exit 1
while [ 1 ]
do
LOGINNAME=`w -h | cut -f1 -d' ' | grep -v whoami`
if [ $LOGINNAME ]; then
gmessage "User $LOGINNAME logged in" -button OK
else
sleep 1
fi
doneSave this script somewhere in your home directory. I've called it 'loginwatch'. Then make it executable and run it in the background as follows:
$ chmod +x loginwatch $ ./loginwatch &
This script assumes that you use the Gnome desktop, because it uses the gmessage utility.
Suppose you inadvertently made changes in some files some time back. You can examine revisions of files with
$ svn log ccsds.h
You see that the previous revision was 205 and that it was correct. With an SVN merge, you can make that old revision the current revision:
$ svn merge -r HEAD:205 ccsds.h
Check in your file and you're done!
Today I was thinking about a PHP script that uses Thrift to retrieve a couple of results. We have the following Thrift definition:
/* This contains the three things identifying a logging program */
struct Logger {
1: string userName,
2: string hostName,
3: string appName
} /* This is a debug message */
struct Message {
1: Logger origin,
2: string content
} /* This defines the remote logging services */
service RemoteLog { // send a log message to the logserver
oneway void newMessage (1:Message aMessage)
// get list of loggers available
list<Logger> getLoggers ()
// get messages from a specific logger
list<Message> getMessages (1:Logger aLogger, 2:i32 aFromID, 3:i32 aMax)
}However, I'd then have to implement the reverse of the above description. In other words, I am asking the remote logging service for whatever he has received over time. To get this up and running, the following steps have to be taken:
Articles, chronologically (latest first):
Not yet finished. Maybe will never be finished. Maybe they'll get deleted. Who knows?
Programming:
System administration:
Others:
Files: