rulu ruru

post Using online dictionary and regular expression to find nice domain names

December 27th, 2007

Filed under: links to remember, web, web 2.0 — starenka @ 16:49
Tags: , , , ,

I found a nice tool for those hunting for some cute “web 2.0″ domain names such as del.icio.us or last.fm. Sometimes you may stuck for couple minutes thinking about some kickass word but none would show up. This is the right time to get inspired with this cool dictionary with regular expression search. Getting the possible domain names list with such a dictionary is a cakewalk then. Examples?

.it:

^.{3,}it$

.us:

^.{3,}us$

.am:

^.{3,}am$

Those are just dumb searches matching any string equal or longer than 3 character before the TLD. Those searches will result in hundreds or thousand matches so you might be better specifying the word by some more modifiers or at least specify the part of speech (pronouns, adverb etc..).

Feel free to stick nice domains you found (and better registered ;) ) into comments. Good luck!

Popularity: 17% [?]

post Measuring time needed to recieve content of given URI(s) with Python

December 26th, 2007

Filed under: other, programming, python, web — starenka @ 22:55
Tags: , ,

My hosting was damn slow today so I decided to yell at some poor guys out there to get some speed. It’s allways better to have some arguments on you so I thought that showing some numbers would be fine. To demonstrate how slow my domain is I decided to compare the time needed to obtain my page with time needed for getting page from Seznam.cz. You are probably starting to laugh at me just now. Why should I do this for? It’s comparing like comparing elephant’s poo with safe water. No match? Correct :> I will share the code nevertheless just for fun. So let’s get started, shall we?

We need a simple function which handles the HTTP request:

def fetch_page(url):
    import urllib2
    try:
        f = urllib2.urlopen(url)
    except urllib2.HTTPError, e:
        print e.code
        sys.exit()
    except urllib2.URLError, e:
        print e.reason
        sys.exit()

And now we just loop thru URIs within argv and run the Timer.repeat() method on each one. Note that we have to import the fetch_page function in setup argument in order to use it further in the stmt. The repeat method calls timeit method with number of iterations specified as it’s second argument and repeats this first_argument*times. The minimum value of all measured is printed out.

if __name__==‘__main__’:
    import sys
    if len(sys.argv)>2:
        from timeit import Timer
        for a in range(1,len(sys.argv)):
            print sys.argv[a]
            print ‘- min: ‘+str(min(Timer(setup="from __main__ import fetch_page", \                            stmt="fetch_page(%s)"%(‘"’+sys.argv[a]+‘"’)).repeat(3,3)))+’s\n
    else: print \nERR:lack of parameters\nusage:\n+sys.argv[0]+\
            ‘ http://www.first.uri [http://www.second.one] …. [www.n-th.uri]’

Popularity: 12% [?]

post Hody, hody do domény…

December 26th, 2007

Filed under: other, web — starenka @ 14:53
Tags: , , ,

Nikdy jsem nespekuloval s doménama. Proč taky? Dneska jsem si ale zaspekulovat chtěl a byl jsem nemile překvapenej, že doména druhého řádu musí mít minimálně 3 znaky. Škoda. Moje univerzální domena na.net tedy padá. Stejně tak jako bo.br, fo.fr, aspir.in (obsazeno), voco.de (obsazeno),lico.us (obsazeno zcela jistě Trautenberkem) a další propečené doménky. Ale to nevadí. Narazil jsem na pár zajímavejch domén, který ještě obsazený nejsou:

  • slivovi.ca - bez komentáře
  • (pod | dem).zakal.it - smrtelné kombo spolu s (zazehnam | prodam | jakna).kocovi.nu, ale italské TLD vůbec skrývá obrovský potenciál…. :)
  • postim.se.net - máme přece Vánoce, ne?
  • kdyjedeb.us - reality každýho dne
  • zeresry.biz - pro loosery nebo vegetariány
  • delam.bz, jsem.bz - pro včelaře
  • delam.be, ofce.be - pro sheep shaggery
  • paroubek.jp (je příšera, ješitný páprda, jiný politik, je prase (atd)) - pro realisty
  • ziju.sh - pro linuxáře
  • krle.sh - pro Sašu a vůbec…
  • slepy.io - i božstvo páně Prattchetově potřebuje propagaci
  • matickar.us, mati.ckar.us - zvláště pro Karlovarsko
  • ochra.nu - domény třetího řádu jako nasad.ochra.nu, pouzivej.ochra.nu a jiné  budou jistě píliřem kampaně Ministerstva zdravotnictví za bezpečný sex, doporučoval bych ješte doplnit o (nechci).rakovi.nu, (chrante.sklovi.nu)
  • davaj.info, sazej.info - nejlíp je rozject projekt s trapným jménem, ne?

Stejně sem jich určitě pěknou řádku vynechal. Tak doufám, že mi je hned vyfo.uk.nete (taky volná) a až je budete za draho prodávat, budete vědět, kdo vám tak pěkně poradil ;)

 

 

Popularity: 15% [?]

post Disabling HTML entities in FCKEditor

December 25th, 2007

Filed under: javascript — starenka @ 13:56
Tags: , , , ,

What drives me crazy about FCKEditor is the fact, that by default it transforms characters to entities. For example š is in the source code represented as š .This sucks most when you are editing the source of the post previously written in WYSIWYG mode. It’s really hard to navigate thru such hordes of &s and it makes you pull your hair (if any).

Here’s a simple fix, tho. Locate your config file fckconfig.js in your FCK directory (if you’re using Wordpress with Dean’s FCKEditor For Wordpress it should be something like /wp-content/plugins/fckeditor_for_wordpress/fckeditor/fckconfig.js) and change these lines to:

FCKConfig.ProcessHTMLEntities = false ;
FCKConfig.IncludeLatinEntities = false ;
FCKConfig.IncludeGreekEntities = false ;

Popularity: 40% [?]

post XSS na Seznamu

December 25th, 2007

Filed under: xss — starenka @ 11:59
Tags: , ,

Dneska jsem se na blogu meta dočetl o možnosti injekce hledaní na Seznamu. Pěkné. To co mě ale vyvedlo z míry je fakt, že když jsem kdysi zkoušel klasiku ve stylu

<script>alert(‘Baf!’)</script>

vše se pěkně převedlo a stále ještě převádí na entity. Tudíž jsem tehdy usoudil, že se prostě speciální znaky převádí na enitity a nedá se už moc dělat. Jenže opak je pravdou. Myslím že vývojářům na seznamu opět trošku nesedl regularní výraz a nám klidně projde i něco ve stylu:

<script type="text/javascript">alert("BUBUBU!")</script>

Ozkoušet se samozřejmě dají i jiné tagy například <marquee>, <font> atd… Nevěřící Tomáš může klikat zde.

xss - seznam.cz

Popularity: 12% [?]

Next Page »
ruldrurd
© starenka 2oo7, cute alien monster by noizcut, original theme by Laurentiu Piron - customized by starenka | proudly powered by WordPress