Saturday, December 24, 2011
Tuesday, December 6, 2011
Using PHP and XSLT to Create a Word 2007 Document
You can use XSL Transformations (XSLT) to transform XML data into the Microsoft Office Open XML SDK 2.0 format that is used by Microsoft Office Word 2007, and make new Word 2007 documents from XML data. You can simplify transforming XML data into a Word 2007 document by starting with an existing Word 2007 document that has the desired layout.
Link
Labels:
Microsoft Office,
PHP,
Word 2007,
XML,
XSLT
Monday, November 14, 2011
Equivalent to ubuntu-restricted-extras for Debian
I installed Debian 6 on my 9 year old PC and I got a problem like I had with Ubuntu. It's about Youtube. I wanted to see a video but I couldn't because there was not adobe flash player installed.
For Ubuntu, I typed "sudo apt-get install ubuntu-restricted-extras". But I wanted a equivalent to ubuntu-restritected-extras for Debian.
So I googled and found out how to fix problems in Debian. In terminal, type the next commands:
For Ubuntu, I typed "sudo apt-get install ubuntu-restricted-extras". But I wanted a equivalent to ubuntu-restritected-extras for Debian.
So I googled and found out how to fix problems in Debian. In terminal, type the next commands:
- su -
- type root's password
- echo deb ftp:// ftp.debian-multimedia.org/ squeeze main >> /etc/apt/sources.list
- apt-get update
- apt-get install debian-multimedia-keyring
- type 'y'
And voilá! Now, you can see any video from Youtube or somewhere else.
Labels:
Debian,
Linux Ubuntu,
Ubuntu
Saturday, November 12, 2011
How to change from Unity to Gnome
Do you want to change from Unity to Gnome?
So type the next command or see this video:
So type the next command or see this video:
- sudo apt-get install gnome-session-fallback
After the installation is completed, log out your session.
Then, before type your password, change from Ubuntu to Gnome Classic, after that, type your password.
Congratulations, you don't use Unity anymore.
Labels:
Gnome,
Linux Ubuntu,
Ubuntu,
Unity
Tuesday, November 8, 2011
How to install LDAP Server
Lightweight Directory Access Protocol (LDAP) is a network protocol for accessing and manipulating information stored in a directory.
Services built on the LDAP protocol are used to serve a wide range of information. The protocol is well-suited to serving information that must be highly available and accessible, but does not change frequently.
Common applications include:
- Centralization of user and group information as part of Single Sign On (SSO).
- Authenticate users in a web application.
- Create a shared address directory for mail agents.
- Authenticate users locally.
Well, I use LDAP to authenticate users in a web application for my work's project.
To install OpenLDAP on Ubuntu, type the next command in terminal or watch this video
To install OpenLDAP on Ubuntu, type the next command in terminal or watch this video
- sudo apt-get install slapd ldap-utils;
- type your root's password;
- type 'y';
After the installation is completed, type "ldapsearch -Y EXTERNAL -H ldapi:// -b cn=config". This command should return 10-15 entries and is a good check to make sure the installation is basically functional.
In video, you can see 11 entries what means the installation is basically functional and also can follow the next steps:
- Type command "dpkg-reconfigure slapd";
- Choose 'No';
- Type any DNS domain name (e.g. sunsetsoftware.net);
- Type organization's name (e.g. Sunset Software);
- Type administrator's password of DNS domain name inserted on step #3;
- Confirm password inserted on step #5;
- Choose 'BDB' the database backend to use;
- Choose 'No';
- Choose 'Yes';
- Choose 'No';
- Type command "ldapsearch -x -b dc=sunsetsoftware,dc=net"
Now, you have to create a file ldif to populating database. I created a file called "xpto.ldif" and content is:
dn: ou=Group,dc=sunsetsoftware,dc=net
ou: Group
objectClass: organizationalUnit
Exit and save the file ldif on somewhere as you wish. Then, type the next command on terminal:
- ldapadd -x -W -D "cn=admin,dc=sunsetsoftware,dc=net" -f /home/peter/Documents/xpto.ldif
- Enter your ldap's password;
And, voilá! Congratulations! You already added new entry to tree dc=sunsetsoftware,dc=net. You can confirm or add more entries.
Labels:
LDAP,
Linux Ubuntu,
Sun Virtual Box,
Ubuntu
Subscribe to:
Posts (Atom)
