Programowanie reaktywne, język elm, s.17
http://www.elm-lang.org/
SEC, simple event correlator, analizowanie logów s.43
Zabbix zamiast nagiosa, instalacja wymagania s.49
Netrw, szybkie przesyłanie po sieci, netwrite, netread s.55
http://mamuti.net/netrw/index.en.html
Tripwire, śledzenie zmian w systemie s.66
http://sourceforge.net/projects/tripwire/
Linux Remote Control, sterowanie linuxem z poziomu androida s.70
http://www.linuxremotecontrol.com/index-en.html
https://play.google.com/store/apps/details?id=net.rbaron.remotecontrollite
Tree zamiast ls, lepsze przeglądanie plików, s.84
powiększenie wartości atrybutów css o 1
$('#ground').css('left', function(index, value) {
return parseInt(value) + 1;
})
ustalenie wielu wartości w css na raz
$('#ground').css({
left: 100,
top: 100
})
animacja jedna po drugiej
$('#ground').animate({left: 100}).animate({top: 100});
dwie animacje na raz
$('#ground').animate({left: 100, top: 100});
albo
$('#ground').animate({left: 100}).animate({top: 100},{queue: false});
albo
$('#ground').animate({left: 100}).animate({top: 100}).dequeue();
zatrzymanie animacji
$('#ground').stop();
czyszczenie kolejki animacji
$('#ground').clearQueue();
opóźnienie
$('#ground').fadeIn().delay(2000).fadeOut();
bind - obsługa zdarzeń ale tylko dla elementów które są już na stronie w momencie wywołania kodu
$('#ground').bind('click', function() {
alert("Clicked")
});
robi to samo co to
$('#ground').click(function() {alert("Clicked")});
delegate - działa tak jak bind ale też dla potomnych
$('#world').delegate('#ground', 'click', function() {
alert("Clicked")
});
usuwanie obsługi zdarzeń
.unbind() .undelegate()
w jquery 1.7 bind i delegate zastąpione przez
.on() .off()
przypisanie wartości do obiektu. http://ejohn.org/blog/html-5-data-attributes/
$('#ground').data('iloscZyc' , 5);
remove() - usuwa element. detach() - usuwa element ale pozwala go później przywrócić.
definiowanie przestrzeni nazw
var cocktail = {};
cocktail.shake = function (){...}
ncocktail.stir = function (){...}
albo
var cocktail = {
shake: function (){...}
stir: function (){...}
};
http://www.ubuntugeek.com/howto-setup-database-server-with-postgresql-and-pgadmin3.html
sudo apt-get install pgadmin3
Stacja pogody, radio programowe – s.20
http://www.terratec.net/details.php?artnr=CINERGY+T-Stick+RC#.U5XXOHKJTmE

Zobacz całość
sudo service mysql stop
sudo mysqld --skip-grant-tables &
mysql -u root mysql
UPDATE user SET Password=PASSWORD('MYSECRET') WHERE User='root'; FLUSH PRIVILEGES; exit;
sudo pkill mysqld
sudo service mysql start
http://askubuntu.com/questions/321903/resetting-forgotten-phpmyadmin-password
https://github.com/EllisLab/CodeIgniter/wiki/Language-Translation
https://github.com/codeigniter-polska/polish-language
Utworz folder o nazwie polish w katalogu application/language wgraj do niego wszystkie pliki z repozytorium.
W pliku konfiguracji application/config/config.php ustaw domyślny język na polski:
$config['language'] = 'polish';
a#rotator img {
-webkit-transition: all 1s ease-in-out;
-moz-transition: all 1s ease-in-out;
-o-transition: all 1s ease-in-out;
-ms-transition: all 1s ease-in-out;
}
a#rotator img:hover {
-webkit-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-o-transform: rotate(360deg);
-ms-transform: rotate(360deg);
} TCPDF ERROR: Some data has already been output to browser, can’t send PDF file
find . -type f -exec sed '1s/^\xEF\xBB\xBF//' -i.bak {} \; -exec rm {}.bak \;
błędne uprawnienia, muszą być 755
chmod 755 /home/directory
service smbd restart
== instalujemy serwer mysql i proftpd z mod_mysql
apt-get install mysql-server apt-get install proftpd proftpd-mod-mysql
Zobacz całość
http://phpjs.org/
http://php.net/manual/en/function.number-format.php #PHP
string number_format ( float $number , int $decimals = 0 , string $dec_point = '.' , string $thousands_sep = ',' )
http://phpjs.org/functions/number_format/ #Java Script
function number_format(number, decimals, dec_point, thousands_sep) {
number = (number + '').replace(/[^0-9+\-Ee.]/g, '');
var n = !isFinite(+number) ? 0 : +number,
prec = !isFinite(+decimals) ? 0 : Math.abs(decimals),
sep = (typeof thousands_sep === 'undefined') ? ',' : thousands_sep,
dec = (typeof dec_point === 'undefined') ? '.' : dec_point,
s = '',
toFixedFix = function(n, prec) {
var k = Math.pow(10, prec);
return '' + Math.round(n * k) / k;
};
// Fix for IE parseFloat(0.55).toFixed(0) = 0;
s = (prec ? toFixedFix(n, prec) : '' + Math.round(n)).split('.');
if (s[0].length > 3) {
s[0] = s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g, sep);
}
if ((s[1] || '').length < prec) {
s[1] = s[1] || '';
s[1] += new Array(prec - s[1].length + 1).join('0');
}
return s.join(dec);
}
number_format(1234.56);