Blog

Cross Compile a Go Project With CGO Dependencies Using Zig

#paw#fyne#go#zig#cross-compile

Cross compiling with Go is usually straighforward: set GOOS and GOARCH environement variables and then go build. Unfortunately for projects that uses CGO dependencies things can be harder. Depending on the target architecture it requires to install a C compiler like gcc, clang or x86_64-w64-mingw64-gcc and configure additional environment variables like CC along with the CGO_ENABLED=1 one. In this post we’ll see how to cross-compile the Paw project for linux, macOS and Windows using Zig without the need to install additional complilers.

Read more →

March 19, 2022

Draw Arc Text With EaselJS

#Javascript#EaselJS#HTML5

Today I’ve released a first version of easeljs-arctext, an EaselJS extension that allows drawing of text along arc path.

Read more →

July 27, 2012

Ubuntu and Ldap Force Authentication During a Bind Request

#Linux#Ubuntu#Ldap

Default LDAP installation on Ubuntu server allows anonymous binding and directory access. If you want avoid this behavior you may set the olcRequires to authc using the ldif format with the following command:

Read more →

May 28, 2012

Drupal: Speed Up Simpletest Tests Usign Live Database

#Drupal#PHP#Simpletest

If you want to speed up Drupal Simpletest bootstrap a simple trick is to use the live database instead of the sandbox enviroment created by Simpletest.

Read more →

April 5, 2012

Telecom Italia Is Using Ortro

#Ortro#PHP

I’ m happy to announce Ortro is also used in Telecom Italia now. An older version of Ortro (updated to the latest version right in these days) was already used in such departments of Telecom Italia as an experimental software for application monitoring. But in the last time I had a confirm Ortro is, as I like to define it, mainly a “Framework” helping you to solve the daily problems encountered in monitoring and job activities.

Read more →

November 22, 2009

Caching Dynamic Content Using Nginx

#Nginx#Performance

If you need a static version of your dynamic web application maybe you may interested to configure Nginx as reverse proxy cache so it can cache also dynamic contents (pages with ? in the URI). Well, if this is your scenario, let’s go to configure Nginx.

Read more →

September 21, 2009

Using Pear Auth As Zend Auth Adapter

#Pear#Zend#PHP

If you use both Pear and Zend framework you may want to extend the Zend_Auth adapters to use all the containers shipped with the Pear::Auth package. Let’s go to create the class implements the Zend_Auth_Adapter_Interface starting from the Zend_Auth_Adapter_Ldap class.

Read more →

July 15, 2009

Execute Sql Script From a File Using PHP

#PHP#Tips

The code below allows to retrieve and execute all SQL statements defined in a SQL script file removing all comments.

Read more →

June 4, 2008

Execute Commands on Folder and Files Containing Spaces

#Tips#Linux

On Linux or Unix systems perform recursively a command on items might contain white space, quote marks, or backslashes can be a problem when using find | xargs combination.

Read more →

May 8, 2008