Thursday, December 10, 2009

SVN : Sub Version Repositories.. How to effectively work as a team

Sub Versions are a nice way to manage and Edit a Project as a team. An SVN repository contains the complete code which is to be managed and different people have different rights on accessing and changing the code.
These SubVersions consist of various check points when the code was in a commit state and we can edit these versions or rollback to the previous stable versions and work on them. Hence these repositories help us in managing the code effectively in case a wrong commit is made to the code at any stage.

The commit operations can only be done by authorized people who have access rights on committing a particular file of the project. Read and Write Access can be file as well as project specific.

SVN are pretty common in Unix as well as Windows based machines ( Tortoise SVN ).

WPF: Window's UI's are now so customizable

Windows Presentation Foundation, intially called the Avalon Project, gets a complete picture with the upcoming .NET 4.0 beta, with WPF Toolkit being integrated to it. Missing features like DataGrid or Calender .. etc. are now fully featured in WPF.

WPF and Silverlight use the XAML markup language to write UI's which are used in windows as well as web programming. They are highly customizable and have killer 3D support. These UI's adopt the Window OS version capabilities and provide UI's as per what the OS is able to support including the Aero Graphics of Windows Vista and Windows 7.

They use Direct X in their back end and are sometimes well suited for Game Development on Windows platform as well.

So WPF and Silverlight are the best UI frameworks to work on in windows and web development.

Tuesday, January 20, 2009

Linux BootLoader and Passwords Hacked!

Guys this is a startup article so I did not put something fancy, though I'll get on with something more informative next time. For new users of Linux this is a really cool thing as you donot need any specific software to hack into the linux administrator account, that is the root account.

The bootstrap loader of Linux is called GRUB which is stored in the file /boot/grub/grub.conf and has a shortcut in the folder /etc, so you can actually view the file in the text editor by typing
#vi /etc/grub.conf
Once you have entered the file you can see something like this:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,1)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
#boot=/dev/hda2
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.7-10)
root (hd0,1)
kernel /vmlinuz-2.4.7-10 ro root=/dev/hda3 hdc=ide-scsi
initrd /initrd-2.4.7-10.img
title Windows 2000
rootnoverify (hd0,0)
chainloader +1

The statements with # sign are the comments. Now lets start r*Ping this file:
default: This value tells us which OS should boot if not selected manually in the list given at the end of the file. You can set it to windows by setting the value to 1 here.

timeout: This is one feature which tells us the amount of time in seconds the bootloader should wait for the user to select which OS to boot before it loads the default OS set in default.

splashimage:Now here you can do something fancy. You can actually supply a path of any image which you want to see in the background as soon as the GRUB loads. That is when the computer is switched on.

The title's are the names of the operating system that are shown when you see GRUB. And the rest of the statements in each title are executed as soon as the OS loads and they constitute of the stage two of the booting process. (Two know more about these statements, Just comment).

Now since you are in the VI editor, changes can be made by pressing:
i To enter insert mode
:wq! To save and quit after doing any changes

CHANGING ROOT PASSWORDS:

As soon as the OS loads, you stop at the GRUB, press e after selecting linux (donot press enter) and in the second line (which starts from the word kernel) press e again. Notice that these lines were same as the lines of execution you see in grub.conf. Give a space add the digit 1 and press enter. Then press b to boot.

We have pressed 1 because the system runs in single user mode run level here, which skips the password program here called mingetty. (Run levels are similar to different modes in Windows such as safe mode.. etc.)

In run level one you get all the root priveledges. In the text terminal type:
passwd root
The terminal will ask you the new root password. Once you have done that, you can easily login with the new root password with all the administrative power.

Sometimes although you might encounter GRUB asking for passwords by typing 'p' with no 'e' option. Now this can also be overridden by using the Linux DVD by running it in recovery mode and booting to the root by using the GRUB of the DVD.The details of this would be given in the next blog if you guys like this one.

There are other ways of removing root and user passwords, for example, deleting the password feild 'x' in the file /etc/passwd for any user in the file. You need administrative priveledges for it which can easily be obtained by running the system in run level 1 as discussed above.

ADDITIONAL INFORMATION:

To know more about run levels, check out the file /etc/inittab by typing:
cat /etc/innittab
or just comment to know more...

I hope this article is informative, please comment for encouraging me to write more and give some higher level useful information.

Cheers!
:)

Monday, January 19, 2009

Listen to My Music

Music Created and Uploaded by me. The links open a player and songs are buffered. They can also be downloaded. If you like them, comment on this blog.

Two songs are there on the Top Right of the webpage:
Heaven Inside (Fusion)
Hip Hop Jam

HERE is the link

"Open Source or Microsoft " war!

I love both but there is a war between open source and microsoft. No open source follower will buy the fact of being a part of a product based firm that sells its software and does not have other ways of earning than the consumer itself. Now being a part of such a firm I realise how microsoft has dominated the world with their software. Its the ease of learning and somehow.. Piracy.. open source on the other hand is for us geeks. you can learn as well as get popular in the market ( thus earning a lot of money by individual coding ). By contributing to the society you are actually helping yourself grow as a programmer. You have no investments in the IDE front and also you have all the code availible to you for the softwares that you use daily. You can customize and enhance them and thus be a part of this world.

So go ahead.. Be a follower of this Blog!

P.S. : I'm working on C#.NET , Linux and Project MONO. And My friends are working on PHP, HTML and CSS. If you guys have any querries or contributions. Start doing it right now.

Cheers!