another ruby ‘unexplicite’ error
During a classic rake db:migrate
rake aborted!
no such file to load -- spec/rake/spectask
/var/tracks/Rakefile:10
(See full trace by running task with --trace)
The resolution is: gem install rspec
During a classic rake db:migrate
The resolution is: gem install rspec
One apon a time, i've designed a three octaves kayboard layout for the vkeybd program, but for an french keyboard.
This evening, some of my collegues decided to jam with nice instruments, so i thought it was the good time to take a look one more time to fluidsyth, bristol, and vkeybd. But as i now live in Canada, i use an english keybord. Xev helping, i've made a new three octaves layout for the english keyboard.
Available here: vkeybdmap-en
and it looks like:

After having tested the Colemak layout, the French, the US and the Canadian one, my conclusion, is ... simply a new layout : mine
Here is the result: JSK
To use it, just drop the file to /usr/share/X11/xkb/symbols and invoke setxkbmap jsk
Here is the layout:
I finally decided to publish my dark Black and Red desktop theme.
Here is a screenshot:
Available here: JS-Black-and-Red.tar.bz2
in a 'super_plugin' directory dedicaced to the plugin, create two files:
__init__.py with your plugin 'content' eg:
def super_function(self):
print "Bar !"
setup.py with your plugin description eg:
setup (
name='SuperPlugin',
version="1.0",
description="A Super plugin for the 'Baz' project",
author="Jean Schurger",
packages=find_packages(),
include_package_data=True,
entry_points="""
[Baz.plugin]
Foooo=super_plugin:Foo
""",
)
Let's try with ipython
In [2]: load_entry_point('SuperPlugin', 'Baz.plugin', 'Foooo')
Out[2]:
In [3]: object = _()
Foo plugin loaded !
In [4]: hasattr(object, "super_function")
Out[4]: True
In [5]: # that's very cool !
In [6]: object.super_function()
Bar !
In a more complex application, you may have more plugins ! and you may want to
discover them and maybe load them too !
Let's try (with ipython)
In [2]: for object in iter_entry_points(group='Baz.plugin'):
...: print object
...:
...:
Foooo = super_plugin:Foo
In [3]: object.load()
Out[3]:
In [4]: _().super_function()
Foo plugin loaded !
Bar!
Just a remember for people like me who never remember what to do with this thing:
Just do:
Powered by WordPress