-
Re: Whats ur ctrl V right now
Mine went something like:
function kollaNummer(losen) //kontrollerar om något tecken i en sträng är en siffra
//om så är fallet ökas variabeln rakna med 1
{
for (i = 0; i < losen.length; i++)
{
var tecken = losen.charAt(i);
if (((tecken > "0") && (tecken < "9")))
{rakna = rakna + 1;}
}
return rakna;
}
That one just counts them, tho'.
-
Re: Whats ur ctrl V right now
:lol: :earl:
Javascript is hard enough as it is, without having to do it in non-English ;)
-
Re: Whats ur ctrl V right now
kollaNummer = checkNumber
lösen ~ password
tecken ~char/sign
räkna = count
I used that one to validate a password, I think. As I recall, the password had to contain a certain number of digits.
Might not be working as it is tho', I just grabbed it off some notes I had.
-
Re: Whats ur ctrl V right now
Quote:
Originally Posted by
Snee
Mine went something like:
function kollaNummer(losen) //kontrollerar om något tecken i en sträng är en siffra
//om så är fallet ökas variabeln rakna med 1
{
for (i = 0; i < losen.length; i++)
{
var tecken = losen.charAt(i);
if (((tecken > "0") && (tecken < "9")))
{rakna = rakna + 1;}
}
return rakna;
}
That one just counts them, tho'.
zomfg i can speak japanese, understood every word of that last sentence! :o
-
Re: Whats ur ctrl V right now
function checkNumber(pass) //Checks whether any sign in a string is a digit
//if that is the case, the variable count is increased by 1.
{
for (i = 0; i < pass.length; i++)
{
var sign = pass.charAt(i);
if (((sign > "0") && (sign < "9")))
{count = count + 1;}
}
return count;
}
:ermm:
-
Re: Whats ur ctrl V right now
Quote:
Originally Posted by
Snee
kollaNummer = checkNumber
lösen ~ password
tecken ~char/sign
räkna = count
I used that one to validate a password, I think. As I recall, the password had to contain a certain number of digits.
Might not be working as it is tho', I just grabbed it off some notes I had.
I reckon that'd work. ;)
-
Re: Whats ur ctrl V right now
Not really, I think it just works for 1-8 as it is, now that I looked at it again :pinch:
needs a couple of ='s.
I could prolly skip a set of parentheses as well, I think I used them 'cos I had another set of conditions at one point.
-
Re: Whats ur ctrl V right now
-
Re: Whats ur ctrl V right now
I copy-pasted it from some old notes :unsure:
-
Re: Whats ur ctrl V right now
i was wondering, I have some Java that I would like imbedded in my website.....erm Snee :)
-
Re: Whats ur ctrl V right now
Heh.
Sounds like wurk :ermm:
-
Re: Whats ur ctrl V right now
Quote:
Originally Posted by
Snee
Not really, I think it just works for 1-8 as it is, now that I looked at it again :pinch:
needs a couple of ='s.
I could prolly skip a set of parentheses as well, I think I used them 'cos I had another set of conditions at one point.
:pinch: you're right of course.
-
Re: Whats ur ctrl V right now
Quote:
Originally Posted by
thewizeard
i was wondering, I have some Java that I would like imbedded in my website.....erm Snee :)
What are you trying to do, anyways?
Just adding some JavaScript, or do you need some more actual java-functions in a .jsp or something?
-
Re: Whats ur ctrl V right now
-
Re: Whats ur ctrl V right now
WebUser EntryDate EntryType EntryDesc Product
-------------------------------------------------------------------------------- ------------------------------------------------------ --------- -------------------------------------------------------------------------------- --------
-
Re: Whats ur ctrl V right now
erm I will let you see what I had in mind...also perhaps, a sand game... sigh...it all looked so simple :/
http://www.softwarefederation.com/fractaljava.html
-
Re: Whats ur ctrl V right now
Quote:
Originally Posted by
thewizeard
Ooh, I like it.
The applet tags there should work, at least in some browsers, as far as the HTML goes. (You might need object tags or something to get it working everywhere, dunno.)
As for the applet code itself, it needs to be added serverside, I think.
Never worked with applets myself, so I'm not sure if it needs compiling before you add it or what, but it should be fairly simple.
Maybe Barbie knows better than I.
-
Re: Whats ur ctrl V right now
I REALLY have to learn how to do Java applets :sigh:
I know about as much as you. It looks simple enough.
As an aside, I made a Mandelbrot Set/Julia Set generator in Delphi once. (Delphi 3 :O )
If you're interested, I'll send it to you.
-
Re: Whats ur ctrl V right now
I would like one that, where a musical input, or video, creates the image :) Thanks Snee ..
-
Re: Whats ur ctrl V right now
Is it rly awesome? :smilie4: @barbie
-
Re: Whats ur ctrl V right now
Quote:
Originally Posted by Barbie
If you're interested, I'll send it to you.
:rod: ?
:unsure:
-
Re: Whats ur ctrl V right now
Quote:
Originally Posted by
Barbarossa
I REALLY have to learn how to do Java applets :sigh:
I know about as much as you. It looks simple enough.
As an aside, I made a Mandelbrot Set/Julia Set generator in Delphi once. (Delphi 3 :O )
If you're interested, I'll send it to you.
Well I certainly would :)
I hope to have a page devoted to interesting and educational games...like "The Incredible Machine" etc.. also on side note (tangent), some of Lamsey's games where also in that category.
-
Re: Whats ur ctrl V right now
Quote:
Originally Posted by
Snee
Is it rly awesome? :smilie4: @barbie
Fuck-yeah :smilie4:
-
Re: Whats ur ctrl V right now
Quote:
Originally Posted by
thewizeard
I would like one that, where a musical input, or video, creates the image :) Thanks Snee ..
Well, like I said, haven't worked with applets myself, so it would be a bit to learn :dabs: I'd love to help you, but it'd take me as much time as it would you, so it's prolly no point. (Not to mention that I do have things to write, for myself :P)
What you are talking about now, if I read you right, is accessing files and somehow generating an image using the code from that applet, based on a soundwave-pattern, and I haven't tried anything remotely like that in java.
I guess you start off through system.io, but where you go from there I haven't got the faintest idea.
Check out OBJECT tags, however, they are good for adding all sorts of stuff in your html (as far as the embedding bit goes).
I think you could embed some movie formats directly with them, even.
-
Re: Whats ur ctrl V right now
Quote:
Originally Posted by
Barbarossa
Quote:
Originally Posted by
Snee
Is it rly awesome? :smilie4: @barbie
Fuck-yeah :smilie4:
Sure, send away then.
Can we do it through appending it to a pm, or do you need my gmail or something? :unsure:
-
Re: Whats ur ctrl V right now
-
Re: Whats ur ctrl V right now
Quote:
Originally Posted by
thewizeard
I would like one that, where a musical input, or video, creates the image :) Thanks Snee ..
Common misconception about fractals is that they are random. They are not random, they are based on solid mathematical calculations.
The randomness comes in from the assignment of colours.
What I think you are asking for, is some kind of fractal "visualisation". The way you could possibly do it with fractals is to cycle the colours in time to the music. I've never seen it done though.
To draw a fractal at the same time as playing a music might cause problems, because since there are so many calculations involved in generating fractal images, it is really CPU intensive, and could possibly wreck the playback of the song.
Possibly you could have a set of saved images, and then just phase them in and out periodically. That might be the best solution.
-
Re: Whats ur ctrl V right now
J:\Tv Shows\the daily show
-
Re: Whats ur ctrl V right now
-
Re: Whats ur ctrl V right now
-
Re: Whats ur ctrl V right now
Quote:
Originally Posted by
GepperRankins
:mellow:
yes
...
-
Re: Whats ur ctrl V right now
are u sure u wanna see my ctrl+V ? only open minded people can view the site :P (porn)
http://hosted.gaygravy.com/smt/044/g...?r=todaysoffer
very interesting thread indeed
-
Re: Whats ur ctrl V right now
Spaghetti al vongole bianco
-
Re: Whats ur ctrl V right now
-
Re: Whats ur ctrl V right now
Output folder: C:\Documents and Settings\Administrator\Desktop\OpenOffice.org 2.2 Installation Files
Extract: setup.ini... 100%
Extract: openofficeorg22.msi... 100%
Extract: instmsia.exe... 100%
Extract: instmsiw.exe... 100%
Extract: setup.exe... 100%
Extract: openofficeorg1.cab... 100%
Extract: openofficeorg2.cab... 100%
Extract: openofficeorg3.cab... 73%
just wanted to see what copy to clipboard did
-
Re: Whats ur ctrl V right now
[HeavyMetalParkingLot] never to lazy for a rape
-
Re: Whats ur ctrl V right now
-
Re: Whats ur ctrl V right now
-
Re: Whats ur ctrl V right now
-
Re: Whats ur ctrl V right now