Finding original command result from MD5 hash

Basically I hashed the result of the “date” command with md5sum:

$ date | md5sum

The output is indeed in the likes of:

e4c94362cd4fd71ec6aca78c7411bdc3 -

My question was: is it possible to recover the result of the date command knowing the date pattern (except for maybe the minutes and seconds)?

I tried using john’s mask option as well as a custom wordlist, without result.

Do you guys have any idea how we could pull that off?

is there something like a “foreach” mode from the command line? Like in perl?

With perl we can run perl -p . That wraps a foreach loop around the code and executes the code on the file. What I’m looking for is something like


and then I get a new file in which the string replace happened (the above would convert a .tsv to a .csv). Doesn’t have to be StringReplace, can be anything that takes a line of stuff as input. Total[filename] would total all numbers in the rows of the file.

That is like “scripting” the M command line-by-line (during MS-DOS we used to call that “batch mode” — really means line-by-line).

Command and control versus intelligent assistants for senior citizens

I have a zero-configuration call screening program that targets/protects senior citizens from robocallers and other miscreants and scams. The program runs on low-end dev-boards and interfaces with telco landlines using an USB modem. I want to provide a way to modify a running configuration, but I don’t want to require a desktop computer or smartphone.

Reading indicates voice commands can help senior citizens. See, for example, Voice Recognition Innovation and the Implications for Seniors and Usability of Voice User Interfaces for Senior Citizens.

Given a voice interface is helpful, that leaves the “how” for seniors. I feel like “command and control” is a better interface for this particular application, but folks who build voice engines say “intelligent assistants” is a better interface in general. From CMU Pocket Sphinx project:

For command and control, it was popular to use a finite state grammar for a long time. However, we do not recommend this approach nowadays. It’s way better to employ a medium vocabulary recognizer with a semantic analysis framework on top to improve the users’ experience and let them use more or less natural language. In short, don’t build command and control, build intelligent assistants instead.

For intelligent assistants you do not only need the recognition, but also intent parsing and database knowledge. For more details on how to implement this you can check Lucida powered by OpenEphyra. Dialog systems will require a framework for user feedback as well.

When I started researching and designing the voice interface, the use cases I envisioned include the following. The use cases are driven by the low resource constraints, and fall into “command and control” interface.

  • “Callman, block call”
  • “Callman, block caller”
  • “Callman, allow call”
  • “Callman, allow caller”

(I also have a whimsical grammar. “Callman, yuk yuk” means the caller is bad and should be moved to a blacklist. “Callman, yum yum” means the caller is good and should be moved to a whitelist).

I think I need to better understand the intersection of “command and control” with seniors. I need to know if the voice command implementation is going to confuse them (more than normal?). My questions are:

  • are there empirical results that indicate “intelligent assistants” are [far?] superior to “command and control” when used with seniors?
  • are there empirical results that indicate “command and control” is ineffective with seniors?

Command action for strike summons/minion

Wonder if someone could help. I have created a pathfinder 2e Druid character with an animal companion (Bear) and a Summon Fey spell (Sprite). Can the bear only attack my enemy when commanded (Your animal companion has the minion trait, and it gains 2 actions during your turn if you use the Command an Animal action to command it p214) while the summoned Sprite does not require the command (generally attacks your enemies to the best of its abilities p637)


PhpMyAdmin ALTER TABLE command gets ignored when table definition is imported

I am running PhpMyAdmin v4.8.0.1. I exported a table and thus, have the following structure:

CREATE TABLE `wp_site_settings` (   `settings_id` bigint(20) UNSIGNED NOT NULL,       `usage_limit_per_user` varchar(255) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1;  -- -- Indexes for dumped tables -- ALTER TABLE `wp_site_settings`   ADD PRIMARY KEY (`settings_id`); 

As we can see from the above code, the ALTER TABLE part is present after the CREATE TABLE. I want this ADD PRIMARY KEY to be a part of the CREATE TABLE itself, so that it can be exported as:

CREATE TABLE `wp_site_settings` (   `settings_id` bigint(20) UNSIGNED NOT NULL,       `usage_limit_per_user` varchar(255) NOT NULL,    PRIMARY KEY (`settings_id`), ) ENGINE=MyISAM DEFAULT CHARSET=latin1; 

I need it in the above way because I am trying to use the above in a custom WordPress plugin. If the ADD PRIMARY KEY is performed using the ALTER TABLE command, the whole command gets ignored and the resultant table does not contain the PRIMARY KEY.

This is just an example of one table. I need the solution to work for other 20+ custom tables as well, so any workaround/fix is appreciated.

NOTE: I am aware that the ALTER TABLE was separated intentionally as per + rfe #1004 Create indexes at the end in SQL export

When gpg encrypt is called from the command line, how is a key chosen to do the encryption?

I am using GnuPG. When gpg encrypt is called from the command line, how is a key chosen to do the encryption? It appears to me that -r, or –recipient, supplies a user id and that is the simple answer. I believe all of the examples I have looked at they show an email address for recipient, which is required input when creating your key. However, I was able to create 2 keys with the exact same user name, comment, and email address. How does gpg pick a key if there are two keys that have identical email addresses and that email address is used for the recipient? It seems to me like using key id would be the best way to do this, but I do not see that option.

Using PnPListItem command doesn’t display all the columns of the list

I am uising Powershell with SharePoint Online. I have a list with 3 columns: Name, Emailadres, Title When I use the command to display the list:

Get-PnPListItem -List “test”

I get only the Id, Title and GUID columns

How to I get the columns Id, Name, Emailadres, Title of the list test displayed in PS.


Use PowerApps If command to manage the text of a label

I’m trying to achieve something easy but I’m new to PowerApps and is way different than InfoPath.

I want to configure a text label to show different text based of values of other field.

For Example:

In my form I have a Choise field with Choises: Choise1, Choise2, Choise3.

When Choise1 is selected from end users I want the text label to show a specific text like CustomText1 or CustomText2.

I tried to add If in the text value of the label but it doesn’t work. I use this as I did in a training:

If(ThisItem.'DataCardValue2'.Value="Choise1","CustomText1"," No selection") 

DataCardValue2 is the Choice field I want to evaluate.

Any help?