Category Archives: computer

Neverwinter Nights on Ubuntu 12.04 64bit with Nvidia

My NWN install doesn’t see as much action as it used to, but I’m still happy I can run it on my somewhat new install of Ubuntu 12.04 LTS 64bit.

  • I solved the too-much-black issue by “export MESA_EXTENSION_OVERRIDE=-GL_NV_vertex_program”
  • Solved the too-much-white issue by using the 310 experimental driver for my NVIDIA Quadro 2000M from the ubuntu-x-swat ppa
  • Solved the non-starting client by removing the package libtxc-dxtn-s2tc0

Given that, my nwn script looks like this:

#!/bin/sh

# This script runs Neverwinter Nights from the current directory

export SDL_MOUSE_RELATIVE=0
export SDL_VIDEO_X11_DGAMOUSE=0

# If you do not wish to use the SDL library included in the package, remove
# ./lib from LD_LIBRARY_PATH
#export LD_LIBRARY_PATH=./lib:./miles:$LD_LIBRARY_PATH
#export LD_LIBRARY_PATH=./miles:/usr/lib/i386-linux-gnu/mesa
export LD_LIBRARY_PATH=./miles:/usr/lib32/nvidia-experimental-310
export SDL_AUDIODRIVER=pulse
export MESA_EXTENSION_OVERRIDE=-GL_NV_vertex_program

./nwmain $@

Tagged , , ,

IDM-IDE ported to NB 7.2.1

A friend and former colleague asked me whether I could help porting identitymanageride to a recent version of Netbeans, after he had been told that there would be no more investment in that tool from Oracle. Thought I would not get to it after just having picked up a new job and landing right in the middle of an ambitious customer project.

Turned out, it was not as much effort as I had anticipated from the long time the code had been unattended. And so, there it is: Your IDM-IDE plugin for Netbeans 7.2.1, essentially just a port plus two minor bug-fixes (one to avoid an AIOOB exception when trying to save a project as an internal repository project without server configured in Netbeans and one to address issues with XPRESS breakpoints and the UI XPRESS editor by removing the breakpoints if the UI editor changes the XML.) Enjoy!

Tagged , , , , , ,

Saving Form Data in Adobe Reader, on a Mac … even if Adobe tries to keep me from doing it

So, for some reason, Adobe does not want users to fill in form data in PDF files and save the modified copies. Alright, fine, there may be a good reason for that (probably something to do with money) … but we wants it, anyway, precioussss.

Now, being on a Mac, my natural reflex was to go “Print->Save As PDF…”, but alas …

Can't Save As PDF

Can't Save As PDF

*sigh* … let’s try “Print->Save As PostScript…” …

Can't Save As PostScript

Can't Save As PostScript

OK, Adobe really means it, Google to the rescue? Well, almost, or kind of. Google knows this page, but unfortunately it suggests “Save As PostScript…”. Been there, done that. I’m guessing somebody at Adobe has read that blog, too, and decided to stop people from trying that. Now what?

People have suggested using a PDF printer or a printer the driver of which allows redirection to PDF. Of course, I didn’t see why I should have to go to that extra length, when printing the file must spool it somewhere. So, here’s an alternative solution which I considered simpler, as it requires no additional software/driver.

  1. Have a printer installed on your Mac with the generic PostScript driver
  2. Suspend the printer
  3. Print filled-out PDF to suspended printer
  4. Look at the contents of /var/spool/cups with administrative permissions (e. g. from a Terminal in a root shell … sudo, etc. … you know the routine)
  5. Copy the file starting with “d” (e. g. d00186-001) to somewhere the regular user can access it and make sure the user has permission
  6. As the regular user open the file with Preview and watch the file (that originally was a PostScript file) be converted to PDF (ref. here)
  7. Save at your discretion

And I’m fairly confident Adobe won’t be able to prohibit that *rolls eyes*

Tagged , , , , , , , , , ,