Since I packaged my Ruby programs for the last time things changed a lot.
I’m going to refresh my knowledge and collect some useful links in the first step:
Suppose you have been working for a long time on a project, and now you want to delete some files from you project because … (the reason does not really matter at this point).
You may want to completely erase a file or a whole directory from your repository. The file or directory may be kept in the local copy or deleted as well.
If you want a complete removal use git rm:
1 2 3 4
If you want to keep your local copy use git rm —cached.
1 2 3 4
In the latter case don’t forget to add the file or directory to your .gitignore file, otherwise Git will bother you with annoying status messages.
One last thing you should keep in mind is that erasing data from a repository means only that the information is not present in the actual commit and in all future incarnations of the code. The data can be restored from the previous states of your repository. If you want to wipe your sensitive data consider reading the appropriate GitHub Help page on this topic.
Capistrano is a tool for remote server automation and deployment. We have to underline these two task as they will remain two different areas for a long time. Historicaly Capistrano was a deployment tool, but since then many server administration tools have been created for remote server administration. Software installation, package upgrade, data base management can be arranged using Capistrano.
Capistrano supports the idea of deployment strategies. Strictly speaking they are the way, how the source code goes to the remote machine. We can distinguish between local and remote strategies.
Local strategies have only one member, the copy strategy. Remote strategies split into export, checkout and remote_cache variants.
If you have a static site or do not want to use a SCM for deployment look at the following code snippet:
1 2 3 4 5 6 7 8
You have to ensure that both local and remote directories for archives exist.
If you need some additional readings on Capistrano, try out the following:
Berkeley Parser is one the best open source syntactic parsers for today. It uses a sofisticated split-merge algorithm to learn a constituent grammar started with a simple x-bar grammar.
The parser itself and a grammar for one of provided languages here from its repository at Google code. For now pretrained grammars are offered for English, German, French, Bulgarian, Arabic and Chinese.
We’ve downloaded the parser archive and the English grammar. Let’s try to produce some meaningful output:
The resulted analysis is by far not ideal but it is a good beginning:
The second generation of Anki offers a different view on cards, notes, facts and layouts. Compared to the first version of this program, one may be confused by alternating definitions. But after a short period everything gets clear and logical.
I learn German nouns with my custom note type GermanNoun. It exposes the following fields:
The trick is to combine these field with the help of card layouts. Using only 6 fields (many of them can be ommited) we are going to generate a lot of useful card.
Here the examples of the front card side:
1 2 3
The corresponding back side can be encoding as follows:
1 2 3 4 5 6
You may want to experiment with colors and font properties. HMTL to rescue :)
We’ve just moved to Octopress and are very happy! Follow us on this new plattform.
There are a lot of good and excellent introductions and advanced books on algorithmic design. Many of them describe the topic in a language agnostic way, some others concentrate on a particular language (e.g. Java).
The following resource is an attempt to introduce beginners how to implement basic algorithms and data structures in Ruby.
I've just decided to create a group on Zotero to keep some bibliographic notes. Books, articles and notes I find notable will be stored there.
Capistrano presents a very convinient way to manage your remotely deployed applications and websites. It has initially been developed for Rails deployment. But it also can be very useful for static site deployment.