Combining or Merging PDFs with OpenOffice

Combining or merging your PDFs could not be simpler with Openoffice.  I am sure the same technique works with Libreoffice but I have not tried it yet.

1. Go to http://extensions.services.openoffice.org/en/project/pdfimport download and install the pdf import OO.o extension for your OS.
2. Open both/all pdf’s in OO.o writer.
3. To append receipts simply right click the page of the receipt you want to append select copy and then paste it to the end of the report. Or drag and drop.

 

Posted in Uncategorized

Installing the AMD Proprietary fglrx Driver on Debian Wheezy

If you are getting errors similar to the following:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
fglrx-driver : Depends: glx-alternative-fglrx (>= 0.2) but it is not installable
Recommends: fglrx-modules-dkms (= 1:12-6+point-1) but it is not going to be installed or
fglrx-kernel-12-6+point
Recommends: libgl1-fglrx-glx (= 1:12-6+point-1) but it is not going to be installed
Recommends: libgl1-fglrx-glx-i386 but it is not installable
Recommends: fglrx-glx-ia32 but it is not going to be installed
Recommends: fglrx-atieventsd but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Then you will need to modify your /etc/apt/sources.list to include the contrib sources:

deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free

Posted in Uncategorized

Cadaver on Solaris 11

If you are getting the following error when trying to build cadaver on Solaris 11:

gcc -DHAVE_CONFIG_H -I. -I./lib -D_REENTRANT -DLOCALEDIR=\”/usr/local/share/locale\” -I./src -g -O2 -I/usr/include/neon -o src/cadaver.o -c src/cadaver.c
src/cadaver.c: In function ‘main’:
src/cadaver.c:859:15: error: ‘LC_ALL’ undeclared (first use in this function)
src/cadaver.c:859:15: note: each undeclared identifier is reported only once for each function it appears in
make: *** [src/cadaver.o] Error 1

Then you need to apply the following patch:
— src/cadaver.c.orig 2012-11-28 10:39:59.932391865 -0800
+++ src/cadaver.c 2012-11-28 10:46:50.887375416 -0800
@@ -39,9 +39,7 @@
#ifdef HAVE_STRING_H
#include
#endif
-#ifdef HAVE_LOCALE_H
#include
-#endif

#include

Posted in Uncategorized

AR-15 zeroing

http://forums.second-amendment.org/index.php?topic=4771.0;wap2

Posted in Uncategorized

Defcon Private Cell Network

I have often postulated that were the Internet to become inhospitable, vis-a-vis SOPA/PIPA and its ilk, private networks would start popping up, and eventually start linking to each other. Thus forming another private internet. This is why it is so important to keep the spectrum free and open. Closing it is the only way to stifle such and initiative.

Anyways, this is pretty neat.

http://arstechnica.com/security/2012/07/ninja-tel-hacker-phone-network/

Upon booting up for the first time, the phone displayed a list of terms and services that were unusually frank.

“You hereby grant Ninja Tel permission to listen to, read, view and/or record any and all communications sent via the network to which you are a party,” one section stated. “Before you get all upset about this, you already know full well that AT&T does this for the NSA. You understand that you have no reasonable expectation of privacy as to any on the Ninja Tel network. You grant Ninja Tel a worldwide, perpetual, assignable, royalty-free license to use any and all recorded or real-time communications sent via the Ninja Tel network to which you are a party. Don’t worry, most of this is for the lulz.”

Posted in radio networking and communications, Tech

Importing Firefox Bookmarks via Command Line

If you ever wander into a situation where you only have command line access to a system that is holding all of you bookmarks (like I have) then you might want to try this.

Initially you may think that the .mozilla/firefox/xxxxx.default/bookmarks.html file holds all of your precious beauties, but…………… it doesn’t.  So here is what you have to do.

Copy over the latest bookmarks backup from the .mozilla/firefox/xxxxx.default/bookmarkbackups/ to the directory of your choice.  The files will probably be named something like “bookmarks-2012-06-30.json”

Once you have the file on the machine you want to import them to, open firefox and navigate to Bookmarks -> Show All Bookmarks -> Import and Backup -> Restore -> Choose File…

Select the file you just copied over, disregard the warning, and you’re done!

 

Posted in Linux, programming, Tech

Removing Translations From Debian Wheezy

If your locale is set properly and you do not require further translations (check locale -a -v), then add this file:
/etc/apt/apt.conf.d/99Translations

and insert this line:
Acquire::Languages “none”;

When you run ‘apt-get update’ your translations should be removed. If you want you can remove any straggling translations from  /var/lib/apt/lists with ‘rm *Translations*’

Posted in Linux, programming, Tech

How to remove the “AMD testing use only” watermark from Debian Wheezy

This script should do the trick:

DRIVER=/usr/lib/xorg/modules/drivers/fglrx_drv.so
for x in $(objdump -d $DRIVER|awk '/call/&&/EnableLogo/{print "\\x"$2"\\x"$3"\\x"$4"\\x"$5"\\x"$6}'); do
sed -i "s/$x/\x90\x90\x90\x90\x90/g" $DRIVER
done

Or you can download it here. And run it as root.

Posted in Linux, programming, Tech

Coffee can stave off dementia? Done!

The article. It’s about halfway down.

Posted in completely random

Getting Java to Accept Self-signed or Unsigned Certificates From Your Own Keystore

Presumably you have generated a keypair with this command:
keytool -genkeypair -alias <your alias> -keypass <your key password> -keystore mySrvKeystore -storepass <your keystorepass> -validity 180 -keyalg RSA

2. Export they key from the keystore:
keytool -export -alias <your alias> -file <some name>.crt -keystore mySrvKeystore

3. Become root

4. This is the good part…. You are importing your newly created certificate (exported from your private keystore) into the global jre keystore as a trusted certificate so now it will be trusted:
keytool -import -trustcacerts -file <filename from step2>.crt -alias <your alias> -keystore $JAVA_HOME/jre/lib/security/cacerts -keypass <your keypass> -storepass changeit

Note:
a) keep -storepass as “changeit” that is the default
b) Im not sure what your $JAVA_HOME will be. Best to find /usr/lib -name cacerts or use locate on linux. Mine is: /usr/lib/jvm/java-6-openjdk-amd64

5. Run BOTH Server and Client with the options shown below :

java -Djavax.net.ssl.keyStore=./mySrvKeystore -Djavax.net.ssl.keyStorePassword=<your keypass> <Client | Server>

6. Enjoy a frosty beverage of choice.

Posted in programming, Tech Tagged , ,