Skip to main content

Knuth in a year or two, and more...


 The idea is similar to http://www.ibiblio.org/taocprg/. Generally speaking the motivation is also very similar, so let see:


The Motivation

I do have an Informatics and Computer Engineering diploma degree(well in a month or two) but we have only passed some of the parts of TAOCP and definitely not in that much detail. Also, this fits nicely with my idea to go back to the basics once more. I have been working in Java EE, and I feel that web application programming does not give too much space for using innovation at least not in using algorithms that are a little bit more advanced. Java haters would now say that this is because I'm using Java, but that is definitely not the case, I have also used python and a little bit of clojure and this does not change the problem. Yeah maybe some language is more elegant for some job but in the end, it is just a language. Now yes I was working on financial products, but that does not give me any excuse, maybe some other web apps require another skill set. Also, I think that if I had better algorithmic knowledge, that maybe I would not make some mistakes, also it's fun.


The plan


The Art of Computer Programming series are currently on the plan, but also I'm planning on going back to C once more, Little bit of Unix programming for I believe that Linux System Programming: Talking Directly to the Kernel and C Library would be a good start then I think that next good step would be Operating Systems Design and Implementation (3rd Edition). And we'll see what would be next.

The best part is last

I'm not alone (YEAH!!! ). I have found at least one other person interested in the project so this will be great.

We are going to make a reading plan in a day or two. And we will try to make regular meetings each week, the first few months will probably the meetings will take place in "Кика - Хаклаб" and they will be open, during the summer we'll move everything online.


You don't have to be from Macedonia to join us!


Currently, you can find us at #lugola, irc.freenode.org

We are going to post the plan shortly

Popular posts from this blog

HTML 5 data-* attributes, how to use them and why

It is always tempting to add custom attributes in HTML so that you can use the data stored there to do X. But if you do that there is no way of knowing if your HTML attribute will not be overridden in the future and used for something else and additionally you will not be writing valid HTML markup that can pass HTML 5 validator and with that you can create some very bad side effects. That is why there is a spec in HTML 5 called custom data attributes that enable number of useful features.

You may go around and read the specs, but the basic idea is very simple, you can add any attribute that starts with "data-" and that attribute will be treated as non-visible data for that attribute. By non-visible I mean that it is not something that gets rendered to the client so it does not affect the layout or style of the page, but it is there in the HTML so in no way this is private.
So let's get right into it, the following snippet is a valid HTML5 markup

<div id="aweso…

Temporary files and directories in Java 7 and before

Sometimes we want to create a temporary file, whether to save some data that gets written by some other application or just to temporary store stuff. Well, usually applications have their own temporary folder where they do this and it gets somehow configured. But why not use the underlying OS specific file like "/tmp/" in Linux so there must be some system property that has this info and there is. The key is "java.io.tmpdir" resulting in "/tmp" in my case or by code:
String tempDir = System.getProperty("java.io.tmpdir"); We can use tempDir  folder as a temporary place to store files, but there are a lot nicer ways to work with files like this even in JDK6 not just in JDK7:
import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; public class TempFile { public static void main(String[] args) { try { // create a temp file File tempFile = File.createTempFile("old-file",…

Basic Authentication with RestTemplate

Spring Rest Templates are very good way of writing REST clients. By default they work with basic HTTP so if we need to use Basic Authorization we would need to init the rest template with custom HttpClient. This way the Rest Template will automatically use Basic Auth and append to the HTTP headers "Authorization: Basic BASE64ENCODED_USER_PASS".

HttpClient client = new HttpClient(); UsernamePasswordCredentials credentials = new UsernamePasswordCredentials("USERNAME","PASS"); client.getState().setCredentials( new AuthScope("www.example.com", 9090, AuthScope.ANY_REALM), credentials); CommonsClientHttpRequestFactory commons = new CommonsClientHttpRequestFactory(client); RestTemplate template = new RestTemplate(commons); SomeObject result = template.getForObject( "http://www.example.com:9090/",SomeObject.class );

In EE application this would probably be managed by DI framework like Spring Core and only initialized once sin…