|
OK.
One way for predicting compressability is by performing a simple statistical analysis:
take part of the file (say the first 1KB) and make a histogram on the byte values.
If the histogram is very flat, chances are compression wont buy you anything;
if a lot of byte values occur very (in)frequently, compression should work well.
One measure could be:
int infrequent=number of values occuring less than samplesize/512;
int frequent=number of values occuring more than samplesize/128;
bool compression_will_work=infrequent+frequent>64;
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Food for thought. If nothing else, it will give me something to play with ]
thanks again!
______________________
Mr Griffin, eleventy billion is not a number...
|
|
|
|
|
here i am using asp.net
how we can search the data in directories
with regards
sunil
|
|
|
|
|
sunilwise wrote: how we can search the data in directories
do you mean how do you get the physical path to a directory? or what kind of data?
Do your best to be the best
|
|
|
|
|
hi ...
i want to save my program setting in a xml file.
i create most of things for create, read, write but i don't know how can update a node value in xml with C#.
can you help me?
thanks.
|
|
|
|
|
Here you have a sample in C#
http://eai.ittoolbox.com/groups/technical-functional/xml-l/update-xml-element-value-using-cnet-1328886
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
hi "il_masacratore"
thanks so much.
i visited your reference. it was good.
and i visit your blog. unfortunately i can not your blog (because language).
and then click "Create Blog" link on top - right corner. then go to create blog page and show my google id and name. it was so interest for me .
is it use of google information?
if yes, do you know how can use of such google information ?
|
|
|
|
|
in my search , found follow link that think is very good for beginners XML.
http://www.google.com/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fwww.codeproject.com%2Fsoap%2FXmlHelper.asp&ei=228BR6zIKp2MeqP0nOUC&usg=AFQjCNFZG4M2LEqCk5J-QpMH73WjSxSE_w&sig2=zk0Ml3YxmDchiDyTVtD46Q
|
|
|
|
|
i have done a simple login page web application. which is working perfectly but now i want to add change password option for the user after logging in into the page.
I have encrypted the password and stored in the database. the datatype i have given for password is binary, i am using stored procedures. For converting the binary value password i have used casting and converting keywords in sql server 2000
can any one help me to write the code for changing password option .
|
|
|
|
|
sunilwise wrote: can any one help me to write the code for changing password option
How much different can it be from the code that initially sets the password? Surely it just changing the INSERT into an UPDATE? (more-or-less)
|
|
|
|
|
hi. guys kool .
How can i make a self excutable file in console or windows application in c sharp.
thanks to all that help me
so much of happy ending...
|
|
|
|
|
What do you mean?
The result of compiling a Console or Windows project is an executable file.
Paul Marfleet
|
|
|
|
|
I have mentioned "Self excutable file"
which mean it should run automatically on a certain situation without clicking the icon.
so much of happy ending...
|
|
|
|
|
What situation? You haven't explained what you are trying to do.
If you want to launch an executable programmatically, have a look at the Process[^] class.
Paul Marfleet
|
|
|
|
|
yeah thats right.
The file should run automatically if we send it to another location, it maybe a folder or a computer.
thanks
so much of happy ending...
|
|
|
|
|
zafax4 wrote: The file should run automatically if we send it to another location, it maybe a folder or a computer.
Hmm, that sounds a bit dodgy...
You're not trying to write a virus, are you?
Paul Marfleet
|
|
|
|
|
ya you are right.
im creating a keyloger.
its a hacking style tool.
job: when i attach to a mail, it should runs when user opens their mail.
thanks.
so much of happy ending...
|
|
|
|
|
|
so much of happy ending...
|
|
|
|
|
good luck finding help now
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
I'm not helping you write malware.
Paul Marfleet
|
|
|
|
|
thanks paul for saying that you'll not help me.
fine
its not of concern that i may be a hacker.
but to acquire a knowledge.
to improve my technolgy.
and one day i'll learn that too.
kool
so much of happy ending...
|
|
|
|
|
zafax4 wrote: its not of concern that i may be a hacker.
Thankfully, not much of one. I think you'd currently be classed as a "script-kiddie".
|
|
|
|
|
"script-kiddie"
not really.
so much of happy ending...
|
|
|
|
|
zafax4 wrote: "script-kiddie"
not really.
Yes. Really.
---
single minded; short sighted; long gone;
|
|
|
|