LimitlessFX.Com

Because everyone else has a site.

RSS Feeds

  • Home
  • About
  • Linux Development
  • World Of Warcraft

Pasting in VIM from KDE’s clipboard

Jan 19th

Posted by OneOfOne in Linux Development

No comments

For some reason I couldn’t find it anywhere, but the register for the KDE clipboard (ctrl-c / ctrl-v) is + not * .

To paste from the KDE clipboard in insert mode : CTRL-R +, in normal mode : “+p .

To map it to ctrl-v : :imap +, this way you can just press ctrl-v in insert mode to paste the system clipboard.

To paste from the system selection (mouse middle button) in insert mode : CTRL-R * or in normal mode “*p .

To paste from the VIM buffer in insert mode : CTRL-R “.

To set the system clipboard as the default clipboard for More >

gvim, kde, klipper, Linux Development, paste, vim, X

Speeding Chromium start up

Jan 14th

Posted by OneOfOne in Linux Development

4 comments

If you have been using Chromium like me, you know it can get pretty slow on the first start up after a couple of months of usage. It’s mainly because of all the SQLite 3.x databases it uses for history and other settings. So here’s a simple script to defrag and reindex all the databases chromium uses.

1. Install SQLite3 :

# install sqlite3
emerge sqlite:3 #gentoo
aptitude install sqlite3 #ubuntu/debian based

2. Close Chromium.

3. Execute this in bash :

cd ~/.config/chromium/Default #where recent chromium store its settings

find -type f -exec file '{}' \; | perl -ne 'print "$1\n" if /(.*?): SQLite/' | More >
chromium, debian, find, gentoo, sqlite3, ubuntu

Change CPUFreq governor on all CPUs

Nov 22nd

Posted by OneOfOne in Linux Development

No comments

While I love KDE, I still prefer to use command line for almost everything. A simple bash function to set/list all governors.

set-cpufreq() {
	if [ -z "$1" ]; then
		echo "Available : $(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors)"
		find /sys/devices/system/cpu -name scaling_governor | while read f; do echo $f : $(cat $f); done
	else
		find /sys/devices/system/cpu -name scaling_governor | while read f; do echo $1 > $f; done
	fi
}
bash, cpufreq, Linux Development

Workaround for Wine/World Of Warcraft Crashing on Linux 64bit systems with > 4gb of RAM.

Feb 24th

Posted by OneOfOne in Linux Development

3 comments

I recently got a new computer with 8gb of RAM, and since then World Of Warcraft crashed very often with out of memory errors. After banging my head for hours every time I crashed in dalaran or coming out of the arenas, I finally discovered setarch(8).

Usage: setarch  [options] [program [program arguments]]                                                               

Options:
 -h, --help               displays this help text
 -v, --verbose            says what options are being switched on
 -R, --addr-no-randomize  disables randomization of the virtual address space
 -F, --fdpic-funcptrs     makes function pointers point to descriptors
 -Z, --mmap-page-zero     turns on MMAP_PAGE_ZERO
 -L, --addr-compat-layout changes the way virtual memory is allocated
 -X, --read-implies-exec More >
Linux Development, setarch, wine, World Of Warcraft

Using CMake + Mingw to Cross-Compile Windows Apps.

Nov 23rd

Posted by OneOfOne in Linux Development

4 comments

As promised, here’s the second part of the tutorial on how to use cmake to build Qt4/OpenSSL Apps for Windows using mingw on Linux.

Assumptions :

1. You already followed the tutorial on how to setup Qt4/OpenSSL using mingw. 2. You have cmake installed. 3. You have a working wine setup or a way to test the executables.

Part 0 : Setup Wine

You can ignore this if you will test on windows.

  1. Run winecfg, go to Drives, add drive and set the path to your win32 dev (we will use the letter G for this).
  2. Run wine regedit, go to HKEY_LOCAL_MACHINE -> System -> Session More >
cmake, cross platform, crossdev, Linux Development, mingw, openssl, qt4, windows, wine

Mingw + OpenSSL + Qt4 for Windows on Linux

Nov 17th

Posted by OneOfOne in Linux Development

2 comments

This is slightly outdated, will upload a new version with OpenSSL v1.0.0, also fixed the link to the mingw-openssl.sh script. For the longest time I used Mingw + cmake on top of wine to cross compile my Qt4 apps for windows, then I was bored one day, tired of how slow it is to recompile qt4 on wine and decided to try to get it to work with a native gcc instead of the overhead with wine. So here goes.

This was done on Gentoo Linux, please don’t ask me how to do it on other distros.

Assumptions :

1. You know your More >

cmake, cross platform, crossdev, gentoo, Linux Development, mingw, openssl, qt4, windows

Priest macros

Nov 17th

Posted by OneOfOne in World Of Warcraft

No comments

As a priest for the longest time (recently switched mains to a deathknight), I had a lot of macros I used with grid (and clique), and a buddy was asking me about them and I decided to post them here.

Greater Heal / Flash Heal / etc. (pretty much any targetted spell) :

#showtooltip Greater Heal
/cast !Inner Focus
/cast [mod:alt,target=player][target=mouseover,exists][help] [target=targettarget,exists][target=player] Greater Heal

Macro explanation : (more…)

arena, clique, grid, macro, mouseover, priest, World Of Warcraft
  • Categories

    • Gaming (2)
      • World Of Warcraft (2)
    • Linux Development (6)
  • Archives

    • January 2011 (2)
    • November 2010 (1)
    • February 2010 (1)
    • November 2009 (3)
  • Search

  • Recent Comments

    • OneOfOne on Speeding Chromium start up
    • Imbericle on Speeding Chromium start up
    • Imbericle on Speeding Chromium start up
    • Imbericle on Speeding Chromium start up
    • OneOfOne on Using CMake + Mingw to Cross-Compile Windows Apps.
  • Tags

    arena bash chromium clique cmake cpufreq crossdev cross platform debian find gentoo grid gvim kde klipper Linux Development macro mingw mouseover openssl paste priest qt4 setarch sqlite3 ubuntu vim windows wine World Of Warcraft X
RSS Feeds XHTML 1.1
PR
Top
Mystique theme by digitalnature | Powered by WordPress

© 2009-2010 LimitlessFX.Com All Rights Reserved.