Search |
Welcome to theowned[d0t]org!This site is meant to serve two purposes: 1) To collect and store various pieces of information or howto documentation I collect over time, and 2) To provide this information freely for anyone that requires it. -foldingstock lspci in *BSDA common question newcomers to *BSD typically ask is "where is lspci?" The simple answer is: install pciutils. Ubuntu and TV TunersI have a Philips Semiconductors PCI TV Tuner card that I use to watch TV on the computer. Using this card in Ubuntu is a breeze. lspci reports the following card: To use this card, all that is required is to load the drivers: Rounding in C++I was recently working on a C++ project that required a floating-point number to be converted to a static integer. Unfortunately, C++ does not offer a rounding function. When the floating-point number was converted to an integer, the decimal value was simply dropped. C++ does offer floor() and ceil(), but I needed something that would accurately round. So, I wrote a simple function that uses floor(): VI auto-indentEdit ~/.exrc and add the following line: FreeBSD - EEE PC with working WirelessTo get wireless working under FreeBSD on Asus's EEE PC, you must first download the latest madwifi driver: http://snapshots.madwifi-project.org/madwifi-hal-0.10.5.6/ Download the tarball and transport it to the EEE PC using removable media (USB drive, SD card, etc). Untar the tarball and then run: Flash9 running natively in FreeBSD 7.1Yes, FreeBSD 7.1 has working Flash9 support. To install it on your system:
Once you have done the above, your system is ready for the installation. Install the following ports: Ettercap FiltersBelow is a simple ettercap filter that I used to pull off a rather funny April fools joke at my school. Basically, the filter intercepts all "a href=" html links and replaces it with the string I specified, www internetisseriousbusiness org.(warning: don't visit that link unless you like annoying popups and rickrolls) The code for the filter: if (ip.proto == TCP && tcp.dst == 80) { To actually use this, you will need to convert the code to a usable format. Ubuntu - Quick StartOn a newly installed Ubuntu system I usually run the following to install basic tools needed for development and source compilation:
#apt-get install libx11-6 libx11-dev libxtst6 xlibs-dev xinetd wget #apt-get install linux-headers-`uname -r` build-essential #apt-get install gcc binutils-doc cpp-doc make manpages-dev autoconf automake1.9 libtool flex bison gdb gcc-doc gcc-4.0-doc libc6-dev-amd64 lib64gcc1 Perl - Case CombinationsA simple perl script that takes a word as a command-line argument and displays every possible case combination for that word: ------------------------------------------------------------------------------------ print "$_\n" for glob join '', map"{\l$_,\u$_}", split //, "$ARGV[0]" Example:
|