2010. február 27., szombat
2009. október 24., szombat
Adatbázis riport
Open-source:
Magallanes
It combines static reports (based on JasperReports), a Swing pivot table for OLAP analysis, and charts (based on JFreeChart). It reads from many data sources as SQL, Excel, XML, and others, and produces many outputs as PDF, XML, and application specific files for later off-line visualization of reports.
Shareware
PHP Report Maker
PHP Report Maker is a powerful reporting tool that can generate dynamic PHP Web reports from MySQL database. You can instantly create live detail and summary reports or crosstabs reports for your Websites. Flash charting (column, bar, line, pie, area, doughnut, multi-series and stacked charts) is also supported. PHP Report Maker is designed for high flexibility, numerous options enable you to generate the reports that best suits your needs. The generated codes are clean and easy-to-customize. PHP Report Maker can save you tons of time and is suitable for both beginners and experienced developers alike.
Magallanes
It combines static reports (based on JasperReports), a Swing pivot table for OLAP analysis, and charts (based on JFreeChart). It reads from many data sources as SQL, Excel, XML, and others, and produces many outputs as PDF, XML, and application specific files for later off-line visualization of reports.
Shareware
PHP Report Maker
PHP Report Maker is a powerful reporting tool that can generate dynamic PHP Web reports from MySQL database. You can instantly create live detail and summary reports or crosstabs reports for your Websites. Flash charting (column, bar, line, pie, area, doughnut, multi-series and stacked charts) is also supported. PHP Report Maker is designed for high flexibility, numerous options enable you to generate the reports that best suits your needs. The generated codes are clean and easy-to-customize. PHP Report Maker can save you tons of time and is suitable for both beginners and experienced developers alike.
Grid példák
- http://codethat.com/grid/grid_examples.html
- http://www.zapatec.com/website/main/products/grid/demo.jsp
- http://www.nitobi.com/products/grid
- http://www.nitobi.com/products/treegrid/basic
- http://www.treegrid.com/treegrid/www/
- http://www.petala-azul.com/grid/default/site/filters
- http://www.apphp.com/php-datagrid/index.php?page=examples
- http://www.phpgrid.com/grid/ss/
- http://www.activewidgets.com/
- http://dhtmlx.com/docs/products/dhtmlxGrid/
- http://stefangabos.blogspot.com/search/label/Data%20Grid%20PHP%20Class%20Download/
- http://www.eyesis.ca/projects/datagrid.html
2009. október 18., vasárnap
Diagramok a weben
Visifire
Visifire is a set of data visualization components powered by Microsoft Silverlight. It lets you create and embed visually stunning animated Silverlight Charts within minutes. Visifire is easy to use and independent of the server side technology. It can be used with ASP, ASP.Net, PHP, JSP, ColdFusion, Ruby on Rails, or just simple HTML. Visifire's unique features are visually stunning animated charts, the ability to be embedded into any Web page in minutes, a tiny footprint (140 KB), and enterprise grade features.
http://freshmeat.net/projects/visifire
FusionCharts
FusionCharts v3 helps you create animated and interactive Flash charts for web and desktop applications. It livens up your applications by converting monotonous data into exciting visuals.
FusionCharts can be integrated with a myriad of web technologies like ASP, ASP.NET, PHP, JSP, ColdFusion, Ruby on Rails, Python or even simple HTML pages. It works with all databases including MS SQL, Oracle, MySQL, PostgreSQL, CSV or even legacy data storage.
FusionCharts offers over 45 types of 2D/3D charts including line, area, bar, column, pie, doughnut (donut), combination, scatter, bubble, scroll charts etc. The functional and cosmetic aspects of each chart can be extensively customized using the XML API exposed by FusionCharts. You do not need to know anything about Flash™ to use FusionCharts.
http://www.fusioncharts.com/
Visifire is a set of data visualization components powered by Microsoft Silverlight. It lets you create and embed visually stunning animated Silverlight Charts within minutes. Visifire is easy to use and independent of the server side technology. It can be used with ASP, ASP.Net, PHP, JSP, ColdFusion, Ruby on Rails, or just simple HTML. Visifire's unique features are visually stunning animated charts, the ability to be embedded into any Web page in minutes, a tiny footprint (140 KB), and enterprise grade features.
http://freshmeat.net/projects/visifire
FusionCharts
FusionCharts v3 helps you create animated and interactive Flash charts for web and desktop applications. It livens up your applications by converting monotonous data into exciting visuals.
FusionCharts can be integrated with a myriad of web technologies like ASP, ASP.NET, PHP, JSP, ColdFusion, Ruby on Rails, Python or even simple HTML pages. It works with all databases including MS SQL, Oracle, MySQL, PostgreSQL, CSV or even legacy data storage.
FusionCharts offers over 45 types of 2D/3D charts including line, area, bar, column, pie, doughnut (donut), combination, scatter, bubble, scroll charts etc. The functional and cosmetic aspects of each chart can be extensively customized using the XML API exposed by FusionCharts. You do not need to know anything about Flash™ to use FusionCharts.
http://www.fusioncharts.com/
MySql backup script
Egy jó kis MySql backup script:
http://sourceforge.net/projects/automysqlbackup/
A script to take daily, weekly and monthly backups of your MySQL databases using mysqldump. Features - Backup mutiple databases - Single backup file or to a seperate file for each DB - Compress backup files - Backup remote servers - E-mail logs - More..
http://sourceforge.net/projects/automysqlbackup/
A script to take daily, weekly and monthly backups of your MySQL databases using mysqldump. Features - Backup mutiple databases - Single backup file or to a seperate file for each DB - Compress backup files - Backup remote servers - E-mail logs - More..
2009. szeptember 30., szerda
Multiple Condition/criteria sum function for excel
Forrás: http://www.ozgrid.com/VBA/sum-multi-criteria.htm
Function SumByCriteria(Sum_Range As Range, Criteria1, Criteria1Range As Range, _
Criteria2, Criteria2Range As Range, Optional Criteria3, _
Optional Criteria3Range As Range, Optional Criteria4, _
Optional Criteria4Range As Range, Optional Criteria5, _
Optional Criteria5Range As Range) As Long
Dim lLoopStop As Long, lLoop As Long, rRange As Range, lRow As Long
Dim sTotal As Single, bVal1 As Boolean, bVal2 As Boolean, bVal3 As Boolean
Dim bVal4 As Boolean, bVal5 As Boolean, bVal1b As Boolean, bVal2b As Boolean, bVal3b As Boolean
Dim bVal4b As Boolean, bVal5b As Boolean, lCriteriaUsed As Long
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'''''''''''''''Written by ozgrid.com''''''''''''''''''''''''''''''''''''''
'Sums Values in Sum_Range when up to 5 conditions are met in corresponding cells.
'All ranges used should as small as possible for efficieny
''IF YOU HAVE 2007 USE SUMIFS
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
lLoopStop = WorksheetFunction.CountIf(Criteria1Range, Criteria1)
bVal3 = Not Criteria3Range Is Nothing
bVal4 = Not Criteria4Range Is Nothing
bVal5 = Not Criteria5Range Is Nothing
If bVal5 = False Then lCriteriaUsed = 4
If bVal4 = False Then lCriteriaUsed = 3
If bVal3 = False Then lCriteriaUsed = 2
Set rRange = Criteria1Range(1, 1)
For lLoop = 1 To lLoopStop
Set rRange = Criteria1Range.Find(Criteria1, rRange, _
xlFormulas, xlWhole, xlByRows, xlNext, False)
lRow = rRange.Row
If bVal5 = True Then bVal5b = Criteria5Range(lRow, 1) = Criteria5
If bVal4 = True Then bVal4b = Criteria4Range(lRow, 1) = Criteria4
If bVal3 = True Then bVal3b = Criteria3Range(lRow, 1) = Criteria3
bVal2b = Criteria2Range(lRow, 1) = Criteria2
bVal1b = Criteria1Range(lRow, 1) = Criteria1
If lCriteriaUsed > 4 Then
If bVal5b And bVal4b And bVal3b And bVal2 And bVal1b Then
sTotal = WorksheetFunction.Sum(Sum_Range(lRow, 1), sTotal)
End If
ElseIf lCriteriaUsed > 3 Then
If bVal4b And bVal3b And bVal2b And bVal1b Then
sTotal = WorksheetFunction.Sum(Sum_Range(lRow, 1), sTotal)
End If
ElseIf lCriteriaUsed > 2 Then
If bVal3b And bVal2 And bVal1b Then
sTotal = WorksheetFunction.Sum(Sum_Range(lRow, 1), sTotal)
End If
ElseIf bVal2b And bVal1b Then
sTotal = WorksheetFunction.Sum(Sum_Range(lRow, 1), sTotal)
End If
Next lLoop
SumByCriteria = sTotal
End Function
Example usage;
=SumByCriteria(A1:A21,"cat",C1:C21,"furry",E1:E21,"fluffy",G1:G21,"persian",I1:I21)
Function SumByCriteria(Sum_Range As Range, Criteria1, Criteria1Range As Range, _
Criteria2, Criteria2Range As Range, Optional Criteria3, _
Optional Criteria3Range As Range, Optional Criteria4, _
Optional Criteria4Range As Range, Optional Criteria5, _
Optional Criteria5Range As Range) As Long
Dim lLoopStop As Long, lLoop As Long, rRange As Range, lRow As Long
Dim sTotal As Single, bVal1 As Boolean, bVal2 As Boolean, bVal3 As Boolean
Dim bVal4 As Boolean, bVal5 As Boolean, bVal1b As Boolean, bVal2b As Boolean, bVal3b As Boolean
Dim bVal4b As Boolean, bVal5b As Boolean, lCriteriaUsed As Long
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'''''''''''''''Written by ozgrid.com''''''''''''''''''''''''''''''''''''''
'Sums Values in Sum_Range when up to 5 conditions are met in corresponding cells.
'All ranges used should as small as possible for efficieny
''IF YOU HAVE 2007 USE SUMIFS
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
lLoopStop = WorksheetFunction.CountIf(Criteria1Range, Criteria1)
bVal3 = Not Criteria3Range Is Nothing
bVal4 = Not Criteria4Range Is Nothing
bVal5 = Not Criteria5Range Is Nothing
If bVal5 = False Then lCriteriaUsed = 4
If bVal4 = False Then lCriteriaUsed = 3
If bVal3 = False Then lCriteriaUsed = 2
Set rRange = Criteria1Range(1, 1)
For lLoop = 1 To lLoopStop
Set rRange = Criteria1Range.Find(Criteria1, rRange, _
xlFormulas, xlWhole, xlByRows, xlNext, False)
lRow = rRange.Row
If bVal5 = True Then bVal5b = Criteria5Range(lRow, 1) = Criteria5
If bVal4 = True Then bVal4b = Criteria4Range(lRow, 1) = Criteria4
If bVal3 = True Then bVal3b = Criteria3Range(lRow, 1) = Criteria3
bVal2b = Criteria2Range(lRow, 1) = Criteria2
bVal1b = Criteria1Range(lRow, 1) = Criteria1
If lCriteriaUsed > 4 Then
If bVal5b And bVal4b And bVal3b And bVal2 And bVal1b Then
sTotal = WorksheetFunction.Sum(Sum_Range(lRow, 1), sTotal)
End If
ElseIf lCriteriaUsed > 3 Then
If bVal4b And bVal3b And bVal2b And bVal1b Then
sTotal = WorksheetFunction.Sum(Sum_Range(lRow, 1), sTotal)
End If
ElseIf lCriteriaUsed > 2 Then
If bVal3b And bVal2 And bVal1b Then
sTotal = WorksheetFunction.Sum(Sum_Range(lRow, 1), sTotal)
End If
ElseIf bVal2b And bVal1b Then
sTotal = WorksheetFunction.Sum(Sum_Range(lRow, 1), sTotal)
End If
Next lLoop
SumByCriteria = sTotal
End Function
Example usage;
=SumByCriteria(A1:A21,"cat",C1:C21,"furry",E1:E21,"fluffy",G1:G21,"persian",I1:I21)
2009. szeptember 21., hétfő
Excel: dupla kattintás letiltása
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Application.EditDirectlyInCell = True
Range("A1").Activate
Cancel = True 'Cancel the default behaviour
End Sub
Forrás:
http://www.thecodecage.com/forumz/excel-vba-programming/91029-disable-cursor-when-double-click.html
Application.EditDirectlyInCell = True
Range("A1").Activate
Cancel = True 'Cancel the default behaviour
End Sub
Forrás:
http://www.thecodecage.com/forumz/excel-vba-programming/91029-disable-cursor-when-double-click.html
2009. szeptember 7., hétfő
php Call to undefined function mssql_connect() hiba kezelése
PHP script parancssorból nem éri el az mssql adatbázist.
Megoldás:
apt-get update
apt-cache search php | grep "MS SQL"
A következő modult kell feltenni:
php5-sybase - Sybase / MS SQL Server module for php5
apt-get install php5-sybase
Apache reload:
/etc/init.d/apache2 reload
Megoldás:
apt-get update
apt-cache search php | grep "MS SQL"
A következő modult kell feltenni:
php5-sybase - Sybase / MS SQL Server module for php5
apt-get install php5-sybase
Apache reload:
/etc/init.d/apache2 reload
2009. augusztus 24., hétfő
2009. augusztus 20., csütörtök
apt-get súgó
apt (Advanced Packaging Tool):
keresés a csomagok neveiben, rövid- és hosszú leírásában
apt-cache search szó
csomag (program) telepítése
apt-get install csomagnév
csomag (program) eltávolítása
apt-get remove csomagnév
csomag (program) eltávolítása és konfigurációs fájlok törlése
apt-get remove --purge csomagnév
teljes csomaggyorsítótár kiürítése
apt-get clean
csak a felesleges csomaggyorsítótár űrítése
apt-get autoclean
egy csomag (a csomagban lévő program) újrabeállítása, újrakonfigurálása
dpkg-reconfigure csomagnév
információ kérése a csomagról (programról)
apt-cache show csomagnév
elérhető csomagok (programok) listájának frissítése
apt-get update
a teljes rendszer frissítése
apt-get upgrade
CD-rom hozzáadása a csomagforráshoz (/etc/apt/sources.list)
apt-cdrom add
keresés a csomagok neveiben, rövid- és hosszú leírásában
apt-cache search szó
csomag (program) telepítése
apt-get install csomagnév
csomag (program) eltávolítása
apt-get remove csomagnév
csomag (program) eltávolítása és konfigurációs fájlok törlése
apt-get remove --purge csomagnév
teljes csomaggyorsítótár kiürítése
apt-get clean
csak a felesleges csomaggyorsítótár űrítése
apt-get autoclean
egy csomag (a csomagban lévő program) újrabeállítása, újrakonfigurálása
dpkg-reconfigure csomagnév
információ kérése a csomagról (programról)
apt-cache show csomagnév
elérhető csomagok (programok) listájának frissítése
apt-get update
a teljes rendszer frissítése
apt-get upgrade
CD-rom hozzáadása a csomagforráshoz (/etc/apt/sources.list)
apt-cdrom add
Debian: csomagok keresése
Keresés a csomagkönyvtárakban, a csomagok tartalmában:
http://www.debian.org/distrib/packages#search_packages
vagy
apt-cache search pascal
apt-cache search pascal editor
http://www.debian.org/distrib/packages#search_packages
vagy
apt-cache search pascal
apt-cache search pascal editor
PHP: Adatbekérés parancssorból
fwrite(STDOUT, "Hello...\nWhat is your name? ");
$name = trim(fgets(STDIN));
$name = trim(fgets(STDIN));
2009. augusztus 8., szombat
2009. július 25., szombat
Mysql lock tables
Időnként Excel kimutatással érek el MySql táblákat, viszont volt egy olyan problémám, hogy ha épp frissítettem egy táblát (truncate, load into ...), akkor is frissíthettem a kimutatást, de így sajnos rossz (félig kész) adatokat mutatott.
Eme problémát megelőzendő próbálkoztam a lock tables paranccsal.
Elsőre a "lock tables táblanév read;" paranccsal kísérleteztem, de mint kiderült a write a helyes irány:
LOCK TABLES táblanév WRITE;
Ja, tapasztalatom szerint a LOCK TABLES parancsot TRUNCATE parancs után kell kiadni!
Ezen parancs hatása alatt az Excel nem tud kimutatást frissíteni, csak homokórázik.
Amint kiadom a feloldás parancsot, a kimutatás újra frissíthető:
UNLOCK TABLES;
Forrás:
http://hup.hu/node/73927
http://dev.mysql.com/doc/refman/5.0/en/lock-tables.html
Eme problémát megelőzendő próbálkoztam a lock tables paranccsal.
Elsőre a "lock tables táblanév read;" paranccsal kísérleteztem, de mint kiderült a write a helyes irány:
LOCK TABLES táblanév WRITE;
Ja, tapasztalatom szerint a LOCK TABLES parancsot TRUNCATE parancs után kell kiadni!
Ezen parancs hatása alatt az Excel nem tud kimutatást frissíteni, csak homokórázik.
Amint kiadom a feloldás parancsot, a kimutatás újra frissíthető:
UNLOCK TABLES;
Forrás:
http://hup.hu/node/73927
http://dev.mysql.com/doc/refman/5.0/en/lock-tables.html
2009. július 21., kedd
Legfrissebb fájl másolása
Szükségem volt egy olyan scriptre, amely a legfrissebb fájlt átmásolja úgy, hogy a cél egy fix fájlnév legyen (Windows XP alatt).
cd "target_dir"
FOR /F "delims=|" %%I IN ('DIR "*.BAK" /B /O:D') DO SET NewestFile=%%I
echo %NewestFile% > legujabb.txt
copy /Y %NewestFile% legujabb.BAK2
DIR parancs kapcsolói:
/B: Egyszerű formátum (nincs fejléc-információ és összegzés)
/O:D Sorbarendezés dátum szerint (régiektől)
cd "target_dir"
FOR /F "delims=|" %%I IN ('DIR "*.BAK" /B /O:D') DO SET NewestFile=%%I
echo %NewestFile% > legujabb.txt
copy /Y %NewestFile% legujabb.BAK2
DIR parancs kapcsolói:
/B: Egyszerű formátum (nincs fejléc-információ és összegzés)
/O:D Sorbarendezés dátum szerint (régiektől)
2009. július 20., hétfő
Aix smit.log file
Aix alatt a smit segédprogram log fájljából sok hasznos információt kinyerhetünk.
smit.log helye: /smit.log
Stop a Print Queue
/usr/bin/enq -D -P 'scabc:@scabc'
Start a Print Queue
/usr/bin/enq -U -P 'scabc:@scabc'
-D
Device DOWN. Turns off the device associated with the queue.
-P Queue
Specifies the queue to which the job is sent. A particular device
on a queue can be specified by typing -P Queue:Device.
-U
Brings UP the device associated with a queue.
smit.log helye: /smit.log
Stop a Print Queue
/usr/bin/enq -D -P 'scabc:@scabc'
Start a Print Queue
/usr/bin/enq -U -P 'scabc:@scabc'
-D
Device DOWN. Turns off the device associated with the queue.
-P Queue
Specifies the queue to which the job is sent. A particular device
on a queue can be specified by typing -P Queue:Device.
-U
Brings UP the device associated with a queue.
Ingyenes CMS rendszerek
Ma már rengeteg ingyenes és kiváló CMS rendszert tölthetünk le.
Jó kiinduló pont ezek teszteléséhez az opensourceCMS.com.
Kategóriákban böngészhetünk és online demo is elérhető.
A CMS Matrix honlapon pedig rengeteg szempont hasonlíthatjuk össze a CMS rendszereket.
Jó kiinduló pont ezek teszteléséhez az opensourceCMS.com.
Kategóriákban böngészhetünk és online demo is elérhető.
A CMS Matrix honlapon pedig rengeteg szempont hasonlíthatjuk össze a CMS rendszereket.
Néhány freeware program
Íme néhány általam kedvelt freeware program:
SpeedFan
Az alaplap, a processzor, a merevlemez és a videokártya hőmérsékletét figyeli az ingyenes program. Támogatja a S.M.A.R.T. technológiát, alkalmas a hőmérsékletek grafikus kijelzésre.
musikCube
A musikCube egy nyílt forráskódú zenei lejátszó nagyszerű zenetárral.
Az ingyenes, nyílt forráskódú musikCube MP3, OGG, FLAC, APE és CD-Audio formátumokat is támogat. CD-ripper és LAME-MP3, OGG és FLAC kodekeket szintén tartalmaz. Az ablakot saját kedvünk szerint állíthatjuk be, és rengeteg plug-in is letölthető a programhoz, például a gyártó oldaláról. Figyeltethetjük egy könyvtár tartalmát és kollekciókat készíthetünk, amelyből kiválogathatjuk (Ctrl+egér) a megfelelő előadókat vagy albumokat. Netrádiókat is kezel.
prime95
Új prímszámok számolásával a rendszerállapot felmérését végző program.
Nálam pl. eme teszt szinte rögtön lefagyasztotta a gépem, jelezve, hogy valami probléma van a gépem terhelhetőségével (ezt sajnos tapasztaltam is).
SpeedFan
Az alaplap, a processzor, a merevlemez és a videokártya hőmérsékletét figyeli az ingyenes program. Támogatja a S.M.A.R.T. technológiát, alkalmas a hőmérsékletek grafikus kijelzésre.
musikCube
A musikCube egy nyílt forráskódú zenei lejátszó nagyszerű zenetárral.
Az ingyenes, nyílt forráskódú musikCube MP3, OGG, FLAC, APE és CD-Audio formátumokat is támogat. CD-ripper és LAME-MP3, OGG és FLAC kodekeket szintén tartalmaz. Az ablakot saját kedvünk szerint állíthatjuk be, és rengeteg plug-in is letölthető a programhoz, például a gyártó oldaláról. Figyeltethetjük egy könyvtár tartalmát és kollekciókat készíthetünk, amelyből kiválogathatjuk (Ctrl+egér) a megfelelő előadókat vagy albumokat. Netrádiókat is kezel.
prime95
Új prímszámok számolásával a rendszerállapot felmérését végző program.
Nálam pl. eme teszt szinte rögtön lefagyasztotta a gépem, jelezve, hogy valami probléma van a gépem terhelhetőségével (ezt sajnos tapasztaltam is).
2009. július 17., péntek
Linux script (Escapes in Regular Expressions)
GNU Extensions for Escapes in Regular Expressions
The list of these escapes is:
\a
Produces or matches a bel character, that is an “alert” (ascii 7).
\f
Produces or matches a form feed (ascii 12).
\n
Produces or matches a newline (ascii 10).
\r
Produces or matches a carriage return (ascii 13).
\t
Produces or matches a horizontal tab (ascii 9).
\v
Produces or matches a so called “vertical tab” (ascii 11).
\cx
Produces or matches Control-x, where x is any character. The precise effect of `\cx' is as follows: if x is a lower case letter, it is converted to upper case. Then bit 6 of the character (hex 40) is inverted. Thus `\cz' becomes hex 1A, but `\c{' becomes hex 3B, while `\c;' becomes hex 7B.
\dxxx
Produces or matches a character whose decimal ascii value is xxx.
\oxxx
Produces or matches a character whose octal ascii value is xxx.
\xxx
Produces or matches a character whose hexadecimal ascii value is xx.
`\b' (backspace) was omitted because of the conflict with the existing “word boundary” meaning.
Other escapes match a particular character class and are valid only in regular expressions:
\w
Matches any “word” character. A “word” character is any letter or digit or the underscore character.
\W
Matches any “non-word” character.
\b
Matches a word boundary; that is it matches if the character to the left is a “word” character and the character to the right is a “non-word” character, or vice-versa.
\B
Matches everywhere but on a word boundary; that is it matches if the character to the left and the character to the right are either both “word” characters or both “non-word” characters.
\`
Matches only at the start of pattern space. This is different from ^ in multi-line mode.
\'
Matches only at the end of pattern space. This is different from $ in multi-line mode.
The list of these escapes is:
\a
Produces or matches a bel character, that is an “alert” (ascii 7).
\f
Produces or matches a form feed (ascii 12).
\n
Produces or matches a newline (ascii 10).
\r
Produces or matches a carriage return (ascii 13).
\t
Produces or matches a horizontal tab (ascii 9).
\v
Produces or matches a so called “vertical tab” (ascii 11).
\cx
Produces or matches Control-x, where x is any character. The precise effect of `\cx' is as follows: if x is a lower case letter, it is converted to upper case. Then bit 6 of the character (hex 40) is inverted. Thus `\cz' becomes hex 1A, but `\c{' becomes hex 3B, while `\c;' becomes hex 7B.
\dxxx
Produces or matches a character whose decimal ascii value is xxx.
\oxxx
Produces or matches a character whose octal ascii value is xxx.
\xxx
Produces or matches a character whose hexadecimal ascii value is xx.
`\b' (backspace) was omitted because of the conflict with the existing “word boundary” meaning.
Other escapes match a particular character class and are valid only in regular expressions:
\w
Matches any “word” character. A “word” character is any letter or digit or the underscore character.
\W
Matches any “non-word” character.
\b
Matches a word boundary; that is it matches if the character to the left is a “word” character and the character to the right is a “non-word” character, or vice-versa.
\B
Matches everywhere but on a word boundary; that is it matches if the character to the left and the character to the right are either both “word” characters or both “non-word” characters.
\`
Matches only at the start of pattern space. This is different from ^ in multi-line mode.
\'
Matches only at the end of pattern space. This is different from $ in multi-line mode.
2009. július 14., kedd
rsync parancsról röviden
Telepítve van-e:
# dpkg --get-selections | grep rsync
----------------------------------------------------
rsync telepítése:
# apt-get update
# apt-get install rsync
----------------------------------------------------
rsync konfiguráció:
/etc/rsyncd.conf
uid=0
gid=0
read only = yes
use chroot = no
auth users = backup
hosts allow = 192.168.111.111
hosts deny = *
secrets file = /etc/rsync.secret
[mind]
path = /
exclude = /dev /initrd /lost+found /media /mnt /opt /proc /selinux /sys /tmp
Jogok beállítása:
/etc/rsync, /etc/rsyncd
640
# dpkg --get-selections | grep rsync
----------------------------------------------------
rsync telepítése:
# apt-get update
# apt-get install rsync
----------------------------------------------------
rsync konfiguráció:
/etc/rsyncd.conf
uid=0
gid=0
read only = yes
use chroot = no
auth users = backup
hosts allow = 192.168.111.111
hosts deny = *
secrets file = /etc/rsync.secret
[mind]
path = /
exclude = /dev /initrd /lost+found /media /mnt /opt /proc /selinux /sys /tmp
Jogok beállítása:
/etc/rsync, /etc/rsyncd
640
Feliratkozás:
Bejegyzések (Atom)