Is GPG Hanging When Generating a Key?

📅 July 1, 2015
gpghang2Does GPG or GPG2 seem to hang in your terminal when generating or modifying a key?

GPG used to function perfectly, and it still does in Windows, but there seems to be some form of glitch when generating keys in Ubuntu, Linux Mint, or Xubuntu that causes GPG to never complete the key generation process because GPG is waiting for entropy. The rest of the system runs fine, but the GPG terminal hangs at the “gather enough entropy prompt” and never completes.

Or, maybe I am the only one who has experienced this consistent issue?

Good news! There is a resolution for this occurrence. The issue seems to be a lack of entropy. The system runs out of entropy that is never replenished, so GPG2 waits, and waits, and waits.

Read the rest of this entry »

, ,

Leave a comment

Programming Challenge: Mirror rorriM

mirror_mirrorCaptain Crunchneck wants to mirror the pattern in a text file. Can you solve this challenge?

Mirror rorriM (PDF)

Suggested solutions are given, but solve it yourself before peeking!

Read the rest of this entry »

, ,

Leave a comment

Meet Captain Crunchneck! The Merry Mirth Shanty Programming Challenge

📅 June 29, 2015
py001_Merry_Mirth_ShantyNot programming enough? Why not practice? I find that assigning myself simple programming challenges for practice helps keep my skills in shape and provides opportunities for mental fun!

An enjoyable way to achieve this is to think of a single goal and write a document of requirements complete with eyecatching graphics and fun flavor text with a background story.

Ahoy! Captain Crunchneck enters the picture! He and his merry band of pirates sail the 4+3 seas in search of Ye Ol’ Adventure, but, alas, the goodhearted Captain needs your help in alleviateing his pirating troubles.

Read the rest of this entry »

, ,

Leave a comment

Python 3 Quick Code: Get a Random Item from a List with an Even Chance of Being Chosen

📅 June 12, 2015
py001In Python 3, suppose we want to get a random item from a list that contains duplicates, but we do not want to favor the duplicates.

For example, if there are 3 duplicate items in a list of 10, then there is a 3x probability of obtaining that particular item compared to a single occurrence of that item in the list.

The idea is that by eliminating the duplicates, all items should have an equal chance of being chosen. Here is one strategy to achieve this using a set.

Read the rest of this entry »

,

Leave a comment

The Silicon Power S60 120G SSD and Linux

📅 June 4, 2015
s60-02Solid state drives (SSDs)! Yes!

They are fantastic devices that yield impressive computing speed boosts concerning hard drive access. I found myself in need of an SSD and decided to try something new: The Silicon Power S60 120G SSD.

Samsung SSD drives are perhaps the best I have ever used, but in the past, I have been happy with the durability and reliability of the Silicon Power A80 external drive. So, when I saw that the company also produced a line of SSD drives, I had to try one. Given the stellar reviews and low cost of this drive, it was a must-have.

The drive the S60 was replacing was an older Samsung 470. Now, there was nothing wrong with the Samsung. Time has proven its quality. In fact, I have used the Samsung 470 extensively for the past several years, and it continues to be reliable and speedy. However, the motherboard supports SATA3 but not the Samsung (it was close to a first generation SSD). So, it was time to upgrade to a SATA3 SSD.

The Samsung 470 was already fast, so how does the S60 compare? In my experience, it depended upon which operating system I used, and once again, Linux delivered superb performance without a hassle.

Read the rest of this entry »

, , ,

Leave a comment

Hide Files with .hidden

📅 June 3, 2015
hide3bDo you have files or directories that you wish to hide but do not want to rename as hidden dot files?

Here is a nifty trick that will hide all specified files and directories without the need to rename them.

All you do is create a hidden file named .hidden (with the dot) in the directory containing the files you wish to hide. When the file manager refreshes, the listed files will no longer appear.

Let’s see the details…

Read the rest of this entry »

, , ,

Leave a comment

Code Comment – gedit Plugin

📅 May 22, 2015
gcc01Gedit is an excellent text editor that supports themes and plugins. One such plugin useful for programming is called Code Comment, and it allows you to comment and uncomment highlighted lines of code at once.

Read the rest of this entry »

,

Leave a comment

Follow

Get every new post delivered to your Inbox.

Join 51 other followers