What is the difference between UNIX Access, Modify, and Change Times?  
# stat a
File: `a'
Size: 4096 Blocks: 16 IO Block: 4096 directory
Device: 6801h/26625d Inode: 2768987 Links: 3
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2012-08-07 18:26:30.000000000 +0200
Modify: 2011-12-01 11:38:24.000000000 +0100
Change: 2012-08-06 07:22:39.000000000 +0200


Access Time | atime | -ul
This is the time that the file was last accessed, read or written to.

Modify Time | mtime | -l
This is the time that the inode information (permissions, name, etc., the metadata, as it were) was last modified.

Change Time | ctime | -cl
This is the last time the actual contents of the file were last modified.



[ add comment ] ( 7 views )   |  [ 0 trackbacks ]   |  permalink
wordpress instalace; multisite  
- wordpress multisite (několik site, které sdílí pluginy a kód) není použitelný pro různé domény druhého řádu, momentálně umí jenom subdomény jako site1.fsit.cz, site2.fsit.cz, takže je pro každou doménu nutno instalovat separátní wp, existují nějaké pluginy, které jsem zkoušel, ale není to nic co bych chtěl používat, dokud to nebude vyladěné

- postup instalace

cd /var/www/html/

wget http://wordpress.org/latest.zip

unzip latest.zip

* přesuneme do adresáře se stejným názvem jako site, vytvoříme mysql db

mv wordpress/ sitename1

mysql -u root -p
mysql> CREATE DATABASE sitename1;
mysql> GRANT ALL PRIVILEGES ON sitename1.* TO "sitename1"@"localhost" IDENTIFIED BY "******";

cd sitename1

* konfigurák wp

cp wp-config-sample.php wp-config.php

vi wp-config.php

define('DB_NAME', 'sitename1');
define('DB_USER', 'sitename1');
define('DB_PASSWORD', '******');

* zbytek konfigurace přes browser

browser:

http://wordpress.domain.cz/sitename1/wp ... nstall.php

configure

* site v provozu

browser:

http://wordpress.domain.cz/sitename1/

- nová stránka bude muset být v apache nastavená jako virtual domain, kde doména je přidána s cestou do konfigurace úplně nakonec konfiguráku (viz vzor)

vi /etc/httpd/conf/httpd.conf

<VirtualHost *:80>
DocumentRoot /var/www/html/sitename1/
ServerName sitename1.domain.cz
# Other directives here
</VirtualHost>



[ add comment ] ( 13 views )   |  [ 0 trackbacks ]   |  permalink
Vista: allow administrator account and delete files 
net user administrator /active:yes

reboot

takeown /f file_name /d y
icacls file_name /grant administrators:F

For Directories (will perform action recursively):

takeown /f directory_name /r /d y
icacls directory_name /grant administrators:F /t



[ add comment ] ( 7 views )   |  [ 0 trackbacks ]   |  permalink
OpenSSL  
úprava konfiguračního souboru
-----------------------------
/etc/pki/tls/openssl.cnf

vytvoření adresářů v /etc/pki/CA
---------------------------------
mkdir certs crl newcerts privat


self-signed CA
--------------
openssl req -new -x509 -nodes -out cacert.pem -keyout cakey.pem -days 3680

client key + csr
----------------
openssl genrsa -out yourkey.key 2048
openssl req -new -key domainname.key -out domainname.csr

podepsani csr
-------------
openssl ca -in request.pem -out cert.pem

ověření údajů v klíči CA
------------------------
openssl x509 -text -in cacert.pem | more

priprava hashe k prolinkovani na klinta
---------------------------------------
openssl x509 -hash -in CA.crt


[ add comment ] ( 6 views )   |  [ 0 trackbacks ]   |  permalink
HyperPhysics 
http://hyperphysics.phy-astr.gsu.edu/hbase/hph.html

"This site was honored because of its comprehensive coverage of most of physics, the creative use of multimedia and linking, and the impact it has had on students worldwide. Online tutorials cover a wide range of physics topics, including modern physics and astronomy. Material is organized through extensive concept maps."


[ add comment ] ( 8 views )   |  [ 0 trackbacks ]   |  permalink
Astable  
http://www.falstad.com/circuit/#%24+1+5 ... 0+100.0%0A

[ add comment ] ( 9 views )   |  [ 0 trackbacks ]   |  permalink
simplified astable multivibrator circuit (not working) 


this circuit does not work, but could be benefical to understand the roles of two branches which leads between capacitor and base of transistor.


[ add comment ] ( 7 views )   |  [ 0 trackbacks ]   |  permalink
astable multivibrator circuit (aka led flasher) 
http://www.falstad.com/circuit/#%24+1+5 ... 25+0+-1%0A

astable multivibrator circuit acting as a led flasher. data for simulation java applet http://www.falstad.com/circuit/ . led is expected to be about 2.5v, 20 mA and power dc supply 9v battery. not tested in real!



$ 1 5.0E-6 5.934295036739208 50 2.0 50
v 384 64 336 64 0 0 40.0 5.0 0.0 0.0 0.5
t 288 208 320 208 0 1 -4.184713778629777 0.13619941217392795 100.0
t 128 208 96 208 0 1 0.6154526523446024 0.6523326150314848 100.0
c 176 208 144 208 0 1.0E-5 4.1739553582352125
c 240 208 272 208 0 1.0E-5 -0.6046942319500379
w 288 208 272 208 0
w 128 208 144 208 0
w 320 288 96 288 0
w 96 224 96 288 0
w 384 288 384 64 0
w 320 64 320 112 0
r 320 112 320 144 0 350.0
w 96 64 96 112 0
r 96 112 96 144 0 350.0
w 96 144 96 192 0
w 336 64 320 64 0
w 320 144 320 192 0
w 240 208 96 144 0
162 320 224 320 288 1 2.1024259 1.0 0.0 0.0
w 320 288 384 288 0
w 176 208 320 144 0
w 96 64 208 64 0
w 208 64 320 64 0
r 208 64 128 208 0 2000.0
r 208 64 288 208 0 2000.0


[ 6 comments ] ( 46 views )   |  [ 0 trackbacks ]   |  permalink
Basic astable multivibrator circuit 
Below is a export of basic astable multivibrator circuit for http://www.falstad.com/circuit/ . The resistor and capacitor values are just by eye so in real this circuit might have problems.

$ 1 5.0E-6 0.34903429574618416 50 2.0 50
v 384 64 336 64 0 0 40.0 5.0 0.0 0.0 0.5
t 288 208 320 208 0 1 0.6426223132462627 0.6640109176265421 100.0
t 128 208 96 208 0 1 -3.994528534287322 -0.14567302984614652 100.0
c 176 208 144 208 0 1.0E-5 0.1670616342264259
c 240 208 272 208 0 1.0E-5 3.1848445868146333
w 288 208 272 208 0
w 128 208 144 208 0
w 320 288 96 288 0
w 320 224 320 288 0
w 96 224 96 288 0
w 320 288 368 288 0
w 384 288 384 64 0
w 256 64 176 64 0
w 176 64 144 64 0
w 320 64 320 112 0
w 128 64 128 112 0
r 128 112 128 144 0 1000.0
r 320 112 320 144 0 350.0
w 96 64 96 112 0
r 96 112 96 144 0 350.0
w 96 144 96 192 0
w 336 64 320 64 0
w 304 64 320 64 0
w 320 144 320 192 0
w 368 288 384 288 0
w 128 208 128 144 0
w 272 208 272 144 0
r 272 112 272 144 0 1000.0
w 272 64 272 112 0
w 144 64 128 64 0
w 128 64 96 64 0
w 256 64 272 64 0
w 304 64 272 64 0
w 176 208 320 144 0
w 240 208 96 144 0


[ add comment ] ( 6 views )   |  [ 0 trackbacks ]   |  permalink
Electronic circuit simulator 
http://www.falstad.com/circuit/
This java applet is an electronic circuit simulator. When the applet starts up you will see an animated schematic of a simple LRC circuit. The green color indicates positive voltage. The gray color indicates ground. A red color indicates negative voltage. The moving yellow dots indicate current.

http://www.ohmpie.com/hm555/
Home made 555 timer from NPN and PNP transistors

http://talkingelectronics.com/projects/ ... cuits.html
Save 50 - 555 Circuits (more than 97 Circuits) as: .doc (2.1MB) or .pdf (1.4MB) (26-5-2011)

http://www.electronics-tutorials.ws/wav ... table.html
Regenerative switching circuits such as Astable Multivibrators are the most commonly used type of relaxation oscillator as they produce a constant square wave output waveform as well as their simplicity, reliability and ease of construction.

[ add comment ] ( 9 views )   |  [ 0 trackbacks ]   |  permalink

<<First <Back | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | Next> Last>>