Writer’s Block: Lost & Found

What have you lost that you wish you still had?

Live Journals Writer’s Block

I could go on for paragraphs about what comes to mind … wouldn’t do me much good.

Since I recently ‘lost’ it, I’d settle for my web browser back !

As to the other matter, well maybe it was for the best.

exhaustion mounting

Oy..

I’ve spent most of the week with an almost constent headache, barely been on the computer the past few days and even then mostly AFK. Managed to get some training in today and some work on the SOP rewrites as well but it’s still a very tiring week.

I’m looking forward to the time off coming up so I can catch up with stuff, about all I have gotten done this week so far is talking to Noer and Rasa lol.

A crashing BSD

Ok, now I dunno what is worse that my very stable laptop has gone nuts or that I’m not surprised by it at all.

mentally back tracing events:

using urxvt with zsh
vim running in background during perl file editing session
linux-flock playing my favorite radio station via linux-mplayerplug-in and native mplayer
mv ./myfile.mp3 /tmp/ -> trying to move a file off a sshfs mount to /tmp
system locked up with sound stuck replaying a single note
tried to switch to vtty1
system auto-rebooted, never saw the vtty

On reboot I restarted flock and tried to move the file again, system locked up and rebooted when I tried to switch to vtty0…

Now linux-flock segfaults when I run it and the only other linux app I know that is handy, realplayer also segflauts. I ain’t seen any thing informative in /var/ yet either.

Now, my Windows XP machine Blue Screen of Deaths and occasionally Black Screens of Deaths! On me all the time when listing to music while using the server browser in Raven Shield, if I use any thing other then WMP: trying WinAmp == instanto death and often same with MPlayer using the usual DirectX related sound/video opts.

So why do I find it sad that for me it is not so much of a shocker that with a third party kernel module installed from pre-compiled binary (fuse) that was ported from another OS, moving data from a mounted network file system (sshfs) to the local hard drive through SSH and said driver, while running binary programs designed for an entirely different system (linux flock+mplayerplug-in), could possibly cause a system to crash?

At least it’s got a better damn reason then Windows XP has got looooool

I’ve tried fsck’ing the drive but the Linux ABI still seems FUBAR.. All things considered with SSHFS and SMB/CIFS, I am seriously considering putting both NFS and AFS into testing here to see if either will fill the gap.

Some musings from ~/Music/Playlists/manager/ideas.outline. The file outlines a format for the stored records and as much of the scripts operation as my mind can think of right now, it is 0420 already…


tags file format
| every song listed as 'file := checksum'

daemon/script
| for all files in collection loop
| | if md5 == known then
| | | if filename == known then
| | | | continue
| | | else
| | | | if md5(filename) in file then
| | | | | generate new entry in file
| | | | else
| | | | | update file with new name
| | | | | update playlists with new name
| | | | end
| | | end
| | end
| done

I like to outline my ideas every now and then for later reference, especially when I’m very tired it helps me make sense of my notes next week.

There is a vim plugin for outlining but that is kind of over kill for me. Vim has a ‘listchars’ setting that alters from Vi’s behavior how and what it displays things when ‘list’ is set.

I have a function named My_OutlineMode() and an automcmd that calls the function whenever creating a new file or reading a new buffer with a file.outline

setl listchars =tab:| " Mark t's with |'s
setl list

That makes each level of indentation be highlighted and displays a pipe symbol ‘|’ at each tab stop (e.g. indentation level) without inserting it into the file. I find it a tad distracting while coding — indentation is used in programs for a reason after all! But for outlining ideas, I find it really helps to visually display the collation of ideas to indents. Maybe because I use blank lines and tabs to order thoughts in my outlines but what ever works hehe.

I remember I first learned about list/listchars when trying to help someone in #vim that wanted code to display each indent level with leading dots, kind of like how KATE can be set to show a ‘.’ at each tab stop. So I made a note of it in case I would want to do something like that myself later.

After looking at Vim 7.x’s omni completion during a conversation in #vim on irc.freenode.net I got an inkling to try making Vim auto complete the end of HTML tags without pressing ctrl-x + ctrl-o each time.

I’m sorry to say, it only took about 3 minutes:

imap </ </<c-x><c-o>

which tells Vim to enter </, press control+x following by control+o which is the insert mapping vim uses by default to do auto completion.

Yes I’m that bored… Haha

Hmm, I did think of an interesting idea which would a ‘collection monitoring playlist updater’ that would use MD5 checksums (or a faster algorithm due to the size of some of Wiz’s mixes). The idea would be a sort of tags-file / flat-file database that maps MD5 checksums of all known files to current file names. If a file name of a checksumed file has changed, update all playlists with the ‘new’ file name.

An interesting idea, especially since I use a mixture of XMMS and MPlayer these days rather then ol’Amarok.

As it would probably take more then ~15 minutes to md5 1.9GB of music files over a sshfs mount on my laptop, it’ll have to wait for another night but what an interesting idea xD

a python filled sigh

Some how it makes perfect sense…

While every one is sound asleep, even the dogs…

I’m spending my time with the music blasting and digging into code on my laptop and being quite happy during the duration.

Until Ma is off the couch, then I’m already miserable 8=)

At least I’ve managed to finish most of the work I was trying to do on Neo Ports Manager. Just committed changes to how it handles port build options, I’m still not happy with it from a design stand point… But it should be suitable for being activated in NPMs Beta Release whenever that occurs.

Actually getting any thing else done in the next four or five hours is questionable.

Musings of an RSM.

Well, I expect I’ll probably get flamed over it but I’ve posted a WARNO in the SNCO forum.

I need to know exactly what is going on so I know just how much needs to be done. Perhaps my tone and style of writing is not the best for the situation, never has been one of my strong points for that matter. I think it serves the purpose well though, warno := helps me to order my thoughts and instructions in a manor for others to read and understand without a headache trying to figure them out.

The selection of a “warning order” I think was also appropriate, it’s advance warning of coming instructions and providing as much information and instruction as I can now. It’s also a point of fact that we need to get going hehe.

Once every thing is done, I want to grab the SSMs, sit down, discuss it and work on an OPORD (Operations Order), get with any Sgts who have more to say. Once that is done, type set the operations order and issue it. I figure it is probably the best way for me to handle the situation. I’ve mentally alotted about a week for start and a week for finish, after that.. If nothing comes in I guess it is RSM from hell time.

Because, whether I like it or not (and I don’t) I need to make sure things are running smoothly and push things in the proper direction as necessary… I want to make sure of where we are on the map before I push, to hard or softly… One thing I do want to do and Noer seems to be a step a head of me is a consistency to what we teach. I want as part of the OPORD or an attachment to it, a listing of every thing ‘big’ on that issue and boiled down to it’s simple form for routing through the SNCO and NCOs.

I could write that part in 5 minutes, have it type set in another 5, but I want to make sure nothing is missing from our current environment.

I am not going to sit and watch another generation of [SAS] Members face the same things mine had to during training… As the motto I would put on my sigblock if I could (bloody forum rules and all). Lead me, follow me, or get the fuck out of my way.

In this case I think we probably have a better group for getting the tasks we need done done, then we have since Randoms time as Cpl loool.

note to self, send our new webcoder some instructions and concept mock-ups on the new ‘project’ I have in mind for the website hehehe.

I’ll never understand it…

If I try to do any thing while others are awake here it causes my productivity to shrink and headache to grow exponentially.

Is this some kind of universal law I’ve never heard of? Or is it just my family likes to bitch when I don’t get stuff done but loves to drive me freaking crazy whenever I *try* to get stuff done? Lol…

I so need to get out of here… Marching in the thunderstorm would probably be more peaceful :

After having been wanting to for ages I have finally fixed up my OpenBSD machines partitions.

I had an 80GB hard drive formated (wd1a) and moved /usr/local/ on to it and put my SMB shares on it for the free space.

Since wd0 is a 8GB disk split into a, b, h, d, g, and e partitions the biggest is wd0g mounted on /usr with ~6GB free but I had almost 10GB of files on /usr/local (wd1a). So I had to copy my backups and videos to the windows machine via Samba/Network Neighborehood before I could move all of my files in /usr/local/srv to a temporary place in /usr and then archived the rest of the directory.

cd /usr
mkdir storage
mv local/srv storage
tar -cf /var/tmp/local.tar local

I had to relabel the disk and then format the partitions, I created wd1a and wd1d to use as /usr/local and /srv with ~15GB more free space in case I need it.

umount -f local
disklabel -E wd1
newfs wd1a
newfs wd1d

During the disk label I changed to ‘disk geometry’ (g d), deleted the a partition (d a) and created the a and d partitions (c a and c d) keeping with the prompts on it and specifying 12G and 45G for the partition sizes.

Fixed my fstab and then mounted the partitions

vi /etc/fstab
# 8GB Primary Master, PATA drive
# device mount type opts dump fsck
/dev/wd0a / ffs rw 1 1
/dev/wd0h /home ffs rw,nodev,nosuid 1 2
/dev/wd0d /tmp ffs rw,nodev,nosuid 1 2
/dev/wd0g /usr ffs rw,nodev 1 2
/dev/wd0e /var ffs rw,nodev,nosuid 1 2
# 80GB Primary Slave, PATA drive
# device mount type opts dump fsck
/dev/wd1a /usr/local ffs rw,nodev 1 2
/dev/wd1d /srv ffs rw,nodev,nosuid 1 2

mount -o rw,nodev /dev/wd1a /usr/local
mount -o rw,nodev,nosuid /srv

I’m some what tempted to mark wd1d ‘noexec’ but I may wish to run scripts from there later if I ever move ~/code over. After that it was just a quick hop, skip, and jump to restore my files.

tar xpf /var/tmp/local.tar
mv storage/srv/smb /srv/
vi /etc/samba/smb.conf

I corrected all of my shares in smb.conf from command line mode:

:1,$s//usr/local/srv//srv/g

I could’ve used ex but I rather like paging up/down with ^U and ^D instead of using ‘addr1,addr2p’ in ex.

mount
/dev/wd0a on / type ffs (local)
/dev/wd0h on /home type ffs (local, nodev, nosuid)
/dev/wd0d on /tmp type ffs (local, nodev, nosuid)
/dev/wd0g on /usr type ffs (local, nodev)
/dev/wd0e on /var type ffs (local, nodev, nosuid)
/dev/wd1a on /usr/local type ffs (local, nodev)
/dev/wd1d on /srv type ffs (local, nodev, nosuid)
# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/wd0a 147M 30.4M 110M 22% /
/dev/wd0h 393M 35.6M 337M 10% /home
/dev/wd0d 98.3M 2.0K 93.4M 0% /tmp
/dev/wd0g 6.7G 398M 6.0G 6% /usr
/dev/wd0e 148M 84.1M 56.2M 60% /var
/dev/wd1a 11.8G 76.9M 11.1G 1% /usr/local
/dev/wd1d 44.3G 5.1G 37.0G 12% /srv

Windows wouldn’t see the file shares and sending the HUP signal to Samba to reread it’s conf file immediately didn’t help any. So I gave Vectra a reboot to double check my fstab entry (yes I am paranoid), I could’ve just killed the processes and reloaded them manually for the same effect.

# uptime
9:14PM up 19 days, 3:29, 1 user, load averages: 4.12, 4.16, 3.86
# reboot

I love OpenBSD 🙂

EDIT:

To prevent some nasty time outs.

vi /etc/ssh/sshd_config
ClientAliveInterval 15
ClientAliveCountMax 45

vi ~/.ssh/config # or /etc/ssh/ssh_config for all clients
ServerAliveInterval 15