Jump to content

paul

Admin
  • Posts

    5611
  • Joined

  • Last visited

  • Days Won

    8

Posts posted by paul

  1. trinity root # hdparm -tT /dev/hda
    
    
    
    /dev/hda:
    
    Timing buffer-cache reads:   636 MB in  2.00 seconds = 318.00 MB/sec
    
    Timing buffered disk reads:   18 MB in  3.12 seconds =   5.77 MB/sec
    
    trinity root #

    :-(

    trinity root # hdparm -d1 /dev/hda
    
    
    
    /dev/hda:
    
    setting using_dma to 1 (on)
    
    HDIO_SET_DMA failed: Operation not permitted
    
    using_dma    =  0 (off)
    
    trinity root #

    :?

    there are no options in bios to turn on/off DMA but my bios reports udma66 when booting.

    I have this board http://www.giga-byte.com/MotherBoard/Produ...ts_GA-6VXD7.htm

    and a brand new seagate 120gig with 8mb cache

     

    here's a bit of my kernel config

      x x [*]   PCI IDE chipset support                                       x x
    
     x x [*]     Generic PCI IDE Chipset Support                             x x
    
     x x [*]     Sharing PCI IDE interrupts support                          x x
    
     x x [*]     Generic PCI bus-master DMA support                          x x
    
     x x [ ]     Boot off-board chipsets first support                       x x
    
     x x [ ]       Force enable legacy 2.0.X HOSTS to use DMA                x x
    
     x x [*]       Use PCI DMA by default when available                     x x
    
     x x [ ]     Enable DMA only for disks                                   x x
    
     x x [ ]       ATA Work(s) In Progress (EXPERIMENTAL)                    x x

     

    can anybody help?

  2. for example I have a lan network (192.168.1.0/24) and 1 public IP address 210.55.100.1

    I would have a machine with netwrok cards .. one would be configured to have a lan ip (eth1: 192.168.1.1) and the other with the public IP (eth0: 210.55.100.1)

    then install shorewall, and edit this file /etc/shorewall/masq

    #INTERFACE              SUBNET          ADDRESS
    
    eth0                    192.168.1.0/24
    
    #LAST LINE -- ADD YOUR ENTRIES ABOVE THIS LINE -- DO NOT REMOVE

     

    thats it !! you now have nat working ... configure your lan computer to have a gateway of 192.168.1.1 ;-)

  3. if want stuff to happen without the page reloading (example: mouseover effects, or changing images) then you will need Javascript.

     

    Javascript can be very complex, and it can be very simple

    I only know the simple stuff

    <img id="my_image" src="....

    document.images.my_image

    for example refers an image on this page called my_image

     

    anything beyond that ... I google it ! :-P

     

    the beautiful code (thanks for that ;-) ) ... I spend far too much time cleaning my code. Making sure that indents are correct etc etc ....

     

    and yes, when you view the source of one of my websites, they are easily read ;-)

     

    Johhnyv seems to be a bit of a javascript/DOM geek ! ;-) ... dude ?

    altho' I don't recall seeing any of your work johnnyv ?

  4. Wouuld it be better to learn some dynamic scripting such as asp, or php rather than html? I'm not sure so I"m asking :)

     

    johnnyv is right

    asking this question is oike asking "is it better to learn poetry, or english?"

     

    HTML is in everything !!!!! its kinda like the english languauge of websites ;-)

    php does all the cool nifty stuff that plain ol' html can't do

  5. Hey chris ... having fun yet ? :-)

     

    I use k3b ocassionally, and mine will only work when I am root

    that means

    open a terminal (konsole) su - root .. .then enter your admin/root password ... then type k3b<enter>

     

    its a pain, and I'm sure somebody here could think of any easy way to automate this process ... but it list all my drives, and works as I expect it to.

     

    on the other hand, if try running k3b as my user, then I get no drives listed, and error message telling me to run k3bsetup :roll:

  6. function over_image(parm_name)
    
       {
    
           document[parm_name].src = eval(parm_name + "_on.src");
    
           document[parm_name].className="stoopid_ms2";
    
       }
    
    
    
    function off_image(parm_name)
    
       {
    
           document[parm_name].src = eval(parm_name + "_off.src");
    
           document[parm_name].className="stoopid_ms1";
    
       }
    
    
    
    <a href="index.php" onmouseover="over_image('img0');" onmouseout="off_image('img0')"><img src="images/home.png" border="0" name="img0" alt="Home" class="stoopid_MS1"></a>

     

    I guess with something like this you would need to write a stlye class for each mouseover effect :-(

    like img.img0-1 { } and img.img0-2 {} etc etc etc

  7. got php?

    <?
    
    // usage:
    
    //      put_png("path/to/my_transparent.png", width, height);
    
    function put_png($path2img, $width, $height)
    
           {
    
           global $HTTP_USER_AGENT;
    
           $suffix = "px"; // this is for style size ... example 10px
    
           if (ereg("MSIE", $HTTP_USER_AGENT) && ereg("Windows", $HTTP_USER_AGENT) && !ereg("Opera", $HTTP_USER_AGENT))
    
                   {
    
                   echo"<div id="stoopid_MS" style="position:relative; height:$height$suffix; width:$width$suffix; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='$path2img',sizingMethod='scale');"></div>";
    
                   } else {
    
                   echo"<img src="$path2img" width="$width" height="$height">";
    
                   }
    
           }
    
    ?>

×
×
  • Create New...