Monday, 15 April 2013

generics - Returning a List<SuperType> on a WCF service -


I am trying to get a WCF service to return a list containing examples of sections from A But the "underlying" connection is unexpectedly closed "when the service list returns."

I have the following

  [DataContract] [serialable] Public Class A {...} [DataContract] [Serialable] Public Class B: A {...} [Data Contract] [Serialable] Public Class C: A {...}  

Then I have a service defined

  [contact of service (namespace = "name space") ] Public Interface I {[OperationCactrext] list & lt; a & gt; GetList ();}  

If I try to return a list

 < Code> list & lt; a & gt; list = new list & lt; a & gt; () {new b (), new c ()}  

me in the proxy class above Error.

If the list & lt; B & gt; and just add it to BS, it fixes it, isel A. It is believed that it is related to the WCF, which is difficult subtypes.

  [ServiceKnownType  

So, is this possible? (Typef (b)) [service kentype (typef (c))]

To determine the class of A, there is no benefit.

To return a list of subtypes in the same list through WCF?

If so, am I wrong / wrong?

Thanks in advance for any assistance you can provide

Ah

Regards

Regards


java - Anyone using multicast with ActiveMQ -


I have trouble setting up multicast transport using ActiveMQ I have seen with version 5.2. There is a bug in it which prevents it from building the factory (fixed in 5.3). The fact is that the bug exists, I wonder if any multicast is using at all how it has been recently enabled when it can be tested?

It is possible to know that I will be very helpful thanks.

Edit:

It is revealed that I was hanging on the connection build. SetClientID is a synchronous call, so the customer sits and waits indefinitely. This is a milestone for anyone using multicast, which makes a lot of calls in the AMQConnection object ensure Connection Infosyscent () does not respond to that block unless a response Do not get it. It is inconsistent with multicast.

I saw multicast transport work in development rather than in terms of production Although it seemed a bit fickle, and I did not trust to trust him, where money is on money.

IMO, ActiveMQ is a ridiculously buggy car. The most basic bug starts crawling regularly in the codebase, and it is very hard to believe that whenever the basics go wrong, they can work hard.


c# - How to use LINQ-to-Entity to query by contained objects -


Assume that I have a list of boxes and you can have many items in one box.

  • box (id)
  • item (id, box id)

I'm trying to create a linq for the unit query I can return all the boxes that contains all the specified items.

  list & lt; Box & gt; FindBoxContainingAllSpecifiedItems (list & lt; int & gt; itemIds) {var q = ctx from box Boxes where ??? }  

Thanks for the help

Depending on the implementation Ask for the box but for the moment that it has a property in which the item IEnumerable & lt; Int & gt; In that case you can see that the item is

  var q = box from ctx.boxes to box where box is used for everyone by using the intext extension method. ITEM Injects (Item ID) ) == Item ID Calculation;  

iphone - UIImageView: Rotated and Scaled. How do I save the results? -


I am trying to save a rotated and in position as a UIImage and zoom scale that user too UIImageView enhanced with edit But I can only manage to save the original image because it was before editing. How can I save the image as shown in UIMAJEW with the same scaling and rotation? I have read that I need to use UIGraphicsGetCurrentContext (), but I get the same original image saved (but flipped) and not rotated one !! Suggestions and hints will really be helpful. Thank you very much. Al

  (UIImage *) getImage {CGSize size = CGSizeMake (250, 250); UIGraphicsBeginImageContext (size); CGContextRef Reference = UIGraphicsGetCurrentContext (); CGMutablePathRef Path = CGPathCreateMutable (); // Path to the join circle CGPathAddEllipseInRect (path, zero, CGRectMake (0, 0, 250, 250)); CGContextAddPath (reference, path); // ****************** TouchImageView is my UIImageView ****************************** CGContextDrawImage (Reference, CGRectMake (0, 0, 250, 250), [Touch ImageView Image]. CGImage); UIImage * scaledImage = UIGraphicsGetImageFromCurrentImageContext (); // Drag the clip and logo into the circle CGContextClip (reference); UIGraphicsEndImageContext (); Return scale image;  

}

I do not see anything in code Posted that an image rotates, did you forget to add it?

It seems that you are on the right track. Now you can use the Transform routine CGContextScaleCTM and CGContextRotateCTM to properly modify your conversion metrics. , And then (to avoid flipping), use - [UIImage drawAtPoint:] to attract UIImage instead of using CGContextDrawImage


windows - How can I grab exclusive access to the clipboard for testing purposes? -


I have an app, which is long story short, uses the clipboard for the part of its operation.

Sometimes, though, due to the reasons I have never taped 100% down, sometimes the clipboard is not available Sometimes RDC clients block it, sometimes it does not happen. And when you really need a type of deals, then one of the reproduces them is extremely difficult.

Can a small test program write while it is running, is not any other program allowed to access the clipboard?

I think you can call the Openclipboard and the Emptyclipboard, then just open it and close only Call the Clopboard exits from the testing application, or something like this ...

Edit with SCHNAPPLE

So this is what I must And I got the C # code to do this ...

  [DllImport ("user32.dll")] External static button Openclipboard Acdblyuend); [DllImport ("user32.dll")] External Static Hair CloseClipboard (); [DllImport ("user32.dll")] extern static IntPtr GetClipboardData (uint uFormat); Public Static Zero GetSomeDib () {OpenClipboard (System.Diagnostics.Process.GetCurrentProcess (). MainWindowHandle); IntPtr img = GetClipboard Data (8); MessageBox.Show ("Clipboard Lock"); CloseClipboard (); MessageBox.Show ("Unlock Clipboard"); }  

initialize a C string with multiple quoted strings -


I thought that a single string can be started with one and only one quoted string. I just wonder how this is right?

  four const help_message [] = "Usage:% s [Option] Files ... \ n" "\ n" "Options include: \ n" "--Babos -Yy Become a verbose \ n "" --help -h Print this help message \ n "" - Specify the output -o output file \ n "" \ n "; Printf (help_message, argv [0]);  

The adjacent string literal is added, and it is useful in two ways: Macros Which is like the wire and visualization of multi-line string literals , compare why this code will look otherwise:

  Four constellations Help_meas [] = "Usage:% s [Options] Files ... \ n \ nAdditional options include: \ n --Webows -VB verbose \ n --help -h print this help message \ n - Output -o Specify output file \ n \ n ";  

Instead try to maintain it. In addition, if you use a multi-line string, you must either save it from Newlines or deal with the source code that it uses, which will be '\ n' It can not be, and you should carefully consider your indentation, which makes all the code better in your example

Here is an example of a macro case:.

  #define STRINGIZE_ (v) #V #define STRINGIZE (v) STRINGIZE_ (v) #define location __FILE__ ":" STRINGIZE (__ LINE__) #define MY_ASSERT (expr) {\ If \ Some_function (expr)!) (Location ": claim failed" \ __PRETTY_FUNCTION__ ":" #expr); \} (0)  

(There are alternatives for this to provide different parameters, and using GCC special __ PRETTY_FUNCTION __ It's like this, but everything else is easy and this is a decent "real" example, IMHO.)

Other issues have been brought into the code that should be known about:

  • Single # Preprocessor Stretch Operator ( ## Other special preprocessor to paste tokens
  • Without the second stratch macro, you do not break when using "filename.c: __ line __"
  • and the macro Need to be used as a statement instead of expression
    • Preventing use as an expression is not always helpful, but this is what you need to do, such as macros

Breaking if-else example:

  if (cond) MY_ASSERT (blah); other ();  

Its extension:

  if (cond) do {...} while (0); other (); Instead of  

:

  if (cond) if (...) ...; other ();  

Which is incorrect and surprising:

  if (cond) {if (...) {...; } and others (); }}  

c++ - EnumChildWindows or FindWindowEx? -


I have the option to use either the API EnumChildWindows or FindWindowEx.

Is API better performance oriented?

Does the know window use the Enhanced World to handle internally on specific windows?

"post-text" itemprop = "text">

It really depends a lot on your scenario.

The FindWindowEx function is used to search for windows with a specific class and there is a special part of the text alternatively in the window. The EnumChildWindows function is only to calculate hair windows.

I think performance should be your last concern. First of all, choose the right API. If you are actually searching for windows of a particular category then use FindWindowEx, otherwise there is no point in implementing a function using the EnumChildWindows Enmbield window, as is the behavior of similar to FindWindowEx.

Now after choosing the right solution, if a professor specifically tells you that the solution is very slow, then you should consider hand-applying a more specific task. not before.


.net - How to call a C# dll in ruby? -


How to make C # DLL calls in Ruby?

  • Write a COM cover (or write to someone) for your DLL ), If it is not already there, then use it to call the WIN32OLE library of Ruby;
  • Take a look, from which of the authors One, who went to work on IronRB in Microsoft (I do not think it has been retained at any time, and it's over version 2.0.
  • As mentioned before, it is a technical option if you have been mentioned before.

There is a thread on the subject. Note that the last post is actually John Lam (looks like March 200) where he is comfortable saying that Ruby CLR is still functional ...


javascript - Hiding the text input cursor (the caret) showing through overlayed elements Internet Explorer -


I have a form with a special widget that fills in text input when the text input is focused, the widget Appears above text input (deliberately from above) and the user clicks the option in it, when it is done, it disappears and fills in input IE has a problem with it, when the widget appears above the input Returns the field's caret (blinking input for the field) K input cursor) shows through the widget. Widget is a normal html / css dom structure. It still does this when I set the z-index for widget input. How can I get rid of carat or can I ensure that it is not bright? I want to set the focus for that focus somewhere that the widget is shown because the widget needs input.

widget is being shown, then off to end On the unselectable attribute. This is an IE specific feature, and if it works, you should see it in IE 8, because I'm not sure it is still supported.


jQuery excluding certain columns from selection -


I have a table where each line is clickable. Some columns in this table are linked. I want to exclude 'link' column from jQuery selection.

My first column, and the third column are links, so I'm working again after each row in the table:

  row.children ('td: Column for column 0 and 1  

column 3+ row.children ('td: lt (2)') // for gt (2) ') // What's the way Two lines?

  line.short ('td: gt (2), td: lt (2) ')  

Edit : Ah, Art defeated me.


Correct MySQL JOIN format to avoid nested SELECT -


मेरे पास दो अलग-अलग SELECT कथन हैं:

  SELECT VCe.VId FROM `VCe 'WHERE `वाईआईडी` = 9 007 और` माईड` = 76 और `मोइद` = 2851 का चयन करें r_pts.p_id से r_pts जहां r_pts.v_id IN (57202, 57203, 69597, 82261, 82260, 69596, 69595, 82259)  < / Pre> 

जब वे अलग से चलाए जाते हैं, वे दोनों .05sec के तहत पूर्ण होते हैं, लेकिन जब मैं दूसरे के अंदर पहली बार घोंसले करता हूं, तो यह नाटकीय रूप से 3.3 सेकंड तक बढ़ जाता है।

मैं एक शामिल करना चाहता हूं इसलिए कि मैं दूसरे चयन में आउटपुट को IN () के लिए निर्धारित परिणाम के रूप में पहले चयन का उपयोग कर सकता हूं, लेकिन मुझे यह पता नहीं लगा कि एक JOIN में WHERE स्थितियों को कैसे शामिल करना है।

संपादित करें: इसके अलावा क्या मैं अनुरोध कर रहा हूँ के रूप में शामिल करने के लिए सही सिंटैक्स?

आपकी मदद के लिए धन्यवाद, इसकी सराहना!

  का चयन r_pts.p_id r_pts से, 'वीसीई' कहां r_pts.v_id = VCe.VId और VCe.YId = 9007 और VCe.MaId = 76 और VCe.MoId = 2851  

जुड़ने का मूल लक्ष्य यह है कि दो तालिकाओं से संबंधित कैसे हैं। मैंने आपके उदाहरण से अनुमान लगाया है कि आरआईपीएस तालिका में v_id कॉलम एक विदेशी कुंजी थी जो वीसीई टेबल में विद प्राथमिक कुंजी का संकेत था। जब आप क्वेरी में एक शब्द जोड़ते हैं (जैसे "r_pts.v_id = VCe.VId") जिसमें प्रत्येक तालिका से जुड़ना चाहते हैं जिसमें से एक फ़ील्ड है, जो डेटाबेस को बताता है कि "आभासी बनाने के लिए तालिकाओं के बीच की पंक्तियों को कैसे मिलान किया जाए पंक्तियाँ "में दोनों तालिकाओं से स्तंभ होते हैं आपकी अन्य क्वेरी शब्दों की सीमा से सीमा निर्धारित की गई है।


web services - Using flag to identify spoken language -


I'm in the webpage, I need to identify the language people are talking. Wanted to use the flag but I have some problems. For example, if you speak French, you can put the French flag. But if you speak English, then you can either mix a US or UK flag or a mixture of both.

Which flag is to choose Arabic? Flag of Saudi Arabia? Algeria? Morocco?

I think a kind of graphic piece of the language

  • English < / Li>
  • العربية
  • For example:

    • English
    • frança
    • русский язык

  • crystal report to print details of employees side by side -


    I need to create a crystal report that shows the employee's address label, in 2005 using crystal reports I Created by Crystal Reports and Data Sources and Everything Recovers and Reports Really Produce, it is

    Ashok (1 AMP)

    Station Road

    Hedarbad

    .........

    Kiran (second AMP)

    Air port road

    Mumbai

    address 2 ...........

    suresh 4th emp)

    add1

    add2

    etc. Only in linear way but I want from two employee details such as

    ...............

    Ashok (1 employee) ............................. Kiran (second employee)

    Station road ....... ................................... air port Road

    Hedarbad ......................................... ....... Mumbai

    etc.

    Ravi (3 employees) ............. ...................... Suresh (fourth) Employee)

    Address 1 ............... ........................ ............ Address 1

    Address 2 ...................... ....................... address 2

    thnks in advance

    Right click in the Details section, section Select specialist.

    A new tab should be displayed after checking the "format with multiple columns" check box.

    You can create column data using the settings of this tab.

    Yesterday I had spent a lot of time with the soul provided by you, but I am unable to see the report in my desired format, yet all the results are coming under one, but I am the first EMP The other side of the description is needed, with the EPP details mentioned below the third EMP fourth EMP description, I am paying a lot on this problem, all the project was completed, but I had to print the report But it was struggling with a small problem. Please help, right click in the details section, submit section expert, Regards

    A new tab should appear after checking the "format with multiple columns" check box.

    You can create column data using the settings of this tab.

    Based on OP comments:

    What do you want to add to the report field (if you are planning 2 columns, just leave half of the report, leaving only 3 columns left Let, and so forth).

  • Right click on the details and select the section specialist.

  • Check the format with multiple columns, it should show the Layout tab next to the color tab.

  • For your example, change the printing direction from the bottom to the Layout tab, down again. Change width of width to width.

  • It should be so.


    scroll - C#, RichTextBox: how to implement scrolling line by line? -


    I have a RichTextBox in a C #-application with both horizontal and vertical scrolling enabled.

    Current behavior: When I reach the last row of the visible text field, horizontal scrolling comes up. But scroll is created by pixels, not by line, so I think that I can not see the text I am writing because the line is automatically oval (or completely invisible) until I scroll vertically with the arrow button I am pulling or pulling vertical scrollbar.

    Expected behavior: I want to make Rich TextBox scrolling equal to scrolling in Notepad. In Notepad, I always look at the line I am writing. It's really smooth line-based scrolling.

    Any thoughts? Some underlying settings in RichTextBox? Anything else? Thanks,

    Add event handlers to text child events, and check out programmatic scroll down:


    asp.net - Embedding Custom font in aspx StyleSheet.css -


    I embed your new fonts with StyleSheet.css as

      @font Trying to do -fess {src: url (../ font / helvetica NUELTSTTD-LTOFT); Font-family: "helvetica nanimalite"; Font style: normal; } .helveticaclass {color: red; Font-size: 12px; Font-family: "helvetica nanimalite"; }  

    and

      and asp: label id = "Label1" runat = "server" text = "My custom text Helvetica font" EnableTheming = "false "Class =" helveticaclass "& gt; & Lt; / Asp: label & gt; And located in the root street sheet. | CSS | | StyleSheet.css  

    and is located in the font

      root | | Font | |  

    but I'm unable to apply the font

    Any solutions or suggestions appreciated higly

    thanks in advance Thanks

    P>

    You can take a look at this that states that cross browser font How to embedding


    encoding - data porting in mysql -


    While porting another database from a mysql database, there have been some issues such as apostrophes being converted into a field Is the story Why did this happen and now what should I do to correct the new database?

    I have phpmyadmin access to only two databases.

    Take a look at the charatersets used by your database. You can do this by entering \ s in the MySQL client. Example output is:

      Server letter: latin1db alphabet: latin1 client password: latin1con. Letters: Latin 1  

    Which characters do you get and what do you expect?


    c# - Changing DefaultWebProxy causing WebRequests to time out -


    I am working on this project, we have a desktop program that contacts an online server for store Because it is used in schools, getting the proxy setup is difficult, we have to allow users to specify proxy details to use them, otherwise it uses IE Attempts have also been attempted to bypass the addiction details, so the code tries to specify the specified proxy, if the default fails, if it fails, with credentials, if it fails, then zero.

    The problem I am facing is where the proxy settings have to be changed in succession (for example, if their registration fails because the proxy is incorrect, they change a small thing and again Try, take seconds.) I end up with calls for HTTPRequest. Get Response (Timing Out), which allows the program to be frozen for a good time. Sometimes, if I leave one or two minutes between the changes, it is not stable, but not every time (just after 10mins it is tried again and it has time again).

    I can not see anything such a code can be caused by that - although it looks a bit messy I do not think this server can reject the request, unless it is a normal server behavior, As I have tried to do it with our server and other requests like google.co.uk.

    I am posting in hope that there is a code that can be able to spot something that is wrong with it, or very simple about what we are trying to do Know the way

    The test that we run is without any proxy, so the first part is usually left. ApplyProxy is run for the first time, it works fine and the first attempt is to eliminate everything in the block. Second, it can be time-out on GetResponse for the first time and then go through the rest of the code, or it can work there and expire on the actual requests made for registration.

    Code:

    Apply zeroprocess () {

      Boolean ProxySuccess = true; String WebRequestURI = @ "http://www.google.co.uk"; If (UseProxy) {try {String ProxyUrl = (ProxyUri.ToLower (.) Contains ("http: //"))? ProxyURI: "http: //" + ProxyUri; WebRequest.DefaultWebProxy = New WebProxy (ProxyUrl); If (! String.IsNullOrEmpty (ProxyUsername) & amp;! String.IsNullOrEmpty (ProxyPassword)) WebRequest.DefaultWebProxy.Credentials = New Network Credentials (ProxyUsername, ProxyPassword); HttpWebRequest request = HttpWebRequest.Create (WebRequestURI) as HttpWebRequest; request. Method = "received"; HttpWebResponse response = Request HTTP Web Response as GetResponse (); } Hold {ProxySuccess = false; }} If {(ProxySuccess ||! UseProxy) {try {WebRequest.DefaultWebProxy = WebRequest.GetSystemWebProxy (); HttpWebRequest request = HttpWebRequest.Create (WebRequestURI) as HttpWebRequest; request. Method = "received"; HttpWebResponse response = Request HTTP Web Response as GetResponse (); } Catch (exception E) {// Try with credentials // WebRequest.DefaultWebProxy = WebRequest.GetSystemWebProxy () from default; String newProxyURI = WebRequest.DefaultWebProxy.GetProxy (new URI (WebRequestURI)). ToString (); If (newProxyURI == String.Empty) {// We actually result in WebRequest.DefaultWebProxy = null; Return; } // continue WebProxy NewProxy = new WebProxy (newProxyURI); NewProxy.UseDefaultCredentials = True; New Proxy Credentials = Credential Cash Default credentials; WebRequest.DefaultWebProxy = NewProxy; Try {HttpWebRequest Request = HttpWebRequest.Create (WebRequestURI) as HttpWebRequest; request. Method = "received"; HttpWebResponse response = Request HTTP Web Response as GetResponse (); } Hold {WebRequest.DefaultWebProxy = null; }}}}}  

    Is not it the case to set up a timeout property HttpWebRequest? It may be that the connection is being made, but not servicing (for example, incorrect type of proxy server or stolen server), this may be the case that waiting for the timeout period before the end of the request - a The short time may end here.


    jQuery - Open all links in id in new window -


    Can anyone tell me a way to open all links within an ID in a new window?

    Put it in the head:

      $ (function () {$ ('# Selector') .attr ('target', '_blank');})  

    asp.net mvc - Asynchronous generation of PDF - error handling -


    We have some code that uses a third-party component to generate a PDF from a URL (url page our Within the application). In code, we instantiate the PDF generator and it creates PDF in an asynchronous fashion.

    The problem I have is that if we pass the URL then there is a problem, there is no sign of it, the PDF generator, we have been created a PDF which has a 404 error page, or our custom problem page.

    I need something within my controller, first call this URL (which is another view) and check that the PDF generation does not make this error before calling. Can anyone tell me about this, how can I do this?

    If you receive 404 or 500 (etc) for an HttpRequest URL first, then Check that you have a problem.


    How to conserve parent detail when clicked on child menu in jquery -


    I have used jQuery in Oracle APX in the menu. The menu is such

      parent1 My problem is that when I only click on 1 child's parent 1 and 2 children have to show, but in my case every parent should be expanded goes. And users can see all the children who should not be a user, they should be able to see the clicked guardian and child details.  

    My code is as follows.

      $ (document) .ready (function () {var msg = false; $ ('. Dropdown menu') click (function () {msg =! Msg; if (msg) $ ('.parent_menu'). ('. Child_menu') .slideDown ("slow"); and $ ('. Child_menu') Hide (); return returned;});});  

    If you provide some HTML, So, I'm assuming you're using this HTML Sorry, I look at the comment you gave me.

    This script should work with HTML to:

      $ (document) .ready (function () {// menu $ $ ('# menu a') Disable links in (Function () {return false}); // hide child menu $ ('. Child_menu') Hide (); // Enable accordian menu $ ('. Dropdown menu'). () {$ (This) .Parent (). ('. Child_menu') toggle ("slow"); description is false;});}); Edit: I made the following changes:  
    • I only disabled the dropdown menu link, Therefore, the child_manu link will now work
    • To close the second hair menu when clicking on a new parent, I added an "active" class, then only when you Click Hiding Then
    • The script now looks at the window hash for the location ID from the child menu, to determine which child is to display the menu. I do not know how you are changing your child's menu links (I could not go into it and add the ID to it: "f: NO :: P17_LOCATION_ID: 17"), but in some way you have to To add an ID (like # 17 ) at the end of the link: http://www.mysite.com/somepage.htm#17 . The script will take this URL and the location id is 17 and open the Belgian hair menu when it gets the ID at the end of href (see I have experimented on this selector). # Edit: You requested that the child forgot to stop the parents from hiding from hiding, so now only a single parent will be hiding the child by clicking.

    Using this HTML (You are provided in a comment below):

       

    with this script:

      $ (document) .ready (function () {// menu disabled Austrian link $ ('.downloaddown_menu a '). Click (function () {return false}); // hidden child menu $ ('. Child_menu '). Hide the current location id from the window. Hash var hid = window.location. Open and open the child menu that matches hash; hid = Hid.substring (1, hid.length); // id $ ('. Child_menu a [href =' '+ + +' + hid + ''] '). '. Child_menu'). And Class ('Active') Slide Down ("Slow"); // Enable Adyion Menu $ ('.d Click (function () {// to prevent hiding the hair menu if it is already open ($ (this). (). ('. Child_menu') .haxel ('active')) Return; // Find a previously active menu and close it and open a $ ('active'). RemoveClass ('("."). ('. Child_menu ') AddClass (' active ') toggle ("Slow"); returning;}};});  

    Finally, I can not do anything with this script which you've added to the comment, You are not HTML either Give in


    Delphi OpenOffice automation scalc center cell text -


    Hello Anyone can help me with the following: I'll send text through Delphi in a Scalek Open Office spreadsheet cell I want to focus on the OOoTools Toolkit.

    The following code does not work:

      sRange: = '$ A $ 3: $ A $ 3'; Ooperm: = Createunocostructure ('com.sun.star.beans.PropertyValue', 1); Ooparam [0] .name: = 'ToPoint'; Ooparam [0]. Price: = Range; ExecDispatch ('.uno: GoToCell', Ooprum); Ooperm: = Createunocostructure ('com.sun.star.beans.PropertyValue', 1); Ooparam [0] .name: = 'horizontal justification'; Ooparam [0]. Value: = 'com.sun.startable.cellhostify.exe'; ExecDispatch ('.Upon: Horizontal Justification', Ooprum);  

    Why do not anyone have any ideas? It seems that horizontal justification needs a value, but you're giving a string. You will need to see the value of com.sun.star.table.CellHoriJustify.CENTER and your ooParams [0]. Fill it with the value .

    Here's a way to see an envival:

    In your case, com.sun.star.table.CellHoriJustify.CENTER equals 2, so that you Required:

    Ooperm [0] .name: = 'horizontal justification'; Ooparam [0]. Value: = 2;

    Service instances in WCF -


    I am using perfone to check my service behavior What do I do, on different machines Launch 6 instances of client application and send requests to the server in 120 threads (20 customer per customer application).

    I have checked the counter and maximum number (I use per session model and set the number of 100 examples) 12, which is strange to me because my response time is about 120 seconds Revolves ... I thought that increasing numbers of examples would cause WCF to create more examples, and the response time would be quick.

    Any idea why WCF does not make another example of service?

    Thanksgiving

    WCF services are throttled by default - this There is a service behavior, which you can easily do.

    See.

    Default:

      & lt; Service Trafficking Maximum Resources Call = "16" MaxCentureStensance = "Int. Maxwell" MaxSystem Session = "10" />  

    With these settings, you can easily control how many sessions or concurrent calls can be handled, and you can be sure that your server is overwhelmed with requests And it has been brought to its knees.


    javascript - preloaded data in html -


    What would be the best way to load data in HTML and then use it with javascript I do not use the variable in javascript Do not want to save or save an AJAX query.

    Could this hidden divise contain an XML data? .

    Example:

      1; Europe 2; Latin America ------------------ 2, 1, Argentina 2, 2; Brazil 2, 3, Chile 1, 4, France 1, 5, Spain 1, 6; Italy  

    It needs to be loaded into data selection based on the country you selected. There are too many data and need to be fast, I have already been loaded it.

    The edit solution, based on the proposed solutions:

      & lt ;! DOCTYPE HTML Public "- // W3C // DTD XHTML 1.0 Transcription // N" http: // www. W3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">" target="_blank"> html xmlns = "http://www.w3.org/1999/xhtml"> gt; Top & gt; Lt; Meta content = "text / html; Charset = UTF-8 "http-equiv =" content-type "/> & lt; script type =" text / javascript "src =" http://ajax.googleapis.com/ajax/libs/jquery/1.3 .2 / jquery.min.js ">