November 08

Get out in the series "weekly links". These were my highlights of the past week:

Linux on IBM Thinkpad
Notebooks by IBM or Lenovo successors are particularly well suited for Linux. Here is a brief guide for Kubuntu 9.10, as the notebook for power saving and takes persuaded even more special operational keys.
Closure Tools - Google Code
The Google Online tools all use JavaScript extensively. So it is not surprising that Google now provides its javascript compiler, a library for DOM manipulation and UI elements, and templates for JavaScript and Java under the name of Closure Tools on Google Code for free use. I'm looking forward to the first comparisons with the Yahoo UI Bilbliothek.
Brief technical documentation by Torsten Horn
I'm on short technical documentation (tutorials), especially if they have the quality to that of Torsten Horn.
Continuous Integration for PHP with the Hudson
Testing only makes sense if the tests are regularly carried out. Here's an article on how to integrate PHP tests in Hudson.
google-maps-icons
Free Icons Web developers as you can never have enough. Here is a great choice that Google provides.
PDF generation with the Zend Framework
The much-used PHP library FPDF to create PDF documents with complex layouts quickly gets to its limits. This article describes an alternative to Zend, given to the detour of Office templates allow even complex PDF structures.

gklinkmann written by \ \ tags: , , , , , , ,

September 30

I just got an article on the 100 vim commands read that every programmer should know.
The vim (Vi IMproved) I've been here on the blog once briefly .

In reviewing the list of 100 best vim commands, I have once again learned a lot about these consoles editor, but also well-known old and cherished features discovered. My absolute favorites are:

  • : To turn syntax on syntax highlighting (syntax highlighting)
  • the commands to indent code
    : Set autoindent Indent turn
    : Set switch on smart indent smart indenting
    : Set shiftwidth = 4 Set of 4 spaces as Einrückgröße
    ctrl-t, ctrl-d A / disengagement of the insert mode
    Engagement in the command mode >>
    Disengagement in the command mode <<
  • Interacting with Unix
    : Run the pwd "pwd" unix command and then return to vim
    ! Run the pwd "pwd" unix command and insert the output into the file
    Sh temporary trip to the Unix Shell
  • :% S / old / new / g replace "old" with "new" in the entire file

What are editors for the console you use? And if vim is, on what commands could not do without her?

gklinkmann written by \ \ tags: , , ,

September 14

Linux for old rabbit is a Klax, but because it usually only once per computer, makes me wonder every time when setting up a computer with Windows and Linux - what was that?

Actually, it's not that hard. First you have the UID's of the Windows partition to determine:

  blkid > Sudo blkid
 sda2: UUID = "8A4831E44831CFA5" LABEL = "Volume" TYPE = "ntfs" / Dev / sda2: UUID = "8A4831E44831CFA5" LABEL = "Volume" TYPE = "ntfs"
 sda5: UUID = "A020173420B4E2A8" TYPE = "ntfs" / Dev / sda5 UUID = "A020173420B4E2A8" TYPE = "ntfs" 

then create directories for the mount points:

  / media / windows > Sudo mkdir / media / windows
 / media / windows / C > Sudo mkdir / media / windows / C
 / media / windows / D > Sudo mkdir / media / windows / D 

then the file / etc / fstab to permanently integrate the partitions:

  / etc / fstab > Sudo vi / etc / fstab
 # Add rows
 media / windows / C ntfs-3g defaults, nls =utf8, uid = 0 , gid = 46 0 0 8A4831E44831CFA5 UUID = / media / windows / C ntfs-3g defaults, nls = utf8, uid = 0, gid = 46 0 0
 media / windows / D ntfs-3g defaults, nls =utf8, uid = 0 , gid = 46 0 0 A020173420B4E2A8 UUID = / media / windows / D ntfs-3g defaults, nls = utf8, uid = 0, gid = 46 0 0 

To mount the ntfs-3g driver is used, which is already part of the major distributions (tested on Kubuntu 9.04). What's missing is the very first:

  -a > Sudo mount-a 

Finish.

Links:
ubuntuusers.de - integrate Windows partitions

gklinkmann written by \ \ tags: , , , , ,

Mar 02

The L D ightweight irectory A ccess P rotocol (LDAP) has been proven on the Internet for authentication of user data. LDAP provides for a very high performance access to Directory Server (LDAP server also called), in which user data are stored hierarchically.

To deal with the issue a bit more, you have to put your own LDAP server is not the same, but can draw on a range of public and free LDAP server.

This is a good list of the eMailman . A simple query using ldapsearch (part of Mac OS X, under Ubuntu, the package must be installed ldap-utils) might look like this:

  "ldap.uno.edu" -LLL -x \ > Ldapsearch-h "ldap.uno.edu"-LLL-x \
              \ -B "ou = Students, o = UNIVERSITY OF NEW ORLEANS, c = U.S." \
              "(Sn = Fu)" cn
 =Students, o =University of New Orleans, c =US dn: cn = Pik Yu Fu, ou = Students, o = University of New Orleans, c = U.S.
 cn: Pik Yu Fu

 =Students, o =University of New Orleans, c =US dn: cn = Yuan Yuan Fu: yfu2, ou = Students, o = University of New Orleans, c = U.S.
 cn: Yuan Yuan Fu: yfu2

 =Students, o =University of New Orleans, c =US dn: cn = Shiquan fu, ou = Students, o = University of New Orleans, c = U.S.
 cn: Shiquan Fu 

This query searches the LDAP server of the University of New Orleans to students with the last name Fu. Here is a brief explanation of the parameters:

-H
LDAP server
-LLL
Output Options - A simple-L restricts the output to LDIFv1. A second-L suppresses comments. A third-L suppresses the output of the LDIF version.
-X
Use simple authentication without the Simple Authentication and Security Layer (SASL).
-B
Use a specific search base as a starting point for the search.
(Sn = Fu)
Filter search by last name
cn
Common name - attribute that is output

gklinkmann written by \ \ tags: , ,

February 04

docky

Who like the dock in MacOS and other operating systems also would like, which at least for Gnome-based Linux distributions offer a solution.

The program launcher gnome-do with the Docky theme brings the Dock of MacOs on the Gnome desktop. It is particularly easy to install in Ubuntu.

Gnome-do is already included in the repositories and can:

  sudo apt-get install gnome-do 

be installed. The currently included in the repositories is version 0.61. Whoever wants to be on the last level should be to integrate the suite of the project.

  intrepid main deb intrepid main http://ppa.launchpad.net/do-core/ppa/ubuntu
 intrepid main intrepid main deb-src http://ppa.launchpad.net/do-core/ppa/ubuntu 

What one has to bear in mind is possible in the installation instructions read.

The dock Docky is a subject of gnome-do. It must be under " Preferences -> Appearance "must be activated. Docky appears, however, only in this selection, if either the desktop effects are enabled ( System -> Einstellungen -> Erscheinungsbild -> visuelle Effekte ) or the effects of Metacity was enabled.

The latter may be using on the command line:

  bool \ gconftool-2-s - type bool \ 
 metacity / general / compositing_manager true / Apps / metacity / general / compositing_manager true 

. switch It should be noted that only the desktop effects or the effects Metacity should be used because they interfere with each other.

Conclusion: Gnome-do Docky and will launch applications not only simple but also beautiful. I like KDE, even a trailer, like me.

Resources:
gnome-do - wiki
gnome-do - docky
ubuntuusers.de - gnome-do in ubuntu
aptgetupdate.de - Docky
aptgetupdate.de - gnome-do 0.8

gklinkmann written by \ \ tags: , ,