opencv-3.1.0.exe Hashes

Hashes provided on Sourceforge:
https://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.1.0/
opencv-3.1.0.exe | 2015-12-18 | 115.1 MB
SHA1: 51b7bbc30dba948851be5ba3ddecf4797d7c32e1
MD5: e86cfcb2e2fa4cc7232c5965ce98ed66

opencv-3.1.0.exe | 109.8 MB
SHA224: 3761ea9df1da806b25ced5c685a63cccda9d6581bb9a4bfa11b93885
SHA256: 0cbb10fab967111b5b699a44cb224f5d729f8d852d2720cbd5cdb56d8770b7b3
SHA384: 474f554f9103c56d4c4aa75dc022dd0c87b4207784521450d380128b3688431d35046b95f5449b3f4a24a79067624b93
SHA512: 6937b0cf5bf7264156210886d17001806c86f3bbd20c894328b5887451f9c8df2e5495892f920f7c93ec9e8c4e886cb8afb9874ebf76bd84c2d9fda5664b56e2

Deprecated Hashes
MD5: e86cfcb2e2fa4cc7232c5965ce98ed66
SHA1: 51b7bbc30dba948851be5ba3ddecf4797d7c32e1

Verification
MD5: Match
SHA1: Match

Why am I getting the Python Error “ImportError: No module named py”?

Question: Why am I getting the following error in Python “ImportError: No module named py”?

Simple answer: Somewhere, one of your imports ends in “.py”  Deleting that should solve the issue.

 

Example 1

import test.py

Python is trying to import the package named “test” with a module named “py” that doesn’t exist within the file “test.py”

Correct way of importing “test.py”

import test

 

Example 2

The Qt Designer allows you to subclass/extend a widget by “promoting” the base class and then specifying a header file that contains your defined class.  If the header file variable in Qt Designer has “.py” you also get the error when your GUI is compiled.  The incorrect inclusion of “testlistview.py”:

Correct way:

 

Further reading:

wp-config.php No Closing Tag

Working on my Raspberry Pi LAMP and WordPress install, I just so happened to notice that the wp-config.php file didn’t include the closing php tag ?>  and was curious why.

A user Mark / t31os on the WordPress support forum suggested:

When you are distributing files and can expect users to be using dodgy editors that add extra lines or erroneous spaces on the end of files….. and such…..

It’s quite easy for extra spaces to end up on the end of a file, and if you’re using several includes tracking these spaces down can be a pain, especially if you’re dealing with lots of files… spaces after closing PHP tags is known to cause various issues including invalid headers…

Of course there are cases when not using closing tags causes problems to, so it’s catch 22…

From the PHP documentation:

The closing tag of a PHP block at the end of a file is optional, and in some cases omitting it is helpful when using include or require, so unwanted whitespace will not occur at the end of files, and you will still be able to add headers to the response later. It is also handy if you use output buffering, and would not like to see added unwanted whitespace at the end of the parts generated by the included files.

Sources:

SourceTreeSetup_1.7.0.32509.exe Hashes

SourceTreeSetup_1.7.0.32509.exe | 11.8 MB

SHA256: 43fed24136c83d1d0fee64a7c44949cc76a8b749cd44a2ff04691c4418869c68

SHA384: 834b82a1e90a7a77e89fb0359dc00c6139fecff9b857ac880d003d832035cc4c9abcf8e3405f83eeb363ae56b489bde0

SHA512: 0639c6861d831aca48d7de252bcf48c1166e11e223743f1b860500f3a3255f0d4858eb9b91bc8fd7f3ed4cd667399c06238848c166adbc91953eec84de224317

Deprecated hashes

MD5: 9d858388c8404d7e9fb6ce948a49cea8

SHA1: 8b6c8f99f0a867d30b99862cbd910f1969df8613

Symantec Internet Security Threat Reports

 Published  Volume # File name
April 2015 Volume 20 21347932_GA-internet-security-threat-report-volume-20-2015-social_v2.pdf
April 2014 Volume 19 b-istr_main_report_v19_21291018.en-us.pdf
April 2013 Volume 18 b-istr_main_report_v18_2012_21291018.en-us.pdf
April 2012 Volume 17 b-istr_main_report_2011_21239364.en-us.pdf
April 2011 Volume 16 21182883_GA_REPORT_ISTR_Main-Report_04-11_HI-RES.pdf
April 2010 Volume 15 b-whitepaper_internet_security_threat_report_xv_04-2010.en-us.pdf
April 2009 Volume 14 b-whitepaper_internet_security_threat_report_xiv_04-2009.en-us.pdf
April 2008 Volume 13 b-whitepaper_internet_security_threat_report_xiii_04-2008.en-us.pdf
September 2007 Volume 12 ent-whitepaper_internet_security_threat_report_xii_09_2007.en-us.pdf
March 2007 Volume 11 ent-whitepaper_internet_security_threat_report_xi_03_2007.en-us.pdf
September 2006 Volume 10 ent-whitepaper_symantec_internet_security_threat_report_x_09_2006.en-us.pdf
March 2006 Volume 9 ent-whitepaper_symantec_internet_security_threat_report_ix.pdf
September 2005 Volume 8 ent-whitepaper_symantec_internet_security_threat_report_viii.pdf
March 2005 Volume 7 ent-whitepaper_symantec_internet_security_threat_report_vii.pdf
September 2004 Volume 6 ent-whitepaper_symantec_internet_security_threat_report_vi.pdf
March 2004 Volume 5 ent-whitepaper_symantec_internet_security_threat_report_v.pdf
September 2003 Volume 4 ent-whitepaper_symantec_internet_security_threat_report_iv.pdf
January 2003 Volume 3 ent-whitepaper_symantec_internet_security_threat_report_iii.pdf
July 2002 Volume 2 ent-whitepaper_symantec_internet_security_threat_report_ii.pdf
January 2002 Volume 1 ent-whitepaper_symantec_internet_security_threat_report_i.pdf

Gravity Forms Notifications/Confirmations Shortcodes

If this actually exists elsewhere, I haven’t been able to find it.

Helpful shortcodes (Merge Tags as Gravity Forms calls them) for confirmations and notifications in the Gravity Forms WordPress plugin.

General
Your site admin email {admin-email]
The form’s name {form_title}
All fields {all_fields}
Advanced Fields (where # is the Field ID)
Name – Prefix {Name (Prefix):#.2}
Name – First {Name (First):#.3}
Name – Middle {Name (Middle):#.4}
Name – Last {Name (Last):#.6}
Name – Suffix {Name (Suffix):#.8}
Time {Time:#}
Address (Street Address) {Address (Street Address):#.1}
Address (Address Line 2) {Address (Address Line 2):#.2}
Address (City) {Address (City):#.3}
Address (State / Province) {Address (State / Province):#.4}
Address (ZIP / Postal Code) {Address (ZIP / Postal Code):#.5}
Address (Country) {Address (Country):#.6}

 

Other
User IP Address {ip}
Date (mm/dd/yyyy) {date_mdy}
Date (dd/mm/yyyy) {date_dmy}
Embed Post/Page Id {embed_post:ID}
Embed Post/Page Title {embed_post:post_title}
Embed URL {embed_url}
Entry Id {entry_id}
Entry URL {entry_url}
Form Id  {form_id}
Form Title  {form_title}
HTTP User Agent  {user_agent}
HTTP Referer URL  {referer}
User Display Name  {user:display_name}
User Email  {user:user_email}
User Login  {user:user_login}

 

Note:

  • Page was not included
  • Section (break) was not included

gravityforms_1.9.16.zip Hashes

gravityforms_1.9.16.zip | 3.39 MB

SHA256: d8a800cfbd24575f209cdd11fb310b21c4f996f2ff5a85592ce3cba376075967

SHA384: f09c35fa9ef9da090c70546d290fbde97b68d1fea988bee8036531cb53c8ccbd10694258112e67d3582ebfbe7b119579

SHA512: 682e0e470024df7b7097c4f8c160f21bc2e275923db0dec8b44f26aa1234d911069aadc70ccec0e6e564859b6e28884b1d524fe2a5c787f41e5a46ce4f8d8ec5

Deprecated hashes

MD5: 44d18a0583edad608aa57cb2a5f52c30

SHA1: 08c60355ddbb33c93356e50a4e2de97ea66d7f1d

What does “| tee -a build.log” do?

What does “| tee -a build.log” do?

This command will display the output in the terminal and also write the output to a file called build.log

Let’s examine each part of the command

| (pipe)
allows the output of one program to be sent to another

tee
split the output to the terminal and to the file

-a
appends the input to the given file(s) instead of overwriting

build.log
is the name of the file to which the input is written

Variants:
|& tee configure.log
|& tee make.log
|& tee make.log
|& tee install.log
| tee $BUILDLOG

Source: http://en.wikipedia.org/wiki/Tee_(command)

 

Adapted from my 12/9/13 post http://advancedmarketingllc.com/what-does-tee-a-build-log-do/

What does “apt-get upgrade -y” do?

What does “apt-get upgrade -y” / “sudo apt-get upgrade -y” do?

This command will upgrade all packages that have updates available and answer Yes (y) to the subsequent prompt (typically whether or not to continue after displaying the additional disk space that will be used)

Example:
After this operation, X kB/MB of additional disk space will be used.
Do you want to continue [Y/n]?
Will continue because the answer alreay provided is Y

Let’s examine each part of the command

sudo
execute a command as another user (typically root)

apt-get
a simple command line interface for downloading and installing packages

upgrade
Perform an upgrade

-y
Assume Yes to all subsequent queries and do not prompt

Adapted from my 12/10/13 post http://advancedmarketingllc.com/what-does-apt-get-upgrade-y-do/

Regex to extract two letter words

Extracting the two letter words from Wiktionary Category:English two-letter words https://en.wiktionary.org/wiki/Category:English_two-letter_words

Online, interactive regex tester: https://regex101.com/

Regex (will grab all 2 letter words including the explanation portion (in, of)):

/(\b[a-zA-Z]{2}\b)/g

Source Text:

Result:

 

Regex for grabbing from HTML (this will only result in the 2 letter words that are links:

Page source:

Result:

Wiktionary.org content text is available under the Creative Commons Attribution-ShareAlike License