Saturday, February 27, 2010

Winstar 2 Riser Setup Manual

xkcd and ruby

is Yesterday I noticed that yes ruby is really cool actually. One can very elegent and very easy to program with it. For the demonstration I've written a small program that displays the current xkcd comic in a window. It has only 20 lines of code!

 # / usr / bin / env ruby 
require 'net / http'
require 'tk'
require 'tkextlib / tkimg'

str = Net:: HTTP.get (URI.parse ('http:/ / xkcd.com '))
img_url = URI.parse (str.match (' http \\: \\ / \\ / imgs \\ \\ xkcd com \\ / comics \\ / \\ w + \\ png ') to_s)
File.... . open ('img.png', 'w') { =

TkLabel.new label = (root)
label.image = image
root.height Image.Height = '/ img.png.';
root.width = image.Width;
label.place ('height' Image.Height =>, 'width' => image.Width)
Tk.mainloop




Thursday, February 25, 2010

Dog White Spot On Nose

Git

version control is an indispensable part of software development. What is version control? First and foremost, the source code changes are managed and archived. When a programmer has made changes to a project that he can tell the version control system. This is called (to) commit (English passed in the form of tax). Where the version management with the source code is called the repository (English camp). The great thing now is that you check out any versions of the source code
can. You have to download not only the possibility of the current version but the version that was current at 3 weeks and you can look at it who has incorporated some changes. Another great feature is merge. Today, there are two kinds of version control: distributed and centralized. In the central version control is only one repository (eg on a server). The programmer can check out through the source code of the Server and edit it. What it locally on their computers only have the source code is in itself and not the metadata in which the version history is stored. If they want to bring your changes into the repository, they need certain rights on the server to your local changes can commit. Only now they are included in the repo and stored in the page history. Linus Torvalds , the developer of Linux, used in the management of the source code of the Linux kernel, the proprietary BitKeeper
. 2005 BitMover would suddenly have money for the use of BitKeeper, which would not work on a freelance project really. So began Linus to his own free tool for version management write and called it Git Today
Linux kernel , Google Android , Fedora , GCC, GNOME , Ruby on Rails and managed many other projects with Git. Git offers a distributed version control. In contrast to the central system, each programmer has the full repository on their computer. Now you can view the entire version history locally and commit changes locally in its own repository. These local repos is also called clones. It is therefore not surprising that the command to get a repo on his computer "git" is. Every programmer thus has an equal repo on his computer. As before, there is a central body that represents the current version of the program. But everyone can clone the thing, to add change and ask if you do not the changes that we made there will also be included with might. This is also called ask
pull request. There will be a few developers who manage this main repo and look at these requests. This works so that one clone locally from the one who has made this request, the repo to the computer and reviewed. If this is then well find you can take with these changes in the Git repo main (English to pull). This is basically democratic than the centrally managed system, because everyone can make such requests. You must not worry about who you make now is to commit rights. It takes only a few people who watch the pull requests and that's it. Thus such sites as github incurred. Social communities for programmers, so to speak. I personally use Git now even for my small software projects and to manage configuration files.