SVN conflict on all lines (LF), while edit a file using Windows then Unix (Mac, Ubuntu)

November 1, 2010 Leave a comment

This is a work around for a problem of committing changes to subversion using multiple operating system and the end of the line conflict.

If you collaborate on a text file or a source code file while multiple people editing the file using Windows and Unix (or Mac),

you might face a challenge for committing changes to subversion.

The problem is the conflict on all lines each time a file edited with Unix then Windows, and vise versa.

To resolve this issue use the following terminal comments to edit the property of the text (source code) file.


svn propset "svn:eol-style" "native" file1.txt

Reference: Red Bean File Property

Find the version of ubuntu

October 14, 2010 Leave a comment

To find out which version of Ubuntu is installed, type the following command in the terminal: lsb_release -a

Example:

$ lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid

Categories: IT Support, Unix Tags:

SVN terminal, list (log) the last (top) ‘n’ transactions

October 7, 2010 Leave a comment

The followings are terminal commands for getting the details of the last ‘n’ changes to a SVN repository:

Step 1: Find the last revision number:

Use tomorrow date to include the transactions for today. If today is 7 Oct then

$ svn log -r {2010-10-08}
601 | amiraryani | 2010-10-07 18:40:23 +1100 (Thu, 07 Oct 2010) | 1 line

Step2: Now that we know the last revision number is 601, we can get the last 10 transaction between 601 and 591

svn log -r 601:591

also we can get more details by adding –verbose parameter.

svn log -r 601:591 --verbose

References:
fitz.blogspot.com

svnbook.red-bean.com/1.0

svnbook.red-bean.com/en/1.4/

Categories: IT Support, Unix Tags:

Three software myths

October 4, 2010 Leave a comment

I love these two software engineering myths (quoted from Roger Pressman, Software Engineering A Practitioner’s Approach):

  1. Management myth: If we get behind schedule, we can add more programmers and catchup ¬†(sometimes called the “Mongolian horde” concept).
    Reality: Software development is not a mechanical.
    Brooks: “Adding people to a late software project makes it later” ¬†form the book The Mythical Man-Month 1995.
  2. Programmer myth: Once we write the program and get it to work, our job is done.
    Reality: Industry data indicates that 60% to 80%of all effort expended on software will be expended after it is delivered to the customer for its first time.

How to change the Ubuntu panel without right click

September 24, 2010 Leave a comment

On the Ubuntu (version 10.04) I changed the properties of the bottom gnome panel: unticked the expand property, then locked the panel.
The result is a short version of the panel which is very difficult to rest to default using right click (at least I could not do it).

One easy way to reset the gnome panel is to remove .gconf/apps/panel folder. This can be achieved by typing the following in the terminal:


rm -r ~/.gconf/apps/panel

Then you should logout and when you login again you will find the panel is changed to default setting.

Note: By resetting panel all the customization of the panel will be lost.

Ref: celsius1414.com

Categories: IT Support Tags: ,

Domain-based Change Propagation Analysis: An Enterprise Case Study

September 15, 2010 Leave a comment

This is the presentation file for “Domain-based Change Propagation Analysis: An Enterprise Case Study” presented in ICSM 2010.

The published paper discuss the application of domain analysis in predicting the impact of software changes. The paper shows the result of a case study on a large scale enterprise system called BEIMS developed by Mercury Computer System in Australia.

How to push (insert) HTML to a UpdatePanel

It is often useful to insert HTML code in an ASP.net page from the code behind. This can be achieved using an update panel as demonstrated below:

UpdatePanel1.ContentTemplateContainer.Controls.Add(new LiteralControl("This is a text from code behind."));
Categories: ASP.NET
Follow

Get every new post delivered to your Inbox.