I was trying to make a case statement in bash, and was getting this error:
./check: line 8: syntax error near unexpected token `)'
./check: line 8: ` 1)'
Turns out this is the error you get if you forget the ;; at the end of each code block.
2010-04-15
Syntax error near unexpected token `)'
Posted by
bombcar
at
08:47
0
comments
Labels: bash, case statement, error, linux
2010-04-14
Ubuntu 10.04 Boot Issues
I loaded Beta 2 of Lucid Lynx on a machine; it wouldn't get past the splash screen. I had to hit the spacebar during the Live CD boot to get it to show the boot log; this prevented the splash screen from loading and allowed me to install.
But it wouldn't boot afterwards; it would lockup in the splash screen. Turns out that the menu fr Grub 2 can only be accessed if you hold SHIFT down while booting; then you can remove "quiet splash" from the kernel command line, and boot with CTRL+X.
After it loads, edit /etc/default/grub and change CRUB_CMDLINE_LINUX_DEFAULT to:
Then run update-grub (the above has to be done as root), and the system will continue to boot correctly. The bug seems to be in a package called plymouth; perhaps it will be fixed later.
Posted by
bombcar
at
07:15
0
comments
Labels: 10.04, kernel, linux, lucid lynx, splash screen, ubuntu
2010-03-04
2010-02-18
Windows 7 not seeing SATA drives
I was trying to install Windows 7 on a system, and it wouldn't see the SATA drive. All evidence pointed to the drivers being correct and not needed; but the drive wouldn't appear.
Finally I determined that because the drive had a dynamic disk on it, Windows 7 setup wouldn't even acknowledge that it existed. I booted Ubuntu and wiped the partition table, and then it worked fine.
Posted by
bombcar
at
09:03
0
comments
2010-02-09
Bringing a recalcitrant SiS ethernet adapter up
I have a SiS900 Ethernet controller that I could assign IP and IPv6 addresses to, but I couldn't bring it up. mii-tool reported that the link was negotiated, and it had worked before my recent kernel compile.
I tried everything I could think of, and recompiled the kernel over and over again. Finally I realized that the other thing I'd changed was turning off SMP support - I turned it back on, and it worked! I think that the card was in INT 19 or something, and I needed SMP support to reach those higher interrupts, even though I had a single core CPU.
Posted by
bombcar
at
22:43
0
comments
Fixing max open files (1024) is smaller than max sockets (4096) errors
If you are running BIND, you may be seeing errors like this in your logs each time you reload or restart named:
Feb 9 22:22:17 mail named[19053]: max open files (1024) is smaller than max sockets (4096)
This is caused by the default number of files that a process can run being set very low, to 1024. By default, in include/linux/fs.h:
You could edit that line and recompile your kernel, but that would involve doing that every time a new kernel was released. An easier option is to edit /etc/security/limits.conf, and add the line:
This sets the default limit for the named user to 4096. Then, edit your named.conf and add
files 4096;
in the options section. Note that you're have to stop and start the named daemon, and not simply run rndc reload, because it needs to actually exit for the changes to take effect. Now the warning will be gone!
2010-02-08
Unicode entry in Ubuntu
To enter Unicode characters in Ubuntu, simply hold down CTRL+SHIFT+U which will create an underlined u: u Then type the hex code for the character you want (with no 0x or anything like that), followed by enter.
∎ (That's 220E, the "QED" character).
Posted by
bombcar
at
15:40
0
comments
2010-02-05
Suppressing key change warnings at the end of a line
Lilypond by default prints key cancellation and then prints the new key signature, even when at the end of a line
. No doubt these are helpful to musicians or something, but they look horrible, and can get out of control. It turns out it's relatively complicated to get rid of the cancellation and the new one without removing the normal signature from the following line. However, the following code does what is necessary:
\relative c' {
\key ces \major
ges'1 ges1 \bar "|." | \break
\once \override Score.BreakAlignment #'break-align-orders =
#(make-vector 3 '(instrument-name
left-edge
ambitus
span-bar
breathing-sign
clef
key-signature
time-signature
staff-bar
custos
span-bar))
\bar "||:"
\set Staff.printKeyCancellation = ##f
\set Staff.explicitKeySignatureVisibility = #begin-of-line-visible
\override Staff.KeySignature #'break-visibility = #begin-of-line-visible
\key ais \minor
gis1 eis1 | \break
gis1 eis1 \bar ":|" |
}
Posted by
bombcar
at
19:11
0
comments
Labels: key signature, lilypond, scheme
2010-01-12
Barnes and Noble Human Resources phone number
The Barnes and Noble Human Resources phone number is 1-800-799-5335.
That is all.
Posted by
bombcar
at
11:32
1 comments
2009-12-23
PrBoom WAD names
PrBoom works with multiple released versions of Doom, but has particular naming conventions you must follow if you want the Launcher to see the WAD file.
| Doom | doom.wad |
| Ultimate Doom | doomu.wad |
| Doom II | doom2.wad |
| TNT: Evilution | tnt.wad |
| The Plutonia Experiment | plutonia.wad |
| Freedoom | freedoom.wad |
This is particularily important because the Steam version of Ultimate Doom has the WAD file named doom.wad.
Posted by
bombcar
at
22:05
0
comments
