lewro’s blog - 2.1 - web designer beginner

Archive for the 'Studing' Tag

How to set up subversion on a MAC for free.

May 13, 2008 [7:42 am] No Comments

What is subversion? Subversion is a software which allows you to create archive of your source code where you can clearly see what and when has been changed and If you need to you can still use previous versions of your code.

Why and when it is useful?

It is mainly used by developers working on the same project who need to access the same source code files. Every developer can access the actual version of every file. Whenever the changes has been made the developer commit the changes to the source so the other developers can access the code including his changes. You might be asking, what if I work alone on my project? That is actually my case here. I still use subversions because it allows me to go back in the history of my code and see changes which has been done and if something goes really wrong I can use the previous version of my code. Another advantage is that your different versions of the code are your backup files as well.

What do I need?

  • Subversion software (software which keeps track what has been changed)
  • Subversion user interface (it is not necessary but it is lot more comfortable then using command line)
  • Repository - the place where you store your files (versions of your code)

So here are the simple four steps which has to be done.

  1. Install subversion 1.4.4. http://homepage.mac.com/martinott/
  2. Instal svnX which is GUI http://www.lachoseinteractive.net/en/community/subversion/svnx/download/
  3. Create account in Google Code http://code.google.com/
  4. Fix the certificate problem with SVN list. Use your user name and psw from google repository when executing this command in command line
    svn list https://whatever.server.com/repository

There might be a new version of SVN when you read this article so take the most recent one. User interface - SVNX I am using here is beautiful application with easy to use interface. Repository - I have chosen here the Google Code as my repository. We could chose different free server but I use google applications a lot so I am going to stick with google.

Everything installed, what is next?

  1. Create working copies - path to your projects on your computer
  2. Commit everything to the repository. Just double click on working copy and click Commit. If it does not work try to create the folder in the repository yourself and drag and drop the files from you machine into the repository window (in the bottom section directly into the folder). You might need then remove the files from your machine and press update to get the actual version from remote server (which is at this moment the same so nothing will be lost but to be absolutely sure make a backup….just in case)
  3. Whenever you change a file it should appear in the working copies. Just press Commit and file will be updated in the repository

How can I see what piece of code has been changed in 2 different versions of my code?

You can check the changes in the SVNX or directly on google code web site. If you just want quickly scan and check 2 versions of the same code go to the google code site and you will find that you can see 2 windows next to each other and the changes are highlighted with colour so it is very easy to spot the difference.

If you want to have some idea how it looks you can check my repository on google code - http://code.google.com/p/lewro/source/list, you can see all my new blog source file and the changes I have made. It is also a good source of information for new developers so you can learn from other people’s code.

Archive for the 'Studing' Tag

PHP the logical next step or ?

April 7, 2008 [7:05 pm] No Comments

At the beginning of this year I wrote that I am will learn as much PHP as possible. It has been officially confirmed by City University that my PHP course is starting 22nd of April.

I am so looking forward to this new challenge. I am always up for new things and can images to stop learning. As I have already said I think that anyone can learn anything. It is just a mater of time. Some people can learn really quick and others can not. But who cares. If you really want to learn you will get the knowledge. I do not really know how long it is going to take me to learn PHP properly but what I know is that I am going to enjoy the process of learning. I have already started to read PHP 5 & MySQL book and I am half way true (700 pages uff). I will bring the review of the book with a full description in the new version of my blog where the book section is going to get massive face lift.For you guys who have been following me since beginning where my HTML and CSS knowledge was close to zero I want to say thank you for your support. Here comes the next step. Server side programming language. You can follow my progress true this blog. You probably know that the engine of this blog Wordpress runs on PHP which means that whatever I learn I can try straight away right here.

Hopefully I am not going to break the whole blog with trying different PHP ideas :o)

Archive for the 'Studing' Tag

Design phase of lewro’s blog 3.0

March 14, 2008 [1:32 pm] 1 Comment

I have been collecting information for my new blog for couple of months. The last month I spent creating wire frames, grids and design proposals for each page in Photoshop. After 65 hours of working in single Photoshop file the goal has been achieved. I am not sure it was the best idea to keep the design of all pages in a single file because my 2gigs memory was surly not enough in the final phase. I am also not sure if 65 hours are to much or not enough. I have spent quite a few hours designing icons, in same cases even 3 hours per icon. But I am happy I have done it. I am happy with the result and hope you will like it too.

Development

The next phase is going to be development. The biggest part is obviously CSS where I am confident enough. There should be no problems in this department. I am going to implement quite a few DOM scripting as well. I have done some of it before and small part is going to be new for me but I am sure I can find the sources to learn from. PHP and HTML is mostly going to come from this version but there are going to be major tweaks in terms of reusability of code and semantic improvements.

How much time do you guys usually spend designing your blog? Do you keep all the pages in a single file? What tools do you use?