Python.h: No such file or directory

Using build configuration of libxslt 1.1.26 Building against libxml2/libxslt in the following directory: /usr/lib src/lxml/lxml.etree.c:4:20: fatal error: Python.h: No such file or directory compilation terminated. error: Setup script exited with error: command ‘gcc’ failed with exit status 1 If you get the above error, it means python-dev is not installed Run sudo apt-get install python-dev

Unrecognized attribute ‘targetFramework’ when deploying asp.net 4.0

When you deploy an application in IIS 7, ensure that the Application Pool is set to one with ASP.NET 4.0. By default, ours was set to 2.0. If you have already setup your website, then go ahead and click on Application Pools on the left pane. Then click on the Pool where the application is, …

iOS 5 OpenFlow tweaks

Posted in Mobileserene

Openflow is an open source library that implements an iTunes style cover flow. [http://apparentlogic.com/openflow/] When iOS5 was released, though, it started looking funny – the covers were coming in from the front instead of the back. The perspective was completely off. This can be fixed with a few tweaks outlined at http://stackoverflow.com/questions/7686506/how-can-i-make-openflow-work-correctly-in-ios-5-0 Specifically the following   …

OSX Lion default python v 2.6

292331-os-x-lion

Posted in serene

OSX Lion ships with python 2.7 as the default, but there is a way to make it use 2.6 by default. The following was retrieved from http://stackoverflow.com/questions/6998545/how-can-i-make-python-2-6-my-default-in-mac-os-x-lion $ man python  $ which python /usr/bin/python  $ python -V Python 2.7.1  # # temporarily change version #  $ export VERSIONER_PYTHON_VERSION=2.6 $ python -V Python 2.6.6  $ unset VERSIONER_PYTHON_VERSION …

PhpMyadmin #2002 Cannot Log In To MySQL Server

phpmyadmin

Posted in serene

If you get a “#2002 Cannog Log In to MySQL Server” error from PhpMyAdmin Try changing the “localhost” to “127.0.0.1″ in config.inc.php in the root directory

Embedding Custom Fonts in iOS [iPhone, iPad]

Posted in digitalfractalMobileserene

Though iOS 4 comes with a variety of fonts, you may want to include additional ones for an application. Recently, we had to include Arial Black in our UIWebView for a card viewer application. Here is how: You drag the *.ttf file into the Resources folder Add a row to the *-info.plist file called “UIAppFonts” …

Android requires compiler compliance level 5.0 or 6.0. Found ’1.4′ instead

Posted in digitalfractalsereneTech

In Eclipse, you may run into the following error while developing Android apps: Android requires compiler compliance level 5.0 or 6.0. Found ’1.4′ instead.  Please use Android Tools > Fix Project Properties. The fix to this is to right click on the project, go to project properties, and under java compiler set it to 1.6 …

Crystal Reports Web Portal

Posted in digitalfractalenterpriseserene

We just began working on a web portal for crystal reports for a large company. The data warehousing has already been completed. The web portal will eventually include other tools the company currently uses but are not centrally accessible – i.e. dispatching contractors is still done on excel spreadsheets. The reporting services will make it …