|
You should also set the TTL to 2 to make sure there's not other "random Internet problem" causing your ping to fail. (Assuming that your gateway is 1 hop away).
|
|
|
|
|
Hi Matt Meyer
i thank u for intersting, but i need that using coding ..........
|
|
|
|
|
Hi all, i use the following code to encrypt a string using MD5:
using System.Security.Cryptography;
public static string EncodePassword(string originalPassword)
{
Byte[] originalBytes;
Byte[] encodedBytes;
MD5 md5;
// Conver the original password to bytes; then create the hash
md5 = new MD5CryptoServiceProvider();
originalBytes = ASCIIEncoding.Default.GetBytes(originalPassword);
encodedBytes = md5.ComputeHash(originalBytes);
// Bytes to string
return System.Text.RegularExpressions.Regex.Replace(BitConverter.ToString(encodedBytes), "-", "").ToLower();
}
But i don't know how to decrypt it using MD5 ????????
Do anyone help me ?????????
Regards...
|
|
|
|
|
MD5 is one way encryption, you cannot decrypt it, you can only compare the encrypted value against a dictionary to see if it matches are predefined list of encrypted strings. See this[^] wikipedia article.
|
|
|
|
|
In addition to Elliots response, you should not use MD5 for new applications - it is considered "broken" and should not be used for any new development. Use SHA512 instead, until the SHA 1024 specification comes out in 2012.
All those who believe in psycho kinesis, raise my hand.
|
|
|
|
|
You don't. MD5 is a one-way hash. You cannot get the original string back from the encrypted hash.
|
|
|
|
|
Hi All
I need to develop a C# client able to save a web page given a URL.
The problem I am is that the web pages i.e. the content are rendered by some javascript.
Can you advise me about an easy way to do that?
Thanks
|
|
|
|
|
You don't say in what format you want to 'save' the page.
You may be able to render the page using a System.Windows.Forms.WebBrowser control and use that.
Nick
----------------------------------
Be excellent to each other
|
|
|
|
|
My Page renders a simple HTML table generated automatically by some javascript.
I would like to save the rendered page in HTML format so that I can parse it
or reload it later.
|
|
|
|
|
|
Well
I have just found what I need for my specific purposes; I hope that it fits also yours.
Please have a look at this project The most complete C# Webbrowser wrapper control[^]
Digging and trying I found that this project provides DOM information and is exactly what I need.
I found that you need an active x for accomplish this handling the IHTMLDocument2 class.
PLease look also here column_1[^] and here column_2[^]
|
|
|
|
|
Probably I found what I need to do.
I have to download something called DOM information. For my purpose it would be enough.
Do you know how to do that in C# after a web page was loaded?
|
|
|
|
|
Hi to all.
How can I easily convert HTML to well formed XML? Does anyone has an idea how I can do that? Thank you for your time.
|
|
|
|
|
|
First, since HTML does not conform to XML standards, there is no direct conversion. You'll have to define what you mean by the conversion, what you want converted, and why you think you need this. Perhaps there is another method that will work better than the one your trying.
|
|
|
|
|
hii everyone,
Iam working on TabletPC handwriting synthesis
iam using MICROSOFT.INK SDK
i want to erase specific portion of the ink dynamically
example : i write CAR using my handwriting , I want to erase the alphabet C,R and want to get specific portion of A only
please help me out , how can i erase defined specific portion dynamically without using INK ERASEMODE/DELETE MODE functionality (of stroke selection first den use erase mode), I dont want to do it manually after selection and den usong delete mode
I want to do it Programatically
please help me out
with regards
Amit
modified on Saturday, January 9, 2010 9:02 AM
|
|
|
|
|
Hi,
I need to get !! formatted !! text from pdf file and this text write to HTML.
Exists any dll file or source code for my problem, please?
I tested PDFBox, PDFSharp, PDFReader but I dont have a good result because I need a text with a format (size of text, bold, italic..).
Please, help me.
PS: sorry for my english
|
|
|
|
|
I Add a database to my program in this way :
Right Click on my program in Solution ->Add->Add Existing Item -> Select DB
connectionString :
Data Source=.\\SQLEXPRESS;AttachDbFilename="+Directory.GetCurrentDirectory()+"\\TMC.mdf;Integrated Security=True;User Instance=True
when I select everything is ok
problem :
when I insert,delete,update nothing change in DataBase why?
|
|
|
|
|
SajjadZare wrote: when I insert,delete,update nothing change in DataBase
Are you sure? Ifyou are looking at the data in your application you need to refresh your datasource to see changes. Look directly in the database to see if it has been updated.
Bob
Ashfield Consultants Ltd
Proud to be a Code Project MVP
|
|
|
|
|
It's update at first but when I close the program and run it the record that I inserted dosen't exist
|
|
|
|
|
Did you use commit in your sql?
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
|
It's a sql command that makes db changes (to tables) permanent.
Learn how to use google.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
check the exception that's being generated.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
How do you insert, delete and update?
|
|
|
|