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

Programming

Computing

AWK One‑Liner: Total a CSV Column in Seconds

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, 13 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, 14 yearsApril 12, 2012 ago
Programming

PCL – Centering Variable-width Text (Still Stuck with PCL? Read On.)

If you’ve ever had to deal with PCL (Printer Command Language), you’ll know the pain: there’s no command to center text. Some printers support HPGL commands embedded in a PCL file, but not all. If you’re printing predefined text, you can work out measurements and use absolute positioning. Easy enough. Read more

By Hameed, 14 yearsNovember 24, 2011 ago
Hestia | Developed by ThemeIsle