BlogEtcetera
  • Home
  • Categories
    • Society
    • Politics
      • Afghan politics
    • Afghanistan
    • Afghan diaspora
  • About

Programming

Computing

AWK: Sum of a Column

Imagine you have a file with multiple columns and you need to quickly get the total of a column in command line in UNIX. The easiest way is to use AWK in the command line. Let’s take the following file: 1 2 3 4 5 6 7 8 9 2 Read more…

By Hameed, 10 yearsMay 29, 2013 ago
computer c code
Programming

Adding Code Formatting Tools in Notepad++

I am a big fan of beautiful code, not only in terms of quality of programming but also formatting the code nicely so that it is easy on eyes. If you are using a full-blown IDE, they come with their own formatting facility, but if you are using a multipurpose Read more…

By Hameed, 11 yearsApril 12, 2012 ago
Programming

PCL – Centring Variable-width Text

If you ever had to deal with PCL you would know that there is no command to centre the text. There are some printers that support HPGL command embedded in the PCL file, but not all. If we are printing a predefined text, we know the measurements and would set absolute positioning. But Read more…

By Hameed, 11 yearsNovember 24, 2011 ago
  • About
Hestia | Developed by ThemeIsle