sudo aptitude install winbindI did it but the problem did not go away. Later I found elsewhere on the net that /etc/hosts needs an entry 127.0.1.1 myhostname for the name resolution to work.
Then edit /etc/nsswitch.conf by type in "sudo gedit /etc/nsswitch.conf" without the "quote" in the terminal and add wins to the hosts line in the position shown
here:
Code:
hosts: files mdns4_minimal [NOTFOUND=return] wins dns mdns4
Stuckness shouldn't be avoided. It's the psychic predecessor of all real understanding. An egoless acceptance of stuckness is a key to an understanding of Quality, in mechanical work as in other endeavors. It's this understanding of Quality as revealed by stuckness which so often makes self-taught mechanics so superior to institute-trained men who have learned how to handle everything except a new situation. - Robert Pirsig, Zen and the Art of Motorcycle Maintenance
Sunday, March 21, 2010
Hostname in Ubuntu
"ping myhostname" was not working on my Ubuntu machine. I found on the net, for example here that I need to perform the following to get it working:
Sunday, March 14, 2010
Mediawiki Templates
The equivalent of latex newcommand is templates in mediawiki. To use a new template:
Create a new page named "Template:Concept" for example. On the page, write:
'''{{{1}}}'''
Then on any other page, wherever {{concept|foo}} occurs, it will be replaced by foo in bold.
Create a new page named "Template:Concept" for example. On the page, write:
'''{{{1}}}'''
Then on any other page, wherever {{concept|foo}} occurs, it will be replaced by foo in bold.
Tabs in Vim
Vim tabs:
- :tabe (new tab opens)
- gt (next tab)
gf (open the file under cursor in a new tab)
Vim Regex Simplification
\v can be used to simplify the regex. For example to search for {foo} one can use \v\{(\w+)\}.
Source: http://briancarper.net/blog/vim-regexes-are-awesome
Source: http://briancarper.net/blog/vim-regexes-are-awesome
Subscribe to:
Posts (Atom)