Posts Tagged ‘linux’

Writing your own toy OS kernel

Every young programmer/computer scientist (at least the ones I know) has at least one time in their life dreamed about writing their own OS. Because it is one of the most complex computer program that you can write and there is a great challenge plus chance to hack in front of you. I fell in [...]

Perl Poetry

Yeah again I didn’t bother writing a blog-post myself and thereof I’m putting here an interesting  fragment from Larry Wall’s big Camel (see: judgin’ a book by its cover) book. The forgery in the attendant sidebar appeared on Usenet on April Fool’s Day, 1990. It is presented here without comment, merely to show how disgusting [...]

A Few Interesting Articles from LWN

Neil Brown has written very nice and helpful series of articles about the design patterns used in linux kernel: Linux Kernel Design Patterns Part 1 Linux Kernel Design Patterns Part 2 Linux Kernel Design Patterns Part 3 But recently he has written a great analysis and criticism on the design of UNIX: Ghosts of Unix [...]

Scrape a Web Site with Lynx

Lynx is a powerful tool for command-line based web browsing on linux. With the following simple script it is possible crawl a web-page and scrape all the texts in an easy to parse html-free format for further text processing. Then you can do text-classification, sentiment-analysis …etc to analyze the data. 1 2 3 #!/bin/bash WEBSITE=$1 [...]

Solving the Debian’s Google Chrome Update Problem

Google Chrome web browser’s Debian and Ubuntu repositories is somewhat problematic. The problem is either fetching  update data from the server seems to hang for about 5 minutes or connection to the update server timeouts after a few minutes. A bug about this issue is filed here.  This issue seems to be related with HTTP/1.1 [...]

Solving CUDA Compiler Version Problem in Linux

CUDA’s default SDK(version 3) and compiler uses an older version of gcc (gcc-4.3); and if the gcc installed on your computer doesn’t match with CUDA’s version, it will fail installing. But there are ways to bypass this problem without removing your current compiler. To compile a CUDA code with a specific version of a compiler: [...]

How to remove an Application From Init Script in Ubuntu?

update-rc.d is a very nice utility for these kind of jobs. To remove a program from your init just type the following command: sudo update-rc.d -f program_name remove To add a program with defaults: update-rc.d program_name defaults For more information consult “man updated-rc.d” Related Posts:Solving the Debian’s Google Chrome Update ProblemWriting your own toy OS [...]