eEcho blog

is een halte van de gedachte

re Java

java.util.regex
Class Pattern
java.lang.Object
extended byjava.util.regex.Pattern
All Implemented Interfaces:
Serializable
public final class Pattern
extends Object
implements Serializable
A compiled representation of a regular expression.
A regular expression, specified as a string, must first be compiled into an instance of this class. The resulting pattern can then be used to create a Matcher object that can match arbitrary character […]

scp Linux

Om bestanden te kopiëren van de remotehost.
scp -r www sdergats@24multimedia.eecho.info:Desktop/
gevolgd door de wachtwoord van de gebruiker die schrijf machtigingen heeft.
scp -r script_test.py root@computername.labo:/etc/eGids/

XSL - FO

Overview
FOP uses XSL-FO as input. It is the responsibility of the user to make sure that the XSL-FO submitted to FOP is correct. The tutorial items presented here are not comprehensive, but are of the FAQ variety. Another good FAQ is Dave Pawson's XSL FAQ.
XML Issues
Special Characters
When entering special (non-ASCII) characters in XML, the general […]

How to make a panoramic picture

http://www.magtoo.com/tour.do?method=uploadPanoramaShow

3D Perspective in Flash


Adobe air


Getting Started Flex Builder Adobe

http://learn.adobe.com/wiki/download/attachments/5701657/animoverview.swf?version=1
http://learn.adobe.com/wiki/display/Flex/Getting+Started - tutorials
http://livedocs.adobe.com/flex/3/html/index.html - documents
http://livedocs.adobe.com/flex/3/html/Working_with_Video_08.html#152433 - Streaming video files

Flex Builder install

Follow these steps to begin experiencing the Flex Builder Linux alpha:
Download the Flex Builder Linux alpha http://labs.adobe.com/downloads/flexbuilder_linux.html
Run the installer either marking it as executable (chmod +x) or by using a shell to execute it

sh flexbuilder_linux_install_a3_033108.bin
root folder of eclipse (debian, ubuntu)
/usr/lib/eclipse
[…]

Adobe Flex Builder Linux Public Alpha

http://labs.adobe.com/technologies/flex/flexbuilder_linux/
Update: Flex Builder Linux alpha 3 was released on 3/31/2008. Please download alpha 3.
Welcome to the Adobe® Flex™ Builder™ Linux alpha on Adobe Labs. Flex Builder Linux is a plugin-only version of the Flex Builder that you can use to build Flex applications on Linux. We wanted to get an early release out with the […]

Mysql Linux restart

* To start mysql server:
# /etc/init.d/mysql start
* To stop mysql server:
# /etc/init.d/mysql stop

* To restart mysql server
# /etc/init.d/mysql restart

File exists Python

Om te controleren een file of een map.
import os
>>> os.path.exists(’/home/sergej/’)
return True or False

Debian afbeeldingen van fotocamera

Om automatisch import in te stellen.
installeer gthumb

sudo apt-get install gthumb
Dan configureer Systeem / Voorkeuren / Verwisselbare stations en media /
op tab camera’s checkbox ” bij verbinding importeren” aanzetten.

Zip Linux

http://kb.iu.edu/data/aeqx.html
To create a zip file, at the Unix prompt, enter:

zip filename inputfile1 inputfile2
Replace filename with the name you want to give the zip file. The .zip extension is automatically appended to the end of the filename. Replace inputfile1 and inputfile2 with the names of the files you wish to include in the zip […]

Debian package management

Debian Reference
Chapter 6 - Debian package management
http://www.debian.org/doc/manuals/reference/ch-package.en.html
aptitude is now the preferred text front end for APT, the Advanced Package Tool. It remembers which packages you deliberately installed and which packages were pulled in through dependencies; the latter packages are automatically de-installed by aptitude when they are no longer needed by any deliberately installed packages. It […]

chmod

Om filesysteem toegankelijk te maken voor alle groepen en gebruikers.

chmod -R 777 /home/sdergats/eecho
Het zou kunnen handig zijn om fout te vermijden in modpython (OSError: [Errno 13] Permission denied:)

Mysql Restore backup in SH Ubuntu

Met sh database automatisch terug zetten.
Maak een sh bestand aan
vim resetDB-shell

Inhoud ervan is hier
#!/bin/sh
sudo mysql -hlocalhost -pwachtwoord -uroot –force -e “DROP DATABASE eEchoDB”
sudo mysql -hlocalhost -pwachtwoord -uroot –force < eEchoDB_20080429_1242.sql
Maak het uitvoerbaar

chmod -R 775 resetDB-shell
run

./resetDB-shell

ArrayList gwt Java

Hier is JRE Emulation Library
http://code.google.com/webtoolkit/documentation/jre.html
Veel gebruikte class ArrayList
http://java.sun.com/j2se/1.4.2/docs/api/java/util/ArrayList.html

import java.util.ArrayList;
private ArrayList sinks = new ArrayList();

Use grep linux

Om in tekst bestanden te kunnen zoeken in filesysteem kan de “grep” commando gebruikt worden.

grep monitorstatus *
zullen alle bestanden getond worden die het woord “monitorstatus” bevatten.

lib pkg zoeken linux

om een lib te zoeken kan een dpkg opdracht gebruikt worden.
Voorbeeld:

dpkg -L libmysql-java

/usr/share/java/mysql-connector-java-5.1.5.jar

python jython interpreter eclipse

* Go to: window > preferences > pydev > Interpreter - (Jython/Python).
* 2. Choose the interpreter you have installed in your computer (such as python.exe or jython.jar)
* 3. Select the paths that will be in your SYSTEM PYTHONPATH. It’s important to select […]

Home | info@eecho.info | Voorwaarden | Blog