Popular recipes tagged "character" but not "float"http://code.activestate.com/recipes/tags/character-float/2016-01-13T00:46:40-08:00ActiveState Code Recipesadd password masking ability to getpass.getpass() (Python) 2016-01-13T00:46:40-08:00KingMakhttp://code.activestate.com/recipes/users/4193393/http://code.activestate.com/recipes/579148-add-password-masking-ability-to-getpassgetpass/ <p style="color: grey"> Python recipe 579148 by <a href="/recipes/users/4193393/">KingMak</a> (<a href="/recipes/tags/character/">character</a>, <a href="/recipes/tags/display/">display</a>, <a href="/recipes/tags/getpass/">getpass</a>, <a href="/recipes/tags/hiding/">hiding</a>, <a href="/recipes/tags/masking/">masking</a>, <a href="/recipes/tags/msvcrt/">msvcrt</a>, <a href="/recipes/tags/password/">password</a>, <a href="/recipes/tags/windows/">windows</a>). </p> <p>adding the ability to display a password masking character of the programmer's choice</p> For Characters in a String, Replace with Character (Python) 2012-03-23T20:44:23-07:00Andrew Yurisichhttp://code.activestate.com/recipes/users/4180867/http://code.activestate.com/recipes/578086-for-characters-in-a-string-replace-with-character/ <p style="color: grey"> Python recipe 578086 by <a href="/recipes/users/4180867/">Andrew Yurisich</a> (<a href="/recipes/tags/character/">character</a>, <a href="/recipes/tags/replace/">replace</a>, <a href="/recipes/tags/substitute/">substitute</a>, <a href="/recipes/tags/text/">text</a>). Revision 9. </p> <p>Useful if you need to replace many different characters with all of the same character. Can accept an unlimited number of request to replace.</p> <p>Does not work with words, only characters. You can, however, replace single characters with words. I may go back and re-implement it using tuples for the keys, but this would make searching the text for any matches pretty expensive, I'd imagine. At that point, it's mostly a job for a regex, and those tools already exist.</p> Frequency Analyser (Python) 2011-08-11T09:26:56-07:00Stijn de Graafhttp://code.activestate.com/recipes/users/4178055/http://code.activestate.com/recipes/577837-frequency-analyser/ <p style="color: grey"> Python recipe 577837 by <a href="/recipes/users/4178055/">Stijn de Graaf</a> (<a href="/recipes/tags/analysis/">analysis</a>, <a href="/recipes/tags/analyze/">analyze</a>, <a href="/recipes/tags/character/">character</a>, <a href="/recipes/tags/cryptography/">cryptography</a>, <a href="/recipes/tags/frequency/">frequency</a>). </p> <p>Calculates the frequency of characters within a block of text. In the context of cryptography, these values can be compared to a frequency table in order to attempt to ascertain the original message.</p> Go to nth character (JavaScript) 2010-05-27T13:44:00-07:00Glenn Jenkinshttp://code.activestate.com/recipes/users/4174057/http://code.activestate.com/recipes/577246-go-to-nth-character/ <p style="color: grey"> JavaScript recipe 577246 by <a href="/recipes/users/4174057/">Glenn Jenkins</a> (<a href="/recipes/tags/character/">character</a>, <a href="/recipes/tags/goto/">goto</a>, <a href="/recipes/tags/komodo/">komodo</a>). </p> <p>Pops up a dialogue box to ask you for a character number (position), validates it, then moves the cursor to the character at that position in the current document.</p> <p>Useful for eg a SQL statement where you have an "error at character 3456"</p>