Of dave wanta
Sent: Wednesday, October 10, 2007 7:44 PM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] FILETIME format
Hi All,
I need to convert a .NET System.DateTime to the following string format:
FILETIME=[26A91EC0:01C80B86]
I'm not having any luck with google
Hi all,
I need to import RSA public/private keys into a RSA object. The keys are
output by OpenSSL. They look like:
-BEGIN RSA PRIVATE KEY-
MIIBygIBAAJhANS1c5VhPikZk16sUrGD
(more base64 encoded text)...
xtfsjBFtV2QC9F8ji+aIAWH3Jvd4sGrTs
-END RSA PRIVATE KEY-
-BEGIN
] Generate x509 certificate
On 1/16/07, dave wanta [EMAIL PROTECTED] wrote:
Hi Steve,
Thanks!
It's my understanding that makecert will only save the private key to
the
machine's store, not in the actual x509 file. Or am I mistaken?
You can specify the store location using the -sr
Hi All,
Is there anyway in .NET (preferably 1.1) to programmatically generate a x509
certificate? If not, is there a .NET tool to do this? If not, what tool
would you recommend?
Thanks a bunch!
Dave
===
This list is hosted by DevelopMentor® http://www.develop.com
Hi Steve,
Thanks!
It's my understanding that makecert will only save the private key to the
machine's store, not in the actual x509 file. Or am I mistaken?
Cheers!
Dave
- Original Message -
From: Steve Johnson [EMAIL PROTECTED]
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Sent: Tuesday,
for free.
Email me if you need the details.
Lance Robinson
/n software
-Original Message-
From: Discussion of advanced .NET topics. [mailto:ADVANCED-
[EMAIL PROTECTED] On Behalf Of dave wanta
Sent: Tuesday, January 16, 2007 10:41 AM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
just a heads up. If this is a web app, you will need to have your IIS app
run under admin privileges.
In 1.x, Pinging requires the capability to create Raw sockets, and you need
admin permissions, per the OS, to do this.
I haven't looked at 2.0, and if/how they got around this OS requirement.
just an update.
Thanks again for all the great suggestions. I created a wrapper class that
used an ArrayList of byte[]'s. I totally removed the MemoryStream from the
method. The memory footprint decreased by over 1/2, and speed increased 3x.
There were alot of other changes that were made, so
expensive and the
size will not double each time the list needs to grow.
Have a nice day,
Sébastien
-Original Message-
From: dave wanta [mailto:[EMAIL PROTECTED]
Sent: Thu 2006-07-06 8:19 PM
To:
Cc:
Subject: Re: trim byte array
Well, it's relatively simple. All I need to-do, is return
hi all,
does anyone know of an efficient way to trim a byte array?
Here is what is happening. I'm reading in some binary data into a
dynamically expanding byte array, until all of the data has been read into
memory. I need to trim the byte array to remove the trailing nulls. Because
the amount of
Hi all,
btw, just fyi...if you Reflector a MemoryStream, it doubles it's internal
buffer every time it exceeds it's length.
The MemoryStream is really clean from a programmatic standpoint, it's just
not the performance I really want.
Thanks for all the suggestions guys! I really appreciate it.
]
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Sent: Thursday, July 06, 2006 1:06 PM
Subject: Re: [ADVANCED-DOTNET] trim byte array
Use a MemoryStream.
Adam..
-Original Message-
From: Discussion of advanced .NET topics. [mailto:ADVANCED-
[EMAIL PROTECTED] On Behalf Of dave wanta
Sent
?
-Original Message-
From: dave wanta[EMAIL PROTECTED]
Sent: 06/07/06 19:01:06
To:
ADVANCED-DOTNET@DISCUSS.DEVELOP.COMADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] trim byte array
hi all,
does anyone know of an efficient way to trim a byte array?
Here is what
arrays and just keep track of the real
size of the last array. That's what I'd do if I had to read hundreds
of megabytes of data and don't know the exact size upfront.
Cheers,
Stoyan
On 7/6/06, dave wanta [EMAIL PROTECTED] wrote:
hi all,
does anyone know of an efficient way to trim a byte
Rehmani / Prodika / Dallas / TX / USA
-Original Message-
From: dave wanta [EMAIL PROTECTED]
Date: Thu, 6 Jul 2006 12:51:24
To:ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] trim byte array
hi all,
does anyone know of an efficient way to trim a byte array
] trim byte array
dave wanta [EMAIL PROTECTED] wrote:
It's from a socket, so I don't know the size until i get the terminating
characters.
You could probably consider streaming it to a temporary file, then,
since I expect a download of many 100s of MB wouldn't be immediate. You
wouldn't want many
of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of dave wanta
Sent: Thursday, July 06, 2006 4:26 PM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] trim byte array
That would be a good work-around. But, I don't have write
access (gotta love all
an initial size if you know it to avoid these doublings.
Cheers,
Greg
On 7/6/06, dave wanta [EMAIL PROTECTED] wrote:
Hi all,
btw, just fyi...if you Reflector a MemoryStream, it doubles it's
internal buffer every time it exceeds it's length.
The MemoryStream
but this is the way to go. If you ran out of
initial chunks, you could easily resize this array (copying 1000-2000
items
as opposed to 1000)
Cheers,
Greg
On 7/6/06, dave wanta [EMAIL PROTECTED] wrote:
Hi Erick,
hmm... this is interesting.
I wouldn't have to worry about constantly expanding
with us the interface(s) of your component.
If we see how your component's clients will use it, we might be able
to come up with an idea.
Cheers,
Stoyan
On 7/6/06, dave wanta [EMAIL PROTECTED] wrote:
I wish I could. But basically these are large blobs (usually GIS images,
but
can
Hi All,
I'm trying to get my app to release some memory, as it can grow quite large,
and throw an OutOfMemory exception.
Here is a test example, the code is pretty small, but I'm reading a 35meg
file.
Here's what the code looks like:
byte[] data = ReadFile( ...); //memory footprint is about
used the ram. It doesn't want to release it within the same function.
-Original Message-
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of dave wanta
Sent: Friday, February 03, 2006 2:47 PM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET
= null; as well?
Thanks,
Serge
-Original Message-
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of dave wanta
Sent: Friday, February 03, 2006 12:47 PM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] releasing memory
Hi All,
I'm trying to get
Hi Jain,
I'm also interested in your solution. I have a need to modify/delete text in
the middle of a large file (100s of megs), and I can't think of an easy way
of doing this,without breaking the file into parts (byte[]'s), and putting
it back together, modifing the text, and putting it back
Hi All,
Sorry for the sorta off-topic post, but I would love to hear/get input on
how people develop their .NET apps with VPC.
Currently I'm developing on/against multiple workstations/servers (with
different OSs) and I want to get away from that, and am planning on moving
to a VPC environment.
hi all,
Does anyone know of an Assembly diff type tool? I just want to load two
assemblies, and look at their differences in their public classes, fields,
properties, methods, etc.
Thanks a bunch,
Dave
===
This list is hosted by DevelopMentor®
Hi All,
Is it possible to dynamically implement (or apply) an interface at runtime?
I kind of doubt this, but I'm hoping I'm missing something. Hopefully I can
explain this.
I have two assemblies. A1 (parent) and A2 (a utility object). They have no
dependencies/references to each other. However,
!
Dave
- Original Message -
From: Philip Nelson [EMAIL PROTECTED]
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Sent: Sunday, May 01, 2005 8:01 AM
Subject: Re: [ADVANCED-DOTNET] Dynamically Implementing an interface at
runtime
--- dave wanta [EMAIL PROTECTED] wrote:
Hi All,
Is it possible
etc to satisfy
IUtility type checking, and redirect calls to A2 instance, for example. Or
you may consider changing desing of your app a it ;-)
Regards,
Ales
On Sun, 1 May 2005 07:51:02 -0500, dave wanta [EMAIL PROTECTED]
wrote:
Hi All,
Is it possible to dynamically implement (or apply
looked at: [1]? It might help.
http://www.sellsbrothers.com/tools/#XmlSerializerPreCompiler
Antony
Antony Perkov
Web: www.bitbolt.com
-Original Message-
From: dave wanta [mailto:[EMAIL PROTECTED]
Sent: 20 April 2005 00:05
Subject: XmlSerializer
hi All,
I'm getting the following exception when I try to DeSerialize one of my
parent objects.
System.IO.FileNotFoundException: File or assembly name n.dll, or
one of its dependencies, was not found.
Although the exception says it can't find the assembly, the problem really
is that
PROTECTED] On Behalf Of dave wanta
Sent: Thursday, April 14, 2005 11:16 AM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] BinaryReader ReadLine() ?!?
Thanks a bunch for the tip. I hadn't used the BufferedStream before this
thread.
Ok, so I ran this code against a 29meg file
Hi All,
Has anyone ever implemented a ReadLine() method for a BinaryReader? I'm
sure I'm not the only one implementing this, yet googling has turned up 0.
Thanks,
Dave
===
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage
constitutes a line in a binary file?
--- dave wanta [EMAIL PROTECTED] wrote:
Hi All,
Has anyone ever implemented a ReadLine() method for a BinaryReader? I'm
sure I'm not the only one implementing this, yet googling has turned up
0.
Philip - http://blogs.xcskiwinn.org/panmanphil
There's
: Unmoderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of dave wanta
Sent: Thursday, April 14, 2005 10:46 AM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] BinaryReader ReadLine() ?!?
0x13 0x13, or 0x13, or 0x10. (Same as ReadLine
: Unmoderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of dave wanta
Sent: Thursday, April 14, 2005 11:14 AM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] BinaryReader ReadLine() ?!?
parsing text files that can change encodings
at a time, but can't
be running to a stream (e.g. from a database BLOB) every time they want
data.
-Original Message-
From: Unmoderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of dave wanta
Sent: Thursday, April 14, 2005 10:45 AM
To: ADVANCED-DOTNET
sequences.
-Original Message-
From: Unmoderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of dave wanta
Sent: Thursday, April 14, 2005 11:45 AM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] BinaryReader ReadLine() ?!?
but the lines
hi all,
From a .NET component (class library), is it possible to check if the ctor
is being called from a .NET environment, or a COM environment? (like VB or
classic ASP) ?
Thanks,
Dave
===
This list is hosted by DevelopMentor® http://www.develop.com
Some .NET
that would possibly not be the
case otherwise).
Good luck...
At 07:32 AM 6/9/2004, dave wanta wrote
hi all,
From a .NET component (class library), is it possible to check if the
ctor
is being called from a .NET environment, or a COM environment? (like VB
or
classic ASP) ?
Thanks,
Dave
J
Hi Merill,
I run into this with my customers when they are upgrading between evaluation
versions and purchased versions of my software.
although this uses my software as an example, it will provide some
suggestions to resolve the issue.
http://www.aspnetemail.com/kbfaq.aspx?#question15
Let me
I've looked at DotFuscator's product, way back when. I've since been using
Brent Rector's Demeanor. I just can say enough good about Brent's product,
and Brent himself.
I ran into a problem with his product about a year and a 1/2 ago with binary
serialization. It turned out there is a problem in
-Original Message-
From: dave wanta [mailto:[EMAIL PROTECTED]
Sent: Saturday, 6 March 2004 1:50 PM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] parsing a java webservice
See, that's the problem.
The doc IS NOT base64 encoded. It is raw binary. That's
right. They just threw
to write the individual bytes out to a disk file.
-Rob
-Original Message-
From: Moderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of dave wanta
Sent: Friday, March 05, 2004 11:44 AM
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] parsing a java webservice
Of dave wanta
Sent: Friday, March 05, 2004 10:44 AM
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] parsing a java webservice
So I'm reading the stream with a StreamReader, using Encoding.UTF8. I
locate
where the word doc starts and stops in the string, and then covert that
substring back to a byte
Of dave wanta
Sent: Friday, March 05, 2004 10:44 AM
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] parsing a java webservice
Hi All,
Hopefully I can explain this one with out mucking this up.;-) I've got to
consume a Java webservice (which I know nothing about).
A co-worker gave me the code
Hi All,
Hopefully I can explain this one with out mucking this up.;-) I've got to
consume a Java webservice (which I know nothing about).
A co-worker gave me the code that mades the Soap request, using a WebRequest
(only way we could get .NET to talk to the service successfully). Which
works
Frans/Ted
Along those lines, though, one of the things that annoys me about the
SmtpMail objects is that they don't handle authenticated SMTP, as far as I
can tell. Can anybody comment or prove me wrong? Assuming I'm right,
anybody
know of an authenticated-SMTP-supporting class
48 matches
Mail list logo