|
I don't know but if Google Earth does not provide any developer documentation for doing that then good luck. If the do provide documentation you should be reading that instead of posting questions in a forum. HINT: Google Google Earth developer
led mike
|
|
|
|
|
Hi Mike,
I was not aware of reading documentation,thatswhy i posted like that..I almost dropped the idea of integrating... ...
Priya..
|
|
|
|
|
Hi All,
I have a scenario where in i implement a remoting service using TCP/IP. This remoting service by default accepts 25 Active concurrent connections from clients. I have to increase this to 50. Is thr any idea of achieving it……
Thanks in Advance
Cheers
Mani.
|
|
|
|
|
What version of windows is this server running on?? 2000 Workstation, 2000 Server, XP, Vista, Server 2003, Server 2008?? How many connection licenses does it have installed??
|
|
|
|
|
Its running on windows 2000 . i have no idea of connection licenses...
|
|
|
|
|
Windows 2000 Server has a default connection limit of (I think) 20 inbound connections, of any type. In order to get more connections, you have to buy more connection licenses.
Windows 2000 Workstation has an absolute limit of 10, that cannot be (legally) changed.
|
|
|
|
|
I am trying to solve a memory leak issue when accessing a serial port on a WINCE 5.0 device. My application is devloped in MSVS2008 and uses .NetCF 3.5. I have pinpointed the leak was due to a third party serial port DLL so I tried to implement the Microsoft SerialPort class. Unfortunately the memory leak still exists. I cut my code back to just the reading of the data buffer (see below) but the memory still keeps dropping constantly. Any suggestions of how to solve this problem?
private void PortOnRead(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
{
try
{
byte[] bData = new byte[this.sPort.BytesToRead];
int iRead = this.sPort.Read(bData,0,bData.Length);
// To Do
this.dtReceived = DateTime.Now;
}
catch { }
}
|
|
|
|
|
Hi,
I have several comments:
1.
please use PRE tags to show multi-line code snippets
2.
this does not look like actual code; what do you do with bData once it got filled?
3.
why do you think there is a memory leak? whatever .NET program you write, memory usage
will go up until at some point more memory is required and the GC (garbage collector)
kicks in and tries to free some memory (looking for objects that are no longer alive,
i.e. no longer reachable because all references to them are gone).
That would apply to bData since it is no longer reachable once your PortOnRead() method
finishes.
But, remember, the GC kicks in only when more memory is needed than is actually available
(or allowed by some internal OS settings).
So there would be a problem if your app suddenly throws an OutOfMemoryException, or
dramatically fails with some symptoms that are memory-related; and there would be no
problem at all if the memory usage (say the Working Set) keeps growing, suddenly
falls back dramatically, then grows again, etc.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Is it possible to discover the private key used in a hash algorithm if you have both a clear text value and it's hashed equivelent?
|
|
|
|
|
Probably with a PhD in Mathematics and whole lot of computing power, yes. Can it be brute forced? Yep, given sufficient time, anything can be guessed at until you get it right.
Can some schmuck off the street discover it, no.
|
|
|
|
|
Great, what I wanted to do was create a confirmation email. The link to confirm would include the email address to be confirmed in plain text, and a hashed version of the same email address. So when the email is confirmed I can hash the plain text and compare the two values to make sure it hasn't been tampered with. But I wasn't sure if it was possible to reverse engineer the private key and regenerate the hash value so it would match and bypass the validation.
|
|
|
|
|
Mark J. Miller wrote: The link to confirm would include the email address to be confirmed in plain text, and a hashed version of the same email address. So when the email is confirmed I can hash the plain text and compare the two values to make sure it hasn't been tampered with.
Why send it in plain text at all?? If the people are able to break the hash, then it's trivial for them to fake the address AND create a valid hash for it. Forget the plain text version of the address, it's just a clue to what MIGHT be in the hash. Part of security is divulging as little as possible about what the contents of the hash might be.
Instead, don't compute a one-way hash of the address. Use an symetric encryption scheme where you encrypt the address with public side of a key pair, convert it to a base 64 string to make it compatible with being in a URL, then stick that in the email. When the link is clicked, the site should convert the base64 string back into the original binary bytes, then run that through the decryption using your privatekey.
Besides, if the address doesn't show up in your "attempted, but not validated" database table, you can just ignore the address sent to you or log it in a table that tracks invalid validation attempts.
|
|
|
|
|
Thanks, I'm trying to get rid of old, bad habits and instead think and code more securely. Your response is very helpful.
|
|
|
|
|
Use a known secret key on your server, hash the address mixed with the key (xor, say) Then send the result.
People won't be able to generate a hash for an address without your key.
Of course this means you'll need to keep the hashcode in your database - in which case you may as well just give them a random confirmation guid.
Guess-the-GUID is guaranteed to be about as fun as 52 card pickup, but longer playing times
|
|
|
|
|
"Form Creator". I'm not certain there's a package out there, but basically I'm looking to create a forum for my site that can be integrated into a asp.net pages easily and have the ability to change it's look and feel so that it blends in with the exising site.
I was thinking of creating a forum from scratch but if there's somethign already pre made and pluggable, I'll download and use that instead....
Thanks.
Humble.
|
|
|
|
|
A quick google search found this[^].
|
|
|
|
|
Hi,
I have several related applications that all use Apache's log4net logging package. This package can use an XML configuration file to configure options. Furthermore, this configuration file can be embedded into the application's general App.config file by doing the following:
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
</configSections>
<log4net>
<!--CONFIGURATION STUFF GOES HERE-->
</log4net>
</configuration>
Now, I don't want to have to copy the log4net.config file contents into each of the App.config files, as it is large and would make things more difficult to maintain.
I found that XML has an XInclude extension (see http://www.w3.org/TR/2003/WD-xinclude-20031110)
If I did my googling right, this means that an XML document can specify the content of another XML document to be embedded within it. Therefore, I could theoretically use XInclude to include the contents of my log4net.config file in each App.config file. Below is my attempt:
<configuration xmlns:xi="http://www.w3.org/2001/XInclude">
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
</configSections>
<xi:include href ="log4net.config" parse="xml" />
</configuration>
However, this does not work - when the code is run the log4net configurator very obviously does not find the embedded content.
Does anyone have any suggestions for how to format the xml file to make this work? Is this even possible within .NET framework?
-klk
|
|
|
|
|
I should mention that viewing the generated config file in Internet Explorer does not do any XInclude processing. In other words, the XML displayed is exactly that of the .config input file.
Am currently trying a solution using ENTITY, will post fix if I find.
|
|
|
|
|
Dear All
i am migrating vb project to .net to create web based CRM .
In that VB Projetct one active x control is used which is exclusively made for
windows application I am developing the .net project using web Servises
That active x control use dial method to make a call from agent desktop to client's mobile
also OtherPartydisconnected,thisPartydisconnected otherpartyAnswered and thisPartyanswered these
events of that active x control is required
Please suggest me how i can achive to write these Events in Web Service.
Please Gude me in this Regards.
Thanks to all
|
|
|
|
|
soniasan wrote: That active x control use dial method to make a call from agent desktop to client's mobile
also OtherPartydisconnected,thisPartydisconnected otherpartyAnswered and thisPartyanswered these
events of that active x control is required
It may not be possible for you to use this component in a Web Service. Web Service code runs entirely server-side, and depending on the speed at which this AxtiveX module does it's work, you may not be able to use this component in a web service, or it may not be the best choice for using it.
Depending on the component and exactly what it does, you may have to implement the functionality around this component in a Windows Service instead. This service would probably have to setup some queue to receive it's work orders and service these orders, one at a time, until the queue is empty.
|
|
|
|
|
Dave, Thanks For your Reply.
Basically Events OtherPartyDisconnected ThisPartyDisconnects are fired by CTC SERVER
I am not intrested to use the active x control basically this active x control,
call its MakeDial Method and when when party get disconnects that time on my crm the Hang up button get activated. From my CRM the agent from his desktop phone which is connected through
EPBX i want to call the customer. and when customer disonnect then i want to activate Hang UP Button on my CRM Basically this is a outbound crm i am developing.
So will it possible to write the functionalty through Web Services.
Thanks
|
|
|
|
|
soniasan wrote: So will it possible to write the functionalty through Web Services.
It's not possible like you described, IF I understood your description. Web Services exist for a very short time and do not hold session state. What you're decribing requires a very long object lifetime and maintain session. This would be better served by either a Windows Service or directly in your application.
|
|
|
|
|
As known in MFC, thread function must be a static function because non-static function contains a 'this' pointer.
But this is not a problem at all in .net, I want to know how CLR can do that?
Thanks.
|
|
|
|
|
The only reason the function needs to be static in MFC is because of the underlying APIs used.
Since the underlying APIs use a C interface, they no nothing of C++ class objects and the
associated this pointer.
The .NET framework already knows there's a managed object involved. The framework is designed for
language independence so the interface is well defined.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Technically what it does for a delegate to a non-static method is to generate a small thunk containing a pointer to the object and a pointer to the method. The thunk contains code which calls the method, passing the object pointer as a parameter, just as an instance method call normally would.
In C++ I normally write
static DWORD WINAPI CMyClass::ThreadStartProc( LPVOID pvParam )
{
CMyClass* pThis = (CMyClass*) pvParam;
return pThis->ThreadProc();
}
DWORD CMyClass::ThreadProc()
{
return 0;
}
_beginthreadex( ThreadStartProc, 0, this ); The Framework is just doing this behind-the-scenes rather than you having to spell it out.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|