|
True it generates a sort of md5 hashed passwords, but htpasswd.exe is a part of
Apache webserver and they use a modified version of md5.
|
|
|
|
|
Hi,
My question has two parts:
1) How can I search for a sentence (e.g., Dell Canada) in a string (e.g., I am working in Dell Canada, and I found it...) .
2)The second part is my string is text in a RichTextBox, so I would like to find the TextRange of that selected sentence and apply certain decoration.
thanks.
|
|
|
|
|
+++ AUTOREPLY #17 +++
What have you tried so far?
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
1) use the IndexOf function for the string...
int startPos = richTextBox.Text.IndexOf("Dell Canada");
2) use SelectionStart and SelectionLength properties of the rich text box the use properties such as SelectionColor, SelectionFont etc. (not tested)...
richTextBox.SelectionStart = startPos;
richTextBox.SelectionLength = "Dell Canada".Length;
richTextBox.SelectionColor = Color.Red;
Easy!... when someone does it for you
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Hi,
How does one go about, catching the events of a USB card reader...
Currently, when I open notepad and swipe a card, the information on the card is printed automatically in plain text.(Windows installed standard drivers).
How do I go about obtaining the data event, where the data is written? How can I obtain the data written via a simple C# application.
Does anyone understand my question. If vague, plz ask.
Any help or starting point (documentation) would be much appreciated.
Kinds regards,
Higs
|
|
|
|
|
Look here[^].
Enjoy
I are troll
|
|
|
|
|
What the hell are you smoking?? FileSystemWatcher to deal with a keyboard-based card reader??
|
|
|
|
|
Currently, when I open notepad and swipe a card, the information on the card is printed automatically in plain text.(Windows installed standard drivers).
He can access the data as if it were a file. I didn't see a reference to the keyboard-based interface
Dave Kreskowiak wrote: What the hell are you smoking??
Usually, or just right now?
I are troll
|
|
|
|
|
Eddy Vluggen wrote: Currently, when I open notepad and swipe a card, the information on the card is printed automatically in plain text.(Windows installed standard drivers).
He can access the data as if it were a file.
Really? What file?? These things don't write to files. Neither do barcode scanners, laser scanners, or anything else. Since these devices do not know anything about file systems or Windows or UNIX or Linux or MacOS, there's really no way for them to write to files.
Eddy Vluggen wrote: I didn't see a reference to the keyboard-based interface
The only way anything can show up in Note like he described is if the device worked like a keyboard.
|
|
|
|
|
Goodmorning.
Yes, you are right
I are troll
|
|
|
|
|
Most card readers / scanners operate as a keyboard simply typing the read information onto the control / window that has focus.
Check the API of your card reader, surely the vendor released some information.
|
|
|
|
|
Thank you very much .... I suppose I will abuse the fact that it works like a keyboard... with the same events, etc. This fact works well for me !
Thanks for your help !
|
|
|
|
|
OK, so what I basically did was to abuse the fact that the card reader functions like a keyboard. I basically obtain all the devices on the computer and display them the the user. The user can then select which device is the card reader. I intercept all the messages coming from the card reader then, and set focus to the correct text box (etc) as required.
A nice little thingy that I saw was, that most magnetic stripe cards end with the "return" character. So when it hits the last character, I can simply test for a return (enter), and it will fire off events that obtain my required data from the database...
Thanks for all the help !
MUCH appreciated !
PS: For help, email me or send me a msg, I'll gladly help.
|
|
|
|
|
If you're seeing the data in Notepad, this mean the card reader is acting like a keyboard. It'll type whatever the card contents are into whatever control has the focus.
|
|
|
|
|
It sounds as though you are trying to do the same thing[^] I am.
Using the generic HID reader from this page[^], and feeding it the vendor id and product id (which can be found in device manger), I get "The device is a system keyboard. Windows 2000 and Windows XP obtain exclusive access to Input and Output reports for this[sic] devices. Applications can access Feature reports only."
Which, frankly, is a bit of a blow.
Maybe there is another possible approach?
|
|
|
|
|
Since you can use DirectX to highjack a normal keyboard, maybe it works here as well?
|
|
|
|
|
Yes you can ... this works brilliantly !
|
|
|
|
|
i need a help with my image processing application.
I have taken a image as the input and need to run my algorithm (which i have coded)throughout the image.
i need to take a 3x3 image pixel set for processing where each pixel is taken as x, y...
can some one guide me how to do this please??
Thanks
|
|
|
|
|
Read CG's image processing articles[^]. There's a lot of information there. You might find what you need.
जय हिंद
|
|
|
|
|
How do I change this code to VB
Address shipAdd = getUserAddress();
upsRates uRate = readXML(getXMlhttp(sourceAddress, shipAdd, ddlUPS.SelectedValue));
if (uRate.StatusCode == "1") // Status OK
{
UPSCharges = uRate.Rate;
Label2.Text = UPSCharges;
Session["ShippingType"] = ddlUPS.SelectedItem.Text;
}
else
{
ddlUPS.SelectedIndex = 0;
UPSCharges = "0";
Label2.Text = UPSCharges;
Label2.Text = uRate.Error;
}
}
else
{
Label2.Text = "";
UPSCharges = "0";
}
try
{
Session["shipping"] = Convert.ToDecimal(UPSCharges);
double shp = Convert.ToDouble(Session["shipping"].ToString());
double amt = Convert.ToDouble(Session["amount"].ToString());
//Array grandtot=grandtotallbl.Text.Split('$');
//grandtotallbl.Text ="Grand Total : $ " + Convert.ToDouble(grandtot.GetValue(1).ToString() + shp);
grandtotallbl.Text = "Grand Total: $ " + Convert.ToDecimal((shp + amt)).ToString();
}
|
|
|
|
|
Lots of ways[^].
You can also do that manually. Even better, create a dll and use it in VB code.
जय हिंद
|
|
|
|
|
Franklinlloyd wrote: How do I change this code to VB
Why do you want to convert to that other language?
Jokes apart, and tol is a joke, all .NET compiles to the same bytecode and once you have a .dll, it all becomes language agnostic.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
|
hello,
i am using indexing service to index my files and search for special words using my c# application.
these is my query string : cmdSearch.CommandText = "select doctitle, filename, vpath, rank, characterization from scope() where Contents Like 'BP%' ";
but no result found, is their any problems withmy query string
best regards.
dghdfghdfghdfghdgh
|
|
|
|
|
Just a stab in the dark, but dop you have a file who's contents START with the characters BP ?
If not then that's the problem.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|