naraku9333

Members
  • Content Count

    298
  • Joined

  • Last visited

Posts posted by naraku9333

  1. You could use it as leverage (specially Office) to raise the price up - but it would be illegal.

    It's legal, the windows copy that came with the dell is (more than likely) OEM so legally LiXindi can't install it on another system anyway. Besides, its a private sale so as long as licensed software isn't used elsewhere as well LiXindi is in the clear. Ofcourse if any of the EULA's specificaly state it is illegal then it would be.

  2. I ran across k9copy last night while looking for a system backup application. This may be old news as I haven't had the need to backup a dvd in a while and had been using dvdshrink(linux) for some time. Anyone who has wanted a native application truely comparable(easy use, good quality video, and menus) to dvdshrink(windows) this is what you have been waiting for (I know I have been). It is a KDE application so I assume it requires some kde deps, I do know it requires vamps which does the resizing. Gentoo users both k9copy and vamps are in portage.

  3. I am running kde also, but I do not have a "gtk styles and fonts". Maybe I need to look harder.

    Should be under control center > apperance, if not you may need to emerge gtk-engines-qt if on gentoo, and instructions here for debian package.

    does firefox depend on gtk?

    Yup.

  4. I read it is a bug in Star Office, but not necessarily being exploited. Just someone tried to see if they could exploit the flaw. Hopefully it will be patched before it is misused by anyone!

    I doubt it will be patched, it is (IMO) more a feature than a bug. Macro's can be very useful in an office application. It can be exploited but on a unix/linux system it should be limited by the users privledges.

    By the way, I disagree with the cavalier way people talk about the Internet as if the porn available on the Internet is all that the Internet is good for is porn. So sad that porn always seems to sully and off-color so many places even family boards such as this one in the comedy section etc, or even innocent warning threads such as this one!!!

    Remarks such as "and last time I checked, downloading porn is what the internet is for..." shows how limited some people's internet usage probably is; and how little respect is given to those of us who abhor such garbage, or how sorry we feel for those addicted to a lifestyle of porn whether online or off.

    Pat

    God bless everyone

    I guess you dont remeber the early days of the internet. And to say Iccaros' comment "sully and off-color" the thread is a bit much toward an obvious joke.

  5. It was likely my fault - I forgot to unmount /dev/sda1 before formating.

    I put /dev/sda1 as the floppy drive, checked "Zero out and quick format", and provided a volume label.

    A box popped up saying "drive must be unmounted" - click OK.

    Then it asked for root password - which I gave.

    Then kfloppy crashed, without any error messages, it just disappeared.

    And the drive was unmountable - unreadable - "hosed".

    A format from the command line brought it back.

    Probably my bad. But I didn't try again.

    More than likely it errored durring or after the zero out with dd. If so there wasn't (shouldn't have been) a problem with the drive, it was unmountable because it didn't have a filesystem (FS's are mounted, not drives). I do wonder why it crashed, I ran the zero out/quick format without any problems.

  6. I tried formatting the thumb drive in kfloppy (followed the directions in the documentation) and it hosed my drive.

    Had to reformat by command line to fix it. I'm sure this will work in some future version of kfloppy.

    What do you mean "hosed the drive", kfloppy uses the same command (mkdosfs) for quick formats which is all you can do with a flash drive. (kfloppy uses fdformat for "full format" which checks if it is a floppy drive)

  7. I am trying to use java-config to change to the sun-jre-1.5

    below are the listings of my two java directorys

    mainbox opt # ls sun-jdk-1.5.0.06/bin/
    ControlPanel jarsigner javaws jstack native2ascii serialver
    HtmlConverter java jconsole jstat orbd servertool
    appletviewer java-rmi.cgi jdb jstatd pack200 tnameserv
    apt javac jinfo keytool policytool
    extcheck javadoc jmap kinit rmic
    idlj javah jps klist rmid
    jar javap jsadebugd ktab rmiregistry
    mainbox opt # ls sun-jre-bin-1.5.0.06/bin/
    ControlPanel javaws klist pack200 rmiregistry
    java keytool ktab policytool servertool
    java_vm kinit orbd rmid tnameserv

    when I try to set sun-jre-1.5 it gives me an error of not findong javac. Am I suppoed to copy it over from my jdk bin?

    mainbox opt # java-config --set-system-vm sun-jre-bin-1.5.0.06
    javac not found at /opt/sun-jre-bin-1.5.0.06/bin/javac or /opt/sun-jre-bin-1.5.0.06/jre/bin/javac
    javadoc not found at /opt/sun-jre-bin-1.5.0.06/bin/javadoc or /opt/sun-jre-bin-1.5.0.06/jre/bin/javadoc
    jar not found at /opt/sun-jre-bin-1.5.0.06/bin/jar or /opt/sun-jre-bin-1.5.0.06/jre/bin/jar
    rmic not found at /opt/sun-jre-bin-1.5.0.06/bin/rmic or /opt/sun-jre-bin-1.5.0.06/jre/bin/rmic
    THIS SYSTEM VM IS NOT SUFFICIENT, REQUIRED BINARIES WERE NOT FOUND

    I have my jdk set as default, the jre doesn't include javac, but the jdk includes the jre.

  8. Since I need alot of practice I decided to write a couple little client/server apps in java (Idont know any python to help with your's).

    Server.java

    /*
    * Server.java
    *
    * Created on May 27, 2006, 11:15 PM
    *
    * To change this template, choose Tools | Options and locate the template under
    * the Source Creation and Management node. Right-click the template and choose
    * Open. You can then make changes to the template in the Source Editor.
    */

    /**
    *
    * @author naraku
    */
    import java.net.Socket;
    import java.net.ServerSocket;
    import java.io.BufferedReader;
    import java.io.PrintWriter;
    import java.io.InputStreamReader;
    import java.io.IOException;
    import java.util.Scanner;
    import java.io.FileOutputStream;

    public class Server {

    /** Creates a new instance of Server */
    public Server() {
    }
    public static void main(String[] args){
    Socket clientSock = null;
    ServerSocket serverSock = null;
    int port = Integer.parseInt(args[0]);
    BufferedReader in = null;

    //Scanner stdIn = new Scanner(System.in);
    try{
    serverSock = new ServerSocket(port);
    }
    catch(Exception e){
    System.err.println("cannot listen on "+port+"\n"+e);
    }
    try{
    clientSock = serverSock.accept();
    System.out.println("connected");//debugging
    }
    catch(Exception e){
    System.err.println("could not accept client connection\n"+e);
    }
    try{
    in = new BufferedReader(new InputStreamReader(clientSock.getInputStream()));

    }
    catch(Exception e){
    System.err.println("could not create reader stream\n"+e);
    }
    //
    try{
    PrintWriter out = new PrintWriter(new FileOutputStream("testClass.txt"));
    String x;
    while((x = in.readLine())!=null){
    System.out.println(x);
    out.println(x);
    out.close();
    }
    }
    catch(IOException e){
    System.err.println(e);
    }
    /* catch(FileNotFoundException ex){
    System.err.println(ex);
    }*/

    }

    }

    Client.java

    /*
    * Client.java
    *
    * Created on May 27, 2006, 11:15 PM
    *
    * To change this template, choose Tools | Options and locate the template under
    * the Source Creation and Management node. Right-click the template and choose
    * Open. You can then make changes to the template in the Source Editor.
    */

    /**
    *
    * @author naraku
    */
    import java.net.Socket;
    import java.io.BufferedReader;
    import java.io.PrintWriter;
    import java.net.ServerSocket;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.Scanner;

    public class Client {

    /** Creates a new instance of Client */
    public Client() {
    }
    public static void main(String[] args){
    Socket clientSock = null;
    BufferedReader input = null;
    Scanner stdIn = new Scanner(System.in);
    PrintWriter sockOutput = null;
    PrintWriter output = null;
    String host = args[0];
    int port = Integer.parseInt(args[1]);

    try{
    clientSock = new Socket(host, port);
    System.out.println("connected to "+host+" on port "+port);//debugging
    }
    catch(IOException e){
    System.err.println("could not connect to server "+host+" on port "+port+"\n"+e);
    }

    try{
    input = new BufferedReader(new InputStreamReader(clientSock.getInputStream()));
    sockOutput = new PrintWriter(clientSock.getOutputStream(), true);
    System.out.println("io streams created");
    }
    catch(IOException e){
    System.err.print("could not create IO streams\n"+e);
    }
    sockOutput.print(args[2]);
    sockOutput.flush();
    /*while(){

    }*/
    }
    }

    The server must be run first and takes the port as an arg(or can be har coded), the client takes 3 args, the host of server, port number and a test string. The server receives specified string outputs it to stdOutput and writes it to a file called testClass.txt in the directory app is run.

    I used sun's KnockKnock example as a basis.

  9. I don't know about python but in java it is fairly easy to write apps that read and write to sockets. The client could have a daemon running that does the specific checks that you want and if the conditions are met send an error code like STORAGE_LOW,etc... on the socket. You would need a daemon running listening on the port on your end for this to work and would also want a static ip (or domain name).

  10. Sounds like a pretty good option for small/home You may consider (maybe give as an additional option) that the backup be on a local server (or NAS) with a raid5 (or better) array. Another option could be a monthly tape backup done by you and kept off site (would require expense on your part for tape drive and cartridges)

    EDIT:

    The script is a good idea (Im surprised acronis doesn't already have a rotate feature) but, python would require an interpreter installed on the clients systems (probably wouldn't be a huge deal) maybe a batch file or vb script may be a better idea.

  11. nice job :-)

    I love the fact with open source changes can be made so easily(reletively). Try doing that on your windows operating system.

    Yes kde makes things pretty easy. Heres another little .desktop file that adds a compile action for .java files.

    [Desktop Entry]
    Encoding=UTF-8
    ServiceTypes=text/x-java
    Actions=CompileJava

    [Desktop Action CompileJava]
    Name=Compile Java File
    Exec=javac %f
    Icon=package_system

  12. Ok, I got a working method to add format to right click action menu and as an action for connected usb devices (KDE3.5.x). I used kfloppy basicaly since being a kde app has the look n' feel. But having the correct device in the combo box in kfloppy requires editing the source (adding about 3 lines, not a hard process). If you don't already have the source download kdeutils-3.5.2.tar.bz2 (DIRECT LINK). Unpack the archive and

    cd kdeutils-3.5.2/kfloppy/

    In your favorite text editor open floppy.cpp (back it up first if you like) and go down to line 416, the section will look like:

    // ### TODO user given devices
      bool ok = (drive>=0);  if (ok)	deviceComboBox->setCurrentItem(drive);

    Add an else to the if statement changing the code block to:

    // ### TODO user given devices
      bool ok = (drive>=0);  if (ok)	deviceComboBox->setCurrentItem(drive);  else{	deviceComboBox->setEditText(newDevice);	densityComboBox->setCurrentItem(0);  }

    Save the file and exit. Change to the parent directory and configure the source

    cd .../configure --without-arts  #####I needed this option, you may need otherscd kfloppy/makesu -c cp kfloppy /usr/kde/3.5/bin   ##### KDE path on my system yours may differ, some distros install in /opt.

    To be able to format a usb flash drive with kfloppy it must be run as root (acctually the tools (mkdosfs,etc...) require root) so I use sudo. If you have sudo installed open /etc/sudoers as root. Go to the end of the file and add

    %plugdev		ALL=(ALL)	   NOPASSWD: /usr/kde/3.5/bin/kfloppy

    the %plugdev means only members of the plugdev group can run the command, change it to any group you are a member of or to your user name omitting the %. As an alternitive to sudo you can use kdesu wich IMO is more secure but has a drawback discussed shortly.

    In KDE 3.5 when a usb mass storage device (not limited to these) is connected a notification appears allowing a choice of services. To add the format service to this menu is very simple. Open Control Center from kicker menu, click peripherals then storage media and then add. Highlight "Unmounted Removable Media" in the left pane and move it to the right. Enter "sudo kfloppy -display :0.0 %u" in command box (excluding quotes). Ok apply and your done. You can obviously use this method to add services for other media ie:autoplaying or possibly autoripping dvd's, etc...

    If you dont want to use sudo change the Exec line to Exec=kdesu kfloppy, this will require root password to continue. The drawback mentioned earlier is using kdesu the %u variable isn't passed to kfloppy requiring the device name to be manually entered. I also attempted to use kdesudo to require user passwd only but the -display :0.0 flag doesn't seem to work.

    If you want this to be global (for all users) move the pertinent .desktop file from ~/.kde/share/apps/konqureror/servicemenus to <KDEDIR>/share/apps/konqureror/servicemenus.

    I hope the OP or anyone for that matter finds this udeful, I for one have little use for formatting flash drives aside from an entire filesystem change (vfat to ext2).

    WARNING!!!:

    It is Important to note the "hack" of the kfloppy code does no checks what so ever, what I mean is an accidental click on format on a system drive(icon) could result in a wiped OS. A check for ATA(IDE) drives should be easy, SATA not so easy. Mind you I dont know c++ or Qt.

    EDIT:

    Removed redundent material.