Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
HTMLPad 2018 15.5
WeBuilder 2018 15.5
SentiMask SDK Trial 2.0.0
Track Order For Magento 2 1.0.0
Calendar 365 For Dynamics CRM 4.0
Scimbo 1.2
Odoo Furnito Theme 1.0
.Net Assemblies/WSDL Import Utility for Delphi 6.0.4.0
Devart Excel Add-in for Zendesk 1.7
Excel Add-in for Marketo 1.7
GetOrgChart 2.5.3
AnyGantt JS Gantt Charts 8.6.0
AnyChart JS Charts and Dashboards 8.6.0
Multi Vendor Ecommerce Script & Apps 4.0
Magento 2 Inventory Management Extension 1.0
Top Code
MCU 8051 IDE 1.4.7
Guest Book V. 2 V2
XML Products Showcase Slider 1.0
Azizi search engine script PHP 4.1.10
jQuery Slider Ken Burns 1.0
Flash T-Shirt Designer 3.0
Myanmar Unicode Conversion Help 1.0
ActivePerl 5.8.4.810/5.6.1.638
Calendar 365 For Dynamics CRM 4.0
Image Reconstruction Demo (GUI) 1.0
Porter Stemming Algorithm 1.I
STDF file reader 1.0
The Karma Language 1.0
Email Grabber
jQuery Accordion Photo Gallery 1.0
Top Rated
VisualNEO Web 2018.12.15
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
Find a unique name based on prefix + digit in log2(n) + log2(n/2) 
File ID: 64226






Find a unique name based on prefix + digit in log2(n) + log2(n/2) 
Download Find a unique name based on prefix + digit in log2(n) + log2(n/2) http://code.activestate.com/recipes/578008-safe-html-string-and-unicode/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 31
Submit Rating:
Find a unique name based on prefix + digit in log2(n) + log2(n/2)  Description
Description: Find a unique name based on a prefix for a content in a container
(eg. a file in a directory) adding a digit to the name

Does it in log2(n) + log2(n/2) were n is the number of duplicates

This would be used eg. in a CMS? giving identifiers based on content title, or when shortening file names on a file system, etc.

License: Freeware

Related: Name, Unique

O/S:Windows

Downloads: 31



More Similar Code

Calculates multifractal spectrum of a binary image based on the ideas in the paper by Posadas et al., Soil Sci. Soc. Am. J. 67:1361-1369, 2003.



Lookup a chemical element based on Symbol, name, or atomic number, and get back the symbol, name, atomic number or atomic weight.

Examples:
name = elements('Symbol', 'Fe', 'name');
mass = elements('atomic_number', 26,...



This counts only unique clicks based on ipAddress. / The visit from a ipAddress to a webpage will be counted only once every 24hrs. / a)Counter that counts the visitor clicks on a web page, / b)This counts only unique clicks based on ipAddress, /...



Publika Opinio is a bookmark based on tag written in ruby on rails. You can save bookmarks with name, url, description and tags and choose what make private and public.



'sparse' is a matrix class based on a dictionary to store data using 2-element tuples (i,j)
as keys (i is the row and j the column index). The common matrix operations such as
'dot' for the inner product, multiplication/division by a...



ForkMaker is a set of scripts for the creation of a Linux distri based on Debian. From a simple config file you can choose the name of your distri, release, tagline and what packages you'd like installed/removed Graphics are auto added. Repo...



A Virtual Machine based on a Simplified Instructional Computer (SIC). The Machine will emulate all the hardware of a SIC and will be able to run any program that is written for the SIC as described by Leland L.Beck in his book "System...



cmsMerchant is a simple script based on php and is a simple merchant system. With the help of cmsMerchant, users can offer their products and services. It also comes with all payment gateway plugins. Features include intelligent customer tracking...



DODOSMAIL is a simple software based on php. This software allows you to send email through a web based form. Important features of this script are, it secures your email address from spammers, it validates email address of senders, it has...



Simple implementation of a Kalman filter based on http://www.cs.unc.edu/~welch/kalman/kalmanIntro.html

User Review for Find a unique name based on prefix + digit in log2(n) + log2(n/2)
- required fields
     

Please enter text on the image