Thursday, May 20, 2010

Compiz keyboard short cuts

Desktop Effects1 Keyboard Shortcuts
Rotate Cube Mousewheel on Desktop
Switcher2 Alt + Tab
Shift Switcher3 Super + Tab (2 modes: flip and cover)
Ring Switcher Super + Tab – overrides Shift Switcher
Expo Super + E (toggle)
Film Effect Ctrl + Alt + Down Arrow4
Rotate Cube Manually Ctrl + Alt + Left Mouse Button
Scale Windows Alt + Shift + Up Arrow
Show/Clear Desktop Ctrl + Alt + D (toggle)
Snapping Windows Move a window across workspaces5
Screenshot Super + Left Mouse Button
Zoom In/Out Super + Mousewheel
Transparent Window Alt + Mousewheel
Resize Window Alt + F8
Move Window Alt + F7
Add Helper Super + P
Widget Layer F9 (toggle)
Water Effects Shift + F9 (toggle)
Fire Effects: On Super + Shift + Left Mouse Button
Fire Effects: Clear Super + Shift + C
Annotate: Draw Super + Left Mouse Button
Annotate: Start Super + 1
Annotate: End Super + 3
Group: Select Window(s) Super + S
Group: Group Windows Super + T
Group: Ungroup Windows Super + U
Group: Flip Windows Super + Right or Left Arrow

Friday, May 14, 2010

Problems in connecting with E1550 mobile BB in Ubuntu 10.04

Sometimes Mobile BB ,say E1550 mount it self but doesn't seems to connect or we even can't see it is there.
So the solution for this problem is...:
Do the following steps after plug in your mobile BB.

1. Create a new rule for udev:

$ sudo vi /etc/udev/rules.d/15-huawei-155x.rules

2. Then type the following:

SUBSYSTEM=="usb",
ATTRS{idProduct}=="1446",
ATTRS{idVendor}=="12d1",
RUN+="/lib/udev/modem-modeswitch --vendor 0x$attr{idVendor} --product 0x$attr{idProduct} --type option-zerocd"

And now go to System>Preference>Network Connections and configure your service provider settings.


And enjoy surfing through the WEB with Lucid Linux

Visit http://tinyurl.com/37gkkx4/index.php?u=2618288

Thursday, May 13, 2010

How to setup and test a custom JCR implementation with JCR TCK

JCR TCK stands for Java Content Repository Technology Compatible Kit.

This will guide to test your JCR implementation with JCR2 (JSR 283) TCK.

This example shows how to test WSO2 Governance Registry JCR implementation with JCR TCK.

It is really easy if we can setup a java project (suppose an IDEA project) for testing purposes.

1.Create a new IntellijIDEA project

2.Add the following jars as dependencies to the above created IDEA project.

- jcr-2.0-b114.jar - Download
- jcr-tck-2.0.0.jar - Download
- junit.jar - Download
- org.osgi.core-4.1.0.jar - Download
- jars of your JCR implementation(ex: /.../carbon/components/registry/org.wso2.carbon.registry.jcr/target)
- any other required jars for your impl (for instance in WSO2 greg implementation ,it is better to do an ant inside /..../carbon/products/greg/ modules/distribution/target/wso2greg-3.5.0-SNAPSHOT/bin and add all jars inside /repository/lib and /lib )

3.Then set the following parameters in your test project

- Main Class : junit.swingui.TestRunner
- VM parameters : -Djavax.jcr.tck.properties=/home/subash/aaa/aaa.properties -Dcarbon.home=/home/subash/carbon/core/distribution/target/ wso2carbon-3.0.0-SNAPSHOT.
(Here note that aaa.properties file contains the name (as a value for the key javax.jcr.tck.repository_stub_impl) of your class which extends RepositoryStub ,which is used to return your RepositoryImpl to start the test ,also we have to set the carbon home to the above path ,carbon core)

- Programme parameters : org.apache.jackrabbit.test.api.NodeTest :This is the test class which you are going to test (actually you can change the test class you want , by simply changing this param)
- Working Directory : Set the working dir to your repository product home dir (for instance in this case: /..../carbon/products/greg/modules/distribution/target/wso2greg-3.5.0-SNAPSHOT)

4.Thats it.But remember ,you have to create your own class RepositoryStubImpl (any name which is the value for the key javax.jcr.tck.repository_stub_impl)
and implement getRepository() method such that you return your JCR RepositoryImpl instance.

Wednesday, May 5, 2010

Problems when installing JRE in Lucid Linux

With ubuntu 10.04 repo might get not updated.That is the main reason for this issue.

Simply what you have to do is :type these commands in your terminal step by step

1. sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

2. sudo apt-get update

3. Now install what you want : sudo apt-get install sun-java6-jre or sudo apt-get install sun-java6-jdk