in8notesThis portion of my site is powered by Blosxom. Blosxom is a perl script whose functionality here is extended through several plugin scripts in order to dynamically assemble a multitude of separate plain text files stored in a directory tree on the server into a cohesive, dated and RSS enabled weblog. Now in daily (r)sync with the directories on Nate's Powerbook.
blosxom |
Return to in8sworld.net The Midnight Commander uses the F1 - F10 keys as keyboard shortcuts for commands appearing in the file menu. The escape sequences for the function keys are terminfo capabilities kf1 trough kf10. On terminals without function key support, you can achieve the same functionality by pressing the ESC key and then a number in the range 1 through 9 and 0 (corresponding to F1 to F9 and F10 respectively).
Last saved: 01/15/2010
Attempting to login to my local installation of PHPMyAdmin on Mac OS X Leopard for the first time, I received this message: #2002 - The server is not responding (or the local MySQL server's socket is not correctly configured) Assuming the server is installed and running, these problems are almost always caused by incorrect path issues. A Google search brought up this solution. Solution:
1. Open the terminal
Last saved: 12/17/2009
My F10 key is grabbed by Expose for other nefarious purposes, so this little tidbit comes in handy when using mc over ssh on the Mac:
Last saved: 03/21/2009
A list of the junk on my palm pilot using pilot-xfer
[in8spbook:~] in8% pilot-xfer -l -p usb: Listening for incoming connection on usb:... connected!
Reading list of databases in RAM... List complete. 337 files found. Thank you for using pilot-link.
Last saved: 11/07/2008
from Obviously, the first step is to download and install HTML Tidy (which you'll find in Resources). HTML Tidy is available on most platforms, including Windows, Linux, and MacOS. The default executable is a command-line tool, but GUI versions are available for Windows and MacOS. To run HTML Tidy, open a terminal and issue the following command: tidy -asxhtml -numeric < index.html > index.xml That's it! HTML Tidy immediately converts index.html into index.xml. HTML Tidy will print messages that highlight issues with the original HTML document during the conversion. In most cases, you can safely ignore these messages. HTML Tidy runs as a filter, so it expects standard input and it prints the result to the standard output. The redirection operators (< and >) allow you to work with files. By default, HTML Tidy produces a clean HTML page, but you can set two options to output XML, instead:
* -asxhtml outputs XHTML documents instead of HTML.
Last saved: 08/23/2008
International Characters in Mac OS X
from http://webct.pcc.edu/support/langmac.html Some language classes at Portland Community College make use of WebCT to compliment their course. WebCT provides excellent tools for online communication. The mail tool, discussion tool, and chat tool can all be used by students and faculty to communicate using what they've learned in class.
One problem that these courses encounter is related to some of the characters in different languages that don't show up on our keyboards. Not to fear, there are ways around this using keyboard shortcuts and using tools built in to the Mac OS. There are many keyboard shortcuts on the mac for inserting characters. To insert a character with an accent, type the key combination then the letter you want to insert.
For example, if you want to type á, you would press option-e (option and E at the same time), then press the A key.
* ê -- accent circumflex (option-i) For German
* ü -- umlaut (option-u) For Spanish
* á,é,í -- accent (option-e) For Other
* ø -- option-o To apply an accent to a capital letter, also hold down the shift key.
Last saved: 03/15/2008
http://docs.indymedia.org/view/Sysadmin/GnuPG
gpg --list-secret-keys You can now set the expiry for this subkey (usually this is the public key part of the private/public key pair).
Changing expiration time for the primary key. GPG will then show the updated key data.
Repeat the above steps for all sub keys. Start by selecting the second subkey:
Finally, quit the GPG console and save any changes:
Last saved: 03/02/2008
Over an ssh connection, you can use the following shell command to list the processes of a user in order so that the lowest number is at the bottom (so you see it when the script finishes). This is probably the x-session manager or initial bash login. Kill that process to kill the user session. ps aux | grep username | awk '{print $2 " " $11}' | sort -gr
Last saved: 02/23/2008
I feel like an idiot. I've been using an application (Freesnap) forever to take screen captures of things in OSX. The ability to capture the screen (or a portion thereof) is friggin built in. Yes, Printscreen or ALT+Printscreen in Windows captures the screen, but you have to paste the capture into a program to save it. In OSX you just Command+Shift+3 or Command+Shift+4 to capture the screen or portion thereof, and it saves the capture right to the desktop, handy!
Last saved: 02/16/2008
Getting OSX to connect up to a samba share on Ubuntu
this was just what I needed to get it to work.
mksmbpasswd /bin/cat /etc/passwd | /usr/sbin/mksmbpasswd > /etc/samba/smbpasswd
smbpasswd -e username Users can run smbpasswd themselves to update their passwords from here on.
Last saved: 01/25/2008
Killing all vncserver sessions
Watch the placing of the colon after kill. It should be vncserver -kill :1
The :1 is togethor. There is a space between kill and :1 so it Hope this helps.
Last saved: 12/18/2007
High Res for outside viewing" or
Incremental shift to High Res invert color
Last saved: 12/17/2007
40G Music 320G Raid 1 (150G space)
Services
Diskful - with drives
Seagate ST3500641AS 500GB SATA II
Last saved: 12/16/2007
make distclean
cd dosbox-0.72/
export PATH=opt/dosbox/bin:$PATH
Last saved: 12/16/2007
sudo port -d selfupdate
Last saved: 12/10/2007
"Mr. Gates acknowledged today that the company's error reporting
service indicated that 5 percent of all Windows-based computers
Last saved: 11/25/2007
6/3/2005 in System Software Notes by face
Controlling the dashboard. Sometimes you just don’t want it around. Make Dashboard go away defaults write com.apple.dashboard mcx-disabled -boolean YES Make Dashboard come back defaults write com.apple.dashboard mcx-disabled -boolean NO You have to restart the Dock to have this take effect killall Dock The terminal is your friend.
Last saved: 10/20/2007
Mediawiki settings I keep losing
from http://meta.wikimedia.org/wiki/Anti-spam_Features If you want to create a "gated community" where new users can't even register without asking you to set up an account for them, add the following to your LocalSettings.php:
#Disallow creating accounts
Last saved: 09/09/2007
I successfully created a repository in ~/myproj called spec with the contents of my ~/Sites/frc/spec directory by CDing into that spec directory and issuing: cvs import -m "FRC spec" spec specphp spec_0It was driving me crazy, since I was always issuing the command from the myproj directory at first and it was dumping all the other projects in the myproj directory in there too. Trouble is, it didn't create a directory called spec in there, so you can't see the files there or anything. You just have to know that its been checked in? Well I'm still learning my way around. I suppose you can list the modules easily enough. Remember that after importing the project, rename the original directory (to move it out of the way). Then use cvs checkout to check out the project to the original location. Once you verify its all there, you can delete the original directory.
Last saved: 07/15/2007
I originally had a post in Geeklog which was indexed in search engines here and there and linked off friend's sites. Instead of getting them to change the link, I used a Redirect rule in my .htaccess file to point to the right place.
The original Geeklog url had a query string (the question mark and equals sign part)
When I moved the site to Wordpress, the same page now lives here:
I added these two lines to my .htaccess (on Dreamhost this has to reside in the 'domain directory'): The first line says to look for a condition where
rewriteCond %{query_string} story=20040426185512453
Last saved: 06/09/2007
#:1497621 6:14 pm on May 12, 2005 (utc 0) This stuff is rather complex. It involves converting the octets (the groups of numbers delimited by the periods) of the address or address range to binary, and then generating a "mask" that is used during comparison of the incoming address and the specified allow/deny directives. A basic example would be that you want to deny 192.168.192.0 through 192.168.255.255 In binary (use the Windows calculator or equivalent) that is 11000000.10101000.11000000.00000000 through 11000000.10101000.11111111.11111111 Having derived that, you now need to generate either a netmask or a CIDR. The easiest way to do it is to line up the start/end addresses vertically, and then examine them to see which bits change between the first and last address of the range. Then mark those that don't change with ones and those that do with zeroes:
11000000.10101000.11000000.00000000 This yields the netmask, which when converted back to decimal octets is 255.255.192.0 To get a CIDR, you count the number of ones from the left, in this case 18. So, you would use
Deny from 192.168.192.0/255.255.192.0 (Network/netmask pair -or- Note that when the netmask contains trailing octets containing all zeroes, you can simply leave them off and use a simple partial IP address. An example would be 172.0.0.0 through 172.0.0.255, which could be specified as a partial IP address as: Deny from 172.0.0. For more information, do a search for "netmask" and "CIDR." There are also several online netmask and CIDR generators avaialble. In addition, if you look up your problem IP addresses in ARIN, the CIDR value is often given in the data record containing that IP address. Unfortunately, this is as simple as it gets. Jim
Last saved: 05/20/2007
#pw+229145642711766+7#
from another site:
#pw+237145655553553+7#
more stuff:
Last saved: 01/20/2007
Lame settings for Audible AA files
. OK, Audible files are low quality relatively and they have four different formats
So the best mappings appears to be these settings from afterdawn Many folks by the way are using Goldwave and MP3PO from Nerdex to do this. It was designed to take big MP3 files and split them. I probably will keep using MP3Directcut for this mainly because I know how to use it. Given this, the right setting would seem to be format 4 and then the lame settings would be given the many lame switches _lame -m m --highpass 11 --mp3input -abr 32 However, if you are using DBPowerAmp, its interesting to note that if you don't supply any parameter at all (!!!), it appears to work about right. Somehow the thing figures everything out and you have about the same length .mp3 as .aa. Wow!
Last saved: 01/20/2007
How to have public and private image areas in Drupal
Submitted by david on Thu, 29/09/2005 - 14:23. One concern when using the Upload Image plugin is that all of the images embedded in articles will show up in browsable Image Galleries. This is how to set up Drupal to avoid this. This main thing to grasp is that when you create a new image gallery through the Image module, it creates for you a new taxonomy category in Drupal for you. However the reverse is not true - a taxonomy category for images created in Drupal does not show up in the Image Galleries. Thus to create a ‘private’ upload directory for images, just go to Admin->Categories and create a new taxonomy - say Private, and set it to apply just to nodes of type Image. Then add a category to that taxonomy - say Images. Now you will find that when you use the UploadImage module, you can select the Private/Images category and upload images to it without it showing up in the image galleries. Similarly, you can hide images created using the Create->New Image node creation facility. Note: If you are using a Site Map module such as SiteMap or SiteMenu, you should add your Private taxonomy to the list of those that the site map should ignore or omit.
Last saved: 01/14/2007
I set up a new Drupal site, and once it was up and running on the hosting server which already had mod_rewrite enabled, I set it up to use mod_rewrite to clean up the URL presented in the address bar so that addresses would not appear with a ?q= in the address. In order to have a backup system running on my laptop, I had to figure out how to enable the same thing myself on my powerbook. First thing to do was alter the /etc/httpd/httpd.conf file
Both of these critical lines were already not commented:
There was already a section which defines
I changed the DocumentRoot to point to /Users/in8/Sites from what I had it set for because I wasn't sure how I would be able to reference my tdb2 directory from the default /Library/WebServer/Documents directory. (It is a subdirectory of my home Sites directory)
I added a new Directory pointing to my tdb2 directory which allows .htaccess files to override settings (that's where I'll do the rewrite)
I'm running Apache/1.3.33 Server at 10.0.1.3 Port 80,
Last saved: 01/14/2007
Configure php 4.4 on OS X with GD support
Never did bother to figure out why I couldn't get GD to work when I compiled it in 2005, and looks like I may have forgotten to add these libraries in Nov. 2006 when I apparently compiled 4.4 again, and now I need it to make Drupal function properly with images.
It relies on the following libraries, which I didn't have, so used fink to get them.
Grabbed zlib source (it's not in fink either) I still had php source in /source/php-4.4.0
./configure --with-zlib-dir=/usr/local --with-libjpeg=/sw --with-libtiff=/sw --with-gd --with-mysql=/usr/local/mysql --with-xml --with-apxs --enable-mbstring
sudo make
[in8spbook:/source/php-4.4.0] in8% sudo make install OK, so the install puts php in /usr/local/bin! That explains some stuff. To see which php is the default:
[in8spbook:/usr/local/bin] in8% which php, but it returns:
and check the version
Checked and this line was already in /etc/httpd/httpd.conf: but phpinfo still shows the build from Nov. 1, 2006!
Says to copy /apps/php-4.3.4/php.ini-dist to /usr/local/lib/php.ini OH! Forgot to restart apache (System Prefs | Web Sharing)
Last saved: 01/07/2007
htaccess file for in8sworld to screw spammers
RewriteEngine on
SetEnvIfNoCase Referer 209.8.22.250 spammer=yes
deny from 64.71.131.110 allow from all ErrorDocument 404 /blog/index.php?error=404
RedirectMatch temp ^/$ http://www.in8sworld.net/blog
Last saved: 01/07/2007
RewriteEngine on allow from all ErrorDocument 404 /blog/index.php?error=404
deny from 64.71.131.110 RedirectMatch temp ^/$ http://www.in8sworld.net/blog
Last saved: 12/31/2006
VIM replace all extraneous ^M:
:%s/^M$//g BE SURE YOU MAKE the ^M USING "CTRL-V CTRL-M" NOT BY TYPING "CARROT M"! This expression will replace all the ^M's that have carriage returns after them with nothing. (The dollar ties the search to the end of a line)
Last saved: 12/21/2006
Print backgrounds in FF on Mac
In Firefox, go to File > Print > in the Print dialog, use the third popup menu from the top to set all your options the way you want, including Firefox > Appearance: check Print Background Images and check Print Background Colors. Now, look at the second popup menu from the top of the Print Dialog box, marked Presets:. If you want to save this as the Preset that you are currently on, click that Presets popup and select Save. If you want to create a new Preset, click that Preset popup and select Save As, and give it a new name.
Last saved: 12/21/2006
Command line mysql backup and restore
# make a backup (http://dev.mysql.com/doc/mysql/en/mysqldump.html) shell> mysqldump -h HOST -u USER -p --opt DATABASE TABLE > search.sql
# import a backup (http://dev.mysql.com/doc/mysql/en/mysql.html) shell> mysql -h HOST -u USER -p DATABASE < search.sql
Last saved: 12/19/2006
I seem to forget this every time I need it. Today I needed it to increase the file size that phpmyadmin will accept (to import a backup file). I found I'm using the:
Last saved: 12/19/2006
Email sent to Tim Bishop and Hillary Clinton
TOPIC: Net Neutrality I am an IT person for a small manufacturing company, and I have spent most of my life around computers. I cannot in good conscience fail to speak out about this topic because I understand the issue better than many of my peeers.
I realize you are in the minority party in Congress, but please do all you can to educate yourself and others about the importance of keeping large corporations honest regarding this issue - there has been a lot of misinformation spreading lately. If you have a few seconds (on the internet ;) please read this short post by Tim Berner's Lee (the inventor of the world wide web) on the subject: http://dig.csail.mit.edu/breadcrumbs/node/144
Why should you care?
Last saved: 06/22/2006
Upgrading a network with non-microsoft OSS
Slashdot article
Symantec CCM - $140/seat
Altiris RapidInstall - $295/25 users
MAKEMSI 05.119 - free?? Frontmotion?
Mozillazine MSI instructions
Winstall LE - $49.95
App deploy site
Last saved: 06/01/2006
Verizon (Level3) Nameservers
SpeakEasy Nameservers
ORSC Public Access DNS Nameservers
Sprintlink General DNS
Cisco
Last saved: 04/11/2006
Boot Camp will please Microsoft enough to keep pimping their VirtualPC for a while for the Mac-fans, and they can sell legal copies of Winblows to that small group of folks that otherwise probably wouldn't have bought it. But besides some folks who want to boot up in Win to play a game, I think this is really not all that big a deal. You still can't run Windows apps under OSX, or share files across the installations (although it's not mentioned, Windows probably won't be able to see the HFS filesystem, though the Mac might be able to write to NTFS in some lame way). What to really watch out for: when Apple releases a $99 OSX to run on all the existing 32 bit PC hardware currently out there, allowing everyone in the world to trade in their previous administrative headaches for a real, beautiful, and civilized experience. Vista has been postponed (again) and Microsoft is suggesting that admins work up plans to wipe machines automatically when they become infected. Now there's a good solution to all the security holes in Windows! HAHA! Since all the games I like run fine on my 1.5GHz Powerbook, I have no need to upgrade it. My next machine will likely be PC hardware though, but to run Linux or BSD, certainly not Windows.
Last saved: 04/09/2006
Logging in to CVS and adding a new module
cvs -d :pserver:user@domain.org:/usr/local/projects login cvs import -m "Example" example exampledev ex_0
Last saved: 03/06/2006
If the Internet had been thusly hampered by regulation and commercial interests,it is doubtful that it would have developed the wide acceptance it currently enjoys. The openness of the Internet meant that anyone could afford to get involved. So, everyone did. Thetens of thousands of minds that collaborated on the creation of the Internet delivered something that no corporation ever could have. from Asterisk - The Future of Telephony by Jim Van Meggelen, Jared Smith, and Leif Madsen Copyright © 2005 O’Reilly Media, Inc. All rights reserved.
Last saved: 01/30/2006
A better use of filters comes to mind, and that's to get a word count of the document (1752 words and counting!). To do this type:
Last saved: 01/20/2006
Powerbook won't wake from sleep?
I have been having the same problem (intermittently) that this blogger describes. This morning as I opened the case top, I noticed the sleep light was off and I knew what awaited me: the screen was black and no combination of key presses would bring it to life. However, the machine was definitely on and running hot, the fan was on which rarely ever comes on. The aluminum near the Esc key was hot to the touch. I looked in /var/log/system.log and found the following entries at about 4am even though I had put the machine to sleep at midnight and was fast asleep at 4am:
Jan 14 04:10:34 localhost kernel: handleAirPortChangesChannelWL fails because POWER IS OFF (the mask is correcty set however)
The blog entry I found pointing me to the Energy Saver Prefs is linked here: "I was sitting in my room last night, playing a video game, I think, when I heard a ping from my PowerBook sitting on the shelf next to me. I looked over and saw that the sleep light was no longer on, so I opened it up and 'lo, it was awake and prompting me for a password. But not for long… The screen went black, despite the LCD and keyboard backlights still being on and responding to keyboard control. I was able to SSH in and shut it down from the command line. On reboot, I checked the system log and found a line containing: Wake event 0020 Searching around with Google didn't tell me much about it other than it's been around for awhile and affects some people fairly frequently. I disabled "Wake for ethernet administrator access" and "Wake when the modem detects a ring" in Energy Safer prefs. I haven't had a "wakeup call" since last night."
Last saved: 01/14/2006
|
||||