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
AnyMap JS Maps 8.0.0
FlowHeater 4.1.0
Luxand FaceSDK 6.3.1
dbForge Data Compare for PostgreSQL 3.0
C# PDF 4.4.2
Bytescout PDF Viewer SDK 8.6.0.2911
AppJetty Advance Product Designer For Magento 1.0.1
Free UWP PDF Viewer SDK 1.0
FUNDRAISER Crowdfunding Script 1.0
Bytescout BarCode Generator SDK 4.61.0.952
Jango Clone Script 1.0
GetOrgChart 2.4.0
iTech Car Sell Script 2.03
ByteScout PDF Renderer SDK 8.6.0.2911
Install Package IronOcr 4.1.1
Top Code
Library Management System 1.0
Extreme Injector 3.7
Human Resource Management CRM 1
Bus Booking Script 1.0.4
Skincare Management System 1.4
Online Resource Management system 0.99
Simple Hill-Climbing 1.0
Mini Paint Using Java 1.0
XSL template for JDBC Code generation 1.0
Notes Management 1.0
School Management Script 1.0.4
ChequePRO Cheque Printing writing System 1.0
JadeTower: Tutorial Code 1.0
PHPtravels 1.1
Lmure - Web Framework Made Simple 1.0
Top Rated
Get Random Record Based on Weight 1.0.0
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Sine Wave Using JavaFX 1.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Readymade MLM Software 2.02
Availability Booking Calendar PHP 1.0
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: 30
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: 30



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