|
I've seen you take quite some interest in Rx.
My 0.02$ - a lot of people (me included) would benefit from your research - why not write an article about it?
Best,
John
-- Log Wizard - a Log Viewer that is easy and fun to use!
|
|
|
|
|
The problem I have is that it takes me forever to figure out stuff, as the documentation is pretty poor sometimes. The problem here is that I still have some questions about Observable.Join, so I feel that I can't write it yet.
|
|
|
|
|
I completely understand. That's one of the reasons that kept me from learning Rx a while ago.
Best,
John
-- Log Wizard - a Log Viewer that is easy and fun to use!
|
|
|
|
|
|
Awesome, will read in a bit!
Best,
John
-- Log Wizard - a Log Viewer that is easy and fun to use!
|
|
|
|
|
I have a grid view that will be populated with a fairly large amount of data. It will average 1500-2000 lines the first run, and will be only increasing from there. I have been looking into ways to filter the data for the user. I was hoping to use a text box for each column of the grid and allow the user to filter the information by multiple columns at a time. I have seen some projects use jquery AJAX to do this, but it requires calling to the database every time a value is entered into the text boxes. Has anyone approached a problem like this and found a way to handle it with out excessive calls to the database?
|
|
|
|
|
|
i have encryption and decryption in code.Encryption is working fine but decryption is not working
here is code i am using to decrypt passowrd
public static string Decrypt(String text)
{
SymmetricAlgorithm algorithem = DES.Create();
ICryptoTransform transform = algorithem.CreateEncryptor(key, iv);
byte[] inputbuffer = Convert.FromBase64String(text);
byte[] outputbuffer = transform.TransformFinalBlock(inputbuffer, 0, inputbuffer.Length);
return Encoding.Unicode.GetString(outputbuffer);
}
can any help me to work it out
|
|
|
|
|
|
this is to retrieve password from database
|
|
|
|
|
Well you are doing it wrong. If you encrypt passwords then they can be decrypted, which makes them insecure. You should only ever use hashed values to store passwords. I just hope your system is not used by my bank.
|
|
|
|
|
What Richard is saying is that there is an established, secure system for passwords that works.
- Pick a hashing function. (salted SHA256/512 is a fair pick right now)
- When a user sets a password, derive the hash and store that in the database.
- When a user authenticates, hash the password that they enter using the same function, and compare it to the database entry.
This prevents a litany of sins. Mainly, the plaintext of the password is only known by the user, sysadmins cannot grab it out of the database and crack it. Hackers cannot get credentials by compromising a database. Just make sure that you properly protect the password in transit from the user to your application.
Oh, and make sure to salt. Unsalted hashes may as well be plain text.
|
|
|
|
|
|
You also need to post how you are encrypting it. Essentially they are opposites more or less.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
No, he needs to forget about encryption and concentrate on doing the right thing the right way.
|
|
|
|
|
Richard MacCutchan wrote: No, he needs to forget about encryption and concentrate on doing the right thing the right way. It's good to point out a better way to do things. But people do not always have the option to change how things are done and we should still be willing to help.
For example, what if OP is also encrypting other information. OP will also have problem decrypting it and will need help. So, point out the better way for passwords but still help the person out.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I appreciate that you are only trying to help, as you always do. But the problem, as I see it, is as follows. Three of us respond by telling the OP that he is doing it wrong and needs to understand how to deal with passwords properly. You then post a response to his original question saying, "hey, I can help you with decryption". The net result being that OP's brain says, "to hell with those guys, here is someone who is going to help me decrypt my passwords". So yet another system has the potential to go live with compromised security.
|
|
|
|
|
We'll both help in our own ways then.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hi ,i have a questions ,and i don't know how to handle it.
I have a double array named array1=new double[100], and each element is function result, like array1[0]=fun(0),array2[1]=fun(1)...
each element is positive or negative, and generally speaking, a[0] to a[n] is positive, and a[n+1] to end is negative, so how can i get n ? i need efficient algorithm, like divide-and-conquer method for example...
and case 2: if near the end i get wrong result, for example, a[90] is +,how can i get the first negative index n ?
|
|
|
|
|
In case one, a simple Binary search algorithm - Wikipedia, the free encyclopedia[^] should do it, assumign there is no "bad" data.
When you data goes bad, that's different, and it becomes necessary to actually search the whole array - if there is one bad value, then it's likely there are more.
But the alternative to both is to to it all while you fill the array - since that is already a time consuming process (compared to a search of the results) adding a little extra checking to find the first negative as you fill the values is trivial, and allows you to cope with the second case as well.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I'm dynamically constructing query expressions and getting an unexpected error from EF when the query gets executed. So I turned on .NET source stepping, VS downloaded all the debug symbols and steps into anything but the EF query execution. I googled for this phenomenon but didn't find anything "stepping into EF"-specific. Do you have any suggestions?
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
|
I enabled logging but the error occurs before EF gets to emit any SQL for that query.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
Hi,
You can try enabling CLR Exception form Debug->Exceptions and enable check box for throw on Common Language Runtime Exception
Regards,
Raj Champaneriya
|
|
|
|
|
It's enabled but it doesn't help: The break occurs only on my code, not in the EF source.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|