Tip 2: How to remove SCC information from
VisualStudio.Net project files?
Not so long ago we decided to switch from SourceSafe databases
to a
common Perforce repository. And saying that it have been quite a pain
is not even beginning to come close to reality. Source-Code integration
in VS.NET is not a nightmare, and you have to change your project files
and delete a few other files to get rid of it. Failing to do so may get
you in real trouble when rebinding to another SCC provider.
Fortunately, there is a great
article
about the problem which explains it, tells what to do about it and even
provides a tool to automatically solve it (cautions for ASP.Net
projects though...)
Tip 3: Xorg.conf file for Ubuntu edgy running on Thinkpad T60 (ATI card)
One version in order to have DRI enabled, both for KDE and
Gnome but for one screen only, here.
Another version to have the dual screen working together with
DRI but for Gnome only, here.
Tip 4: Insert today's date by value in a cell in Open Office
Since I moved over from Office to Open Office, I have been missing the ability
to insert today's date by value via a shortcut.
In Office, you press Ctrl+; (or Crtl+Shift+,) and you get just this.
In Open Office (at least in version 2.2), there is no such shortcut. But there
are workarounds :)
Workaround 1:
type "=now()" or "=today()" in the cell, then press F9 then press Enter. The F9
part makes that you insert the date by value, not the formula (which would give
you a new date every day).
Workaround 2:
Here we are going to create a macro and assign a shortcut to it.
First the macro...
Go
to Tools->Macros->Organize Macros->OpenOffice.org Basic. This
will show you all the available macros. Under My
Macros->Standard->Module1, edit Main.
Cut and paste the following code there:
sub InsertTodayValue
Dim oCell as Object, oSheet as Object, oRange as Object
oSheet = thisComponent.getCurrentSelection.getSpreadSheet
oRange = thisComponent.getCurrentSelection.getRangeAddress
oCell = oSheet.getCellByPosition(oRange.StartColumn,oRange.StartRow)
oCell.Formula = now()
end sub
Second the shortcut...
Go to Tools->Customize. Click on the Keyboard tab.
Select the Shortcut Key you want to associate to the macro in the top box (click
only once).
Then go to the bottom of the Category box and open the line called Open Office
Macros by clicking on the "+" and drill down until you find your macro, which
should appear in the Function box. Click once on the macro name.
Now that you have the macro selected in the function box, and the shortcut
selected in the Shortcut box, simply click on the button Modify and this will
assign the macro to the shortcut.
Voila!
To finish, I would like to point out that you might want to make sure that your
cell's format is set to the date format you like/want.