Archive for 'Software' Category

Next Page »

A simple and flexible GA loop in Python

16 January 2008

Yes, yes, I know, Python. I just been playing around to see how much you can squeeze out of it and I am very surprise of how elegant it can be. Just and example. I am pretty sure you have written way to many customize GA loops that you need to tweak every now and then, if so take a look at the Python version below.

def evolve(self):    """Implements a simple evolution loop"""    func_calls = []    func_calls.append(self.evaluate)    if ( self.env.selection!=None ) : func_calls.append(self.selection)    if ( self.env.crossover!=None ) : func_calls.append(self.crossover)    if ( self.env.mutation!=None ) : func_calls.append(self.mutate)    if ( self.env.replacement!=None ) : func_calls.append(self.replace)    [f() for i in range(self.env.length/5) for f in func_calls ]
    self.evaluate()    return (self.best_fitness,self.best_individual)

Where the self.env object just contains references to the methods implementing each of the functionalities generically implemented in self.evaluate, etc.. Pretty sleek.

No Comments »

Some notes on Python profiling

10 January 2008

You may find some notes about Python profiling on my DITA blog.

No Comments »

Wordpress and your iPhone

11 October 2007

WordPress iPhone / Mobile Admin adapts the WordPress admin UI to be more friendly to mobile devices, specifically phones.

No Comments »

Reset the MBR using Linux

21 September 2007

Here is a simple trick if you need to clean it. Recently I needed to clean some Rocks Clusters node’s HD to allow it to reinstall

dd if=/dev/zero of=/dev/HD count=1 bs=512

This avoid the computer to try to boot from the hard drive. However, if the node was already on the cluster, you need to run

# insert-ethers --remove="compute-0-1"

To remove it from the cluster, where “compute-0-1″ is the name of the node in cluster. Then, you can start insert-ethers, and boot the node and it will start reinstalling itself.

No Comments »

Sync your iCal and Google Calendar

22 August 2007

Did you ever wanted to sync your iCal and your Google Calendar? I just ran into Spanning Sync. I have been testing and it is definitely worth it if you need such capabilities.

Synchronize Google Calendar and Apple iCal. Share calendars between multiple Macs. Share calendars with your coworkers, family, and friends. And while you’re at it, connect Google Calendar to your iPod, mobile phone, and other devices.

No Comments »

E2K blog has moved

2 August 2007

The E2K blog has moved. You can reach it at

http://dita.ncsa.uiuc.edu/e2k/

No Comments »

HTML to Wiki converter

3 June 2007

Seapine {Labs}::HTML to Wiki Converter is an online converter of HTML formated code into a Wiki (MediaWiki) sintax. Very convenient if you want to add already formated material.

No Comments »

Zotero now talks to MS Word

28 April 2007

Zotero has released a first integration plugin for MS Word. Pretty useful if you need to move your bibtex into a Word document.

No Comments »

Some Examples of PCA in R

24 April 2007

You may find some notes about how to do PCA in R in my DITA blog.

No Comments »

Eclipse Metrics Plugins

19 April 2007

I have run into a couple of plugins for Eclipse to compute several measure about the code you have in your project. The one I currently use is Eclipse Metrics Plugin.

This Eclipse plugin calculates various metrics for your code during build cycles and warns you, via the Problems view, of range violations for each metric. This allows you to stay continuously aware of the health of your code base. You may also export the metrics to HTML for public display or to CSV format for further analysis.

If you may also like to test Metrics, this one with some viz about the software. It is much more flexible and complete than the previous one.

No Comments »

Next Page »