Slideshow shadow

How do I configure the ipython notebook?

July 4, 2013 in Python, Recipes by Marco Zuliani

The configuration of the ipython notebook is contained in the file /Users/userName/.ipython/profile_default/, where userName indicates the name of your home directory. If this file is not present, you can create
read more

How do I duplicate the permissions of one file to another file from Mac OS shell?

February 18, 2013 in Mac Tips, Recipes, Shell by Marco Zuliani

Like this: chmod `stat -f %A srcFile` dstFile The same command can be used also on folders. Note that the option –reference discussed here will not work on Mac OS.
read more

Is there a python equivalent of the matlab command keyboard?

February 16, 2013 in Python, Recipes by Marco Zuliani

Sort of. Wherever you want to stop the execution of your code to have access to the python prompt (and to the current local variables) just insert the lines: To
read more

How do I list the combinations of a set in lexicographical order?

December 1, 2012 in Math, Matlab, Octave, Recipes by Marco Zuliani

Suppose we have a set composed of elements. Our goal is to list all the possible ways in which we can choose elements in a lexicographical order. Intuitively speaking, we
read more

What is the recommended shebang line for Python?

November 30, 2012 in Coding, Python, Recipes, Shell by Marco Zuliani

#!/usr/bin/env python

How do I solve the “unrecognized project; missing plug-in?” error in NetBeans?

October 24, 2012 in Glassfish, Mac Tips, NetBeans, PrimeFaces, Recipes, Windows Tips by Francesco Zuliani

A NetBeans project is basically a standard folder with a nbproject folder inside it. When opening a project using the Open Project dialog window, NetBeans should be able to automatically
read more

How do I install the cocos2D templates for Xcode?

October 13, 2012 in cocos2D, iOS, Recipes, Xcode by Francesco Zuliani

cocos2D is an open source framework for creating 2D games on a variety of different platforms. The Mac OS X / iOS porting includes some useful templates for Xcode providing
read more

How do I search a set of files and batch process them?

August 11, 2012 in Content Type, Python, Shell, Tutorials by Marco Zuliani

Let’s consider the following scenario. You have a folder containing, amongst the others, a specific subset of files to which you want to apply a command and collect the output
read more

How can I add Facebook sharing in Safari 6?

August 9, 2012 in Browsers, Mac Tips, Recipes, Safari, Software by Francesco Zuliani

Share with Facebook is a small extension that adds Facebook Sharing in Safari 6. Once installed, it will display a button with the Facebook logo in the browser toolbar. Tip:
read more

Google Chrome is displaying a blank page icon in the address bar when I visit a webpage. What happened?

August 5, 2012 in Browsers, Chrome, Mac Tips, Recipes, Windows Tips by Francesco Zuliani

Starting from version 21.0.1180.57, Chrome is displaying a blank page icon in the address bar that looks like this: This is NOT a bug, but just a new feature introduced
read more