Popular recipes tagged "meta:score=-1"http://code.activestate.com/recipes/tags/meta:score=-1/2016-07-03T21:58:49-07:00ActiveState Code RecipesHopfield Artificial Neural Network (C++)
2016-07-03T21:58:49-07:00Jay ballerhttp://code.activestate.com/recipes/users/4194368/http://code.activestate.com/recipes/580688-hopfield-artificial-neural-network/
<p style="color: grey">
C++
recipe 580688
by <a href="/recipes/users/4194368/">Jay baller</a>
(<a href="/recipes/tags/ai/">ai</a>, <a href="/recipes/tags/algorithm/">algorithm</a>, <a href="/recipes/tags/algorithms/">algorithms</a>, <a href="/recipes/tags/artificial_intelligence/">artificial_intelligence</a>, <a href="/recipes/tags/neural_network/">neural_network</a>).
</p>
<p>(Discrete (Binary)) Hopfield Artificial Neural Network (ANN).</p>
<p>For more info see:</p>
<p><a href="http://en.wikipedia.org/wiki/Hopfield_net" rel="nofollow">http://en.wikipedia.org/wiki/Hopfield_net</a></p>
<p><a href="http://www.scholarpedia.org/article/Hopfield_network" rel="nofollow">http://www.scholarpedia.org/article/Hopfield_network</a></p>
A Complete Morse Code Generator in Python with Sound (Python)
2013-01-08T18:13:33-08:00Captain DeadBoneshttp://code.activestate.com/recipes/users/4184772/http://code.activestate.com/recipes/578411-a-complete-morse-code-generator-in-python-with-sou/
<p style="color: grey">
Python
recipe 578411
by <a href="/recipes/users/4184772/">Captain DeadBones</a>
(<a href="/recipes/tags/morse_code/">morse_code</a>, <a href="/recipes/tags/pygame/">pygame</a>, <a href="/recipes/tags/python/">python</a>).
</p>
<p>This is a complete Morse Code Generator with sound. You can <a href="http://temp3.net/thelivingpearl_downloads/morse_sound_files.zip">download the sound files (ogg) for Morse Code</a>. For more information checkout the article <a href="http://thelivingpearl.com/2013/01/08/morse-code-and-dictionaries-in-python-with-sound/">Morse Code and Dictionaries in Python</a></p>
A Simple Clock, Well Maybe Not That Simple... (Python)
2013-08-09T18:15:09-07:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/578633-a-simple-clock-well-maybe-not-that-simple/
<p style="color: grey">
Python
recipe 578633
by <a href="/recipes/users/4177147/">Barry Walker</a>
(<a href="/recipes/tags/amiga/">amiga</a>, <a href="/recipes/tags/apple/">apple</a>, <a href="/recipes/tags/big/">big</a>, <a href="/recipes/tags/clock/">clock</a>, <a href="/recipes/tags/digits/">digits</a>, <a href="/recipes/tags/e_uae/">e_uae</a>, <a href="/recipes/tags/linux/">linux</a>, <a href="/recipes/tags/macbook_pro/">macbook_pro</a>, <a href="/recipes/tags/time/">time</a>, <a href="/recipes/tags/winuae/">winuae</a>).
</p>
<p>BIG_TIME.py</p>
<p>Remember this?</p>
<p><a href="http://code.activestate.com/recipes/578610-a-simple-clock-well-maybe-not-that-simple/" rel="nofollow">http://code.activestate.com/recipes/578610-a-simple-clock-well-maybe-not-that-simple/</a></p>
<p>And this?</p>
<p><a href="http://code.activestate.com/recipes/578079-pure-fun-for-text-mode-python/?in=user-4177147" rel="nofollow">http://code.activestate.com/recipes/578079-pure-fun-for-text-mode-python/?in=user-4177147</a></p>
<p>Well the Python version of the top URL has been uploaded to AMINET on 01-08-2013...</p>
<p>Now the big gun that complained about my fun Python upload and voted it down can see
that this was a serious attempt ae viewing "Hello World!" in extra large xharacters.</p>
<p>This is the result in Python...</p>
<p>It is ONLY uploaded to AMINET and that is where it will stay.</p>
<p>If you want it then use the pointer inside code section.</p>
<p>Remember to change the BIG_TIME.py.txt file on AMINET to BIG_TIME.py...</p>
<p>Designed around a Macbook Pro OSX 10.7.5 for the Classic AMIGA platforms and works
on Debian 6.0.x and PCLiuxOS 2009 using Python versions 1.4.0 to 3.3.2 inclusive...</p>
<p>Although the description in the AMINET readme below is for an AMIGA environment it does
not take a genius to adapt it to the other platforms...</p>
<p>Boy was this difficult to get working in a single Python script...</p>
<p>ENJOY...</p>
<p>This is the AMINET readme file:-</p>
<p>Short: A Big Digital Clock Python Script.
Author: <a href="mailto:wisecracker@tesco.net">wisecracker@tesco.net</a> (Barry Walker)
Uploader: <a href="mailto:wisecracker@tesco.net">wisecracker@tesco.net</a> (Barry Walker)
Type: dev/src
Version: 1.00.00
Architecture: generic; m68k-amigaos</p>
<p>Distribution: Public Domain, Emailware.</p>
<p>============================================================================</p>
<h5 id="architectures-classic-amigas-e-uae-and-winuae">Architectures: Classic AMIGAs, E-UAE and WinUAE.</h5>
<p>MINIMUM Requirements Are:-</p>
<hr />
<pre class="prettyprint"><code> 68EC020 CPU and 2MB RAM total, example, a standard A1200(HD).
WinUAE Version 1.5.3 minimum.
Standard OS3.0x install or better.
Python Version 1.4.0 or higher.
(Also, OSX 10.7.5, Debian Linux 6.0.x and PCLinuxOS 2009.)
</code></pre>
<hr />
<h5 id="history">History.</h5>
<p>01-08-2013.
Version 1.00.00:- Original upload to AMINET...</p>
<p>This is dedicated entirely to the AMIGA community and AMINET and will not
be uploaded elsewhere.</p>
<hr />
<p>To install just download the "BIG_TIME.py.txt" file and rename it to
"BIG_TIME.py" without the quotes. Drag this file into your AMIGA PYTHON:
volume and...</p>
<p>From a minimum of Python Version 1.4.0 prompt:-</p>
<pre class="prettyprint"><code>>>> exec(open("PYTHON:BIG_TIME.py").read())<CR>
</code></pre>
<p>And away you go...</p>
<p>This code is/was designed to work in all versions of Python from 1.4.0
to 3.3.2 on at least the platforms shown in the Architectures: section.</p>
<p>It was developed entirely on a Macbook Pro OSX 10.7.5 and finalised using
MEmacs for the AMIGA.</p>
<hr />
<p>This is just a simple DEMO to show how to generate large digits in Python
and put them to use as an _AT_A_GLANCE_ digital clock.</p>
<p>It starts up by generating all of the characters available for the DEMO
for five seconds then goes into the clock proper.</p>
<p>As this code is multi platform AND multi Python version then it is issued
as GPL2...</p>
<p>Enjoy finding simple solutions to often very difficult problems...</p>
<hr />
<pre class="prettyprint"><code> IMPORTANT:-
-----------
The Legal Stuff:-
-----------------
This Python script is issued under the GPL2 licence conditions.
The author is not responsible for any damage to, or loss of, or
failure of equipment or data caused in any way by the use of this
script. There is NO warranty with the use of this software release
and YOU USE IT AT YOUR OWN RISK.
</code></pre>
<hr />
<pre class="prettyprint"><code>Testing Evaluation:-
--------------------
All WinUAE, E-UAE and Classic AMIGA test conditions were/are running
standard OS3.0x/OS3.1x and using standard ~topaz 8~ fonts throughout.
I have no idea what strange configuration setups will create so refer
to the ~The Legal Stuff~ above.
</code></pre>
<hr />
<p>Contact:-</p>
<hr />
<p>Mr Barry Walker, G0LCU.</p>
<p>Email:- <a href="mailto:wisecracker@tesco.net">wisecracker@tesco.net</a></p>
<p>Author of the ~TestGear?~ projects in the ~docs/hard~ drawer of AMINET.</p>
<hr />
<p>A very useful HardWare related site, (C) Anthony Hoffman, for
modifications, schematics, repairs and the like is:-</p>
<pre class="prettyprint"><code> <a href="http://amiga.serveftp.net/">http://amiga.serveftp.net/</a>
</code></pre>
<p>============================================================================</p>
Text Editor in Python 3.3 (Python)
2013-06-19T15:58:17-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578569-text-editor-in-python-33/
<p style="color: grey">
Python
recipe 578569
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/editor/">editor</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/text/">text</a>, <a href="/recipes/tags/text_processing/">text_processing</a>).
</p>
<p>This is a simple text editor written in Python using <code>tkinter</code> for graphics.</p>
<p>Check out Captain DeadBones' <a href="http://thelivingpearl.com/">Chronicles</a> blog.</p>
Russian Multiplication in Python (Python)
2013-06-18T15:25:02-07:00Captain DeadBoneshttp://code.activestate.com/recipes/users/4184772/http://code.activestate.com/recipes/578567-russian-multiplication-in-python/
<p style="color: grey">
Python
recipe 578567
by <a href="/recipes/users/4184772/">Captain DeadBones</a>
(<a href="/recipes/tags/math/">math</a>, <a href="/recipes/tags/multiplication/">multiplication</a>, <a href="/recipes/tags/python/">python</a>).
</p>
<p>Here is a very simple program in Python to multiply 2 numbers. This version follows the Russian Multiplication Algorithm. I worte for my blog <a href="http://thelivingpearl.com/basic-multiplication-in-python/">Captain DeadBones Chronicles</a></p>
mac address from ip address (Python)
2013-07-07T17:34:06-07:00judyhttp://code.activestate.com/recipes/users/4186659/http://code.activestate.com/recipes/578593-mac-address-from-ip-address/
<p style="color: grey">
Python
recipe 578593
by <a href="/recipes/users/4186659/">judy</a>
(<a href="/recipes/tags/address/">address</a>, <a href="/recipes/tags/adress/">adress</a>, <a href="/recipes/tags/ip/">ip</a>, <a href="/recipes/tags/mac/">mac</a>, <a href="/recipes/tags/python/">python</a>).
</p>
<p>get the mac address from ip address
work only in linux system</p>
Calculator (Python)
2013-07-10T17:28:17-07:00superducktoxichttp://code.activestate.com/recipes/users/4187037/http://code.activestate.com/recipes/578599-calculator/
<p style="color: grey">
Python
recipe 578599
by <a href="/recipes/users/4187037/">superducktoxic</a>
.
</p>
<p>Put any numbers in and the program will give you the answer.</p>
System Password (Python)
2013-07-08T17:12:33-07:00superducktoxichttp://code.activestate.com/recipes/users/4187037/http://code.activestate.com/recipes/578595-system-password/
<p style="color: grey">
Python
recipe 578595
by <a href="/recipes/users/4187037/">superducktoxic</a>
.
</p>
<p>You enter a password and the program will tell you if the the password in strong or weak. The program will also tell you how many lower and higher case letters you have and how many digits you have.</p>
Basic Multiplication in Python (Python)
2013-06-18T15:21:08-07:00Captain DeadBoneshttp://code.activestate.com/recipes/users/4184772/http://code.activestate.com/recipes/578564-basic-multiplication-in-python/
<p style="color: grey">
Python
recipe 578564
by <a href="/recipes/users/4184772/">Captain DeadBones</a>
(<a href="/recipes/tags/multiplication/">multiplication</a>, <a href="/recipes/tags/python/">python</a>).
</p>
<p>Here is a very simple program in Python to multiply 2 numbers. I worte for my blog <a href="http://thelivingpearl.com/basic-multiplication-in-python/">Captain DeadBones Chronicles</a></p>
Guess the number, Game (Python)
2013-07-10T17:49:30-07:00superducktoxichttp://code.activestate.com/recipes/users/4187037/http://code.activestate.com/recipes/578600-guess-the-number-game/
<p style="color: grey">
Python
recipe 578600
by <a href="/recipes/users/4187037/">superducktoxic</a>
.
</p>
<p>you think of the number and then guess it.</p>
Ten's Multiplication Algorithms in Python (Python)
2013-06-18T15:23:36-07:00Captain DeadBoneshttp://code.activestate.com/recipes/users/4184772/http://code.activestate.com/recipes/578566-tens-multiplication-algorithms-in-python/
<p style="color: grey">
Python
recipe 578566
by <a href="/recipes/users/4184772/">Captain DeadBones</a>
(<a href="/recipes/tags/math/">math</a>, <a href="/recipes/tags/multiplication/">multiplication</a>, <a href="/recipes/tags/python/">python</a>).
</p>
<p>Here is a very simple program in Python to multiply 2 numbers. This is following a Ten's multiplication algorithms. I worte for my blog <a href="http://thelivingpearl.com/basic-multiplication-in-python/">Captain DeadBones Chronicles</a></p>
Fixed Point Iteration in Python (Python)
2013-01-16T16:39:08-08:00Captain DeadBoneshttp://code.activestate.com/recipes/users/4184772/http://code.activestate.com/recipes/578418-fixed-point-iteration-in-python/
<p style="color: grey">
Python
recipe 578418
by <a href="/recipes/users/4184772/">Captain DeadBones</a>
(<a href="/recipes/tags/fixed_point/">fixed_point</a>, <a href="/recipes/tags/mathematics/">mathematics</a>, <a href="/recipes/tags/python/">python</a>).
</p>
<p>The code utilizes fixed point iteration to solve equations in python. This code was wrriten for <a href="http://thelivingpearl.com/2013/01/15/the-easy-way-to-solve-equations-in-python/">How to solve equations using python</a>.</p>
Simple Python Script to Ask & Validate Password (Python)
2013-01-19T04:04:30-08:00Captain DeadBoneshttp://code.activestate.com/recipes/users/4184772/http://code.activestate.com/recipes/578427-simple-python-script-to-ask-validate-password/
<p style="color: grey">
Python
recipe 578427
by <a href="/recipes/users/4184772/">Captain DeadBones</a>
(<a href="/recipes/tags/password/">password</a>, <a href="/recipes/tags/python/">python</a>).
</p>
<p>This snippet of code was written as part of an article - <a href="http://thelivingpearl.com/2013/01/18/password-protecting-your-python-application/">Password Protecting You Python Application</a></p>
Secant Method of Solving Equtions in Python (Python)
2013-01-16T16:42:26-08:00Captain DeadBoneshttp://code.activestate.com/recipes/users/4184772/http://code.activestate.com/recipes/578420-secant-method-of-solving-equtions-in-python/
<p style="color: grey">
Python
recipe 578420
by <a href="/recipes/users/4184772/">Captain DeadBones</a>
(<a href="/recipes/tags/mathematics/">mathematics</a>, <a href="/recipes/tags/pytho/">pytho</a>, <a href="/recipes/tags/secant/">secant</a>).
</p>
<p>Solving equations using the Newton's method without taking derivatives. This code war written for the article <a href="http://thelivingpearl.com/2013/01/15/the-easy-way-to-solve-equations-in-python/">How to solve equations using python</a>.</p>
Newton's Method to Solve Equations in Python (Python)
2013-01-16T16:40:55-08:00Captain DeadBoneshttp://code.activestate.com/recipes/users/4184772/http://code.activestate.com/recipes/578419-newtons-method-to-solve-equations-in-python/
<p style="color: grey">
Python
recipe 578419
by <a href="/recipes/users/4184772/">Captain DeadBones</a>
(<a href="/recipes/tags/mathematics/">mathematics</a>, <a href="/recipes/tags/newtons_method/">newtons_method</a>, <a href="/recipes/tags/python/">python</a>).
</p>
<p>This is how you would use Newton's method to solve equations. For more information about solving equations in python checkout <a href="http://thelivingpearl.com/2013/01/15/the-easy-way-to-solve-equations-in-python/">How to solve equations using python</a>.</p>
Verify Username and Password Using a File for Storage (Python)
2013-01-31T02:11:24-08:00Captain DeadBoneshttp://code.activestate.com/recipes/users/4184772/http://code.activestate.com/recipes/578446-verify-username-and-password-using-a-file-for-stor/
<p style="color: grey">
Python
recipe 578446
by <a href="/recipes/users/4184772/">Captain DeadBones</a>
(<a href="/recipes/tags/password/">password</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/usernames/">usernames</a>).
</p>
<p>This script was written for an article I wrote to check user passwords. It stores data using SHA one-way function. For more information <a href="http://thelivingpearl.com/2013/01/29/authentication-of-users-and-passwords-in-python/">Authentication Of Users And Passwords In Python</a></p>
Performance boost with metaclasses (Python)
2013-02-17T10:58:13-08:00Martin Schoepfhttp://code.activestate.com/recipes/users/4185283/http://code.activestate.com/recipes/578460-performance-boost-with-metaclasses/
<p style="color: grey">
Python
recipe 578460
by <a href="/recipes/users/4185283/">Martin Schoepf</a>
(<a href="/recipes/tags/metaclass/">metaclass</a>, <a href="/recipes/tags/performance/">performance</a>).
</p>
<p>Consider a highly dynamic system where a lot of objects are created and destroyed. If the objects are complex and have a lot of default values the following recipe may improve the performance. The more default values you have the more you will gain from it. </p>
Verify a Single User Name and Password in Python (Python)
2013-01-31T02:09:58-08:00Captain DeadBoneshttp://code.activestate.com/recipes/users/4184772/http://code.activestate.com/recipes/578445-verify-a-single-user-name-and-password-in-python/
<p style="color: grey">
Python
recipe 578445
by <a href="/recipes/users/4184772/">Captain DeadBones</a>
(<a href="/recipes/tags/password/">password</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/usernames/">usernames</a>).
</p>
<p>This script was written for an article I wrote to check user passwords. It stores data using SHA one-way function. For more information <a href="http://thelivingpearl.com/2013/01/29/authentication-of-users-and-passwords-in-python/">Authentication Of Users And Passwords In Python</a></p>
Appending Encrypted Username and Passwords to a File (Python)
2013-01-31T02:08:20-08:00Captain DeadBoneshttp://code.activestate.com/recipes/users/4184772/http://code.activestate.com/recipes/578444-appending-encrypted-username-and-passwords-to-a-fi/
<p style="color: grey">
Python
recipe 578444
by <a href="/recipes/users/4184772/">Captain DeadBones</a>
(<a href="/recipes/tags/encryption/">encryption</a>, <a href="/recipes/tags/file/">file</a>, <a href="/recipes/tags/python/">python</a>).
</p>
<p>This script was written for an article I wrote to check user passwords. It stores data using SHA one-way function. For more information <a href="http://thelivingpearl.com/2013/01/29/authentication-of-users-and-passwords-in-python/">Authentication Of Users And Passwords In Python</a></p>
warm welcome (Python)
2013-02-03T06:24:46-08:00Rayhttp://code.activestate.com/recipes/users/4185136/http://code.activestate.com/recipes/578448-warm-welcome/
<p style="color: grey">
Python
recipe 578448
by <a href="/recipes/users/4185136/">Ray</a>
(<a href="/recipes/tags/python_2_5/">python_2_5</a>).
</p>
<p>just a warm welcome.</p>