Wednesday, July 30, 2008
PostgreSQL - Firebird comparison - updated
read more | digg story
Firebird Intl Conference (Italy) - Timetable is online
read more | digg story
Setting up ColdFusion and Firebird
read more | digg story
Versioning monitoring tables in Firebird 2.1/2.5
read more | digg story
Friday, July 25, 2008
now I can use svn repository from google code or from flamerobin
and then push it to github or keep it local
An nice guide for gnome developers is here
$ vi README
$ cat README
Readme modified
$ git status
# On branch master
# Changed but not updated:
# (use "git add
#
# modified: README
#
no changes added to commit (use "git add" and/or "git commit -a")
$ git commit -a
Created commit d47c527: test modifications
1 files changed, 1 insertions(+), 0 deletions(-)
$ git push origin master
Counting objects: 5, done.
Writing objects: 100% (3/3), 254 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@github.com:mariuz/firebird_scripts.git
145b8ed..d47c527 master -> master
$ mkdir firebird_scripts
$ cd firebird_scripts
$ git init
$ touch README
$ git add README
$git commit -m 'first commit'
Created initial commit 145b8ed: first commit
0 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 README
$ git remote add origin git@github.com:mariuz/firebird_scripts.git
git push origin master
The authenticity of host 'github.com (65.74.177.129)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,65.74.177.129' (RSA) to the list of known hosts.
Counting objects: 3, done.
Writing objects: 100% (3/3), 202 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@github.com:mariuz/firebird_scripts.git
* [new branch] master -> master
So here is my repository
Thursday, July 24, 2008
moving apache php hosts to nginx (scaling plan)
nginx can process php files from cakephp with fastcgi and i have wrote about the first test i have made at home for it (tested and worked the cake 1.2 and fastcgi on an ubuntu hardy system)
But to be safe we can keep apache and in first stage we use nginx as frontend for images and for php apache will handle the request
And if all ok we can switch later to an full nginx system without apache .(in part two)
Also nginx can be used as an load balancer (for content delivery) so in future if is needed we can add more servers for php serving
Think there will be more nginx servers but this only if there is a need to spread the load to many servers
http://live.gnome.org/GitForGnomeDevelopers
at the moment
$git clone git://git.videolan.org/vlc
$ cd vlc
$ sudo ./bootstrap
$ ./configure --mandir=/share/man --build=x86_64-linux-gnu --enable-maintaner-mode --enable-release --prefix=/opt/vlc --enable-libtool --enable-fast-install --disable-update-check --disable-gnome --disable-gtk --disable-familiar --disable-fb --enable-ggi --enable-sdl --enable-esd --enable-mad --enable-arts --enable-alsa --enable-jack --enable-pulse --disable-lirc --enable-a52 --disable-aa --enable-dvbpsi --enable-mozilla --disable-kde --enable-mp4 --enable-dvb --disable-satellite --enable-ogg --enable-vorbis --disable-shout --disable-wxwidgets --enable-qt4 --disable-slp --enable-flac --disable-skins --disable-basic-skins --enable-skins2 --enable-freetype --enable-mkv --enable-speex --enable-caca --disable-live555 --enable-libmpeg2 --disable-fribidi --enable-cdio --enable-mod --enable-theora --enable-modplug --enable-gnutls --enable-ffmpeg --enable-ncurses --enable-smb --disable-gnomevfs --enable-bonjour --enable-mpc --enable-vcd --enable-vcdx --enable-notify --enable-debug --enable-twolame --enable-x264 --enable-faad --disable-zvbi --enable-telx --enable-mediacontrol-bindings --disable-x264 --disable-atmo --enable-alsa --enable-dv --enable-v4l --enable-v4l2 --enable-pvr --enable-svgalib --disable-dvd --without-dvdcss
$make ; sudo make install
$/opt/vlc/bin/vlc
Here is the script in svn
http://code.google.com/p/build-ffmpeg/source/browse/trunk/build_vlc_git.sh
Wednesday, July 23, 2008
Parent article: OpenSSH 5.1 released
Sure. Here are a couple of my hosts courtesy of ssh -o VisualHostKey=true:
+--[ RSA 1024]----+
| E. |
| . |
| . |
| ... |
| +So. . .|
| =.. .oooo|
| o.++oo= |
| o=+o. |
| .+. |
+-----------------+
+--[ RSA 1024]----+
|OO+ |
|Ooo. |
|oo.. |
|.o. |
| o.o S |
|. o . . |
| . oo |
| . Eo. |
| .. .. |
+-----------------+
$wget ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-5.1p1.tar.gz
$tar -zxvf openssh-5.1p1.tar.gz
$cd openssh-5.1p1
$ ./configure --prefix=/opt/openssh
$ make ; sudo make install
$ /opt/openssh/bin/ssh -o VisualHostKey=true localhost
Host key fingerprint is 3e:34:fc:3e:af:ff:33:dd:65:73:fc:db:33:e3:4b:18
+--[ RSA 1024]----+
| |
| |
| |
| . |
| S E . |
| o o o.=|
| o . . +*|
| o. ++=|
| o=o.o*B|
+-----------------+
Password:
Tuesday, July 22, 2008
Recommended update - Firebird 2.1.1
read more | digg story
Firebird SuperClassic - Another option
read more | digg story
Monday, July 21, 2008
here is an small howto
Before disabling
and after
$ip addr show lo
1: lo:
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
see no ipv6
so i have removed them
$sudo apt-get remove contact-lookup-applet deskbar-applet
Deskbar-applet is intended as a browser-like keyword-driven url bar.
You type a web address, or an email address, or a file name, or some
keyword then the arguments, and it shows a popup with possible choices
from there. Like 'Search google for foo'.
i can remove mtools
Read the main article with general idea http://www.jukie.net/~bart/blog/20070312134706
I have wrote an small php script for daily snapshots for /etc
Here how i use it on an nacked sistem
1.install git
apt-get install git-core
2. initialize /etc to be a git repo
cd /etc
git init-db
chmod og-rwx .git
3.ignore a few files
cat > .gitignore
*~
*.dpkg-new
*.dpkg-old
4.commit the current state
git add .
git commit -a -m"initial import"
then you can add an daily snapshot script or an after upgrade one (after dist-upgrade)
./git-snapshot-script.php
You can check the /etc status with
$sudo git status
in my case was
# On branch master
# Changed but not updated:
# (use "git add
#
# modified: php5/cli/php.ini
#
no changes added to commit (use "git add" and/or "git commit -a")
so i have made a new snapshot
./git-snapshot-script.php
/etc Backup for Mon Jul 21 18:51:19 EEST 2008Created commit a2b9112: snapshot Mon Jul 21 18:51:19 EEST 2008
1 files changed, 1 insertions(+), 1 deletions(-)
the police office jam
some coleague working with za bass, and the others [strike]playing[/strike] are happy around
after pulse audioremoval
now i can watch youtube with sound thank you
also what is left libpulse0 , if i remove it
then it will remove audacious and mplayer
I guess i can recompile them without pulse support
also i should remove pulse from ubuntu-desktop (there is one dependency somewhere)
remove all pulseaudio [it might break your system ...so please do it with care]
sudo apt-get remove pulseaudio pulseaudio-esound-compat pulseaudio-module-gconf pulseaudio-module-lirc libpulse-dev
or with synaptic hunt them down all packages that can be removed from the system
without breaking it too much
PulseAudio and Flash should be on top of the list
A quick resume of what the most important (IMHO) things users will get with the next Ubuntu release: Intrepid Ibex.
http://fabrizioballiano.net/2008/07/19/10-2-things-youll-get-with-ubuntu-810-intrepid-ibex/
Ubuntu Weekly Newsletter #100!
read more | digg story
Sunday, July 20, 2008
http://news.softpedia.com/news/Ubuntu-8-10-Alpha-2-Screenshot-Tour-89806.shtml
but i like the dark side of ubuntu studio ,
If you choose an dark theme at least choose a better theme like the one in studio
briliant idea to use memcache and have less hits to the php and database (expensive)
I guess 99% of time the hits will be requested from memcache and only the new pages will be created
and pushed in memcache
example.com/rest/request-> nginx -> memcache -> php+apc- > select * from employees
http://blog.kovyrin.net/2007/08/05/using-nginx-ssi-and-memcache-to-make-your-web-applications-faster/
Load Balancing & QoS with HAProxy
[Ed: and seems that nginx can be used like an proxy and load balancer , what next ? you can get rid of complex lvs ]Did you know that Flickr optimizes all of their pages to render in sub 250ms?
When you're fighting with response times, the worst thing you can possibly do is queue up another request behind an already long running process. Not only does the first request take forever, but everyone else must wait in line for it to finish as well! To mitigate the problem HAProxy goes beyond a simple round-robin scheduler, and implements a very handy feature: intelligent request queuing!
HAProxy Request Queuing
You can get similar functionality in Nginx directly with the 'Fair Proxy Balancer' plugin (EngineYard is rumored to be running it).Nginx and Memcached, a 400% boost!
seems another way to speed the request responseshttp://www.igvita.com/2008/02/11/nginx-and-memcached-a-400-boost/
Nginx, by default, comes prepackaged with the Memcached module, which allows us to bypass the Mongrel servers and talk to Memcached directly. Same hardware, and a quick test later: ~3,550 req/s, or almost a 400% improvement! Not bad for a five minute tweak!
Very efficient memory handling: it needs only 2.5Mbytes of RAM for 10000 inactive keep-alive connections.
try that with apache and php module , it will kill the server at so many requests
Seems that i can ditch apache now wihout problems from equation also lighttpd (that seems to be stalled and with more crashes and memory leaks)
Quote of the day about nginx web server :
I've moved two phpAdsNew ad servers, a fairly-busy Wordpress blog, the above-mentioned Drupal site and my own Drupal site from Apache2 into Nginx in the last week. Processor use has increased on the server, but critically the ongoing web+database memory use has come down by over 300MB. This means that the box hasn't gone into swap for a week (normally it was paging out every day), server response times are up and (because I'm also using APC to store Drupal's source files in memory) page download speeds are also up considerably.
Basically, it's saved a server.
http://code.google.com/creative/radiohead/viewer.html
Tips for configuring nginx for cake php
Here are the rewrite rules to use for nginx, seems that i will need to solve the img problems
location / {
root /var/www/cake/app/webroot;
index index.php index.html;
# If the file exists as a static file serve it
# directly without running all
# the other rewite tests on it
if (-f $request_filename) {
break;
}
if (!-f $request_filename) {
rewrite ^/(.+)$ /index.php?url=$1 last;
break;
}
here is my nginx config that you can take as example
http://github.com/mariuz/firebird_scripts/tree/master/nginx/nginx.conf
Linux 2.6.26 Kernel Benchmarks
read more | digg story
Perl Catalyst and Cloud Computing
read more | digg story
VMware exec says Windows days are numbered
read more | digg story
Apache, PHP and Firebird Performance Tuning
read more | digg story
Firebird 2.5 Alpha 1
read more | digg story
Linus Torvalds is remarkable, not only for being the technical genius who wrote Linux, but for then being able to inspire and lead an enormous team of people to devote their free time to work on the operating system and bring it to maturity. We sent Richard Morris off to interview Linus, and find out more.
and then they Wanking Walruses can cooperate with the masturbating monkeys from OpenBSD
"Torvalds yesterday described OpenBSD developers as "masturbating monkeys"."
http://www.theregister.co.uk/2008/07/18/linus_torvalds_digg/
yeah sorry about that , but i absolutely swear that it sounds better than audacius
I don't know maybe it writes directly to /dev/dsp or it uses alsa better
Yah and i fscking hate pulse-audio , nothing works , flash or other applications (audacious ...)
http://www.taltan.fr/post/2008/05/04/Pour-les-nostalgiques-de-XMMS-1XX-sous-Ubuntu-Hardy-Heron-804
Friday, July 18, 2008
Firebird 2.1.1 and Flamerobin 0.8.6 on Windows 2008 Server
here is the video , but is quite low quality video
Wednesday, July 16, 2008
Have you ever been interested in what extensions are available for Firebug? If yes, take a look at what I have found. Frankly, I was quite surprised how many Firebug extensions already exists out there.
- YSlow
- Firecookie
- FirePHP
- RainbowForFirebug
- Jiffy
- Firequark
- LiveCoder
- PixelPerfect
- FirebugCodeCoverage
- Firebug Net Panel History Overlay
- Fireclipse
- Chromebug
http://www.softwareishard.com/blog/firebug/list-of-firebug-extensions/
Tuesday, July 15, 2008
You must put full path to the UDF module when you declare the function
otherwise you will get something like
"Invalid token. invalid request BLR at offset 63. function SUBSTR is not defined. module name or entrypoint could not be found."
Thursday, July 10, 2008
http://blog.vlad1.com/2008/05/01/canvas-3d-extension-update/
and there is some doom 3d engine based on the canvas
http://canvex.lazyilluminati.com/83/play.xhtml
seems that in today snapshot 200807100630 are less bugs
TEST 1472/4227 [ext/interbase/tests/002.phpt]^MPASS InterBase: connect, close and pconnect [ext/interbase/tests/002.phpt]
TEST 1473/4227 [ext/interbase/tests/003.phpt]^MFAIL InterBase: misc sql types (may take a while) [ext/interbase/tests/003.phpt]
TEST 1474/4227 [ext/interbase/tests/004.phpt]^MPASS InterBase: BLOB test [ext/interbase/tests/004.phpt]
TEST 1475/4227 [ext/interbase/tests/005.phpt]^MPASS InterBase: transactions [ext/interbase/tests/005.phpt]
TEST 1476/4227 [ext/interbase/tests/006.phpt]^MFAIL InterBase: binding (may take a while) [ext/interbase/tests/006.phpt]
TEST 1477/4227 [ext/interbase/tests/007.phpt]^MPASS InterBase: array handling [ext/interbase/tests/007.phpt]
TEST 1478/4227 [ext/interbase/tests/008.phpt]^MFAIL InterBase: event handling [ext/interbase/tests/008.phpt]
Wednesday, July 09, 2008
Tuesday, July 08, 2008
In case you try the v4l-dvb from mercurial repository and winfast TV2000 xp global (seems to be suported if you look the cx88 card list but no sound in my case )
install v4l-dvb from source
$hg clone http://linuxtv.org/hg/v4l-dvb
cd v4l-dvb
make ; sudo make install
Then extract the firmware
v4l-dvb/linux/Documentation/video4linux/extract_xc3028.pl:
In order to use, you need to:
1) Download the windows driver with something like:
wget
http://www.steventoth.net/linux/xc5000/HVR-12x0-14x0-17x0_1_25_25271_WHQL
.zip
2) Extract the file hcw85bda.sys from the zip into the current dir:
unzip -j HVR-12x0-14x0-17x0_1_25_25271_WHQL.zip
Driver85/hcw85bda.sys
3) run the script:
./extract_xc3028.pl
4) copy the generated file:
sudo cp xc3028-v27.fw /lib/firmware
reboot and driver should look like this
[ 344.286793] xc2028 2-0061: Loading firmware for type=MTS (4), id 0000000100000007.
[ 344.334342] cx88[0]: Calling XC2028/3028 callback
Monday, July 07, 2008
here is the example from google (they have set the cache expire far far in the future )
$ curl -I http://www.google.ro/logos/chagall.gif
HTTP/1.1 200 OK
Content-Type: image/gif
Last-Modified: Mon, 07 Jul 2008 04:33:28 GMT
Expires: Sun, 17 Jan 2038 19:14:07 GMT
Cache-Control: public
Date: Mon, 07 Jul 2008 10:09:52 GMT
Server: gws
Content-Length: 16715
here is my configure.nice script for apache 2.2.x
"./configure" \
"--prefix=/opt/apache2.2" \
"--enable-so" \
"--enable-mantainer-mode" \
"--enable-module=all" \
"--enable-rewrite" \
"--enable-include" \
"--enable-info" \
"--enable-expires" \
"$@"
also after all is build and installed (apache server restarted)
you can check the expire config
$/opt/apache2.2/bin/httpd -l | grep expire
or in browser
http://example.com/server-info?mod_expires.c
and add the expire config into the httpd.conf or .htaccess
ExpiresByType text/html "access plus 1 month 15 days 2 hours"
ExpiresByType image/gif "
access plus 1 month 15 days 2 hours
"
you can check later the expire headers with curl
$curl -I http://example.com/images/example.gif
HTTP/1.1 200 OK
Date: Mon, 07 Jul 2008 12:18:14 GMT
Server: Apache/2.2.8 (Unix) PHP/5.2.6
Last-Modified: Tue, 01 Jul 2008 13:57:59 GMT
ETag: "3884a9-2348f-450f6c38087c0"
Accept-Ranges: bytes
Content-Length: 144527
Cache-Control: max-age=3895200
Expires: Thu, 21 Aug 2008 14:18:14 GMT
Content-Type: image/gif
Friday, July 04, 2008
Thursday, July 03, 2008
Install monodevelop and c# compiler
$apt-get install monodevelop mono-gmcs
start the monodevelop ide
$monodevelop
then follow this tutorial from monodevelop
http://www.monodevelop.org/Stetic_GUI_Designer
First Look at Thunderbird 3 Alpha
read more | digg story
Wednesday, July 02, 2008
Big Buck Bunny Builds a Better Blender
read more | digg story
Mass-market WiFi router invites hackers
read more | digg story
The Visual History of Ubuntu
read more | digg story
winetricks 20080627 released
read more | digg story
Ext4 is now the primary filesystem on my laptop
read more | digg story
Tuesday, July 01, 2008
Cannot connect to ICQ ("The client version you are using is too old.")
http://kompozer.svn.sourceforge.net/viewvc/kompozer/trunk/README?revision=51&view=markup
1. download it
wget http://dfn.dl.sourceforge.net/sourceforge/kompozer/kompozer-0.7.10-src.tar.bz2
2. unzip it
tar -xjf kompozer-*-src.tar.bz2
3. make it
cd mozilla
sudo apt-get install libgtk2.0-dev libidl-dev
make -f client.mk build_all
4.run it
cd ..
obj-kompozer/dist/bin/kompozer &