Sunday, 15 July 2012

c - determine if a process is dead or not - by PID -


I have two different ways to check if a process is still running:

1) GetExitCodeProcess () 2) Run the list of processes using CreateToolhelp32 snapshot () and check the PID

Now, in both cases I still find that I am using TerminateProcess A process that has ended with is alive, though it is not.

Is there a way to know positively whether the process is still alive or going through a PID? Thanks!

A call for GetExitCodeProcess back STILL_ACTIVE After calling on TerminateProcess for active processes, the process will die, and a different value will be returned.

Another way to check that a process is alive WaitForSingleObject . If you call it at the time of 0 processing, it will immediately return to WAIT_TIMEOUT if the process is still going on.


io - Interrupt driven HD44780 library for an Arduino -


I have an HD 44780 lcd screen, and I'm using liquid crystal libraries which is with the Ardino development package is available. However, it is not reliable I have seen some problems with it, and instead of being interrupted, just sleeps as long as the developer thinks that the chip should be taken to execute the operation.

From the Biscis flag, the Bissy flag will be set while it is executed, which means that it is possible to create an obstacle.

Does anyone know about a library that actually does this, and do all 8 bits need to be connected or can I put it on 4 pins?

I do not think you need a hindrance for this. Looking at Arduino distribution, you should just change the code Liquid Crystal :: Written 4bits , LiquidCrystal :: write8bits , and LiquidCrystal :: pulseEnable the wanted . The first two methods should start with the monitoring of the busy line (BD7) before writing the data, and the previous one will be modified to remove the 100us break.

I think the reason for this was not done by default. The code is that many users of these LCDs just bind R / W on the ground so that the display is always in written mode, from which the BSI signal It is impossible to read However, it is passed by setting _rw_pin to -1 in the library, so the pulse and the written code can conditionally be used as a way to engage the r / w pin as speed optimization.


sharepoint - Trouble with SPFieldLinkCollection.Reorder: Isn't working as documented -


I am working in a custom list that I created in SharePoint. I have a feature that has an event handler that closes when the feature is active. Private Zero Commandfield (SP Webb) {i // It works fine: I get the expected SPContentType object / / ContentTypes only in 1 SPContentType SPContentType contentType = Web.Lists [TASK_LIST_NAME] Content type [0]; ContentType.FieldLinks.Reorder (new string [4] {"field 1", "field2", "field 3", "field 4"}); ContentType.Update (); }

function which is OrderFields call web.Update (); as well.

Unfortunately, refinancing calls do not reorder my fields on my form. Do I forget something? Is there any suggestion that I can try something?

The problem was with my field names.

I had two lookups that I had previously created a program in the execution of program handler. These lookups' intrinsic names are significantly different from the names "field 1" and "field 2", which I gave them in the Name and StaticName parameters of my CAM definition.

Instead, the name of the display is made by the internal name, the blank space has been replaced by " 0020 ", and has been truncated to a length of 32 characters.


asp.net - SQL Server Session State, web farm, and IIS configuration -


So I have installed SQL Server session state using SQL Server 2008 and temporary database and today I look at data in it The table decided to find it only in the ASPStateTempApplications table:

AppId AppName
538231025 / LM / w3svc / 1 / root
611758131 / LM / w3svc / 3 / root
802488340 / Lm / and 3 S VC / 4 / Root
-940085065 / Lm / Y3 S VC / 4 / Route / WebApp
685293685 / Lm / 3 S VC / 5 / Route < Br /> 1210055478 / Lm / And 3 SVC / 5 / Root / webapp

We have 2 load balanced web servers

When I look at the web app ID of both servers then I think APP1 has 1 app with App4 and Web 2 in Web 1. The same thing happens with the second app in the web 1 is the app 2 with the ID of 1 and the web 2 has 3 id.

My general knowledge tells me that the web server sessions are not sharing because the session ID uses APIs, am I right? If so, why is it not so clear in this minor document? Should I match the IDs on both web servers?

The application ID is used during session creation, avoiding conflict from one app to another To help, it is created by calculating a hash of the IIS app path.

In your environment, the flow can be something like this:

  1. The server creates session IDs, sets it in a cookie, and some data in this session Stores (one line in ASPStateTempSessions) Session ID column is created by adding session ID to an app id.
  2. Server B receives a request with the session ID already present, and uses it to find session data related to ASPstatetampaign table. If the app ID is different, the generated key will also be different.

The net effect of multiple servers with different APIs sharing the same session is that the IDs created by one server won did not collide with them from other servers, and Machines will not see each other's sessions with different APIDs.


ASP.NET: the static instance will get volatile? -


If I apply a singleton, then insert it in the episode, for example by gc retrieved After each round-trip HTTP requests? Or is it still continuing in order? Thanks for any help.

Public Sealed Class Singleton {Static Text Only Singleton Example = New Singleton (); Static Singleton () {} Singleton () {} Public Stable Singleton Example {Receive; for example; }}}}

No, not every HTTP request. To prove this, I added a readable timestamp to the class:

  public readonly date time timestamp = date time.Now;  

And then it was referenced on a page in the project. It remains the same on each fresh.

You mention GC. Remember that when GC will retrieve an object (even not even GC.) I do not think the object will be retrieved. But I do not think this is a summary of your question.

Actually, yes your singleton will work as a singleton, at least until the application becomes recycled.


webcrawler in java or with j2ee as my final year project is good?How can I improve searchengine via webcrawler? What are the other features the best crawler have? -


This is for my last year's project. I want to design a web crawler, which crawls the pages I set for the given URL. I want to know how can I improve searchengine through WebWorld? I chose Java as my developing language. Is that good? What are the other features of webcrawlers? How can it help us in other ways? What are some other applications other than Search?

If your web crawler has not been delivered, it is not a web crawler.


IDoc Beginners tutorial -


संभव डुप्लिकेट:

हाय सब,

क्या कोई मुझे आईडीक पर एक अच्छी शुरुआत वाले ट्यूटोरियल बता सकता है? मैं मूल रूप से आईडीक प्रारूप को समझने की ज़रूरत है।

मैं googling की कोशिश की, लेकिन IDoc के शुरुआती परिचयात्मक ट्यूटोरियल को ढूँढने में सक्षम नहीं।

googling पर एक noob होने के लिए मुझे माफ करना।

धन्यवाद।

मैंने यहां एक समान प्रश्न का उत्तर जोड़ा है; < / P>

Google भाग पर पसीना न करें। वास्तव में वास्तव में बहुत कुछ नहीं है क्योंकि ओडीकल यूसीएम (पूर्व में छलनी) में आईडीओसी का प्रयोग किया जाता है

अफैक, शुरुआती लोगों को विशेष रूप से लक्षित नहीं है। पुस्तक / पीडीएफ से सर्वश्रेष्ठ शर्त को टुकड़ों की प्रतियां बनाने शुरू करना है (साइट स्टूडियो डिजाइनर के अंदर) और उन्हें काम करने के लिए किसका काम करता है।