|
Luc Pattyn wrote: To state it in a slightly different way, if you do what has been told so far
to play the sound backwards, you also will be switching left and right channels,
with probably is not be what you want.
Right. So when reversing a stereo wave file, you'd want to reverse the block order while preserving the sample order within the blocks.
|
|
|
|
|
how to plot a graph using any equation like Y=a(1+sinX) on window??
There Is Nothing Right & Wrong
|
|
|
|
|
What is the domain [0, 2pi] or [0,230] ??
What scaling will you use.
First thing I would do is model this in excel then use that model to code with. You can even add a chart in excel as well to get you head round it.
You need a scaling, this is 1 to 360....or .... 1 to 100 (which you use a x)
Then use a free chart plugin to map x to y
|
|
|
|
|
0 to 2pi
There Is Nothing Right & Wrong
|
|
|
|
|
Well, it's a big topic, However, I can suggest you to:
(1) Put a few constrints on the equation (i.e. continuity maybe helpful, any equation is a bit broad concept...).
(2) Compute the range of the plot (i.e. the rectangle having bounds {XMin, Ymin, XMax, YMax}, notice, YMin, YMax depend upon the X-range). This allows you to set up the proper tranformation from curve domain to the drawing area.
(3) Then you have just to sample a certain amount of points in the interval and connect them.
Each of the above points, I Know, requires further details, but again, it is a rather big topic.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
For x=startX+1 to endX
y1=a(1+sin(x-1))
y2=a(1+sin(x))
connect points: (x-1,y1) and (x,y2)
End
<pre>
<div class="ForumSig">Regards,
Arun Kumar.A</div>
|
|
|
|
|
Hi all!!
Is any1 kind enuf to help me out about password security while developing web applications.
any material
any password security algo
any link
kindly do help me
thanx in advance
|
|
|
|
|
have a look at Crypto API [^] or System.Security.Cryptography [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Have you tried google ?
What development platform are you using as this makes a difference.
|
|
|
|
|
thanx for concern
actually I am developing an e-commerce application in asp.net using c#.
During user registration process, password will be taken from textbox and will be stored in SQL Server DB. i want to do encryption while storing password in DB and algorithm is required here.
|
|
|
|
|
lastFarhi wrote: password will be taken from textbox and will be stored in SQL Server DB. i want to do encryption while storing password in DB and algorithm is required here
Generally, storing a password is bad.
Most people hash the password and store that in the database.
When the user logs in you take the password they give, hash it, and compare this hash to what is stored in the database.
Encrypting the password means you can decrypt it (recover it), encryption is 2-way.
Hashing the password is 1-way, you can't recover the password from the hash.
The SHA family are the most common (current) algorithms.
http://en.wikipedia.org/wiki/SHA-1[^]
...cmk
Save the whales - collect the whole set
|
|
|
|
|
Have you tried looking at the Crytopgraphy Application Block within Enterprise Library. Why not download Entperise Library from MSDN and give it a go. Personally, I find the Crytopgraphy Application Block within Enterprise Library to contain more useful routines than what is available within in the .net framework.
|
|
|
|
|
has anyone marshalled the Intel math kernal library to managed code (aka C#)? An example would be excellent. Thx
|
|
|
|
|
These guys have made a wrapper around the MKL:
http://www.dnanalytics.net/doku.php
Might help?
|
|
|
|
|
Hey, I didn't know about this. Looks a bit new and incomplete but certainly interesting to get going with, and perhaps to contribute to.
Thanks.
|
|
|
|
|
|
Hi all,
I haven't had much luck but I was wondering if you would know a good way to take a value assgine it to x then draw a line with a random slope through that point and take two random points off that line.
Ideas
sudo code
code in your favorite lang
alllll welcome
i really need the help.
Thanks
|
|
|
|
|
Hi,
you want 3 points, and you have 5 degrees of freedom, since the only restriction is
the points must be colinear. So we call a "random" function 5 times:
a random point:
pt1=new Point(random(xmin, xmax), random(ymin, ymax));
a second point in random direction, random distance (hence completely random):
pt2=new Point(random(xmin, xmax), random(ymin, ymax));
a third point on the same line:
dist=random();
pt3=new Point(pt1.x+dist*(pt2.x-pt1.x), pt1.y+dist*(pt2.y-pt1.y));
BTW you may want to limit the range of dist so pt3 also falls within the borders.
-- modified at 6:59 Monday 14th May, 2007
|
|
|
|
|
Luc Pattyn wrote: you want 3 points, and you have 5 degrees of freedom, since the only restriction is
the points must be colinear
In our 2-dimensional world, of course!!!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Sure, but most drawings use only 2 dimensions.
If more are required, it becomes 3*D-1 degrees of freedom for D dimensions,
unless you want to go fractal.
|
|
|
|
|
Luc Pattyn wrote: but most drawings use only 2 dimensions.
as long as what you are drawing has 2 Dimensions.
Even when I draw 2D it is usually map projected over 3D so I still end up in 3D eventually.
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
El Corazon wrote: as long as what you are drawing has 2 Dimensions.
I don't think he was talking about the display device dimensions.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
wow!
ask a good forum get a good answer
thanks guys ill try this out later to day
Just in case any one is curious.
I'm taking a string password and converting it to a number value
that value = x
then you draw the line so it passes through x with a line with a random slope then you collect any two points off that line
then you give a point set to person 1
and give point set to person 2
they can not figure out what the password was unless they both meet and have figure plot out the line they make together
technically you could give you more than 2 points but any two of them can combine to give you the password
also if you wanted to do something with lets say a parabola (spell check) then it would take at least 3 people to figure out where the parabola touches X
thanks for all your help I hope it works
|
|
|
|
|
you dont need geometry for this, give both persons half of your password !
|
|
|
|
|
no
if i give you
"pass"
you could probably figure it out
also you would be reducing a 8 char password to basically 4 char for a brute force.
this way neither has anything that they can use. unless certain requirements are meet.
you could also do something like lock up one set in a safety depoest box and give your lawyer or your friend
when you die they would have access to your password if they were doing something with your estate.
we were thinking of using this at work so that one group could not do maintaince on a server with out some one from another group present with the other half of lets say roots password.
you wouldn't want anyone walking around with root password unless they needed to know it.
|
|
|
|