check which processes are accessing a partition:
lsof | grep '/opt'
kill all the processes accessing the partition (check what you’re killing, you could loose data):
fuser -km /mnt
try to unmount now:
umount /opt
check which processes are accessing a partition:
lsof | grep '/opt'
kill all the processes accessing the partition (check what you’re killing, you could loose data):
fuser -km /mnt
try to unmount now:
umount /opt
just start nc in server mode on localhost:
nc -l -p 3333
send a string to localhost on port 3333:
echo "hello world" | nc localhost 3333
you’ll see on server side appearing the string you sent.
very useful for sending binaries, see examples.
It’s not difficult, just always having some doubts…
10 dB increase for a factor 10 increase in the ratio
3 dB = doubling
40 dB = 10000 times
dBm is an absolute value obtained by a ratio with 1 mW:
Considering an antenna placed inside a blackbody enclosure at temperature T, the power received per unit bandwidth is:
where k is Boltzmann constant.
This relationship derives from considering a constant brightness in all directions, therefore Rayleigh Jeans law tells:
Power per unit bandwidth is obtained by integrating brightness over antenna beam
therefore
where:
another post should talk about this
finally:
which is the same noise power of a resistor.
source : Kraus Radio Astronomy pag 107
I need to produce formatted pdf from XML data input file.
The more standard way looks like to use XSL stylesheets.
Associating a XSL sheet to an XML file permits most browsers to render them directly as HMTL, this can be used for web publishing XML sheets.
The quick and dirty way to produce PDF could be printing them from Firefox, but an interesting option is to use xmlto, a script for running a XSL transformation and render an XML in PDF or other formats. It would be interesting to test this script and understand if it needs just docbook XML input or any XML.
it is about perl but it suggests very useful tricks for programming with vim
http://mamchenkov.net/wordpress/2004/05/10/vim-for-perl-developers/
list all the directories excluding “.”:
find . -maxdepth 1 -type d -not -name “.*”
find some string in all files matching a pattern in the subfolders (with grep -r you cannot specify the type of file)
find . -name ‘*.py’ -exec grep -i pdb ‘{}’ \;
great guide with many examples:
http://tille.xalasys.com/training/bash/
compress: tar cvzf foo.tgz *.cc *.h
check inside: tar tzf foo.tgz | grep file.txt
extract: tar xvzf foo.tgz
extract 1 file only: tar xvzf foo.tgz path/to/file.txt
basic software for scientists and engineers:
http://www.swc.scipy.org/