Archive for May, 2009

^ – początek match input
$ – koniec match input
| – OR
. – 1 znak
+ – znak od lewej wystąpi >=1 raz (A, AA, AAA)
* – znak od lewej wystąpi >=0 razy ( , A, AA)
? – znak wystąpi 0 lub 1 raz ( , A)
\ – usunięcie specjalnego znaczenia regexp’a
() – kolejność odczytywania
[] – grupa znaków

z|Z – z3ll lub Z3ll
([Mm]|[Ii])ke – Mke, mke, Ike, ike
Ha+cker – Hacker, Haacker
\$ell – $ell

Przydatne w Linuksach i tworzeniu sygnatur IPS.

Sags/brownouts (zaciemnienie): short term decreases in voltage levels. This is the most common power problem, accounting for 87% of all power disturbances according to a study by Bell Labs.

CAUSE – Sags are usually caused by the start-up power demands of many electrical devices (including motors, compressors, elevators, shop tools, etc.) Electric companies use sags to cope with extraordinary power demands. In a procedure known as rolling brownouts, the utility will systematically lower voltage levels in certain areas for hours or days at a time. Hot Summer days, when air conditioning requirements are at their peak, will often prompt rolling brownouts.

EFFECT – A sag can starve a computer of the power it needs to function, and cause frozen keyboards and unexpected system crashes which both result in lost or corrupted data. Sags also reduce the efficiency and life span of electrical equipment, particularly motors.

Blackout (zanik napięcia): Total loss of utility power.

CAUSE – Blackouts are caused by excessive demand on the power grid, lightning storms, ice on power lines, car accidents, backhoes, earthquakes and other catastrophies.

EFFECT – Current work in RAM or cache is lost. The hard drive File Allocation Table (FAT) may also be lost, which results in total loss of data stored on drive.

Spike/impulse (skok napięcia): instantaneous, dramatic increase in voltage. Akin to the force of a tidal wave, a spike can enter electronic equipment through AC, network, serial or phone lines and damage or completely destroy components.

CAUSE – Spikes are typically caused by a nearby lightning strike. Spikes can also occur when utility power comes back on line after having been knocked out in a storm or as the result of a car accident.

EFFECT – Catastrophic damage to hardware occurs. Data will be lost.

Surge (nagły wzrost napięcia): A short term increase in voltage, typically lasting at least 1/120 of a second.

CAUSE – Surges result from presence of high-powered electrical motors, such as air conditioners, and household appliances in the vicinity. When this equipment is switched off, the extra voltage is dissipated through the power line.

EFFECT – Computers and similar sensitive electronic devices are designed to receive power within a certain voltage range. Anything outside of expected peak and RMS (considered the average voltage) levels will stress delicate components and cause premature failure.

Noise/EMI/RFI (zakłócenia/zaszumienie): More technically referred to as Electro-Magnetic Interference (EMI) and Radio Frequency Interference (RFI), electrical noise disrupts the smooth sine wave one expects from utility power.

CAUSE – Electrical noise is caused by many factors and phenomena, including lightning, load switching, generators, radio transmitters and industrial equipment. It may be intermittent or chronic.

EFFECT – Noise introduces glitches and errors into executable programs and data files.