1000 Posts! Cosonok’s Greatest Hits! Top 40!


After pretty much exactly 10 years, here’s Cosonok’s 1000th post. Top 40 charts seem to work well for music (at least in the UK), so I thought I’d find the top 40 most viewed posts (had to use a little powershell to construct this post - see below). Unsurprisingly, all the most viewed posts are old posts (the newest ones in the list below are from 2014), which makes sense - the longer a post has lived, the more time it’s had to get views. It is a bit of a daft 1000th post as it’s just a list of stuff that was viewed in the past and probably too old now for anyone to care much about. Still, seems a fitting thing to do for a 1000th post.

At number 40 with 10239 views (posted on 8/31/13):

At number 39 with 10321 views (posted on 3/5/11):

At number 38 with 10408 views (posted on 4/3/14):

At number 37 with 10443 views (posted on 1/4/12):

At number 36 with 10765 views (posted on 2/1/14):

At number 35 with 11293 views (posted on 3/5/13):

At number 34 with 11313 views (posted on 11/4/12):

At number 33 with 11481 views (posted on 1/1/12):

At number 32 with 11647 views (posted on 1/16/12):

At number 31 with 11674 views (posted on 5/16/13):

At number 30 with 11742 views (posted on 8/24/11):

At number 29 with 11750 views (posted on 1/19/14):

At number 28 with 11955 views (posted on 11/18/11):

At number 27 with 13055 views (posted on 6/5/12):

At number 26 with 13055 views (posted on 3/24/12):

At number 25 with 13179 views (posted on 7/7/13):

At number 24 with 13653 views (posted on 2/24/13):

At number 23 with 13804 views (posted on 9/11/12):

At number 22 with 13916 views (posted on 4/14/12):

At number 21 with 14463 views (posted on 1/6/13):

At number 20 with 14766 views (posted on 10/26/12):

At number 19 with 17760 views (posted on 10/6/11):

At number 18 with 18096 views (posted on 2/21/11):

At number 17 with 18346 views (posted on 2/14/12):

At number 16 with 19223 views (posted on 10/16/11):

At number 15 with 19331 views (posted on 1/9/12):

At number 14 with 20111 views (posted on 1/28/12):

At number 13 with 21517 views (posted on 1/28/12):

At number 12 with 26014 views (posted on 3/14/12):

At number 11 with 26799 views (posted on 11/24/12):

At number 10 with 26971 views (posted on 12/3/11):

At number 9 with 27508 views (posted on 2/13/11):

At number 8 with 28375 views (posted on 1/27/12):

At number 7 with 28628 views (posted on 1/1/12):

At number 6 with 28686 views (posted on 1/9/11):

At number 5 with 29101 views (posted on 3/26/10):

At number 4 with 38749 views (posted on 8/27/12):

At number 3 with 48663 views (posted on 12/24/11):

At number 2 with 49139 views (posted on 12/7/11):

At number 1 with 109469 views (posted on 10/6/11):

Breakdown of the top 40 by year:
- 18 from 2012
- 12 from 2011
- 6 from 2013
- 3 from 2014
- 1 from 2010

PowerShell Script to Obtain Blogger Top Posts

To obtain the above information relatively easily, I copy and pasted information from my Blogger, and put it into a text file. Then ran the PowerShell script below against the text file.


[System.Object]$Views = Get-Content "cosonoks_views.txt"
[System.Array]$ViewsTable = @()
[Int]$Column = 0
$Views | Foreach{
  $Column++
  If(($_ -eq "Edit | View | Delete") -or ($_.Trim() -eq "")){$Column--}
  elseif($Column -eq 1){[String]$Title = $_}
  elseif($Column -eq 4){[Int]$ViewCount = $_}
  elseif($Column -eq 5){[String]$DateStr = $_}
  If($Column -eq 5){
    $Column = 0
    $ViewsTable += New-Object PSObject -Property @{
      "Title" = $Title
      "Views" = [Int]$ViewCount
      "Date"  = $DateStr
    }
    Write-Host "$Title : $ViewCount : $DateStr"
  }
}
$ViewsTable | Sort-Object -Property Views | Export-CSV "cosonoks_views.csv" -NoTypeInformation
[System.Array]$TextOut = @()
$Index = 999
$ViewsTable | Sort-Object -Property Views | Foreach{
  $TextOut += ("At number " + [String]($Index) + " with " + [String]($_.Views) + " views (posted on " + ($_.Date) + "):")
  $TextOut += ($_.Title)
  $TextOut += ""
  $Index--
}
$TextOut | Out-File "cosonoks_table.txt"


Comments

  1. Hello Vidad,

    Thanks for this underconstruction work, which let me say is an excelent job. Nowdays i dont have much time to get in here and learn something from your experiences, but iam pretty sure that you have done your best in this new technologies sharing all of your hard work.
    Now the not so good things, i prefer that last design schema :(
    Kind regards
    PF

    ReplyDelete
    Replies
    1. Hi Pedro, hope you are well. Yeah, I thought that last design template was a bit sh*t too. Changed it back. Best wishes, VC

      Delete

Post a Comment