iccaros

Linux Experts
  • Content Count

    1292
  • Joined

  • Last visited

Posts posted by iccaros

  1. SUN has been giving away their OS (solaris) for a long time for non commercial use. It now they give it out for everyone, and hope you will buy support. I have used Solaris for a long time, its a very stable server OS. as a Workstation, it is useable, but does not have the support Linux or BSD has in drivers.

    Solaris is designed to be stable and not to break application for previous versions. Because of this Change is slow.

    but if you want to play with it, it does well in vmware, Dual booting can be a pain to setup but once done is simple..

    I use Trusted Solaris at Work with The SunRay session server software (SunRay is a Thin client, great for offices, and schools)

    if you need any help just post away

  2. I went to the adobe site and downloaded, extracted the file, but, the command ./flashplayer-installer didn't work like it did for flash 7.

    I guess 9 has a new installer?

    There isn't an installer. The manual install is dead simple though: copy/symlink the .so into the right place and you're done. Firefox and Mozilla look in ~/.mozilla/plugins/, Opera can be pointed wherever you want by editing ~/.opera/pluginpath.ini, Konqueror... I can't remember.

    you can tell Konqueror to look for Netscape plug ins, as Firefox will also look in /home/username/.netscape/plugins this is where I put it so Konqueror will find it when you tell it to search for plug ins.

  3. ok

    we are creating a server from exsistiong code. I have the source or .java files and I also have .class files..

    I need to use these methods in my program but I don't know how to add the methods.. they are part of package, but I also have the source file (.java) for each of these.. do I just put the source files in my same directory and what use import? or do I just call the class

    example Server SImServer = null;

  4. fixed it, I noticed I was uisng WheelOne for all lookups, makes it hard for the others to decrypt..

    here is the fixed code

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;

    namespace Basic_Encrytion
    {
    //The ideal behind this encryption is to mimic the EMIGMA machines of WWII. With the use of diffrent random wheels
    //you can create a good enough encrytion, by adding the modifier you are chaning the starting position of the wheel
    //Encryption Wheels declaration
    public enum WheelOne : int
    { a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z,
    A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z }
    public enum WheelTwo : int
    { Z, Y, X, W, V, U, T, S, R, Q, P, O, N, M, L, K, J, I, H, G, F, E, D, C, B, A,
    z, y, x, w, v, u, t, s, r, q, p, o, n, m, l, k, j, i, h, g, f, e, d, c, b, a }
    public enum WheelThree : int
    { a, c, e, g, i, k, m, o, q, s, u, w, y, A, C, E, G, I, K, M, O, Q, S, U, W, Y,
    b, d, f, h, j, l, n, p, r, t, v, x, z, B, D, F, H, J, L, N, P, R, T, V, X, Z }
    public partial class Form1 : Form
    {

    //variable declaration
    public string DisplayEncrypt = "";
    public string DisplayDecrypt = "";


    public string encrypt(char RedSideIn, int WheelPosition,int WheelNumber)
    {

    string BlackSideOut = "";

    if (WheelNumber == 1)
    BlackSideOut = Wheel1( WheelPosition, RedSideIn);
    else if (WheelNumber == 2)
    BlackSideOut = Wheel2( WheelPosition, RedSideIn);
    else if (WheelNumber == 3)
    BlackSideOut = Wheel3( WheelPosition, RedSideIn);

    return BlackSideOut;

    }

    private string Wheel3( int WheelPosition, char RedSideIn)
    {
    int BlackSideInt = 0;
    int RedSideInStr = (int)Enum.Parse(typeof(WheelThree), Convert.ToString(RedSideIn));

    //ensure the pattern loops
    if (WheelPosition + RedSideInStr > 51)
    BlackSideInt = (WheelPosition + RedSideInStr) - (52);
    else if (WheelPosition + RedSideInStr < 0)
    BlackSideInt = (WheelPosition + RedSideInStr) + (52);
    else
    BlackSideInt = WheelPosition + RedSideInStr;

    WheelThree letter = (WheelThree)BlackSideInt;
    return letter.ToString("G");
    }

    private string Wheel2(int WheelPosition, char RedSideIn)
    {
    int BlackSideInt = 0;
    int RedSideInStr = (int)Enum.Parse(typeof(WheelTwo), Convert.ToString(RedSideIn));

    //ensure the pattern loops
    if (WheelPosition + RedSideInStr > 51)
    BlackSideInt = (WheelPosition + RedSideInStr) - (52);
    else if (WheelPosition + RedSideInStr < 0)
    BlackSideInt = (WheelPosition + RedSideInStr) + (52);
    else
    BlackSideInt = WheelPosition + RedSideInStr;

    WheelTwo letter = (WheelTwo)BlackSideInt;
    return letter.ToString("G");
    }

    public string Wheel1( int WheelPosition, char RedSideIn)
    {
    int BlackSideInt = 0;
    int RedSideInStr = (int)Enum.Parse(typeof(WheelOne), Convert.ToString(RedSideIn));

    //ensure the pattern loops
    if (WheelPosition + RedSideInStr > 51)
    BlackSideInt = (WheelPosition + RedSideInStr) - (52);
    else if (WheelPosition + RedSideInStr < 0)
    BlackSideInt = (WheelPosition + RedSideInStr) + (52);
    else
    BlackSideInt = WheelPosition + RedSideInStr;

    WheelOne letter = (WheelOne)BlackSideInt;
    return letter.ToString("G");
    }

    public Form1()
    {
    InitializeComponent();
    }

    private void button1_Click(object sender, EventArgs e)
    {

    //tokenize input to be sent to encryptor
    string TokEncrypt = SourceBox.Text;
    int WheelNumber = 0;
    for (int x = 0;x < TokEncrypt.Length;x++)
    {
    WheelNumber++;
    if (WheelNumber > 3)
    WheelNumber = 1;
    DisplayEncrypt = DisplayEncrypt + encrypt(TokEncrypt[x],25,WheelNumber);

    }
    EncryptBox.Text = DisplayEncrypt;
    WheelNumber = 0;
    for (int x = 0; x < DisplayEncrypt.Length; x++)
    {
    WheelNumber++;
    if (WheelNumber > 3)
    WheelNumber = 1;
    DisplayDecrypt = DisplayDecrypt + encrypt(DisplayEncrypt[x], -25,WheelNumber);

    }
    DecryptBox.Text = DisplayDecrypt;


    //clean up
    DisplayEncrypt = "";
    DisplayDecrypt = "";
    WheelNumber = 0;
    }
    }
    }

    now does anyone have a better way?

    I am thinking of advancing the wheelposition so

  5. ok I have a math problem I can not find

    here is the code

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;

    namespace Basic_Encrytion
    {
    //The ideal behind this encryption is to mimic the EMIGMA machines of WWII. With the use of diffrent random wheels
    //you can create a good enough encrytion, by adding the modifier you are chaning the starting position of the wheel
    //Encryption Wheels declaration
    public enum WheelOne : int
    { a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z,
    A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z }
    public enum WheelTwo : int
    { Z, Y, X, W, V, U, T, S, R, Q, P, O, N, M, L, K, J, I, H, G, F, E, D, C, B, A,
    z, y, x, w, v, u, t, s, r, q, p, o, n, m, l, k, j, i, h, g, f, e, d, c, b, a }
    public enum WheelThree : int
    { a, c, e, g, i, k, m, o, q, s, u, w, y, A, C, E, G, I, K, M, O, Q, S, U, W, Y,
    b, d, f, h, j, l, n, p, r, t, v, x, z, B, D, F, H, J, L, N, P, R, T, V, X, Z }
    public partial class Form1 : Form
    {

    //variable declaration
    public string DisplayEncrypt = "";
    public string DisplayDecrypt = "";


    public string encrypt(char RedSideIn, int WheelPosition,int WheelNumber)
    {

    int BlackSideInt = 0;
    int RedSideInStr = (int) Enum.Parse(typeof(WheelOne),Convert.ToString(RedSideIn));
    string BlackSideOut = "";
    //ensure the pattern loops
    if (WheelPosition + RedSideInStr > 51)
    BlackSideInt = (WheelPosition + RedSideInStr) - (52);
    else if (WheelPosition + RedSideInStr < 0)
    BlackSideInt = (WheelPosition + RedSideInStr) + (52);
    else
    BlackSideInt = WheelPosition + RedSideInStr;

    if (WheelNumber == 1)
    BlackSideOut = Wheel1(BlackSideInt);
    else if (WheelNumber == 2)
    BlackSideOut = Wheel2(BlackSideInt);
    else if (WheelNumber == 3)
    BlackSideOut = Wheel3(BlackSideInt);

    return BlackSideOut;

    }

    private string Wheel3(int BlackSideInt)
    {
    WheelThree letter = (WheelThree)BlackSideInt;
    return letter.ToString("G");
    }

    private string Wheel2(int BlackSideInt)
    {
    WheelTwo letter = (WheelTwo)BlackSideInt;
    return letter.ToString("G");
    }

    public string Wheel1(int BlackSideInt)
    {
    WheelOne letter = (WheelOne)BlackSideInt;
    return letter.ToString("G");
    }
    public Form1()
    {
    InitializeComponent();
    }

    private void button1_Click(object sender, EventArgs e)
    {

    //tokenize input to be sent to encryptor
    string TokEncrypt = SourceBox.Text;
    int WheelNumber = 0;
    for (int x = 0;x < TokEncrypt.Length;x++)
    {
    // WheelNumber++;
    // if (WheelNumber > 3)
    // WheelNumber = 1;
    DisplayEncrypt = DisplayEncrypt + encrypt(TokEncrypt[x],25,2);

    }
    EncryptBox.Text = DisplayEncrypt;
    WheelNumber = 0;
    for (int x = 0; x < DisplayEncrypt.Length; x++)
    {
    // WheelNumber++;
    // if (WheelNumber > 3)
    // WheelNumber = 1;
    DisplayDecrypt = DisplayDecrypt + encrypt(DisplayEncrypt[x], -25,2);

    }
    DecryptBox.Text = DisplayDecrypt;


    //clean up
    DisplayEncrypt = "";
    DisplayDecrypt = "";
    WheelNumber = 0;
    }
    }
    }

    if I choose wheel one it works

    if I choose wheel 2 Y&Z and a&b are messed up

    if I choose wheel 3 non of it works..

    this should be simple pattern matching..

    example I use wheel2 and put in abcdefghijklmnopqrstuvwxyz

    this is it encrypted Azyxwvutsrqponmlkjihgfedcb

    but this is the decrypt YZabcdefghijklmnopqrstuvwx

    if I use wheel3 I get this

    in: abcdefghijklmnopqrstuvwxyz

    encrypt:YbdfhjlnprtvxzBDFHJLNPRTVX

    decrypt:YfjnrvzDHLPTXaeimquyCGKOSW

    thanks

  6. Thank you, Thank you, Thank you..

    I tried that before severl times but was missing the ","

    between (lookup) and mystring

    so it keeped telling me I had an invalud overload of system.type which ment nothing to me, except I was wrong..

  7. say I have an enum declared like so

    enum lookup {a=1,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}

    now I have an user enter a string (say a)

    so

    string mystring = a;

    how do I take string a and get the value from the enum lookup

    I've tried

    int Iplace = (int)(lookup)mystring;

    but that fails

    if I change it to a char then It passes the value of the char not the char.

  8. Thumbnail doesn't expand when clicked (opera and firefox). I like the simple design, easy to navigate and on the eyes.

    I was playing with that today, you have to right click and go view image. I have a question posted to my buddy on how to change this. so it works correctly

  9. ok, I'm strait now. you are missing the wind32codex and the mplayer plug in. you have some bad repositories in your repo list.

    see http://ubuntuguide.org/wiki/Dapper#How_to_...ra_repositories

    to edit your repositories commenting the ones that faild prior.

    then

    How to install Multimedia Player (Mplayer) with plug-in for Mozilla Firefox

    * Read #General Notes

    * Read #How to add extra repositories

    sudo apt-get install mozilla-mplayer

    for win32codex Hitest can answer..

  10. ok I am changing my site and I am lookign for Ideals. I changed to word press to as the base of the site, if you know how to use word press and can lend a hand let me know.. if you know a better theme let me know..

    beat me up, say the site sucks, and then how to fix it...

    thanks

  11. or you can always

    Go to Program Files folder in Explorer, right-click on the Google

    *folder*, and select Properties. Click on the Security tab.

    There are two columns which say Allow and Deny.

    On the line which says Write, check the Deny box.

    UN-check the box at the bottom which says Allow Inheritable

    Permissions. You'll be prompted with a dialog which says Copy, Remove,

    or Cancel. Click on Remove.

    On the line for "Read & Execute", check Allow. Then click on OK.