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
VB.Net PDF 4.4.7
SuiteCRM Survey Rocket Plugin 1.0
Airbnb Clone Script | Airbnb Clone 4.3.1
IP2Location Geolocation Database 2018
ODBC Driver for Salesforce 1.5
Rapid PHP 2018 15.0
Bytescout BarCode Generator SDK 4.70.0.981
Data Puppy Lite (32-bit) 1.0
ProZ clone script 1.0.3
VideoCap Live Streaming SDK ActiveX 8.5
Magento Web to Print 1.0
dbForge Data Compare for MySQL 5.4
dbForge Query Builder for MySQL 4.3
ODBC Driver for NetSuite 1.2
Rapid CSS 2018 15.0
Top Code
VB.Net PDF 4.4.7
Fuzzy k means 1.0
Mann-Kendall Tau-b with Sen's Method (enhanced) 1.0
OpenCV Delphi wrapper 1.0
Online Food Ordeing System 1.0
Etsy Clone Script v 2.0
Low Pass Butterworth Filter 1.0
AJ Matrix Pro - Multi Level Marketing Software 1
ABBYY FineReader Engine 9.0
Facet API 7.x-1.0-beta8
Advance Auto Index-DjAmolWap 10.4
Transmission line parameter Analysis 1.0
Djamolwap 13
Rapid PHP 2018 15.0
Multilayer Perceptron Neural Network Model and Backpropagation Algorithm for Simulink 1.0
Top Rated
Output Messenger 1.8.0
Aliexpress Clone- Ec21 Script 1
Indiegogo Clone 3.0
Online Food Ordeing System 1.0
PHP Image Resize Script 1.0
Best Spotify Clone 1.0
Get Random Record Based on Weight 1.0.0
Travel Portal Script 9.29
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.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: 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