May 26

This post show you the few needed commands to create a new branch in your colaborative repository:

  1. Clone the repository you want to branch
  2. cd repositoryname
  3. git push origin origin:refs/heads/branchname
  4. git checkout --track -b branchname origin/branchname

Related Posts

May 22

Some months ago I installed a git repository in our Mac server to manage all our projects, but now we are migrating to another machine (another Mac). I think that it has taken me more time to set up all system this time than the first one, I couldn’t remember how to do it.

It is not going to happen next time! So I’m writing this small manual to not forget any step becouse I have had several problems configuring gitosis, a tool that helps hosting git repositories in an easy and safe way.

This how-to is an adaptation of gitosis readme applied to Mac OS.

Continue reading »

Related Posts

May 19

gitlogo

Download git source code from project’s home page.

Unzip the tar file and open a Terminal app to type:

./configure --prefix=/usr
make
sudo make install

Now, git version control system is fully working.

Related Posts

May 18

This post describes step by step how to install Trac using MacOS X Leopard’s Apache and mod_python.

trac logo

First of all, you must install mod_python. I have written a post in this blog explaning how. There are options like WSGI or FCGI modules, but I have chosen this one.

After this initial configuration, you must download and install Trac. You can do it by downloading this application from its home page but I’m going to choose the easiest way.

Mac OS X includes easy_install tool that lets us to automatically download, build, install python applications.

Continue reading »

Related Posts

Jan 26

I’ve been trying to run python scripts using Apache for a long time but finally I could install mod_python into our Mac Mini.

You can download mod_python from Apache web page:

http://httpd.apache.org/modules/python-download.cgi

Uncompress the source code and execute the configure script.

./configure --with-apxs=/usr/sbin/apxs

 Then you have to patch the src/Makefile as follows:

  1. Add  -arch x86_64 -arch ppc -arch i386 at the end of LDFLAGS variable
  2. Add -arch x86_64 -arch ppc -arch i386 at the end of  CFLAGS variable
  3. Modify mod_python.so objective as follows:
    Add -Wc,”-arch x86_64″ -Wc,”-arch ppc” -Wc,”-arch i386″ after the -c
    In my situation: $(APXS) $(INCLUDES) -c -Wc,”-arch x86_64″ -Wc,”-arch ppc” -Wc,”-arch i386″ $(SRCS) $(LDFLAGS) $(LIBS)

Then you can compile and install this module:

make
sudo make install

In order to test that mod_python works you can add the following lines at httpd.conf

<Location /mpinfo>
  SetHandler mod_python
  PythonInterpreter main_interpreter
  PythonHandler mod_python.testhandler
</Location>

Access to http://localhost/mpinfo and get this report:

Python Info

Related Posts

Jan 22

I don’t know why PHP is not enabled by default at Leopard’s Apache.

To enable it you must uncomment this line from /etc/apache2/httpd.conf

LoadModule php5_module        libexec/apache2/libphp5.so

And that’s all! You only need to turn on Web Sharing at System Preferences.

System Preferences

If you want to test that PHP works properly, you can write a file called, for instance, info.php which contains this code:

<?php
phpinfo();
?>

Locate it into:

/Library/WebServer/Documents

And finally, access to http://localhost/info.php using your favorite web browser to test that you get the php report.

 PHPInfo

Related Posts

Oct 24

Here there are some resources used in the workshop:

Related Posts

Jul 02

Default MySQL admin user: root
Defalut admin password: blank

Related Posts

Jun 30

CITA 2008

I’m going to be at Salamanca next 3 days.

My boss mislead me to teach a course about Moodle development, so tomorrow evening I’m getting a train to Madrid. I’ll be out few days but I’ll upload all stuff (slides, code, etc) to this blog ASAP. My speech is on Wednesday, today is Monday, I haven’t started preparing it, poker game tonight, mmmm…. yes, ASAP. ;)

I’m going to explain most relevant Moodle libreries, such weblib.php or dmllib.php, modules architechture, XMLDB and capabilities. I’m going to use newmodule to make an introduction and our Social Bookmarking activity as a case of study. I supose I’m going to replace some lines of code by TODOS and ask to the public to fill the gaps.

Related Posts

May 14

I have a problem: I don’t have enough mp3’s in my laptop. I use to listen music while I’m programing and I’m getting bored of them. So during last 3 or 4 months I’ve been listening music from youtube or last.fm.

Less than a month was enough to me to realize that I was losing too much time every day choosing next song so I tried something longer, I listening conferences and speeches.

Last week I made a post about git which contains a video that I re-watched after some months (Julipedia’s recommendation)

This time I dedicate this post to David and Ferran (DFWiki creators) who are designing and developing the new Moodle API and Webservices.

Here is a YouTube video from a Google TechTalk about designing APIs. Joshua Bloch is the speaker, the Principal Engineer at Google. He also led the design of numerous Java platform features as Java Collections Framework, java.math package and the assert mechanism. This guy knows about what is talking about…..

Related Posts