Friday, February 25, 2011

#Python microframework web.py and #firebird tutorial

I assume that Firebird 2.5 and python driver are installed (I use ubuntu for this tutorial)

I will start with the simple db employee from examples also i will use as starting point the web.py tutorial

First create a database and one table (insert one row) Then query the table already created



Later we will create a grid like in the web.py group thread

pencil prototyping tool is a cool xul application , runs on ubuntu , windows ...

I found the project now
If you need to create quick prototyped web pages or some app forms

on ubuntu natty 64 (standalone - seems that extension is not supported yet in firefox 4.0)
sudo apt-get install xulrunner-1.9.2

wget http://evoluspencil.googlecode.com/files/Pencil-1.2-0-linux-gtk.tar.gz
tar -zxvf Pencil-1.2-0-linux-gtk.tar.gz
cd pencil

xulrunner application.ini



Wednesday, February 23, 2011

Gallium3 nouveau on !debian sid now enabled part two

After hitting the building mesa bug error in first part
: nouveau/nouveau_class.h: No such file or directory

I have decided to install libdrm 2.4.24 but there is no such thing in debian
so you must install by source from git
git clone git://anongit.freedesktop.org/git/mesa/drm
cd drm
./autogen.sh
./configure --enable-nouveau-experimental-api --prefix=/usr
sudo make install 

Then go back to mesa dir from git
make
sudo cp lib/gallium/nouveau_dri.so /usr/lib/dri/
LIBGL_DEBUG=verbose glxinfo 2>&1 >/dev/null | grep so$
libGL: OpenDriver: trying /usr/lib/dri/tls/nouveau_dri.so
libGL: OpenDriver: trying /usr/lib/dri/nouveau_dri.so
libGL: OpenDriver: trying /usr/lib/dri/tls/nouveau_dri.so
libGL: OpenDriver: trying /usr/lib/dri/nouveau_dri.so
glxinfo | egrep renderer
OpenGL renderer string: Gallium 0.4 on NVAA

Now you can play with opengl:openarena,xonotic or webgl
So i'm really free of nvidia's blobs
Update: seems that is possible to install nouveau gallium with a simple
sudo apt-get install libgl1-mesa-dri-experimental

dpkg -L  libgl1-mesa-dri-experimental | grep nouveau
/usr/lib/dri/nouveau_dri.so

Tuesday, February 22, 2011

If you can't live without Total commander use Double Commander on #Linux #windows

Here are some screenshots and here is the project page. Powered by Free Pascal and Lazarus (pure speed/pure multiplatform) What is cool is that you can compile it with both toolkits on Linux : gtk or qt (now this is what i call it choice and elegance: toolkit/os independence)


!debian vrms would be proud of me - removed all nvidias propietary bits

Ok i removed all the nvidia's propietary bits using synaptic , webgl works in chromium only with 1-2 FPS, seems that i use the software rasterizer + vesa driver after removing xorg.conf

glxinfo | egrep 'OpenGL.*string.*'
OpenGL vendor string: Mesa Project
OpenGL renderer string: Software Rasterizer
OpenGL version string: 2.1 Mesa 7.10
OpenGL shading language version string: 1.20


nouveau if configured in x doesn't load 

[   600.070] (EE) [drm] failed to open device
[   600.070] (EE) No devices detected.

And here is the vrms report
vrms 
           Non-free packages installed on borkstationX64

rar                       Archiver for .rar files
skype                     Skype
sun-java6-bin             Sun Java(TM) Runtime Environment (JRE) 6 (architecture
sun-java6-jdk             Sun Java(TM) Development Kit (JDK) 6
sun-java6-jre             Sun Java(TM) Runtime Environment (JRE) 6 (architecture
sun-java6-plugin          The Java(TM) Plug-in, Java SE 6
warsow-data               Game data for Warsow

Non-free packages with status other than installed on borkstationX6

flashplayer-mozilla       ( dei)  Macromedia Flash Player

           Contrib packages installed on borkstationX64

flashplugin-nonfree       Adobe Flash Player - browser plugin
warsow                    fast paced 3D first person shooter

  8 non-free packages, 0.3% of 2332 installed packages.
  2 contrib packages, 0.1% of 2332 installed packages.

Update: noveau started after reboot
seems that nvidia driver was still loaded
but still 3d support is software only
so i have to force it or build gallium3d myself for better fps in 3d applications

Here is how is done in debian/ubuntu

#oracle Virtualbox 4.0.x doesn't work on !debian sid

Seems that is a known issue ,
I have dist-upgraded and from vbox 3.x is now 4.0 but that is very slow
the windowsxp vm works with cpu 100% in top and the mouse moves like in slow motion
I will remove virtualbox and use virt-manager from now on



















ps: yah i want to see my grades on the university website ...works on ie only fsck

Sunday, February 20, 2011

Brancusi v. United States : how the Bird in space became Kitchen Utensils and other Phallic objects

It's funny when the state decides what is art and what is Kitchen Utensil

http://en.wikipedia.org/wiki/Bird_in_Space
http://www.legalaffairs.org/issues/September-October-2002/story_giry_sepoct2002.msp

But the humor doesn't stop there Princess X is priceless :
"In 1920 he developed a notorious reputation with the entry of "Princess X" in the Salon. The phallic shape of the piece scandalized the Salon, and despite Brâncuşi's explanation that it was an anonymous portrait, removed it from the exhibition. "Princess X" was revealed to be Princess Marie Bonaparte, direct descendant of the younger brother of Napoleon Bonaparte. Brâncuşi represented or caricatured her life as a large gleaming bronze phallus. This phallus symbolizes the model's obsession with the penis and her lifelong quest to achieve vaginal orgasm, with the help of Sigmund Freud"

And when you think that Communists wanted to destroy "The Endless Column" with the help of Tractors , Thank good they couldn't take it down (I guess it was too well stuck in earth crust).. Again Fate or God's Humor

testing android-x86 with kvm-linux

I have started the latest stable with the following and choosing vesa mode

kvm -soundhw es1370 -net nic -net user -cdrom android-x86-2.2-generic.iso

later i will create a virt-manager machine and install it on a virtual hdd

What i didn't figured is howto enable the network but it will be solved in the virtmanager
Auto orientation is annoying , also implicit language for the keyboard seems to be Chinese
I guess it can be changed

The good news it works faster than the virtual box version

Saturday, February 19, 2011

Android sdk wishlist hardware acceleration :QemuKVM + QXL opengl driver

I wish that android sdk contained an accelerated qemu+kvm engine + a driver that supports opengl es 2.0 something like the qxl driver for kvm

Anyway i see that android-x86 will run under qemu-kvm easily and i will try that way

Friday, February 18, 2011

The power of open source i can build my own android-x86

I have a spare partition so i will build from source and install android-x86 on it just to test it how it works on a real desktop

The only problems to build on my 64bit stattion were to add
some 32bit libs and headers
sudo apt-get install ia32-libs  g++-multilib gcc-multilib 
lib32z1-dev lib32ncurses5-dev 

checked my partition with fdisk -l
sudo fdisk -l /dev/sda

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         243     1951866   82  Linux swap 
/dev/sda2            7781        9729    15655342+  83  Linux
/dev/sda3             244        3890    29294527+  83  Linux
/dev/sda4            3891        5111     9807682+  83  Linux

my android partition is sda4
sudo mkfs.ext3 /dev/sda4
sudo mount /dev/sda4 /mnt/

from
android-x86/out/target/product/generic_x86/usb_boot
i copied all the android-system folder
sudo cp -rp * /mnt/

added these lines in
/etc/grub.d/40_custom

menuentry "Android_x86" {
set root=(hd0,3)
linux /android-system/kernel root=/dev/ram0 ro  acpi_sleep=s3_bios,s3_mode SCR=/android-system
initrd /android-system/initrd.img
}

hd0,3 is first hdd (sda) and fourth partition (if you do partition numbering from 0..3)

sudo su 
cd /boot/grub
grub-mkconfig > grub.cfg

hmm grub doesn't find my kernel
i will try to dd to the usb stick

Hardware report for my !ubuntu #Lubuntu station

I always loved the lubuntu hardware report System Tools - System profiler and benchmark
how is done , simple and useful
So here is my report for lubuntu natty

Finished to read and test the pong2d android tutorial

here is the tutorial that can be followed by anyone, now i will transform to the opengl version

Thursday, February 17, 2011

Tip:#webgl and radeon gallium3d : use chromium

I have tried to force both mozilla and google-chrome to render webgl pages from learnwebgl
but there were only errors , so i had a surprise when i opened chromium browser (you know the one with the blue icon) by mistake
that webgl worked out of the box on my system with quite good fps and usable


Also quake3 webgl demo is quite watchable at ~50-60 fps

Forcing Radeon Gallium3d in !Ubuntu Natty

Gallium will be enabled by default in the final version
so i determined that i have the old mesa driver
glxinfo | grep 'renderer string'
OpenGL renderer string: Mesa DRI R600 (RV710 954F) 20090101  TCL DRI2

One way to force it is to add in the section Screen
Option  "ForceGallium" "True"

here are my Device+Screen sections (some tweaks are from arch radeon wiki )

sudo reboot
glxinfo | grep 'Gallium'
OpenGL renderer string: Gallium 0.4 on AMD RV710

Wednesday, February 16, 2011

Fglrx on #Ubuntu natty , wait until final release

Fglrx doesn't work with the new xorg
Wait until the final release and don't use the natty alpha if you want accelerated opengl with great performance or else use the open source driver radeon (i use the gallium3d accelerated drivers) that supports 3d on some of the cards
"The binary video drivers -fglrx and -nvidia do not have XServer 1.10 compatibility, so do not function in Alpha 2. We anticipate receiving an updated driver with this support from NVIDIA in the coming weeks, and an updated -fglrx from AMD at some point prior to Natty's release, but do not know their exact ETAs."

Also The unity3d doesn't work in catalyst so stick to lxde with radeon driver
The good news is my dual monitor setup works with the default radeon driver
no crashes , the 3d is something like 60 FPS in glgears (that is quite slow)
Monitor settings in gnome seems that doesn't does set the monitors correctly (left/right) but you can do it manually if you desire
xrandr --output DVI-0 --right-of VGA-0

ps: one mention is that is better if you cleanup the xorg of monitors (i had dual monitor setup with fglrx) also remove the fglrx crap

Monday, February 14, 2011

I Love Free+Libre Software Campaign , #ilovefs, I love LibreQt


Valentine's Day is a celebration of love, and it's a great day to declare your love and gratitude to the people behind every Free Software initiative and organisation. Why not make this February 14th a very special day and show them that you appreciate their work?

I love Free Software!

By the way i love the new libreoffice in debian/ubuntu , i think is the right way for a usable office wihout the java trap, maybe firebird community will contribute with a native c++ driver later (ibpp is not that hard) . I love that python is pushed as the best extension mechanism and the Romanian dictionary seems to be included by default !


I still love QT , Microsoft will never kill it i see a bright forked future where QT will be under a true valid fundation like TDF or Firebird Foundation with true ports on Android , webos , iphone
dead badgerSymbian,WindowsPhones7 and of course any valid linux distro :)

Still doing banking with flash enabled ?

Check the list of security issues and under the dir .adobe i have 4G of caching data ... for flash only
i really don't know what flash is doing with that data

Saturday, February 12, 2011

libvirt-manager install tips on #Debian sid

A good idea is to add yourself to libvirt group and also kvm

sudo adduser mariuz libvirt
sudo adduser mariuz kvm

the dir of /var/lib/libvirt/images is unwritable for the group libvirt (seems that is created with root.root )
so is good to make it group rw and change the owner to grup libvirt

sudo chmod g+rw /var/lib/libvirt/images/


otherwise you will get the dreaded message qemu: could not open disk image /var/lib/libvirt/images

Now i can install natty in the virtmanager

Friday, February 11, 2011

It’s impossible to overstate how completely fucked Nokia is , this is the day when we say RIP nokia

Here is the Suicide bomb and note left on the desk

Linux developers will go Android or Debian/Ubuntu route and maybe Intel will sustain mee[nokia]go[home]
anyway Nokia was a joke when they promised Linux devices , What the hack Chinese Dragons gives us  the sexy Android phones and tablets , what the hack was so hard to boot/install android on nokia's phones when they DO have the hardware
It's one thing when you don't have control over the HW part but it's another thing when you do own the full fab to build the phones.
They become lazy and delayed the meego  in fact they didn't quite wanted linux on their phones only the crappy Symbian , in way it pushed and pushed QT on Symbian a lot 





































It’s impossible to overstate how completely fucked Nokia is when it comes to apps. Silverlight for native, IE7 for web. Hurray hu-bloody-rray. Will Symbian developers flock to Silverlight? I beg leave to doubt it. As to web developers and IE7, well, that doesn’t need any comment.




And more on quirks mode blog 


For web developers this is double bad news. Windows Phone 7 has the worst default browser of all modern smartphone OSs: IE7 


My next phone will be one based on Android for sure like what Nicu have said : Bye Bye Nokia  
Also you can review the list of Microsoft's strategic mobile partners and their fate
ps: Linux is not so hard to be on the low end phones and replacing the aging Symbian hack there is a open platform 
called openmoko and is real stuff the only thing nokia should have done these Years is to copy paste the build/compile instructions and ship the phones to customers and the best part of it is powered by QT!


But no Nokia jumped from one Toast OS to another Toast OS

Thursday, February 03, 2011

Debian Release Party for Squeeze in Targu Mures

There are many parties this year and i admit i have never seen such a frenzy
from the Ubuntu releases (You know the first ones , the community releases not the corporate ones)
You can feel the vibe , also i see a lot of work is done in the Romanian translation area (check the documentation for squeeze and please contribute back , in any language you know)
Please come and share the joy of Debian and any Linux you , it's Ok to
bring your androids , leave your bad apples at home :) just kidding that RMS would say
bring it and maybe we will help you install debian/ubuntu/mandriva/fedora in (coh coh cohracle) virtual box

If you are in Targu Mures or nearby please contact our LUG
or be present at the event on the 5th