Skip to Content

develCuy's blog

by Fernando Paredes García


HOWTO ...

HOWTO phplua + PHP 5.2 on Ubuntu

Lua is an embeddable scripting language. If you are trying to embed it in PHP follow this instructions that may help you:

$ sudo apt-get install phpize liblua5.1-0-dev 
$ git clone git://repo.or.cz/phplua.git src
$ cd src/
$ phpize
$ ./configure

At this point you are almost done, BUT please edit the file Makefile and change the line:

LUA_SHARED_LIBADD = -llua

by:

LUA_SHARED_LIBADD = -llua5.1

Then is time to finish cooking:

$ make
$ sudo make install

Almost done, do a test:

<

pre>
$ make tests #all will fail, that is fine by now


HOWTO Apache 2 + Lua 5.1 + FastCGI in Ubuntu

Install basement

$ sudo apt-get install apache2-mpm-worker liblua5.1-0-dev
$ sudo apt-get install libfcgi-dev libapache2-mod-fcgid

Install Luarocks

Download latest version from: http://luarocks.org/releases/, extract it, open a terminal and do a "cd" into its directory, then:

$ ./configure --with-lua-include=/usr/include/lua5.1/
$ make
$ sudo make install

Install WSAPI

$ sudo luarocks install wsapi-fcgi

Configure Apache


HOWTO recordmydesktop+jack in Ubuntu Karmic

If you are an screencaster, for sure you know that there are not much options to grab your desktop + microphone at the same time. Perhaps you have tried some java programs, or simply switched back to windows and used a virtual machine. Too complicated!

Hopefully, there is still an opportunity: recordmydesktop+jack. I will not describe how to install jack here, sorry, google is your friend :)
But once you have jack up & running, do the following:

Download sources
$ apt-get source recordmydesktop

Install development dependencies
$ sudo apt-get build-dep


Howto Install SK1 in Debian Sid

Yes I'm still alive and working on SLPOR 2008, reason for
troubles editing the banner design donated by Proyect-One which was in AI.
I've tried several programs, including SK1 but got into troubles, here
howto install in debian sid:
$ sudo apt-get install tk8.5 tcl8.5 python-liblcms zenity python2.4
$ sed "s/python /python2.4/ " /usr/bin/sk1 > /tmp/sk1 && sudo mv /tmp/sk1 /usr/bin
$ rm -rf /tmp/sk1 && sudo chmod 755 /usr/bin/sk1


HOWTO Screencasting from console with sox and ffmpeg

I'm consternated with my Debian sid, I can't capture my screen with xvidcap or istanbul anymore, marvil told me that they work in Ubuntu, why not in Debian?

It was a pain the ass to research for a good an usable solution for me, because I have an old laptop CPU(Centrino 1.8Ghz), but 2 weeks later, here is the best solution I found at the moment. Sox is a "Swiss army knife of sound processing" with sound recording capabilities and ffmpeg is a "multimedia player, server and encoder" with screen capture capabilities.

Screencast: Howto install Fivestar Multiaxis and Karma hand up&down

Video thumbnail. Click to play
Click to Play
Video only demonstration. References: http://drupal.org/node/213967#comment-743009 http://drupal.org/node/211803#comment-742985

Access Visual Foxpro Tables(Vfp Dbf) from Linux

It is one of my first posts in english(recovered from: http://www.linuxforum.com/forums/index.php/topic,137025.0.html): I don't know if it is new, but today, alfer a large week of intensive research, finally i had discover a way to access visual foxpro databases directly from linux. What do you need? download, compile and install CLIP from http://sourceforge.net/projects/clip-itk/ then put the vfp table into the same directory of the next script:

file: testdbf.prg

use dbftable
list columnname


Drupal API: Javascript Startup Guide

"There are three main difficulties that an inexperienced developer faces when trying to understand JavaScript as used in Drupal:
  1. The lack of documentation,
  2. The OOP style of programming,
  3. The confusion between all the different elements and API involved
"
Complete article at Drupal API

Blessings!


Powered by ScribeFire.


HOWTO install hp1020 for CUPS on Debian Lenny

Update: Don't use this method any more, please install hplip instead, and make sure to remove foo2zjs and hannah, because they conflict with hplip.

  1. Install CUPS
    # apt-get install cups
    # adduser youruser lpadmin
    # adduser youruser lp
  2. Follow instructions from http://foo2zjs.rkkda.com/ to install the driver
  3. Add your printer
    • a. http://localhost:631/ (Web-based CUPS GUI)
    • b.
      # apt-get install foomatic-gui
      $ foomatic-gui &
    • c. Add your printer with foomatic-gui like here

Blessings!


HOWTO Debian(testing) to Ubuntu(dapper) Know Bugs

Problem 001:
Can't get Non-US Keymap in X
1. Checking:
/etc/X11/xorg.conf
Option "XkbLayout" "es"
/var/log/Xorg.0.log:
(WW) Couldn't load XKB keymap, falling back to pre-XKB keymap



Syndicate content