?

Log in

No account? Create an account
Linux Community's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Friday, December 10th, 2004

Time Event
1:53a
Getting a Laptop.
It's time. I really want a limited system I can take away from my computer desk and use to work on code elsewhere. Wireless connectivity isn't the most necessary thing in the world -- I don't know of how well linux has integrated such technology.

SO, any advice out there as to what one should look for in a workhorse linux laptop? I'm assuming I'll have to get a windows machine with as little bundled garbage as possible and then reimage it on day one.

Any brands to avoid, or common pitfalls y'all have encountered? Min requirements you'd try? Much obliged.
10:33a
mysql problem continued
Here's a continuation my my mysql problem because I think I discovered something useful.

Basically I'm just trying ot run a test script (straight out of a mysql and php book) to test it out. I printed by error out here before, but I didn't post the whole thing. the whole thing is:

Error, assmunch: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)

You might be wondering why mysql would call me an assmunch. Well, because I told it to.

When i wrote the code out I added that little piece of flair. I think it's the only one, so odd that it proved useful. Since I now know exactly where the error comes from, hopefully someone who actually knows something about php can tell me why it's happening if they see the code (eh?)

the code (once again all angle brackets have been replaced by curley brackets because I can't figure out how to escape them for an lj post (if anyone knows that it would be good to know):

{html}
{head}
{title}Test MySQL{/title}
{body}
{!-- mysql_ip.php --}
{?php
$host="localhost";
$user="";
$password="";

mysql_connect($host,$user,$password);
$sql="show status";
$result = mysql_query($sql);
if ($result == 0)
echo("{b}Error, assmunch: " . mysql_errno() . ": " . mysql_error() . "{/b}");
elseif (mysql_num_rows($result) == 0)
echo("{b}Query excecuted sucessfully, assmunch!{/b}");
else
{
?}
{!-- Table that displays the results --}
{table border="1"}
{tr}{td}{b}Variable_name{/b}{/td}{td}{b}Value{/b}{/td}{/tr}
{?php
for ($i = 0; $i { mysql_num_rows($result); $i++) {
echo("{TR}");
$row_array = mysql_fetch_row($result);
for ($j = 0; $j { mysql_num_fields($result); $j++) {
echo("{TD}" . $row_array[$j] . "{/td}");
}
echo("{/tr}");
}
?}
{/table}
{?php } ?}
{/body}
{/html}

SO, anyone know why it's giving me that error now? Gosh I hope so. If not, mysql and I will be fighting on national tv tonight (bets can be placed online).

later,
~joe
3:25p
a little help?
I'm trying to create a 110GB FAT32 partion on an external USB drive (the goal is to send the thing to windows users so they can share files).

I've used fdisk to create a primary partion:

Disk /dev/sda: 120.0 GB, 120034124288 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 14593 117218241 c W95 FAT32 (LBA)

Command (m for help):

When I go to make the filesystem:

pappy:~ # mkfs.vfat /dev/sda1
mkfs.vfat 2.10 (22 Sep 2003)
mkfs.vfat: Attempting to create a too large file system

I get what seems to be a ridiculous error message...
4:54p
The hard drive on my Linux laptop keeps spinning up and down several times a minute, and I can't figure out why.

It's an older Thinkpad (P3/500, I think) running Fedora Core 3 and the 2.6.9 kernel, and using APM for power management because it's not compatible with ACPI. When the computer is sitting idle, the hard drive will spin down after a few seconds, then about ten seconds later it'll spin up, then maybe ten seconds later it'll spin down again, then after twenty seconds it spins up, then another fifteen seconds later it spins down, and it continues the spinup-spindown cycle over and over again endlessly.

Running "/sbin/hdparm -S60" as root to set the spin-down time to five minutes doesn't have any effect (though it says "setting standby to 60 (5 minutes)").

How do I stop this? And why is it happening; why isn't it obeying my hdparm command? At the very least, I want to prevent the drive from spinning down at all, to avoid this constant cycling. If I can, I'd like it to be able to spin down (and STAY spun down) while I'm not using it. How do I find out what keeps hitting the drive to spin it back up again?
7:15p
Visual C++
Hey hey,

A friend needs my assistance with a university project that requires the use of Visual C++. Does anyone know if it runs with wine? I had a look around, but I couldn't find a definite answer.
8:06p
Is there an easy way to add extra entries to the Gnome menu that pops, when I right click on the Gnome 2.x desktop?

At work I've been "spoiled" by CDE.

Qvacks.

<< Previous Day 2004/12/10
[Calendar]
Next Day >>
About LiveJournal.com