Autarchy of the Private Cave

Tiny bits of bioinformatics, [web-]programming etc

    • Archives

    • Recent comments

    Python performance: set vs list

    15th August 2011

    Sometimes there is a need to be sure that no identifier is processed twice – for example, when parsing a file into a database, with file potentially containing duplicate records. An obvious solution is to properly wrap the DB insertion code into try…except block, and process duplicate primary ID exceptions. Another, sometimes more desired solution is to maintain a set/list of processed IDs internally, and check against that list prior to attempting the insertion of anything. So is it a set or a list?

    There are already quite a few internet resources discussing “python set vs list”, but probably the simplest while elegant way to test that is below.
    Read the rest of this entry »

    Share

    Posted in Notepad, Programming, Python | 1 Comment »

    List of free DNS services

    28th October 2006

    Information taken from: freedom.org.ru

    1. www.zoneedit.com; 5 names; A, MX, NS; mail forwarding, web forwarding
    2. www.everydns.net; 20 names; A, MX, NS; web forwarding, dynamic domains
    3. www.dnspark.com; 3 names; A, MX, NS; web forwarding, mail forwarding, backup MX
    4. www.domain-dns.com; unlimited names; A, MX; web forwarding, paid mail forwarding
    5. www.xname.org; no limit; A, MX, NS (I keep several domains there; quite good as for a free service)
    6. primaryns.kiev.ua (UA-IX only); unlimited names; A, MX, NS; primary only
    7. secondary.net.ua; unlimited names; secondary only
    8. ns2.trifle.net; unlimited names; secondary only
    9. FreeDNS.ws (suggested in comments; looks promising – I now have one domain there)
    Share

    Posted in Links, Web | 8 Comments »