Jump to content

johnnyv

Members
  • Posts

    960
  • Joined

  • Last visited

Posts posted by johnnyv

  1. Should be similar, mysql doesn't have all the functions of oracle but it should be good enough.

     

    for example if you create a db with a table called "list" which has the fields "name", "age" and "size".

    Sql statements are:

    To insert
    insert into list values("bob", 30, "large");
    To update
    update list set age = 31 where name = "bob";
    To select
    select * from list where name = "bob";
    To delete
    delete from list where name = "bob";

  2. goddamn I'm going blind. I can cap the ul on dcgui itself. somehow I missed the option when I first went through with the gui.

    Yes but if you do that you often are not allowed on servers with upload caps.

     

    Have a look at this page

    http://lartc.org/

     

    Here is a relevant section

     

    9.2.2.2. Sample configuration

     

    A simple but *very* useful configuration is this:

     

    # tc qdisc add dev ppp0 root tbf rate 220kbit latency 50ms burst 1540

     

    Ok, why is this useful? If you have a networking device with a large queue, like a DSL modem or a cable modem, and you talk to it over a fast device, like over an ethernet interface, you will find that uploading absolutely destroys interactivity.

     

    This is because uploading will fill the queue in the modem, which is probably *huge* because this helps actually achieving good data throughput uploading. But this is not what you want, you want to have the queue not too big so interactivity remains and you can still do other stuff while sending data.

     

    The line above slows down sending to a rate that does not lead to a queue in the modem - the queue will be in Linux, where we can control it to a limited size.

     

    Change 220kbit to your uplink's *actual* speed, minus a few percent. If you have a really fast modem, raise 'burst' a bit.

  3. I have been a little busy lately here is a function that returns an array of directories from a given path

     

    <?php
    function map_directories($path) 
    {
    $continue = true;
    $final_array = array($path);
    if($handle = @opendir($path))
    {
         while(false !== ($file = readdir($handle)))
         {
          	 $type = filetype("$path$file");
        	 if($type == "dir" && $file != "." && $file != "..")
    	 {
    	 $directory_array[] = $path.$file."/";
    	 }
     }
    }
    closedir($handle);
    while($continue)
    {
     if(isset($directory_array))
     {
                   $final_array = array_merge($final_array,$directory_array);
     $temp_array = $directory_array;
     unset($directory_array);
    	 foreach($temp_array as $path)
    	 {
       if($handle = @opendir($path))
       {
          	 while(false !== ($file = readdir($handle)))
          	 {
      	 $type = filetype("$path$file");
         if($type == "dir" && $file != "." && $file != "..")
         {
         $directory_array[] = $path.$file."/";
         }
      	 }
       closedir($handle);
       }
    	 }
     }
     else
     {
     $continue = false;
     }
    }
    return $final_array;
    }
    // example
    $list = map_directies('/home/john/Desktop/'); // need that trailing / or add error checking
    print_r($list);
    ?>

     

    For pdf creation exaples look at www.fpdf.org

    For redistribution to windows i don't really know, but if you make a zip file with the directories it should work. For that you will want to use mkdir() to make the directories in a temp folder and then zip them.

    Php only supports tar, gz and bz2 natively so you would need to use an exteranal command to creat zip files, which you can do from php with the system() or exec() etc functions.

  4. It is trivial to grab the child directories from a specified parent, thats the easy part the pdf printing part is trivial as well. I think a web form will be the quickest way.

     

    Say you have a directory structure like so:

     

                                                              A
                           B1                              B2                                        B3
                  C1             C2         |           D1            |            E1           E2             E3
                  F1                           |                            |                                             G1
                                                 |                            |                                             H1

     

    Ok so if you pick B1 and all its children but also want G1 and child you will need to include E3 and B2 to keep seperate from B1, or do you want to move G1 to be a brother to B1?

  5. Not really getting what your trying to explain but for creating and navigating files and file directories and making pdf's the best language for me is php and the www.fpdf.org pdf addon classes.

    If you want a gui tool then that is harder but possible with php-gtk, or mozilla xul application with php creating the xml that the xul app reads the generate xml.

    Or you can go with the web form method which i think is the most simple method.

     

    If you could further explain.

    Are you saying you want to have a view of a selected directory and all it's children including files. Then be able to select any child directory or files or combination and recreate the selected elements at another location possibly not within the parent directory tree?.

     

    What do you mean by index file, is it a created text file with infomation on the directory and file structure?

  6. no idea, but if its true, then it should only be good news.

     

    OpenGL itself is a good system, but its too limited in its current state to sucessfully compete with DirectX, and from what I understand DirectX is significantly easier to use.. all things that need looking at and improving. Further to this, DirectX isn't just about graphics, its the entire multimedia system - joystick, mouse, soundcard etc, enabling complete control within the game environment. OpenGL would need to be as all-encompassing to make it worth while - otherwise you have to write for OpenGL, X and OSS / ALSA / ARTS / EDOs / Anyother sound system

    Not really just use opengl and sdl, or openml.

  7. Linux sucks and windows sucks, for me Linux sucks less.

    then I want the OS you're developing and will pay $500 for it....let me know when you need testers :headbang: ...oh and the $500 will be after the testers discount....regulars will be charged $700. Sound good? :lol:

    Ummm what i would develop would suck more than windows!

     

    There isn't a perfect os, not by a long way, but i have found linux to be the least bad that i have played with for my requirements.

     

    Oh and i am refering to suck in a bad way, not the good way.

    :cheeky:

  8. Just as PHP is not designed for writing Operating Systems in, Java has not much to do with creating and maintaining web sites and web apps. It's like trying to use a Mack truck for daily driving in a city.

     

    So yes, I'd recommend PHP (though I'd love to be able to use python) for creating dynamic webpages. Perl would be second (Disclaimer: I don't know Perl).

     

    Good editors? Bluefish Editor.

    you can use python

    http://www.modpython.org/

    http://www.ee.cua.edu/manual/mod/mod_pytho...n/tutorial.html

  9. The cable modem is connected to the router and the pc's are connected to the router right?

    When the transmission stops are you able to ping the modems ip?

    Can you ping the other pc's that are connected to the router?

     

    If you can ping other pc's on your network but can't ping the modem, could be modem overheating.

    Had this happen to me with an external adsl modem before.

×
×
  • Create New...