Tuesday, February 5, 2013

Get that Linux feeling - on Windows!




Reference :
Get that Linux feeling - on Windows!

Cygwin is:
  • a collection of tools which provide a Linux look and feel environment for Windows.
  • a DLL (cygwin1.dll) which acts as a Linux API layer providing substantial Linux API functionality.


Sunday, February 3, 2013

After installing installing "oh-my-zsh', I could not start vim.



Problem :
After installing installing "oh-my-zsh', I could not start vim.

Solution:

export PATH=/usr/local/bin:/usr/local/sbin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr
Ref:
http://stackoverflow.com/questions/10995722/messed-up-my-path-in-zsh

Saturday, January 26, 2013

Vim text-editor is incredibly powerful tool. You should try "Spf13-vim" to feel its power!


Vim text-editor is incredibly powerful tool. You should try "Spf13-vim" to feel its power!



Spf13-vim is a distribution of vim plugins and resources for Vim, Gvim and MacVim.  It is a good starting point for anyone intending to use VIM for development running equally well on Windows, Linux, *nix and Mac.

Why The Ultimate VIM Configuration :



  • Modular configuration using power of pathogen & git
  • Fully cross platform
  • The perfect .vimrc file
  • Includes the best Plugins
  • Easy Installation





Installation
Linux, *nix, Mac OSX Installation

The easiest way to install spf13-vim is to use automatic installer.

$ curl http://j.mp/spf13-vim3 -L -o - | sh




_______
Problem: 

When I upgraded it, I experienced a problem that can be solved by just removing the directory spf13-vim-3 and start again.



fatal: destination path '/home/*/.spf13-vim-3' already exists and is not an empty directory.
Cannot read from "/home/tazjel/.spf13-vim-3/.vimrc.bundles"Vim: Reading from stdin



Cannot read from "/home/*/.spf13-vim-3/.vimrc.bundles"Vim: Reading from stdin

Solution :

# Change "tazjel" with your user name !
$ rm -rf /home/tazjel/.spf13-vim-3 && curl http://j.mp/spf13-vim3 -L -o - | sh



Reference :

Ultimate Vim Config





Wednesday, January 16, 2013

Vim Using elinks with netrw


Tip: Using elinks with netrw


The Vim Netrw plugin allows one to view the contents of an http hyperlink via CTRL-W_CTRL-F. Netrw checks the user's system (in this order) for curl, wget, and fetch. Text browsers such as elinks and links are better alternatives to HTTP clients like curl because they have a -dump option which strips out the HTML tags and formats tables for improved ASCII viewing. Getting these text-based web browsers working with Netrw requires a simple wrapper script to format the arguments in the order that Netrw provides them:

$ agent tempfile url

Here is a sample wrapper script for elinks (in a file named elinks-for-vim).

#!/bin/sh
tempfile=`echo $* | awk '{print $1}'`
url=`echo $* | awk '{print $2}'`
elinks -dump $url > $tempfile
Then, add this line to your vimrc:

let g:netrw_http_cmd = "elinks-for-vim"

Reference:

created July 25, 2008 · complexity basic · author Emallove · version 7.0


Xmonad is a dynamically tiling X11 window manager


What is xmonad?

xmonad is a dynamically tiling X11 window manager. In a normal WM, you spend half your time aligning and searching for windows. Xmonad makes work easier, by automating this.


Why should I use xmonad?

xmonad is tiling.
xmonad automates the common task of arranging windows, so you can concentrate on getting stuff done.

xmonad is minimal.
out of the box, no window decorations, no status bar, no icon dock. just clean lines and efficiency.

xmonad is stable.
haskell + smart programming practices guarantee a crash-free experience.

xmonad is extensible.
it sports a vibrant extension library, including support for window decorations, status bars, and icon docks.

xmonad is featureful.
core features like per-screen workspaces, true xinerama support and managehooks can't be found in any other wm.

xmonad is easy.
we work hard to make common configuration tasks one-liners.

xmonad is friendly.
an active, friendly mailing list and irc channel are waiting to help you get up and running.

Reference 
http://xmonad.org/


spectrwm small dynamic tiling window manager for X11



Introduction

Spectrwm is a small dynamic tiling window manager for X11. It tries to stay out of the way so that valuable screen real estate can be used for much more important stuff. It has sane defaults and does not require one to learn a language to do any configuration. It was written by hackers for hackers and it strives to be small, compact and fast.


Spectrwm is a beautiful pearl! For it too, was created by grinding irritation. Nothing is a bigger waste of time than moving windows around until they are the right size-ish or having just about any relevant key combination being eaten for some task one never needs. The path of agony is too long to quote and in classical OpenBSD fashion (put up, or hack up) a brand new window manager was whooped up to serve no other purpose than to obey its masters.



Major features


Dynamic xrandr & xinerama support (multi screen)
Navigation anywhere on all screens with either the keyboard or mouse
Customizable status bar
Human readable configuration file
Screenshots
Restartable without losing state
Quick launch menu
Many screen layouts possible with a few simple key strokes
Windows can be added or removed from master area
Windows can be moved to any workspace or within a region
Resizable master area
Move/resize floating windows
drag-to-float
User definable regions
User definable modkey & key bindings
User definable quirk bindings
User definable key bindings to launch applications
Multi OS support (*BSD, Linux, OSX, Windows/cygwin)


Installation steps :
https://opensource.conformal.com/wiki/spectrwm


Monday, January 14, 2013

Touchpad stopped working on an Acer AspireOne



Problem : After installing Ubuntu 12, the mouse stopped working.

Solution :

# Open the Terminal:

cd /etc/modprobe.d/
 
gksudo gedit options.conf
 
#In the text editor, type:
 
options psmouse proto=imps
 
#Save the file and close it.
 # Back to the Terminal:

sudo modprobe -r psmouse
sudo modprobe psmouse

# Click Fn + F7
# Disable and enable the mouse again.
 
Reference :
Askubuntu.com
 
 
 
Good luck,
Ahmed Bani