Easier to use? Cheaper because of that? Dream on!
The Exchange Server I already had strange problems [read this and related postings there] with, today had another one of them. I had to give reading-permission to some public folder to some users (although the GUI to do that from within Outlook is really easy to use, some people rely on me doing that for them because that's even easier).
The Exchange Server Manager threw a strange message at me whenever I tried to expand the folder-list in the tree. The text was useless as ever and nothing was posted to the event-logs - as ever. Why is there a logging-framework if it is not used? (besides, if it would have been used, the message would have been just as un-understandable as the one I was getting).
This time, I was lucky: I got an error number along with the message that was even known to the knowledgebase. The error was 80040e19 and the knowledgebase article was Q328659.
The problem was easy to fix and had something to do with some "security-tool" that got installed alongside the IIS-Lockdown tool which itself got installed alongside the common Windows-Update procedure. Nice to know that just updating the system via such an easy procedure can bring essential functions down without any warning.
Microsoft always emphasises the ease of use of their products and the better support you are getting when using their closed source solutions. Granted: The "ease of use"-thing can sometimes really be true (many things just work out-of-the box with not nearly as much work as I would have when using a common linux distribution), but when something does not work, fixing microsofts server software is much more difficult than fixing equivalent linux software as the fixes are un-obvious and the error messages are unusable.
The level of support for me is just the same as with comparable open-source software: Use google, enter the error message you get and pray someone had a fix for it posted somewhere. If not, I see virtually no solution in Microsoft land (besides paying a lot of money for support) whereas in the open-source land I would be able to fix the problem sometime later as I have readable error-messages and if that does not help I could try to understand the problem by reading the sourcecode.
That's why I usually prefer open solutions. Or have you ever seen software working flawlessly?Read on →
Double double dash
This is what I've ever wanted to do, but I have neither enough room, nor enough friends willing to participate nor enough equipement. Maybe later...Read on →
This review of logitechs diNovo wireless desktop was slashdotted today. I wonder why the reviewer does not say anything about the stupid size of the delete key which actually spans both rows of this 2 by three row with the page-up/down, home and end keys. Insert is where you exspect scroll-lock to be which is missing.
You can't believe how many times I mass-deleted some files in Total Commander instad of just marking them.
Then again, maybe this layout will be the new "standard": Looking at the other reviewed desktops, the one from Microsoft also has this layout and because of the slashdot-effect I cannot check out the others.
By the way: Besides this delete-problem, the diNovo is the best keyboard I ever had so far: Great typing-feeling, great design and good access-technology (it you can live with this)Read on →
Java and native libraries
As you may know, I am working with barcode scanners - actually it's all about my companies product PopScan which is a software-tool for accessing a nice little barcode scanner which is essentially a barcode scanner and nothing more and thus quite inexpensive.
We have two similar products: One is the enterprise version which is sort of a framework for implementing custom made barcode solutions. Two quite big companies here in Switzerland are already using it (just visit PopScan's webpage to learn more, I won't make any more sales-pitches here).
The other product - PopScan SMB - is a out-of-the-box solution for small and medium businesses which allows them to provide a easy to use barcode ordering system to their customers (ok. now I'm really finished sales-pitching. I'm coming to the technical aspects...)
PopScan SMB is largely webbased: On the client side we have a very little application that does nothing but hanging there and wait for a scanner to be connected. When that happens, it reads the scanned codes and displays (using the IE ActiveX control) the webpage with the filled shoppingcart - very nice and simple.
The drawback so far was that we could only support Windows with this solution (written in Delphi - but as a reader of this blog, you may know that already). The point is that we got quite some requests to get this to work on the Mac and additionally we have some ideas involving Linux....
As I wanted to learn Java for quite some time now, I deceided to rework the thing as a Java-Thing (Applet, Webstart, see below).
The first Problem was accessing the serial port where the scanner is connected to. Possible? Yes. Sun has created a specification for accessing serial and paralell ports and provided a sample implementation for Windows and Solaris.
If you want support for all the other OSes and if you want a solution that is acutally working, I propose, you have a look at the library from SerialIO which is what I'm using. Works like a charm and is definitely worth the money.
Next problem: How do we install the thing on the clients and how do we keep it upgraded? Two solutions come to my mind:
- Java WebStart: Just put a JNLP-File somewhere on your server and link to it. The browser downloads it and Java WebStart does the rest, meaning installing and keeping the software updated. The big advantage: The mechanism has explicit support for native libraries (what this blog entry is about) and works quite nicely. The disadvantages: 1) I'm not sure whether java.net.URLConnection does use appropriate preconfigured proxy servers which is a requirement for the solution to be usable (quite a lot of our possible customers have quite strict firewalls and forced proxies) and 2) it does not work on Mac OS < X which has only Java 1.1
- Java Applet: Put it on a wepage which the user opens and that's it. No installation necessary, Proxy-Support, Java 1.1 support - you name it. The optimal solution if there were not that small little problem: No support for native libraries (which I have to install to access the serial port). Anyhow: The applet is what I did
(actually there is a third solution: Create a "normal" application and a platform-specific installer and let the user install and run it. This would work, but would force me to again create a special auto-update-mechanism and it would require quite a lot of user-intervention.
So it all can be broken down to the one question: How to handle native libraries with Java-Applets?`
The answer is as simple as the question:
- Write your code
- When the library is accessed for the first time and can't be loaded, a java.lang.UnsatisfiedLinkError is thrown. Catch it and...
- ... download the required libraries to the local computer into the correct directory
- Tell the user to restart the browser
Of course your applet has to be signed for this to work, but this can be done quite nicely in a Ant-Task.
Where to download the file to?
Into some directory in java.library.path, where each platform has its preferred location (which is - by the way not what the SerialIO-Documentation suggests):
|OS X (Java 1.3)||somewhere under /System which is bad|
|OS X (Java 1.4)||~/Library/Java/Extensions|
(I must check OS 9 later)
The problem with MacOS'es 1.3 library path is that it's never writable by the user currently logged in (not even she's in the admin group). To put a file there within the Finder, you must authenticate yourself as super-user (which calls sudo somewhere under the hood) which is not possible from within java.
The solution: The current directory "." is also in java.library.path. On Richards mac, . pointed to the root of the harddrive "Macintosh HD" (/), which is writable by users of the admin group. So for now installing the library under "." when using the 1.3 VM does work as long as the current user is an administrator, which is the same requirement like under windows and can be explained somewhere in the handbook or on the webpage. Problem solved (Safari users have the advantage of being able to use the applet even without the admin installing the native library first as a directory in the users homedir is in the library path in 1.4)
I really searched the web before writing this entry and I've not found anything about applets and native libraries (especially not under Mac OS). Maybe there is a simpler way to do what I am doing. I'd be glad to hear from you!Read on →