8
03
2008
If you spend a lot of time editing wiki pages from within your browser, do I have some good news for you! The good news? It is called editmoin. Editmoin is a simple application, available in the repositories, that allows you to edit any MoinMoin wiki page from within your default text editor.
Setup took me a few minutes to finally get correct, but after dabbling for a few minutes, I got it down. What you will need is the MOIN_ID cookie which you can grab by viewing the cookies from within your browser. The line you are interested in is the Content section. For example, for https://wiki.ubuntu.com, you may see content that looks similar to 1a2b3CdEFG4hIJ/5klMnoPQrsTuVWxyzabCdefgH6iJk. Once you have this, you create a file named .moin_ids in your home directory, and then add the following information:
https://wiki.ubuntu.com 1a2b3CdEFG4hIJ/5klMnoPQrsTuVWxyzabCdefgH6iJk
Once you have done that and saved it, at the command line type the following:
foo@bar:~$ editmoin https://wiki.ubuntu.com/WikiPage
That will open up the page for your editing delight! This is much faster than editing pages with a browser, at least it is for me, and I am sure many of you will feel the same.
Once you have that setup, read over the editmoin documentation for some other customizations such as vi syntax highlighting and aliases. For syntax highlighting you will need 2 extra files:
Hope I covered the necessities here, if not, add them to the comments. Thanks!
EDIT: If you do not see MOIN_ID, that means you need to log into the wiki first.
No Comments »
::
FYI, Tutorial
30
12
2007
Are you rocking an Intel 945GM chipset with the integrated Intel 943/940GML Express Integrated Graphics Controller (rev 03)? If so, this little tweak has helped 3 of us thus far in #kubuntu-devel with KDE 4 and compositing effects.
Step 1: xorg.conf editing
Section "Device"
Identifier "Intel Corporation Mobile Integrated Graphics Controller"
Driver "i810"
BusID "PCI:0:2:0"
Option "AccelMethod" "xaa"
EndSection
This is what our device section for the graphics card looks like. We added the “AccelMethod” “xaa” option.
Step 2: ~/.bashrc
Added that line to our ~/.bashrc file.
We then restarted X with a swift Ctrl+Alt+Backspace and then tested this setup with glxgears and we all received an average FPS of well over 1000. Prior to this, my highest FPS was a low 900. After these little tweaks, composite never worked so smoothly in KDE 4 in the past.
Does this tweak work for others using say Compiz? Are there some more Intel tweaks that you know of that help out as well? If so, add them to the comment and attempt to explain exactly what they do. Thanks!
13 Comments »
::
FYI, Linux, Tutorial
11
12
2007
Thanks to tlayton_at_work in the Ubuntu Forums, there is a handy little work around for the Sun Java 6 issues in Hardy.
$ echo "export LIBXCB_ALLOW_SLOPPY_LOCK=true" >> ~/.bash_profile
Works like a champ, and now I am back to creating GUIs with Netbeans, and running my code in Eclipse. Thanks tlayton_at_work, you rock!
4 Comments »
::
Java, Tutorial, Ubuntu
30
10
2007
I am currently working on a DB API for a Java application, and one of the requests was to be able to query Microsoft Access Databases. OK, no problem I thought. I could easily open up these databases with OpenOffice.org Database or even Kexi. WRONG! Neither of them would open or even import the database. I personally am not a fan of OO.o, so I went over with Kexi. After some fiddling around, I did apt-cache search mdb just to see what there was. Low and behold there were two applications of interest. kexi-mdb-driver and kexi-mdb-plugin. I first tried the plugin and all that did was make Kexi crash. So I removed the plugin and then tried to use the driver instead. Booyah! It worked like a champ. It imported not only the structure 100% correctly, but also all of the data.
/me gets back to hacking now that he knows what is in the database itself. </query_hell>
5 Comments »
::
Coding, Tutorial
16
08
2007
Edit: This is for Gutsy only
I just spent a few hours combing the community documentation and the Ubuntu Forums looking for the best resource for installing Flash on 64-bit systems. Wow, I was mesmarized by all of the information to do such an easy task.
If you are using a 64-bit system, you do not have to:
- install a 32-bit edition of Firefox
- download the Adobe Flash Player from their website
- don’t have to mess with Pango
- and a whole slew of others…
I was successful using the following commands in order to get not only get Flash to work with Firefox on a 64-bit system, but also Konqueror. Granted, Konqueror and Flash aren’t best of friends right now with Gutsy, and either is OpenOffice.org with Kubuntu Gutsy. Anyways, here is exactly how I did it, and I would like you all to give it a shot and let me know if it works for you. I am doing this all command line, so bear with me.
First, install flashplugin-nonfree from the repos:
sudo apt-get install flashplugin-nonfree
Second, wrap the flashplugin-nonfree with nspluginwrapper:
nspluginwrapper -i /usr/lib/flashplugin-nonfree/libflashplayer.so
Third, create a link from the new file located in your home directory to the Firefox plugins directory:
sudo ln -s ~/.mozilla/plugins/npwrapper.libflashplayer.so /usr/lib/firefox/plugins/libflashplayer.so
If you are using Firefox, you are good to go. Those of you using Konqueror just have to go into the plugin settings in the Konqueror configuration and scan for new plugins. It should be there and working. If you have issues with this, could you please let me know. Thanks. And if you are using Kubuntu Gutsy, I know that Konqueror locks up when going to websites with flash animation or movies embedded. Thanks everyone.
32 Comments »
::
Documentation, Kubuntu, Tutorial
3
08
2007
Would you like to have the middle mouse button, the scroll wheel, close your tabs in Konqueror the way it does in every other browser? Well want no more! Simply copy and paste the following into your terminal (Konsole) and press enter. Restart Konqueror if it is already opened, or close Konqueror before running this command.
kwriteconfig --file konquerorrc --group "FMSettings" --key MouseMiddleClickClosesTab --type bool true
8 Comments »
::
KDE, Tutorial