- Keepass2, KeeFox and Firefox in Debian
- Debian Developer
- Migration Debian from i386 to amd64 without reinstall (Cross Grading)
- N2M: pbuilder for i386 and amd64 on same host
- N2M: parallel build dpkg-buildpackage and pdebuild
- Windows CE: Assertion failed in wincore.cpp line 1034
- CakePHP: Baking a Application in Minutes
Took a little to figure out how to install the combo, so here're a few lines:
*NOTE* Its usually not recommended to install forgein code (the plugin), do only so if you trust KeeFox.
First step is to install the plgx file into to /usr/lib/keepass2/Plugins/. Just copy the file as root. The file you need, KeePassRPC.plgx comes with the KeeFox plugin. There is a link to it on the "install KeeFox" page. For reference, mine was here: $HOME/.mozilla/firefox/<your-profile-id>.firstname.lastname@example.org/dep (my profile id replaced with an placeholder)
Also, you need to go into the KeeFox settings and set /usr/lib/keepass2/Plugins as KeePassRPC-Plugin installation directory and /usr/lib/keepass2 as KeePass installation location.
Then the tricky part came: When starting KeePass2, it detected the RPC plugin but was somehow unable to compile it, claiming "its not compatible". However, I know that this plugin is working, so this message is misleading.
Solution: After a little bit of trying, this was caused by missing mono dependencies which could be fixed by:
apt-get install keepass2 mono-dmcs libmono-system-management4.0-cil
After doing that, keepass recompiles without the message, and also after restarting firefox the plugin starts working.
Time for a new category: Debian Stuff...
Because my new maintainer process has just ended and I just became Debian Developer. Yeah!
Thanks for that birthday present, weasel!
Well, I just started the adventure to upgrade my NAS server from i386 to amd64.. Why? I want to enable flash-cache, which is currently not compatible with 32-bit kernels.
For this I am using the "Cross Grading"
Note: This is dangerous stuff. If you are not really deep into Debian you should prefer reinsalling! Backups are mandatory.
- Setup: https://wiki.debian.org/PbuilderTricks
In the howto there is a script to be safed a .pbuilderrc. Safe in $HOME and /root
Update script, e.g. to point to local apt-cacher mirror.
Then ARCH=i386 pbuilde create and ARCH=amd64 pbuilder create
- Usage example:
ARCH=i386 sudo pdebuild --debuildopts "-j2"
ARCH=amd64 sudo pdebuild --debuildopts "-j2"
Build on two CPUs:
pdebuild --debuildopts "-j2"
When using dpkg-buildpackge (or debuild) you alos can export this env:
to set the numbers of parallel builds. (eg. into .bashrc)
For home automation, I grabbed my old PDA and started coding for it, using the Microsoft embedded Visual C++ Studio 3.0 (was free at that time ;-))
As soon as you start debugging, you immediatly get an assert: "Assertion failed in file wincore.cpp, line 1034". This only happens on the "emulated" PDA, but even with the wizard generated files.
However, I solved this already on another project, but I needed to google it up again, so its time to document this:
On my last PHP project I spent too much time on basic tasks like form validation, generation and all the stuff behind. As this "problems" are quite common this is basically a reinvention of the wheel. So I started looking for a good, easy to understand PHP Framework to speed things up.
What I found is CakePHP, a MVC based framework.
Ok, there are several frameworks available, so why to choose CakePHP? I think this is up to personal taste which framework appeals you most. Of course, there are comparisons in the blogosphere, so this can be a starting point for the decision. (for example)
Back to the cake. Well, IMPRESSIVE. This framework saves you lots of work -- most functions you need everyday are already there and the documentation called "Cookbook" is also quite complete and easy to understand. The API is not very complicated, so learning this framework is definitely faster than writing your own framework. (For the German readers: read this article).
Nevertheless, back to the topic again.
(* Your scafold consists of a database and two files.... Of course, I assume you have your webserver and database server ready, and for the sake of easiness debian running to install all required packages. As an alternative to a webserver, you might want to check the package cakephp-instaweb and the docs here. Also for the sake of easiness, this tutorial shows will not use mod_rewrite, to avoid the hassle involving proper mod_rewrite configuration)
Don't believe it?
Try it yourself.