I made a change in the blogger configuration to ease the later work when blogging. It is possible that older entries are not correctly formatted.

Sunday, 24 June 2012

Cygwin Packages setup.exe and command line

It seems that there is the possibility to use setup.exe to perform some action for the management of cygwin packages. The link: http://cygwin.com/faq/faq.setup.html#faq.setup.cli shows the diverse options.

I will take a look at it and try to improve my pakage management.

xmllint tutorial

http://linux.byexamples.com/archives/565/your-xml-friend-xpath-command-line-xmllint/ is a very small tutorial on how to use xmllint. I think I should try it a little bit further. Currently it did not do what I wanted it to do.


while trying xmllint on a settings.xml file from maven, I was having trouble getting the content out. After looking for the way to do it in internet, I found out that you need to set the namespace you need to look for even if it is the default namespace. I am not completely sure about the reason why. Anyway, that is how I did it:

> setns r=http://maven.apache.org/xsd/settings-1.0.0.xsd
/ > cat //r:settings
/ > cat //r:id
/ > setns r=http://maven.apache.org/SETTINGS/1.0.0
/ > cat //r:id
-------
<id >jsf-app-profile </id >
-------
<id >snapshots.jboss.org </id >
-------
<id >repository.jboss.org </id >
-------
<id >sonar</id >

Script and scriptreplay for recording and replaying a bash session

http://linux.byexamples.com/archives/279/record-the-terminal-session-and-replay-later/ is a page explaining the use of script and scriptreplay in order to record a bash session and play it again. I really find this very useful, though I do not really use it very often. But perhaps using this tutorial, I will manage to use it.

Python and Templating

For many purposes, it is useful to use templating engines. Looking for emgines I found the following site: http://wiki.python.de/Template-Engines.

That said it is a good question for me to know the aspects a template engine should have. Here are a few features I should look forward to:

  • expression's language
  • method chaining
  • macros
  • includes

Of course the more a language has features, the more complex can be the design or templating languages for developers. Moreover, the features may allow unwanted actions, therefore, it is important to make sure that these unwanted actions are limited.

Cygwin and Home directory

I was getting annoyed that my cygwin home directory was not easily accessible from my normal directory and vice versa. So I found out how to do this (I should have thought how this is done as an exercise first) by googling it. It is really easy. Just set the correct directory in the /etc/passwd file and the trick is done.

Tuesday, 19 June 2012

Law of Demeter and the Demeter project

I wanted to take a look again at the law of Demeter. In order to see whether there is a good way at looking at this to code more efficiently and more cleanly. I stumbled upon the following project: DemeterF. I will have to take a look.

Sunday, 17 June 2012

gitolite

An alternative to gitosis: gitolite. I have not tried it yet. But it is perhaps easier to install than gitosis.

Requirements for a Server

Here I want to sum up the different requirements which a server may/must provide.

  • Access
  • Upload access
  • Languages
  • Space and Bandwidth
  • Machine
  • Domains
  • Email
  • Statistics
  • Types of use
  • Support

Some cases are only supported if the server is dedicated, i.e. if the server is taken completely for the applications of the client.

Access

If the server is a dedicated server you need to be able to control a number of programs you set on it. For instance, you may need access to the web server, or the mail files. Usually, the access is performed per SSH. If the user can only control the content of the pages of the web server, then an FTP access is usually enough. This access may also contain the access to the logs of the system. However, using FTP the user cannot start or stop any program. This might be done however using an Web client offering different standard actions, such as starting the web servers again, or even restarting the machine.

Upload access

For Web hosting possibilities, it is possible to offer different means of uploading the necessary data to the server. For this, FTP is generally used. But some server also provide PHP or JSP uploads.

Programming Languages

HTML + Javascript is the language which browser typically understand. But, for most complex pages, it is necessary to choose an appropriate language to generate the HTML as well as to perform the necessary actions on the server. For this, different kinds of frameworks and languages exist. In particular, script languages like PHP, Perl, Python and Ruby or interpreted but compiled languages such as Java. While PHP is mostly more suitable for small dynamical web pages, Java simplifies the construction of complex multi-tiered applications, i.e applications which can be distributed on a certain number of different computers.

Space and Bandwidth

Well I am not yet sure which requirements I have for this. I will have to try to find the answer for this question myself.

Machine

This is also not clear what requirements I have to the machine. It should be a linux box. But concerning the actual hardware, I do not really know.

Domains

I should set a domain. I have not done it yet. But it should be easily done.

Email

There should be the possibility to have a mail server in order to perform mail tests.
But I should take a close look at the configuration of mail servers.

Statistics

Types of use

I have planned a number of uses for a server:

  • mail server
  • Http server
  • FTP server
  • Tooling server
  • vnc server if possible
  • as application server for X
  • test server

Support

Well this is a topic I have to see what is needed.

Useful tools

As I was looking for a tutorial to set up a git repository for my server, I found the following list of tools. I have taken only a brief look at the list. But I thought I might as well reference it here. In order to come back to it later on.

Sunday, 10 June 2012

Open Graph Protocol

I had a short look at: Open Graph Protocol. This is interesting. I have to see what are the implications that this protocol has.