Python HTMLParser and Vkontakte randomizer

Finally I’ve finish my first “program” on Python. The task is to parse people’s id from web page where reposter’s id stores. Main problems were: web-page code is loading dynamically so there is no simple way to get ids from it, the best solution was – save section where id stores in .html file I wanted to catch id + nickname but list of pairs was not a good decision when random works I can’t create a list which stores all found ids, it wiped every iteration I have some unsupported chars in nicknames and they’d broke iteration I’ve get a lot of junk while scan .html so I used regex to avoid them I can’t add various ids in list withoutShort Read more…

PowerShell randomizer

Интересная мутотень, надо не забыть. Пригодится, споры решать. PS C:\> Get-Random -Minimum 1 -Maximum 30 28 Из файла: Get-Content C:\random.txt | Get-Random PowerShell randomizer http://technet.microsoft.com/en-us/library/hh849905.aspx Read more…