iccaros
-
Content Count
1292 -
Joined
-
Last visited
Content Type
Profiles
Forums
Calendar
Posts posted by iccaros
-
-
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.
-
you are correct, ++x would incrament and send incramented while X++ incarments and sends prior but x is still incramented. so its the same as ++x
-
so since my entier class is as such
public static double fixAzimuth_02PI (double x)
while (x < 0)
{
x += sTwoPI;
}
while (x > sTwoPI)
{
x -= sTwoPi;
}
return x;
}
private static final double sTwoPi = 2.0 * Math.PI;
so I gather this is keeping x between 0 and 2*PI
-
to be honest, I have never seen that syntax. Is that java?
c++ java, c# and VB and C
X++ would incrament X by one , its the same as X = X + 1
X-- is the opisite
-
so your saying its the same as doing a x++?
-
while (X<0)
x += sTwoPI;
)
I have never seen += or the opisite -=
thanks
-
there are alot of sites that require 8 or above to work. They neer released 8 for Linux.
an Example is playing video on SCI-FI's site..
-
its still Beta, but its here
http://labs.adobe.com/downloads/flashplayer9.html
NOTE: its not free as in speach software... for those who care..
-
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;
-
I think from now on I'll just run stable releases.
what fun is that??
-
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
-
here is the project file VS 2005 type
-
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
-
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..
-
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.
-
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
-
did some more changes.. please comment, I don;t like where this theme pu tlinks, but I need to look through css code to find it..
-
Thnaks for the comments, I have the art that TicToc made but I am still learning how to edit the php pages.. and I have not foudn a good theme yet, the Green is to remind me I need to work on it.
-
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..
-
ok, I am lost,
which plugins were listed?
-
the best way to do this is with a router for windows or linux. A linksys router for example has a place to put your password and user name so you don't need to on the computer.
at the end of this is DSL setup with suse
http://www-uxsup.csx.cam.ac.uk/pub/doc/sus...icnet.yast.html
-
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
-
Gentoo, Slackware Linux From Scratch.. I dislike most user friendly distributions..
-
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.
Free Sun Microsystems Operating Systems
in Linux & Unix
Posted
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