Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have a requirement where i need to get all possible typos(if not all most) that can occur for a possible word. For example (word : user). User can type "usre" or "yser" something like that.
Currently i don't have anything in mind as to where i start. If anybody has already faced the similar situation and came with the solution, it would be helpful if you can help get kick start
Thanks in Advance.
Here is a wild idea.
Create a graph using the layout of a QWERTY keyboard (assuming that is the layout the user will be using), where every key will be a node and every node will be connected to the adjacent keys/nodes. For instance, the the node s will be connected with q,w,e,a,d,z,x and c.
Now, for a given word, substitute one or more letter with all neighboring nodes from the graph. So, the word user can produce uwer, uaer, uder and so on.
I hope this will help you.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Is there any solution to parse a java manifest (manifest.mf) file in C#?
I need to get values from it.
Thank you very much!
I doubt that there's a C# Specific library for this, but this question (Use of the MANIFEST.MF file in Java) has a great overview of the file, what it's for, and a lot of other helpful information.
That being said, the quick and dirty way (in my opinion) for how to do this would be split every line by a colon, the first value in the array is the header name, and all other values after that, would be the value. (just in case your value has a colon in it, I'm unsure if that's allowed by the spec or not but, but I'd assume so.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a Access Database that i manipulate though a c# program.
i am trying to get a order of items that satisfy certain conditions.and be able to change the order.
my idea is to copy the unique key in to another field then order by that field and have a button that moves up and a button that moves down.is this the right way to go about this ?
a separate column in a table called Order for example makes sense, as does allowing a user to re-order the items and save it back to the database. Maybe drag/drop or something for re-ordering would be a bit less clunky than buttons, but I guess it depends if your c# application is winforms, wpf, web, etc. as to how easy that is.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have this line of code in c#:
ftp.RenameFile(file_name, "folder_name/" + file_name);
where ftp is an instance of the FtpConnection class.
I'm interested to know what would happen if folder_name already has a file named file_name.
Would it delete the old file and replace it with the new one?
Since the documentation (assuming I've got the right product (a)) doesn't seem to state one way or the other, the best thing you can do is try it out.
It should be immediately obvious what happens, though you probably want to try some different combinations to check effects of permissions and so forth.
(a) If I don't have the right product, the method still stands: either consult the documentation, or try it yourself.
It doesn't do anything. It doesn't delete the old file.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I was thinking about building a tower defence game and was trying to find the best way
to find the shortest path to the other side.
How can i do this?
I know I need to re evaluate the path on every move due to people adding more towers.
I am thinking I need to use visualtreehelper to find what is in the way.
This might be better asked at https://gamedev.stackexchange.com/
You don't need to re-calculate the path all the time, only when a tower is created or destroyed.
The A* algorithm would be commonly used, there are many samples around. Making your game tile-based would simplify its use, as each tile would be a node, and it's trivial to work out the connections (i.e. up/down/left/right, providing the node isn't blocked).
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I've been wanting to write my own version of DVD override software for some time now. I really want it to behave like AnyDVD, except much less overhead and not near as many options.
Basically I want to be able to insert a DVD on my Media Center and have the option of "Start Main Movie" or "Go to Main Menu".
I don't need to decrypt CSS (at least I don't think I have to). I just want to override the PUOPS (prohibited user operations) so that I can navigate anywhere on the disc.
I'm decent with c#, but I've never worked with a DVD drive or playback before. I've scoured the web but found nothing.
Has anyone out there done this before? What resources can I look to for this task?
Thanks for a nudge in the right direction.