BIOS upgrade with no windows or floppy

This describes the procedure I used to upgrade my D820 BIOS to revision A07 with no windows installed or available floppy disk. Please be WARNED that messing with your BIOS flash might render your computer unusable. This applies to Ubuntu Gutsy, Feisty, Intrepid, Lucid. Updated 14.01.2011: tested on E6410 to upgrade to revision A06. Requires a 32 bit linux to create the image. 1. Find your computer tag: # modprobe i8k # cat /proc/i8k | cut -f3 -d" " 2....

December 8, 2007 · len

C# COM

I was a bit shamed about writing something about windows but then I thought there are so many ugly jobs which are respectable so the job of writing windows programs might fit somewhere too. So this is an article about how to write a small C# application which can calls code from a COM object. As a warning some of the informations here might be considered common knowledge to windows people so please don’t be too judgmental about....

September 25, 2007 · len

iptables rule for dyndns host

Goal Add a iptables rule for a dynamic changing IP with an associated dyndns host. How to make your computer register your changing IP #apt-get install inadyn Create a /etc/inadyn.conf #cat /etc/inadyn.conf --username ******** --password ******** --update_period 60000 --alias *****.dyndns.org --background Start the process: /usr/sbin/inadyn Make it start at reboot: #crontab -l @reboot /usr/sbin/inadyn First idea Use the hostname directly in iptables. There are 2 problems: the iptables manual says (quote): -s, --source [!...

August 6, 2007 · len

Creating a Quartz job

In new versions of JBoss (such the 4.0.5 which I am using) there is a quartz-ra.sar service which should allow me to define some a job with a cron like specification. Searching the forums and the jboss site I was able to put together quickly an example: import org.jboss.annotation.ejb.ResourceAdapter;import org.jboss.logging.Logger;import org.quartz.Job;import org.quartz.JobExecutionContext;import org.quartz.JobExecutionException; import javax.ejb.MessageDriven;import javax.ejb.ActivationConfigProperty; @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "cronTrigger", propertyValue = "0/2 * * * * ?") }) @ResourceAdapter("quartz-ra....

July 10, 2007 · len

Does Date() returns localtime?

Getting the correct date and time was always a problem but I could not expect it’s still a problem on today java and OS versions. Trying to deploy a JBoss on various Linux and JBoss I could not notice that on each system the date in the log was different from the localtime. Initially I thought it’s just a JBoss configuration problem but a simple example shows it’s not: import java....

July 3, 2007 · len

Openssl example

This is a complete example on how to use openssl to fetch a https page. The example is based on the several others I found on the web so my credit is minimal and only consist of modifying just a little the existing examples to compile and work with openssl-0.9.8e on Linux and Solaris. The example #include <openssl/ssl.h> #include <openssl/err.h> #include <openssl/bio.h> #include <iostream> #define MAX_PACKET_SIZE 10000 int main() { BIO * bio; SSL * ssl; SSL_CTX * ctx; /* Initializing OpenSSL */ SSL_load_error_strings(); ERR_load_BIO_strings(); OpenSSL_add_all_algorithms(); SSL_library_init(); //mandatory and missing from some examples ctx = SSL_CTX_new(SSLv23_client_method()); if (ctx == NULL) { std::cout << "Ctx is null" << std::endl; ERR_print_errors_fp(stderr); } //using a store from examples if(!...

June 5, 2007 · len

My first flash (flex) application

How come? As I am currently evaluating a Digital Signage project which makes heavy usage of Flash movies I decided to re-evaluate this technology. Until now I was rather reticent for the following reasons: it is proprietary and does not have any free development tools and (most disturbing) it requires Windows. However today while browsing the Adobe site I found out some rather cool things. There is a product called flex which allows to freely develop flash applications on Linux....

April 13, 2007 · len

Koha AMS integration

This describes the modifications which have been done to a standard Koha 2.2.5 installation in order to be provide a basic AMS integration for IMAR: “Simion Stoilow” Institute of Mathematics of the Romanian Academy library system. AMS integration One of the requirements of the customization was to allow a basic AMS integration. For each ISBN code the corresponding AMS code had to be found using a crawler. This was achieved by a value_builder plugin which consists of 3 parts:...

March 21, 2007 · len

Graph web representation (conclusions)

Updated 18-oct-2008: There is a great solution in Flex which I have used for this and this projects. Conclusion The problem of representing a graph on the web is not a solved one. On the desktop application side there are lots of tools which can handle large graphs with nice visualization but on a web page the choices are limited. For the given problem of representing a set of nodes connected through lines in order to illustrate the elements of an application I have tried the following:...

February 2, 2007 · len

Price of work

It’s now more than 16h of work for today. My mind hardly commutes any neuron. With pauses no greater than 5 minutes I have been sitting in my comfortable chair in front of my 2 computers codding, debugging, testing, software applications. I’m struggling with a fight I don’t know how to fight. I’m driven to work and to finish my tasks, to finish a work which never finishes. I’m driven to eat in order to give my poor neurons a bit more energy juice....

January 26, 2007 · len