|
Mark Nischalke
Thanks...
And where should i call this Function please reply...
|
|
|
|
|
I have less Knowledge on these stuff . and am a Newbie..
Please say me step by step please...
|
|
|
|
|
If you read the documentation on the JQueryUI links, it shows you how to add this control and manipulate it.
|
|
|
|
|
I think he meant he was a newbie at reading, not just ASP.NET
No comment
|
|
|
|
|
I need to have a RichTextBox be able to toggle Hidden text off and on, like MSWORD does when you press shift+ctrl+*.
Obviously I'll have to use unmanaged code and the RichEdit control. Anyone know how to do this?
I'm using VB 2010 and Win7.
|
|
|
|
|
I'm currently using FileStream.Seek which is a performance killer for random access with in a file.
Is there a more better/faster way to do this (other types of streams, file access methods etc.)?
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
|
|
|
|
|
Not sure - but this[^] could help you out.
Too much of heaven can bring you underground
Heaven can always turn around
Too much of heaven, our life is all hell bound
Heaven, the kill that makes no sound
|
|
|
|
|
I actually used FileStream because of this article, could have formatted the article better though.
No references or tests on seeks.
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
|
|
|
|
|
Mehdi Gholam wrote: No references or tests on seeks.
Yes I noticed that too.
|
|
|
|
|
Ummm... what? I don't know how you'd do any random access of a file without Seeks. But maybe you could get a Solid State Disk?
|
|
|
|
|
About 30% of the time is spent in the seeks according to my profiler.
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
|
|
|
|
|
Well, if you're not using a database engine and you need to reduce the number of seeks, you'll have to build some kind of caching engine to hold onto chunks of the file, if not all of it, in memory and then access the data from memory instead of disk. Of course, your engine will have to swap pages in and out as needed.
|
|
|
|
|
Mehdi Gholam wrote: better/faster way to do this
do what?
what is in the file: binary data, Unicode text, ASCII text, ...? please provide some details.
why don't you show actual code? please document your problem.
why do you want random access? please provide some context.
|
|
|
|
|
Binary files, it's for my RaptorDB project.
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
|
|
|
|
|
I'm not surprised, if you need to seek all the time, you shouldn't rely on an architecture that is built with a number of general-purpose abstraction layers. If I wanted a database without using one, would go one of two ways:
- either use MemoryMappedFile for limited size databases;
- or use basic file operations in C/C++ (P/Invoke!), have all records sector-aligned, and always read/write entire sectors.
|
|
|
|
|
Somebody did memory mapped files with RaptorDB and it was slower, I can't say it was done in an optimized way (like I would do it ) but still.
My problem is not the writing part but the seeks take about 30% of the save time in my profiler.
[As a side note RaptorDB is faster than HamsterDB written in C++]
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
|
|
|
|
|
At work I've been tasked with checking the validity of some URLs that are stored in the database. Some of the files they are supposed to point to have since been deleted and some have disallowed characters -- ampersand (&) and tilde (~) in particular.
Last week I quickly whipped up a method that uses a WebRequest and GetResponse which works just fine. But because it has to download the content of the file before it returns, it takes rather longer than necessary to simply know that the URL is good and the file exists. Today I was experimenting with using BeginGetResponse and Abort in an effort to Abort the download once I know that the file exists, but it seems unreliable (and klugey).
Does anyone here have a better way to determine whether or not a URL points to an existing fie without downloading the file?
|
|
|
|
|
|
Excellent, I just need to try getting some HEAD. Thanks.
Edit: That worked, but didn't help much.
2345 webfiles were checked in 00:11:55.2816915.
Yesterday (with downloading) it took sixteen minutes.
Edit 2: I'm now spinning off threads (up to ten) and the total elapsed time is down to a minute and a half.
modified 12-Oct-11 0:50am.
|
|
|
|
|
Holy moly, I was just telling my coworker that there must be some solution to the problem that you have asked about. I will send him the answer posted by the other responder.
Somebody in an online forum wrote: INTJs never really joke. They make a point. The joke is just a gift wrapper.
|
|
|
|
|
Whatever you come up with isn't going to be 100% reliable. You run the risk of removing valid entries simply because the web server is down. Don't forget to check the return status codes of those responses that come back to ensure you can take an appropriate action at a later date.
|
|
|
|
|
Great point easily missed.
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
|
|
|
|
|
Well yes, but so far I'm only looking at 400s and 404s and reporting them. I hesitate to write anything that would remove them from the database automatically.
|
|
|
|
|
I want to read the content of existing excel file using java script, and then download the file with those contents.
Thanks.
|
|
|
|
|
So what does Java Script have to do with the .NET Framework??
|
|
|
|