If you use grep like me to find or navigate around source code that you recently grabbed via Subversion, you may find this useful:
Put this in your .bashrc file:
export GREP_OPTIONS=”–exclude=*.svn*”
Then when you run grep in a subversion tree…it will exclude all of the .svn directories. Or if you don’t wish to make this change permanent, simply use:
GREP_OPTIONS=”–exclude=*.svn*” grep -r <<something to find in files>> *
Categories: Linux · Linux Programming · Programming · Ubuntu
Getting started in Subversion with Python?
Add *.pyc files to your global-ignores. Edit your ~/.subversion/config file, fine the line global-ignores = … Remove the comment preceding the line and add which ever file masks you wish to use.
Running svn add * within a working copy is equivalent to running svn add folder1 fileA fileB; essentially you are telling subversion to add everything. In other words this command IGNORES your global-ignores mentioned in #1 for the current directory, but does not ignore it for subdirectories. In order to ask Subversion to add everything in the current path, including recursive sub-directories but not to ignore global-ignores, use: svn add . –force
Hey I don’t make the rules, I just abide by them. Hope this helps!
Categories: Linux · Linux Programming · Python · Subversion
Commenting out a bunch of lines without a vim plugin:
Select your lines with VISUAL BLOCK (CTRL-V), then press I to insert before all highlighted lines. Next type your comment character, # (for python, shell, etc). Last press ESC.
I forget not frequently used, but helpful VIM commands from time to time. Why not blog it?
You can alternatively select your lines with VISUAL LINE (SHIFT-V), then type : s/^/#
This tells the selected lines that you wish to substitute the start of the line with the # char.
Categories: Linux · Linux Programming · Open Source · Programming · Python · Tips
What is going on here? Reading this article leads me to believe Microsoft is forcing companies into a deal. But are they? Read the comments on Slashdot. This is becoming more and more confusing.
Did LG and other companies sell out to Microsoft? Does Microsoft really think they can squash Linux? Is this an attempt to? How does it relate to Embrace, extend and extinguish? Is it just a competitive edge?
Microsoft to date has not substantiated their claim that Linux violates 235 Microsoft patents. Yet!
Categories: Linux · Microsoft