Category: Programming

All about programming

GIT Server on Raspberry Pi with Http Backend and GitWeb

Author: | Categories: Linux, Programming, Raspberry Pi No Comments
For Source code you want to share to the world, there is GitHub, but for closed source projects there are many paid and free options. This article is all about setting up your own private Git server on your home network using Raspberry Pi. Following modules will be used: Git Core Http Backend: to access […]

Tail command for Windows with Colors

Author: | Categories: Programming, Windows One Comment
Tail is a program on Unix and Unix-like systems used to display the tail end of a text file or piped data. Tail also has option to monitor a file as new lines are added to the file by another process, tail updates the display. This is particularly useful for monitoring log files. I have […]

Windows Product Key Finder

Author: | Categories: General, Programming, Windows No Comments
Few years ago PC manufacturers apply stickers on Laptops or Desktops showing Windows Product Key. But since Windows 8, it is no longer supplied. I have made on handy tool to Find out Windows Product Key and some other useful info. Download and Run. Download Windows Product Key Finder version 4.5 Hash for WindowsProductKey4.5.exe MD5: […]

Quick Command Line Access from Windows Explorer

Author: | Categories: Programming, Windows No Comments
Command line was and will be an important tool especially for Software Developers. With the launch of .NET Core, it is now even more important even in .NET ecosystem. Users find it difficult to browse to a certain directory by issuing CD (change directory) commands so there is a better way to go directly to […]

Download all files from FTP in Python

Author: | Categories: Linux, Programming, Windows 7 Comments
You can use this Python script to download / clone entire FTP directory recursively from remote FTP Host. Let’s say you would like to download www-data directory and all sub directories inside this one from ftp.test.com server. #!/usr/bin/python import sys import ftplib import os import time server = "FTPHOST" user = "anonymous" password = "anonymous" […]

Mosquitto MQTT Install and Run part 1

Author: | Categories: IoT, Programming, Raspberry Pi 5 Comments
MQTT (Message Queue Telemetry Transport) is a publish subscribe messaging protocol for use on top of the TCP/IP protocol. It is designed for connections with remote locations where a small code footprint is required or the network bandwidth is limited. Mosquitto is an open-source message broker service that uses the MQTT protocol to send and […]

C# Round Robin Resources

Author: | Categories: Programming No Comments
The Problem: You have scarce / limited resources and you want to use these in and efficient way in your Code. E.g. You can only create N objects of certain class because of its limitation in terms of Resources or Licenses, and you want to share those Objects across M Consumers. The Solution: One way […]

Revision Count in Posts Admin Screen in WordPress

Author: | Categories: Programming, Wordpress No Comments
This Post discusses how you can add Revision Count in Posts Admin Screen in WordPress. In order to show Revision Count as a Column in Posts Page Admin Screen, add below filter and action in functions.php of your theme. // register custom column add_filter( 'manage_posts_columns', 'custom_posts_table_head' ); function custom_posts_table_head( $columns ) { $columns['revisions'] = 'Revisions'; […]

Add Custom Column in Admin Post List in WordPress

Author: | Categories: Programming, Wordpress No Comments
In this post I’ll show you how to add Custom Columns to WordPress Posts Management screen. Also I will show how to make those Columns Sortable. To add Columns in Posts Page in Admin Screen, add filter “manage_posts_columns” and action “manage_posts_custom_column” in functions.php of your theme. // register custom columns add_filter( 'manage_posts_columns', 'custom_manage_post_column_test' ); function […]

Post Views using Post Meta in WordPress

Author: | Categories: Programming, Wordpress One Comment
This Post discusses how you can track Post Views in WordPress without using Plugin by using Post Meta. Post Views can be shown in Home Page and along with the Post itself but I will show Post Views in Posts page on Admin Screen. In the end, I’ll make this column sortable. Open functions.php of […]