![]() |
Sign Up! | Tags | Domains | Statistics | Options | Advanced Search |
blogs.sun.com » Kool Aid Served Daily - Oct 9, 2008
So Justin suggested: try template = """"%(started)s - %(ended)s: %(title)s for %(company)s %(jobdesc)s""" print template % row I'm trying to capture what he put in, the line wrap on the first 'template' line is …
Also tagged: programming
blogs.sun.com » 素心如何天上月 (Yong Sun's Blog) - Oct 8, 2008
Spectral Clustering is the last topic of our NLP learning group activity, hosted by Feng. Here is my homework, you may refer to this tutorial for the symbols used in this simple program. While I still have no idea …
Also tagged: general, nlp, spectral clustering
habrahabr.ru » Хабрахабр: - Oct 8, 2008
Оригинал
blogs.sun.com » 素心如何天上月 (Yong Sun's Blog) - Oct 8, 2008
It's fairly easy to run k-means clustering in python, refer to $pydoc scipy.cluster.vq.kmeans (or kmeans2). While the initial selected centers affect the performance a lot. Thanks Feng Zhu, that introduced k-means++ to …
blogs.sun.com » Kool Aid Served Daily - Oct 8, 2008
I played about in the interactive Python shell trying to understand the data and how to tie it together. I learned about the difference between exec and eval for Python. I learned about capturing stdio and stdout for …
Also tagged: blogging
blogs.sun.com » Kool Aid Served Daily - Oct 8, 2008
So I added some code to my simple script that wasn't in the Perl: for line in open(sys.argv[1]): line.lstrip() And my intent was to strip out all of the leading spaces. I didn't have to, but I created a simple test …
Also tagged: programming
blogs.sun.com » Kool Aid Served Daily - Oct 7, 2008
My first pass at a Python version of An old perl script reveals my inner C programmer. I've restricted the program to the simple version which does not generate the column name as local variables - first I want to get …
Also tagged: programming
blogs.sun.com » Kool Aid Served Daily - Oct 7, 2008
I'm pretty used to referencing variables inside print blocks in Perl. I'm not at all comfortable with Python. I have a block of code that I want to change the 'onhg' to come out of a config file. So I set up a scratch …
Also tagged: programming, gatekeeping
firebirdnews.org » Firebird News - Oct 7, 2008
After a long interruption I’m back at Firebird and kinterbasdb and I’m just also back at character set troubles, my favorite pastim My test setup is WinXP, Firebird 1.5.5, Python 2.5.2 and kinterbasdb 3.3pre …
Also tagged: firebird, worth reading, technical articles
habrahabr.ru » Хабрахабр: - Oct 6, 2008
На сайте ThisWeekInDjango.com выложены 10 скринкастов по созданию сайта с использованием Django 1.0. Материалы доступны для скачивания. У меня получилось более 800 мб. mov файлов. Уроки на английском, но язык …
Also tagged: screencast, django, cmf, уроки