Python Simple JSON Web Service

Introduction I was testing a client software which communicates with a server software using JSON format. The behavior of the client depends on the instructions specified in the server response. In order to test the client I had to modify …

Read more »

Simple Trick to Strong Passwords

Each website or online service requires a password. Different websites have different rules to passwords. If you want to use the same password everywhere then you might end up tweaking your password for each website. Passwords do expire and you …

Read more »

Printing Words

Problem Given an input text file as in the example below I 1:1 Work 1:2 At 1:3 NetApp 1:4, 2:1 Is 2:2 Good 2:3, 3:1 To 3:2 See 3:3 You 3:4 Write a script that prints the output below I …

Read more »

Longest Common Sub Path

Problem Given an input text file with format as in the following example: /foo/bar/x/1/2 /foo/bar/x/3 /foo/bar/x/4/5/6 print the number of sub directory levels that are common to all paths in the file. In this case it is /foo/bar/x so the …

Read more »

Matlab Simple mex Example

Matlab mex functions can be used to extend Matlab functionality or to improve performance by using compiled code as opposed to interpreted matlab syntax. Using mex functions is explained in many places on the web however the following is a …

Read more »

Execute Windows command from Linux

Winexe can be used to invoke remote Windows commands from Unix based system like Linuxs. Follow the steps below to build and install Winexe… installation Steps Download winexe from sourceforge Copy source code to the linux machine for example: scp …

Read more »

Page 1 of 2912345...1020...Last »