Saturday, January 22, 2011
Ubuntu 11.04 with Unity working in VirtualBox 4.0
Saturday, January 15, 2011
OpenERP Server / Client start up 2
sudo vi /etc/postgresql/8.4/main/pg_hba.conf
ps uaxww | grep -i openerp
sudo lsof -i :8069
sudo lsof -i :8070
sudo -i -u postgres openerp-server
OpenERP Server / Client start up
- The PostgreSQL database starts automatically and listens locally on port 5432 as standard: check this by entering sudo netstat -anpt at a terminal to see if port 5432 is visible there.
- The database system has a default role of postgres accessible by running under the Linux postgres user: check this by enteringsudo su postgres -c psql
at a terminal to see the psql startup message – then type \q to quit the program.
- Start the Open ERP server from the postgres user (which enables it to access the PostgreSQL database) by typing
sudo su postgres -c openerp-server
- If you try to start the Open ERP server from a terminal but get the message
socket.error: (98, 'Address already in use')
then you might be trying to start Open ERP while an instance of Open ERP is already running and using the sockets that you’ve defined (by default 8069 and 8070).
If that’s a surprise to you then you may be coming up against a previous installation of Open ERP or Tiny ERP, or something else using one or both of those ports.# Type
sudo netstat -anpt
to discover what is running there, and record the PID
# You can check that the PID orresponds to a program you can dispense with by typing
ps aux | grep 1377
# and you can then stop the program from running by typing
sudo kill 1377
You need additional measures to stop it from restarting when you restart the server.
- The Open ERP server has a large number of configuration options. You can see what they are by starting the server with the argument –help By efault the server configuration is stored in the file .terp_serverrc in the user’s home directory (and for the postgres user that directory is /var/lib/postgresql .
- You can delete the configuration file to be quite sure that the Open ERP server is starting with just the default options. It is quite common for an upgraded system to behave badly because a new version server cannot work with options from a previous version. When the server starts without a configuration file it will write a new one once there is something non-default to write to it – it will operate using defaults until then.
- To verify that the system works, without becoming entangled in firewall problems, you can start the Open ERP client from a second terminal window on the server computer (which doesn’t pass through the firewall). Connect using the XML-RPC protocol on port 8069 or NET-RPC on port 8070. The server can use both ports simultaneously. The window displays the log file when the client is started this way.
- The client setup is stored in the file .terprc in the user’s home directory. Since a GTK client can be started by any user, each user would have their setup defined in a configuration file in their own home directory.
- You can delete the configuration file to be quite sure that the Open ERP client is starting with just the default options. When the client starts without a configuration file it will write a new one for itself.
- The web server uses the NET-RPC protocol. If a GTK client works but the web server doesn’t then the problem is either with the NET-RPC port or with the web server itself, and not with the Open ERP server.
PostgreSQL Commands
Reference : http://www.linuxweblog.com/blogs/sandip/20101203/listing-directories-tree-format
Create db user and grant permission to create databases.
# adduser <dbuser>
# su - postgres
$ createuser -d -S -R <dbuser>simple commands for administering the database. Hopefully these notes will help as reference when working with PostgreSQL:
- Login as "postgres" (SuperUser) to start using database:
# su - postgres
- Create a new database:
$ createdb mydb
- Drop database:
$ dropdb mydb
- Access database:
$ psql mydb
- Get help:
mydb=# \h
- Quit:
mydb=# \q
- Read command from file:
mydb=# \i input.sql
- To dump a database:
$ pg_dump mydb > db.out
- To reload the database:
$ psql -d database -f db.out
- Dump all database:
# su - postgres # pg_dumpall > /var/lib/pgsql/backups/dumpall.sql
- Restore database:
# su - postgres # psql -f /var/lib/pgsql/backups/dumpall.sql mydb
- Show databases:
#psql -l or mydb=# \l;
- Show users:
mydb=# SELECT * FROM "pg_user";
- Show tables:
mydb=# SELECT * FROM "pg_tables";
- Set password:
mydb=# UPDATE pg_shadow SET passwd = 'new_password' where usename = 'username';
- Clean all databases (Should be done via a daily cron):
$ vacuumdb --quiet --all
DROP TABLE removes tables from the database. Only its owner may destroy a table. To empty a table of rows, without destroying the table, use DELETE.DROP TABLE name [, ...] [ CASCADE ]
DROP TABLE always removes any indexes, rules, triggers, and constraints that exist for the target table. However, to drop a table that is referenced by a view or a foreign-key constraint of another table, CASCADE must be specified. CASCADE will remove a dependent view entirely, but in the foreign-key case it will only remove the foreign-key constraint, not the other table entirely.
Add the below line to /var/lib/pgsql/data/postgresql.conf to make postgresql database listen to external connections:
Edit /var/lib/pgsql/data/pg_hba.conf and add the appropriate permissions:listen_addresses = '*'
host all all 0.0.0.0/0 md5change postgresql database owner
Submitted by sandip on Sat, 08/16/2008 - 00:58.template1=# ALTER DATABASE <dbname> OWNER TO <dbuser>;setup postgresql database to use passwords to connect
Submitted by sandip on Thu, 08/07/2008 - 09:07.Edit "/var/lib/pgsql/data/pg_hba.conf" with:
local - socket connectionlocal all all md5
host all all 127.0.0.1/32 md5
host - tcp connection
To connect via socket:
To connect via tcp:$ psql -U <username> -d <dbname>
$ psql -U <username> -h <hostname> -d <dbname>Viewing owner and permissions
Submitted by sandip on Wed, 08/06/2008 - 17:01.\d -- view the owner
\dp -- view permissions
Logout using gnome command saving current session:
gnome-session-save --logoutBelow example shows listing of files and directories in tree format including hidden files and directory display depth of 3:
tree -a -L 3 -L : depth of directory tree to display
man tree for more info...
Reference : http://www.linuxweblog.com/blogs/sandip/20101203/listing-directories-tree-format
domain_search
#!/bin/bash
# domain_search.sh
# Get a list of 3 letter domains.
for x in `cat /usr/share/dict/words`; do count=`echo $x| wc -m`; [ $count = 4 ] && echo $x; done > domains_list.txt
# Get whois record.
for x in `cat ./domains_list.txt` ; do (whois $x.com | grep -q '^No match for domain') && echo $x; sleep 60; done > domains_available.txt
# Change to lowercase and sort print.
cat domains_available.txt | tr [:upper:] [:lower:]|sort| uniq
Install NetBeans
Install NetBeans
Tue, 09/07/2010 - 10:30 — panticz#!/bin/bash
#if [ "$(lsb_release -cs)" == "lucid" ]; then
# # install netbeans from repository
# apt-get install -y netbeans
#else
# download and install netbeans from homepage
URL=http://download.netbeans.org/netbeans/6.9.1/final/bundles/netbeans-6.9.1-ml-java-linux.sh
wget ${URL} -O /tmp/netbeans-linux.sh
sudo bash /tmp/netbeans-linux.sh --silent
#fihttp://www.panticz.de/ubuntu_install_java_jdk
OPTIONAL: install MySQL driver
apt-get install libmysql-java
# old# sudo cp Desktop/netbeans/mysql-connector-java-5.0.6-bin.jar /usr/local/SUNWappserver/lib/
# OLD
# fix ubuntu locale settings for german
#sed -i 's|en_US.UTF-8|de_DE.UTF-8|g' /etc/scim/global
# disable compiz effects (Visual Effects (System > Preferences > Appearance > Visual Effects => none)
metacity --replace &
How can I make my blog load faster?
The speed at which your blog loads is critical to attracting more readers to your blog. If your blog takes a long time to load, many readers may leave your blog before they have the chance to read it. Here are a few tips and tricks that will help your blog load faster and attract more users:
Posts
Your blog's load time can be affected by the number of posts you display on your main page. You can easily edit the number of posts displayed of the main page from the Settings | Formatting tab. You can then select the number of posts you want to display on the main page. We recommend displaying 10 or fewer posts on the main page.
Third Party JavaScript and Links
For optimal blog load speed, we recommend using Google/Blogger widgets, JavaScipt and links. However, if you need to use third party JavaScipt and links, your blog will load much faster if you put all JavaScript at the bottom of your blog. If you have third party JavaScript and links in your sidebar, put them in at the bottom of the sidebar.Install Eclipse
#/bin/bash
URL=http://mirror.netcologne.de/eclipse/technology/epp/downloads/release/helios/SR1/eclipse-java-helios-SR1-linux-gtk.tar.gz
# install eclipse from repository
sudo apt-get install -y eclipse
# download new eclipse release
wget ${URL} -P /tmp
# backup old release
sudo mv /usr/lib/eclipse/ /usr/lib/eclipse.$(date -I)
# install new release
sudo tar xzf /tmp/eclipse-java-*-linux-gtk.tar.gz -C /usr/lib/
Web Server
debconf-set-selections <<\EOF mysql-server-5.0 mysql-server/root_password_again string terceS mysql-server-5.0 mysql-server/root_password string terceS EOF # install web server apt-get -y install apache2 php5 mysql-server php5-mysql php5-mcrypt php5-gd php5-curl php5-cli libapache2-mod-auth-mysql bzip2 wget # configure apache modules a2enmod auth_mysql # install ssl http://www.panticz.de/apache2_openssl_certificate # enable url rewrite a2enmod rewrite sed -i '11s|AllowOverride None|AllowOverride all|g' /etc/apache2/sites-available/default sed -i '12s|AllowOverride None|AllowOverride all|g' /etc/apache2/sites-enabled/default-ssl # update memory limit for php sed -i 's|memory_limit = 16M|memory_limit = 512M|g' /etc/php5/apache2/php.ini sed -i 's|memory_limit = 32M|memory_limit = 512M|g' /etc/php5/cli/php.ini # set hostname echo "192.168.1.88 $(hostname).example.com $(hostname)" >> /etc/hosts # restart apache /etc/init.d/apache2 restart # ToDo # enable ssl: a2enmod ssl # See /usr/share/doc/apache2.2-common/README.Debian.gz on how to configure SSL and create self-signed certificates.
Desktop app to control an android device remotely
I've created a google groups HERE for support, no direct help request please.
Installation¶
- Install the android sdk (download here)
- Connect your device through USB cable and ensure it's detected with "adb devices"
- Make sure you have Java Runtime Environnement 5 or later installed
- Click HERE. You can launch it by typing "javaws <jnlp file>" from a command line.
Features¶
- Mouse and keyboard control FOR ROOTED DEVICES ONLY
- Landscape mode (right click)
- Video recording
- Basic file browser
Current limitations¶
- Slow refresh rate (about 4-5 fps)
- Not all keycode are mapped. See KeyMapping
Todo¶
- Automatic screen rotation based on the device current state.
- Improve speed
- Audio redirection
Install androidscreencast under Ubuntu
Wed, 12/22/2010 - 20:02 — panticz# install java
wget http://dl.dropbox.com/u/4170695/scripts/install.sun-java6-jre.sh -O - | bash -
# set path to android sdk
PATH=$PATH:~/android-sdk-linux_86/tools
# start android sdk server
adb start-server
# start androidscreencast
wget http://androidscreencast.googlecode.com/svn/trunk/AndroidScreencast/dist/androidscreencast.jnlp -P ~/
javaws ~/androidscreencast.jnlp
# Links
http://code.google.com/p/androidscreencast/
Web Design : ckeditor.com/download
# download wget http://download.cksource.com/CKEditor/CKEditor/CKEditor%203.4/ckeditor_3.4.tar.gz -P /tmp/ # extract tar xzf /tmp/ckeditor_*.tar.gz -C /var/www/ # create index.html cat <<EOF> /var/www/ckeditor/index.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Full Page Editing - CKEditor Sample</title> <meta content="text/html; charset=utf-8" http-equiv="content-type" /> <script type="text/javascript" src="ckeditor.js"></script> <script src="sample.js" type="text/javascript"></script> <link href="sample.css" rel="stylesheet" type="text/css" /> </head> <body> <textarea cols="180" id="editor1" name="editor1" rows="10"></textarea> <script type="text/javascript"> //<![CDATA[ CKEDITOR.replace( 'editor1', { fullPage : true }); //]]> </script> </body> </html> EOF # Links http://ckeditor.com/
Install Y PPA Manager
The new "deep search" works like this:
- it scans all the PPAs returned by the Launchpad search and only displays the PPAs that have the exact package you've searched for available at the time you've performed the search
- the Y PPA Manager displays the exact version for the package you've searched for as well as the PPA in which that package can be found in one place so you don't have to check the packages in each PPA to know the version of the packages returned by the search
- "deep search" will only return packages available for your Ubuntu version (or whatever version you've specified in the config file)
But enough talk. Here is a screenshot with an example Y PPA Manager deep search results for "nautilus":
Install Y PPA Manager
sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-managerWednesday, January 12, 2011
app joystick
Some useful tools for using joysticks:
ffcfstress(1) - force-feedback stress test ffmvforce(1) - force-feedback orientation test ffset(1) - force-feedback configuration tool fftest(1) - general force-feedback test jstest(1) - joystick test jscal(1) - joystick calibration tool evtest and inputattach, which used to be part of this package, are now available separately.
Thursday, January 6, 2011
development
This package will install the integrated development environment that allows for program writing, code verfication, compiling, and uploading to the Arduino development board. Libraries and example code will also be installed.
This package will install the integrated development environment that allows for program writing, code verfication, compiling, and uploading to the Arduino
development board. Libraries and example code will also be installed.
Wednesday, January 5, 2011
[ubuntu] Problem installing, uninstalling, or updating... - Ubuntu Forums
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get update
sudo apt-get upgrade
Tuesday, January 4, 2011
Ubuntu (x86_64 .deb)
Dropbox for Linux
Download the correct Dropbox installation for your Linux environment
We recommend downloading the "x86" package for your distribution.
Choose "Compile from Source" to manually build the installer if your distribuLibreOffice Ubuntu PPA makes installation easy
Want to easily try out the latest development builds of OpenOffice-fork LibreOffice?
Well now you can thanks to a dedicated LibreOffice packaging PPA for Ubuntu users.
Bye bye .deb downloading
Up until now users have had to install via oh-so-not-so-painful task of downloading a bunch of .debs files. The manual approach to installing updates has meant many users are running older version, unaware of subsequent releases.
Adding a PPA ensures you are notified of pending updates whilst offering the ability to upgrade easily.
Download
The PPA provides packages for Ubuntu 10.04, 10.10 and 11.04 users. Whilst LibreOffice has yet to make a stable release it is currently at release candidate stage.
To add the PPA and install LibreOffice RC2 run the command below in a new Terminal session: -
sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update && sudo apt-get install libreoffice
Now to make it look, well, nice under your desktop enviroment.
Ubuntu users should also run
sudo apt-get install libreoffice-gnome
Kubuntu users: -
sudo apt-get install libreoffice-kde
Elegant Gnome Theme Pack For Ubuntu is Beautiful, Install in Maverick, Lucid via PPA | Tech Drive-in
sudo add-apt-repository ppa:elegant-gnome/ppa
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install elegant-gnome
Upload to Google Docs via Nautilus Using Nautilus-GDoc | Tech Drive-in
Download and Install Nautilus-GDoc
- Extract it and copy paste the "Send To GDoc" file to $HOME/.gnome2/nautilus-scripts/
- Right click on the document in the nautilus file manager. Goto Scripts - Send To GDoc(as shown in the screenshot). This will ask for username and password for the first time or if the last session is timed out. More details can be found in the Read Me file.
Bleeding Edge | Download Bleeding Edge software for free at SourceForge.net
Bleeding Edge is a shell script designed for Ubuntu 32 and 64bit. It installs repositories, keys, and software - such as media players, codecs, MS fonts, drivers, etc. It also cleans up the system. VIEW SCREENSHOTS FOR USAGE INSTRUCTIONS
Monday, January 3, 2011
Installing Tomcat 7 on Ubuntu « Eager to Code, Enjoy to Debug ~ Embark into Each Stage with Your Heart
I just followed the steps provided by this site to install Tomcat 7 on Ubuntu:
Please remember to change the location or the site where you want to download Tomcat 7 as the provided URL is for Tomcat 6. This also depends which beta version that you are trying to install as well. You can refer to this page about this version and copy the URL and use it with the wget command. For example, I’m downloading v7.0.4-beta and the command that I’m using is:
sudo wget http://apache.hoxt.com/tomcat/tomcat-7/v7.0.4-beta/bin/apache-tomcat-7.0.4.tar.gz
Everything is working fine except when I tried to configure the Tomcat in Eclipse, I encountered a failure to start the server:
Could not load the Tomcat server configuration at /Servers/Tomcat v7.0 Server at localhost-config. The configuration may be corrupt or incomplete.
If compare with the projects that I had copied from the previous laptop, I should have the following files in the
- catalina.policy
- catalina.properties
- context.xml
- server.xml
- tomcat-users.xml
- web.xml
When I checked my current Eclipse workspace, the listed files do not exist in the intended directory. To resolve the problem, you need to copy those files from /usr/local/tomcat/conf directory to the intended location:
yee@chimney:/usr/local/tomcat/conf$ ls -la
total 100
drwxr-xr-x 2 root root 4096 2010-10-15 07:27 .
drwxrwxr-x 9 root root 4096 2010-10-24 12:46 ..
-rw——- 1 root root 10650 2010-10-15 07:27 catalina.policy
-rw——- 1 root root 4990 2010-10-15 07:27 catalina.properties
-rw——- 1 root root 1394 2010-10-15 07:27 context.xml
-rw——- 1 root root 3152 2010-10-15 07:27 logging.properties
-rw——- 1 root root 6268 2010-10-15 07:27 server.xml
-rw——- 1 root root 1530 2010-10-15 07:27 tomcat-users.xml
-rw——- 1 root root 51579 2010-10-15 07:27 web.xml
yee@chimney:/usr/local/tomcat/conf$ sudo cp * /home/yee/eclipseWorkspace/Servers/Tomcat\ v7.0\ Server\ at\ localhost-config/
Also, remember to change the permission for all the files else you will still encounter the error such as:
Could not read file: /home/yee/eclipseWorkspace/Servers/Tomcat v7.0 Server at localhost-config/server.xml.
/home/yee/eclipseWorkspace/Servers/Tomcat v7.0 Server at localhost-config/server.xml (Permission denied)
SourceForge.net: Tutorial - ikvm
Convert a Java Application to .NET
IKVM.NET includes ikvmc, a utility that converts Java .jar files to .NET .dll libraries and .exe applications. In this section, you'll convert a Java application to a .NET .exe.
Navigate to IKVMROOT\samples\hello and enter the following:
Sunday, January 2, 2011
Saturday, January 1, 2011
GTK vs Qt - WikiVS
Vala - Compiler for the GObject type system
Introduction
Vala is a new programming language that aims to bring modern programming language features to GNOME developers without imposing any additional runtime requirements and without using a different ABI compared to applications and libraries written in C.Web Services Demystified
Web Services Demystified
Web services: they're the latest buzzword on the block. If you believe what you read in the glossy trade press, not to mention Microsoft's $200 million .NET advertising campaign, Web services are (in no particular order):
- Your new best friend
- The saviour of your business
- The doom of your business
- The next generation of the World Wide Web
None of this really tells you how they work or what they do for you, though. To make matters worse, Web services come with a plethora of snappy acronyms that don't mean a whole heck of a lot at first glance either:
- SOAP: Simple Object Access Protocol
- WSDL: Web Service Description Language
- UDDI: Universal Description, Discovery, and Integration
- XML: Extensible Markup Language
Using the Mozilla SOAP API - O'Reilly Media
Using the Mozilla SOAP API
by Scott Andrew LePera and Apple Developer Connection08/30/2002
Introduction
Although still in its infancy, the age of Web services and SOAP has already created a demand for a wide array of client technologies. A search for "SOAP client" turns up myriad implementations for C++, Perl, .NET, PHP, and Java. If you dig a little deeper, you can even find clients for languages such as Ruby, Python and Tcl. Most of these clients operate at the server level, either as middleware or as a component of a larger system.
Web browsing clients have traditionally been left out of this loop, however, since composing SOAP messages and connecting with Web services was better suited to server-based applications tailored specifically for those tasks.
DHTML - MDC Doc Center
DHTML is a shortened form of "dynamic HTML". DHTML is generally used to refer to the code behind interactive web pages not driven using plugins such as Flash or Java. The term aggregates the combined functionality available to web developers using HTML, CSS, the Document Object Model, and JavaScript.
HUL Examples
All numbered examples from the book are available here as individually downloadable text files. To avoid having to type in long examples, save these files or copy and paste the contents into your own files. Note that copying and pasting may cause formatting problems with some examples. If you have any suggestions or queries about the examples, send a message to the reviewers@mozdev.org mailing list.
Note: Some readers are reporting problems with some of the examples in the book. If you are experiencing any problems, please look at the User Notes section at the bottom of each of the HTML version of the chapters. You might also want to check out the xFly project which features a working installable version of many of the examples used in the book.
XUL - MDC Doc Center
The XPToolkit Architecture
- Vision
- We will make UIs as easy to build as web pages, and we will make applications easier to write and to customize along the way.
- Goals
-
The XPToolkit has two major goals, in order of precedence
- Make UIs easier to build
- Make cross-platform applications easier to build
Table of Contents
- Introduction
- Overview of Packages
- XUL/AOM Reference
- Introduction to a XUL Document
- Widgets
- Menu Bars and Menus
- Toolbars and Toolboxes
- Buttons
- Tree Widget
- Tab Widget
- Sliders and Scrollbars
- The Splitter Widget
- Progress Meter
- Checkbox (Tri-state)
- The Box System
- Broadcasters and Observers
- Focus and Command Dispatching
- Key Binding
- Popup Content (Context Menus and Tooltips)
- XUL Overlays
- Persistence and Sharing
- Windows and Dialogs
- Packages and the Chrome Registry
- XUL and RDF
- The AOM Implementation
- XUL/RDF Templates
- Services Reference
- Intro to Clipboard/Drag & Drop
- The Clipboard
- Drag and Drop
- File Dialogs
- Color Picker
- Font Picker
The XPToolkit
XPCOM itself provides a set of core components and classes, e.g. file and memory management, threads, basic data structures (strings, arrays, variants), etc. The majority of XPCOM components are not part of this core set and is provided by other parts of the platform (e.g. Gecko or Necko) or by an application or even by an extension.
XPCOM - MDC Doc Center
XPCOM itself provides a set of core components and classes, e.g. file and memory management, threads, basic data structures (strings, arrays, variants), etc. The majority of XPCOM components are not part of this core set and is provided by other parts of the platform (e.g. Gecko or Necko) or by an application or even by an extension.
mozdev.org - free project hosting for the Mozilla community
Welcome to mozdev.org
The mozdev.org site provides free project hosting for Mozilla applications and extensions. Developers have many choices for free project hosting today, but this is the only service that is specifically tailored to the needs of the Mozilla community. Read more to find out how mozdev.org compares with other popular hosting sites. If you want to start your own development project, get started here.Getting started with PyXPCOM, Part 2
Getting started with PyXPCOM, Part 2
Accessing objects as a client
Summary: Cross-platform component object model (XPCOM) is the component system developed in the Mozilla project. ActiveState has developed an open-source Python library for XPCOM. This three-part series provides a developer's introduction to XPCOM programming in Python. This second part covers the use of PyXPCOM as a client to XPCOM objects.
XPCOM Part 1: An introduction to XPCOM
Welcome to Unix, Linux, Windows and related support forums. If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Unix Linux Forum - Fixunix.com
Welcome to Unix, Linux, Windows and related support forums. If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
XUL 1.0
2 Layout and Positioning
2.1 The Box Layout System
View the remaining XUL1.0 box compliance issues in Bugzilla.
The box is one of the fundamental building blocks of XUL. Nearly all of the elements in XUL are boxes. Boxes are containers that define the layout of controls within a XUL document. Boxes lay out their children using a constraint-based system that supports both relative flexible sizing and intrinsic sizing.
In CSS, an inline box can be specified using the 'display' property with a value of inline-box. A block-level box can be specified with a value of box.
The 'float' property does not apply to children of box elements.
[Editor's Note: The following sections introduce new CSS properties that can be used with boxes. Because these properties are not yet part of any CSS standard, they are prefaced with '-moz-' in Mozilla. To use 'box-orient' in Mozilla, for example, you would actually type '-moz-box-orient'.]
0.6.1-0ubuntu1 (quickly-ubuntu-template)
This package provides templates to create easily new projects for Ubuntu using glade, pygtk and couchdb or for a CLI. This also includes packaging, proper licencing and deploying code.
MozGlade
This document contains: * What /is/ MozGlade * Using MozGlade * Building MozGlade --------------- As I'm sure you're wondering (because I get this question a lot): What /is/ MozGlade? MozGlade is a project to add a simple, easy-to-configure user interface on top of web browser engines. It was conceived because I need the browsing capabilities of Mozilla, but detest its large, slow interface (this interface is improving in the latest versions of Mozilla, but there are still other issues). The user interface is designed with the GUI builder Glade. The file that Glade outputs to describe the UI is then used by libglade at runtime to actually build the UI. This means (among other things) that if you want to redesign the interface, you can, easily. You can use Glade to build a new UI, then just point MozGlade at the new file. No recompilation is necessary. --------------- Using MozGlade. After installing, there's only one real requirement: setting MOZILLA_FIVE_HOME. This is something the embedded gtk widget depends upon, not MozGlade itself. However, if you don't set it, MozGlade will die with a segfault (technically the embedded widget dies with a segfault, but it's the same effect). The value to which you should set MOZILLA_FIVE_HOME depends on your configuration, but it is the same value to which it should be set for Mozilla. As far as the browsing things are concerned, this /is/ mozilla. --------------- Building MozGlade. First, make sure you have everything you need: Mozilla (either m15 or m16/cvs; if you use m15, see below), libgtkembedmoz (the mozilla/gtk embedded widget), gtkmozembed.h (header for said widget), libglade, libglade-devel, libxml and libxml-devel (libglade requires these), and about 1MB of drive space. libglade and libxml do not depend on Gnome but are distributed as part of Gnome. Libglade takes advantage of gnome widgets with a separate library. libxml doesn't depend on Gnome; rather, most of Gnome depends on libxml. If you want to build against m15, the first thing you'll notice is that the gtk/mozilla embedded widget isn't built by default. So if you just grabbed a binary tarball of m15, and it doesn't contain the widget (most don't; the only notable exception is the one I tossed on alphalinux.org), you're pretty much screwed. You have the option of building m15 for yourself, or grabbing m16. You might as well grab m16, 'cuz the m15 embedded widget is ... barely usable. You don't get much beyond basic browsing. If you want to build against m16, things are easier (unless you're running Linux/Alpha, in which case mozilla/m16 doesn't run right). For starters, the embedded widget is built by default, so you can grab almost any pre-built package and use it. Need Mozilla RPMS? Check Chris Blizzard's site: http://people.redhat.com/blizzard/software/RPMS/. Everything you need should be in those packages. Pointing to Mozilla: If you installed some pre-built package, you probably don't need to worry about this. Most such packages will install things into standard locations which will be found by the compiler and linker automatically. But if for some reason these aren't found automatically (e.g., if you're like me and have mozilla stuff scattered all over your hard drives), you need to tell configure and make where to find things. The easiest way to help configure is to point it at your mozilla distribution tree. For example, when I build MozGlade, I use the command './configure --with-mozilla=/mnt/sda5/mozilla-m15/dist'. Note the 'dist' at the end there -- you're not pointing it at the top of your mozilla tree, you're pointing it at the top of your mozilla distribution. You're pointing it at the location of mozilla's "bin" and "lib" directories, to be precise. If you point it to MOZILLADIR, then MOZILLADIR/bin should contain 'mozilla-config', which will take care of the rest. Mozilla's components are shared libraries, and the embedded gtk widget depends upon them. In addition to telling configure where these things are located, the linker needs to know. How to handle this depends on your compiler and linker. For me, it means I have to set 'LD_LIBRARY_PATH=/mnt/sda5/mozilla/dist/bin'. Last but not least, you need to set MOZILLA_FIVE_HOME. But we already discussed that. Good luck. If you have any questions, comments, or suggestions, send 'em my way or the way of the MozGlade lists. - Bibek



password reset
template1=# ALTER USER <dbuser> WITH PASSWORD '<password>';