NTML authentication proxy

What would you do if you had a web proxy that requires NTLM, and the software (for example, HTTrack) that needs to connect to the Internet, doesn’t support it? NTML by the way, is an authentication protocol used by Microsoft.

I had this issue, and downloaded a proxy server(APS) that can connect to an NTLM proxy. The given software (HTTrack in this case) needs to connect to this new proxy server. It works flawlessly. You will need to download Python 1.5.2 – which is an older version of Python. The proxy server can only work under that particular version of Python. For example if APS is running on the same machine as HTTrack (port 6000) and your real proxy is on machine NTLMMain, port 9000 – enter ‘NTLMMain:9000’ as configuration for APS, and enter ‘localhost:6000’ in HTTrack configuration.


Splitting a contact sheet

When I received a CD containing contact sheets from my photographer, I was in a hurry to put the photos online. He had promised to send me another CD containing individual photos later, when the printing for the album was completed.

I tried to use normal software like Photoshop to do the trick, and looked for tools online. While there were a number of tools to create a contact sheet, there were none to take it apart. Strange.

After thinking, I was able to write a small Python program to do the trick. I am sharing it for the benefit of everyone, releasing it under GNU GPL. Download Python and run it like: python split.py Contact.jpg (where split.py is a file containing the code below and Contact.jpg is the contact sheet).
Download split.py here.

Here, the contact sheet is 1000×800 pixels, and I want to split it into 5 parts horizontally and 4 parts vertically. These parameters need to be changed in the first four lines as per need.

I noticed that since the contact sheet was JPG, and the output was also JPG, it was causing degrading in quality. So, I changed the output format to BMP, and then reconverted back to JPG using other software.


What is leadership?

Today I attended a session with one of top leaders in our company. He gave an example of what his understanding is of leadership: when people are rowing a boat, there is one leader and the rest are followers. The more synchronization there is, the better team performance there will be. Fast may not the best – synchronized is best.
Change the calm waters environment to a turbulent one: river rafting. Here, the same model cannot work. There is still a leader and a team, but there is no time to communicate. Hence, each one must do best in his own situation and the leader – having provided some cues initially – must entrust the team. This is how project teams should be given turbulent times of today.

A true leader first makes the team capable of taking the right decisions, and then empowers them to make decisions and bear consequences – even if the decisions taken by the team are different from what he would have taken himself.


Technical analysis

Technical Analysis
Technical Analysis
Technical analysis is a collection of methods to predict future stock prices taking into account only the past and present data – prices and (optionally) volume. There is no consideration given to the fundamentals of the company or the industry under consideration.

I personally use technical analysis(TA) only after I have zeroed in onto a company that I want to invest in. That is, I use it to determine when to enter (buy) and when to exit (sell). Over and above that – I do not execute blindly the output from TA. I look at the market sentiment, company and industry timing etc. Even so, technical analysis does help me big time with the decision making.

How is TA performed? No need to understand that. Attached is a spreadsheet that will help you carry out TA based on different indicators: Moving average, Moving Average Convergence / Divergence or Relative strength index.
The spreadsheet is here: AutoTech.

How is this spreadsheet different from others available online?

  • This sheet doesn’t require you to interpret the graph. While the graph is still created, which you can check, or create additional graphs based on the data, its not really required – you can read the interpretations directly. The sheet gives you buy/sell advice directly based on the indicator you select.
  • The sheet does not require you to buy MS Excel if you do not have it. It works fine with Openoffice Portable. I have already talked about portable apps – this one is free as well.

Color coded invoice

As the project manager of a software project, I need to provide invoicing information every month end. I used to find this task rather boring, especially since I had to count hours and provide numerical data in multiple formats: one for the invoicing system in use by the company, another for the finance team and yet another as per client specifications (since he wanted it on a week basis, rather than on month basis as used by the company wide system).
So the same figures, in different formats – can be done, but was boring each month.

One fine day, I found this, and created this: Invoice_Dashboard

All you have to do is to setup the sheet once, with your employee details. After that, select the holiday periods using colors, and press Update. All the calculations will be done using the colors that you have given to the cells. Its easy to understand and verify: all one has to do is the check the colors – since the rest is automatic there cannot be a mistake. This excel sheet can easily be made to give out the “figures” in any format. Try it out, and post comments. Invoicing is no longer a boring job: in fact this colours approach has lot many more uses.

Note on licensing: this spreadsheet uses third party code, which I have permission to distribute – please do not distribute this spreadsheet or derivatives. The license applicable elsewhere on this blog is not applicable to this spreadsheet.

An example
An example

Code is poetry

code is poetry
WordPress, the blogging platform that I use for this site has this as the motto: “CODE IS POETRY”. I really like it, and in truth, the way they have written the software – its a real treat. It only confirms the saying – best things in life come free. The design is modular and pluggable, database is well design and one feels nice reading through the code. As a side-effect, its easy to understand and maintain. When I was planning to make the first modification/plugin – I had imagined it would be a tough task – but it turned out to be not very difficult.
Its another matter that my own modifications to the code have made it look more like prose, and less like poetry!