exception caught, what to do?

Tagged:  •    •  

To answer this question you must first understand at which level you are in the abstraction layer. There are not many decisions you can make. All you can do is throw it again or handle it somehow. The worst thing to do is to ignore it.

I will not try to make a long post about this, I just want to talk about a few cases I have encountered. Let's try to answer this question in the following scenarios:

  • exception caught inside library code
  • exception caught in some interactive environment
  • exception caught in not-interactive environment

custom live cd part#2

Tagged:  •    •  

Target: Remove as many applications as possible while keeping the system still able to browse the internet.

This is a continuation from part#1. I have used the official live CD customization guide for unpacking and packing the ISO. The last time I have only changed the desktop background.

I have started by running this command and making a list of packages I want to remove:

dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -nr | less

logging from multiple threads to the same file

Tagged:  •    •  

Think about the following scenario: you have a pool of threads waiting to execute operations. You start to execute operations using threads from this pool. Each operation logs it's activity writing 5 to 10 log messages or more. How will the log file look like? If only one thread is running everything will be alright it will be easy to understand the log messages but when multiple threads write log entries at the same time things start to get messy.

custom live cd part#1

Tagged:  •    •  

I have been trying for some time to customize the Ubuntu live CD to better fit my needs. I had all sorts of problems. I think the problem was I changed to much things in one step. I will start again to play with this and now I will blog the results and try to make small steps each time.

First I want to try something very easy, just change the background image of the live CD. I am using the official Ubuntu live cd customization guide.

my svn web application deploy scheme

Tagged:  •    •    •  

I have been playing with svn for awhile. It's a very nice source code version control system that works perfectly in an environment where all developers have access to a central server all the time and they are working mostly on the main development line.

Things start to get messy when the central server is not always accessible and when you need to make large changes outside the trunk. Anyway I will not talk about this here. If you need a version control system designed to handle a larger number of work flows take a look at Bazaar.

how to think?

Tagged:  •    •  

This is a hard question to answer, this is the type of question you can ask yourself each day for a lifetime. I have found a very interesting article here. Here is a snippet:

  1. Synthesize new ideas constantly
  2. Learn how to learn (rapidly)
  3. Work backward from your goal
  4. Always have a long-term plan
  5. Make contingency maps
  6. Collaborate
  7. Make your mistakes quickly
  8. As you develop skills, write up best-practices protocols
  9. Document everything obsessively
  10. Keep it simple

custom linux kernel

Tagged:  •  

Evrika! I have a working kernel compiled from sources. It still has some performance problems because it contains too many things but it looks promising. The last few days I was keep doing the same mistakes. Let me tell you how I have done this.

java regexp

Tagged:  •  

near future todo list

Tagged:  •  

* Linux kernel compile / configuration - Linux from scratch
Done. Read more about here.

* Ubuntu Live CD customization
Steps:
1. Change desktop background and rebuild the iso
2. Remove unused software in order to make a minimal bootable iso
3. Change boot logo & skip the start screen dialog
4. Update all software, customize and update the kernel

I will update this post with more links as I progress.

amazon elastic block store

Tagged:  •    •    •  

One step closer to the perfect cloud infrastructure. Amazon is doing some amazing stuff. They have recently made publicly available the Amazon Elastic Block Store. This will allow you to add persistent storage to EC2 instances. I like AWS a lot. It's on the top of my "Toys" I want to try list.

Syndicate content