Fix for Zend Studio 7 Button Problems in Ubuntu 9.10 “Karmic Koala”
After updating to Ubuntu 9.10 "Karmic Koala", i had some problems with Zend Studio GUI, some buttons when clicked appear to be pressed, but no action follows.
After searching for a while i found this fix in Zend support pages, and it solved the issue
here is the link for the fix :
http://kb.zend.com/index.php?View=entry&EntryID=435
How to Add & Subtract time code in Python
I have been developing some tools for the media production lately, i found a neat way to add or subtract certain amount of seconds to a given time code.
for example i have a video that starts from 12:45:05 and i want to add 59 seconds to it and use the new time.
from datetime import datetime from datetime import timedelta time = datetime(2009, 1, 1, 12, 45, 05, 0) diff = timedelta(seconds = 59) final_time = time + diff
Installing Python & PyGTK on Mac OsX
Recently i have been asked to develop an application that will work on Linux, and Mac os, so i started developing it on my Ubuntu, i chosed Python as the programming language and PyGTK as the GUI for it.
The application worked fine on my Ubuntu, but when i moved it to Mac OSx (Leopard), i had a problem importing the PyGTK module and the program GUI didn't run. so i tried to install PyGTK from sources with all its dependencies, but after spending a day doing so i ended up with many errors in compiling the dependencies and finding them.
after some search i found out that i can do this using MacPorts.
so here is the steps i followed :
- Install X11 http://guide.macports.org/#installing.x11
- Install Xcode tools http://guide.macports.org/#installing.xcode
- Install MacPorts http://guide.macports.org/#installing.macports
- Make sure the paths are configured in your shell profile http://guide.macports.org/#installing.shell
- Restart your shell, and follow the next commands :
1- Install Python
sudo port -v install python25
2- Install Python select
sudo port -v install python_select
3- Activate our installed python version
sudo python_select python254- Install pygtk
sudo port -v install py25-gtk
5- Install some gnome themes and engines
sudo port -v install gnome-themes sudo port -v install gtk-nodoka-engine sudo port -v install gtk-smooth-engine sudo port -v install gtk2-aurora sudo port -v install gtk2-clearlooks sudo port -v install gtk2-extra sudo port -v install gtk2-industrial sudo port -v install gtk2-murrine
6- Install theme switch
sudo port -v install gtk-theme-switch
7- Select which theme to be used by your applications by running the theme switch
switch2
Now you can have the applications you develop using python and pygtk running smoothly on mac os leopard.
Install Yum on RHEL4
In my company they purchased some software from Autodesk that comes on Redhat Enterprise 4, i needed to install some packages on the system for the use of some internal applications, instead of installing packages and all the dependencies, i though using automatic installer like yum would be better, below is the steps to have yum installed on your RHEL4 machine :
1. Install rhel4
2. Download Yum rpm package
wget http://gd.tuwien.ac.at/opsys/linux/yum/2.0/yum-2.0.5-1.noarch.rpm
3. Install the package
rpm -Uvh yum-2.0.5-1.noarch.rpm4. Edit repositories location
nano /etc/yum.conf
Change the baseurl in [base] to
http://mirror.centos.org/centos/4/os/$basearch/
Change the baseurl in [updates] to
http://mirror.centos.org/centos/4/updates/$basearch/
5- Install the full yum with all its dependencies.
yum install yumHow to disable sudo password prompt in Linux
well, sometimes i want to execute commands as super user without being asked for password each time to do that
to do that its pretty easy
open the terminal and type this command :
sudo visudoand uncomment the following line :
# %sudo ALL=NOPASSWD: ALL
save the file by pressing escape then typing :wq and pressing enter.
from now on you will not be asked when executing the command as super user using sudo.
Install Subversion with Web Access on Ubuntu 8.04 (Hardy Heron)
well, it is very useful to have a subversion server so u can have different versions of your applications; for back up and to be able to restore old versions, and be able to share the project with the team, when there is more than one developer working on it.
1- install apache
sudo apt-get install apache2
2- install subversion
sudo apt-get install subversion libapache2-svn
3- We're going to create the subversion repository in /svn
sudo svnadmin create /svn
4- Now we'll need to edit the configuration file for the subversion webdav module
sudo gedit /etc/apache2/mods-enabled/dav_svn.conf
we will comment the following line, so we can access the repository using the address http://www.servername.com/svn
<Location /svn>
</Location>
and the following line to enable the dav module
DAV svn
and the following line to set the path to our repository which is /svn in our case
SVNPath /svn
and the following 3 lines to enable basic authentication
AuthType Basic AuthName "Subversion Repository" AuthUserFile /etc/apache2/dav_svn.passwd
5- We create a user to have access to our repository
sudo htpasswd -cm /etc/apache2/dav_svn.passwd
where is the desired login name
6- We restart the apache server
sudo /etc/init.d/apache2 restart
7- You can access now the repository using the address : http://www.servername.com/svn
Linux Terminal Commands Guide
Hey folks,
a friend asked me for a nice guide to learn the Linux commands, so i made a search for him and found some cool links
straight to the point guide for beginners :
http://linux.org.mt/article/terminal
it covers the following topics :
* Introduction
* Preparation
* The "Bash" shell
* A simple command
* Obtaining help
* Linux Directories
* Linux Files
* Wildcards
* Typing Tricks
* Redirecting Output
* Environment variables
* Scripts
* Aliases
* Switching to root
* Compiling from source
* Conclusion
--------------------------------------------------
Alphabetical Directory of Linux Commands
http://www.oreillynet.com/linux/cmd/
a complete directory of Linux commands
--------------------------------------------------
Linux shortcuts and commands
http://www.unixguide.net/linux/linuxshortcuts.shtml
This is a practical selection of the commands we use most often
if you have more cool guides, please post in comments
how to enable mod_rewrite in apache2.2 (debian/ubuntu)
Here i am going to describe how to enable mod_rewrite in apache2.2 -specaily for debian.
In default installion of apache2.2 on debian never enable mod_rewrite default. So you may need to enable .
First install the apache2.2 with this command :
debian user please use
Open Solaris
Learn More About OpenSolarisOpenSolaris is an operating system (OS), an open source project licensed under CDDL, and a community. The project's goals are innovation, collaboration, and the extension of OpenSolaris technology. Quality AssuranceOpenSolaris is free, open source, and well-suited for desktops, laptops, servers, and data centers. The quality requirement of OpenSolaris is perhaps best stated as Production Ready All The Time. |
|
Who Develops OpenSolaris?OpenSolaris technical communities maintain kernel and userland consolidations and launch new technology projects. OpenSolaris is developed by communities working in the different projects. Each project focuses on one or more specific areas of the system. The OpenSolaris developer project is sponsored by Sun Microsystems, Inc. Answers to Your QuestionsSee the FAQs for detailed information about how to get started with the developer project. You'll learn to use the OpenSolaris.org collaboration web site to create projects and lead communities. You'll also find FAQs for licensing, contributions, and links to technical FAQs. |
|
Which Release Fits My Needs?The OpenSolaris source code will find a variety of uses, including being the basis for future versions of the Solaris OS product, other operating system projects, and third-party products and distributions. Following is a list of current releases. OpenSolaris 2008.05The first delivery from Project Indiana to offer technical support from Sun Microsystems, Inc. This initial release includes a network-based package management system (IPS), the GNOME desktop, and LiveCD technology supported on AMD64, Pentium, and Xeon EM64T platforms. See Getting Started With OpenSolaris 2008.05 for detailed information about this pkg(5) release delivered on a six-month cycle. Solaris Express Community EditionBi-weekly developer builds of the entire code base that is the current development release of the Solaris OS. This is Sun's unsupported binary release of OpenSolaris. Developers can build the OpenSolaris source by using this release as the base system. The release is also known as O/N Nevada it's updated every two weeks, and it's available as a free download. Refer to Solaris Express Documents for detailed information about this SVR4 release delivered every two weeks. Community Distributions
Refer to Distribution Documents for more detailed information. |