Posts

Showing posts from February, 2010

ASp.net MVC route page not found -

मेरे पास यह यूआरएल है यह घर / इंडेक्स को पुनः निर्देशित करता है? IdCategory = 1 इसके बजाय मुझे कोई पृष्ठ नहीं मिला। रूटराइजिस्ट्रार है: मार्ग। MapRoute ("श्रेणी", "श्रेणी / {idcategory} / {categories} ", नया {नियंत्रक =" घर ", क्रिया =" सूचकांक ", idCategory =" "}}); मार्गों। MapRoute ("डिफ़ॉल्ट", // रूट नाम "{नियंत्रक} / {action} / {id}", // यूआरएल पैरामीटर के साथ नया {नियंत्रक = "होम", एक्शन = "इंडेक्स", id = UrlParameter.Optional } / / पैरामीटर चूक); धन्यवाद श्रेणियों में वाइल्डकार्ड को जोड़ने का प्रयास करें बिट: मार्ग। नक्शा मार्ग ("श्रेणी", "श्रेणी / {idCategory} / {* श्रेणियां}", नया {नियंत्रक = "घर", क्रिया = "अनुक्रमणिका", idcategory = " "}); यह श्रेणियों के भाग से बाहर की सभी श्रेणियों को श्रेणी में शामिल करने की अनुमति देगा। और यदि आप पहले से रूटिंग का पहला नियम नहीं जानते हैं: / P> पहले मिलान मार्ग का उप...

64bit - 64-bit Performance Advantages -

The source of performance benefits of 64-bit applications are higher than 32-bit applications? I am assuming that there is a performance advantage because programs such as WinRAR advertise it. In addition, can we easily get these performance benefits by switching to the 64-bit compiler, or to become the code that is needed? Both answers related to the unmanaged and managed code are welcome. To take advantage of the latest CPU's 64 bit architecture, you have to: Use 64-bit CPU and OS Use 64 bit APIs specifically for 64 bits - CPU registers (commonly written in the Ambabeler) to take advantage of additional registers To work with), the implementation has to go down from all the basic codes. Developing an application will actually benefit from additional registrars - WinRAR is an application that will take full advantage of additional registers as it contains a lot of compilation with complex algorithms. If you instead write an application with a very simple algori...

vbscript - How do I make MODI not identify rotated images? -

I have a VBScript script that looks like this: Const ForAppending = 8 Set objFSO = CreateObject ( "Scripting.FileSystemObject") set objTextFile = objFSO.OpenTextFile ( "C: \ OCRresults.txt", ForAppending, it is true) set miDoc = CreateObject ( "MODI.Document") miDoc.Create ( "C: \ PathToTifScreenshot. TIF ") miDoc.Images (0) .OCR set miLayout = miDoc.Images (0) .Layout stringOut = miLayout.Text objTextFile.WriteLine stringOut DoOCR = stringOut set miLayout = nothing set miDoc = nothing set objFSO = nothing it uses MODI in Tiaif file Oaisiar However, Modi Automatically identify the images rotated and I do not want to work this way. What I basically want is precisely for OCR, when the image rotates properly. There is an option in Modi's GUI that you can uncheck: "Rotate Auto", but it seems that it only works for the manual process. By any thought how can I prevent my script from recognizing rotated images? "post-text...

How to set the width for the dataTable rendered column in JSF? -

I tried this way, but I could not do that. With the rendered HTML, I do not see a width attribute for headers or for datable rows. I'm using JSF 1.2 without any component Libs. What can be the problem? I do not understand this link answer honestly. & lt; H: column & gt; Because it is in the default JSF implementation support, on all those features. It is very far for me why it is given 6 votes and accepted is marked, it will be ignorance or coincidence (Probably both the questioner and the answer are using a JSF implementation I do not know who has , which does not automatically do all the unknown attributes to the actual HTML attributes, but at least, the standard JSF RI / Mojorra, probably not?). He said, to style the columns separately, the attribute of the column class , you accept this command level of the CSS class names, which later Lt; Td> generated by elemenes columns & gt; Will be applied to . & lt; H: datatable column classes =...

PayPal Website Payments Standard API -

I have the answer that it is somewhere in PayPal documentation, but I am reading it for two days and for my eyes For website payment standard, I create a page on my site (let's call it Page A ), which has a dynamically-formized form in which a hidden bunch The details of carriage material, price of each item, etc. are included. It also has a token to identify the seller vendor and a visual form element: the submitted image. Customer clicks the image, which submits the form to PayPal. PayPal does talk to us (in which we are posting some data on a URL that we define (we call it Page B )), and then returns the customer back to us (again From a URL we define, let's call this Page C ). Whatever I see is some kind of transaction ID, we can see the page A and C and B A hit from PayPal has been hit by the user. How do we know that these three hits apply to the same transaction? (The hit on the page can not be definitely C .) In a different question, do I think on...

Include row number in query result (SQL Server) -

I think the SQL server is given a unique number in each line. How can I include in my SQL query results? If you are talking about the number of lines provided by you when you run a query, Studio, there is no way to get it because it really does not exist. Management Studio generates this on the fly if you are using SQL Server 2005 or later, you can recreate a sequential number using the ranking function. Note, you should never believe that by the time you do not include the order bills in the statement, the database will return the rows in a specified order. Your query might look like this: select ..., row_number () order (as ordered by T.SomeColumn) by the number of table as the table number In order to determine the order to make the sequential number T.SomeColumn, the order in the over section is used to determine the sequence of rows in the output by the segment at the end of the query. Is used for (i.e. sequence number The sequence of rows and sequences of rows can var...

python - Django: Parse JSON in my template using Javascript -

I have this in my opinion: string_location = myaddress2 geodata = [] place Geodata.append for geodata_results = len (geodata) data = {"geodata": geodata, "geodata_results") (geodata): Geodata_results} return to render_to_response ("business / business_view.html ", Data, context_instance = RequestContext (request)) How do I" handle "/ convert geodata in JSON and pass it in my template so that I Can I "loop" it through "slip"? Do I have the right to think that I can do it like this? If not, please suggest a better solution. Thank you! UPDATE var geodata = "[[Amp; quot; ml cusan street & amp; lt; br / & gt; monde City, Philippines & amp; quot ;, [10.3513819 99 99 99 99, 123.923535]], [& quot; Tomban & amp; BR; & gt; Cebu City, Philippines & amp; quot ;, [10.353527, 123.91352500000001] ]] "; I think JSON is not saved? How can I avoid special characters inside the JSSN...

animation - How can I animate a view in Android and have it stay in the new position/size? -

I currently have a view in my Android app and the scene is playing a frame animation, I want to extend the scene to enhance when I apply a scale animation for it, and if the scale animation is complete, I want to keep this activity in the new shape of the remaining life cycle of the remaining activity. Unfortunately just when the scale-up animation is complete, the view is back in the original size. How can I do this to keep a new animated tranornation? I'm using myView.startAnimation (AnimationUtils.loadAnimation (mContext, R.anim.scaleUp150)); Thanks! Make sure you add the attributes below to your root element in the animation xml : Android: fillAfter = "true" Android: fillEnabled = "true"

MySQL query, problem with my join? -

I'm not sure that there is a problem, but take a look: I have 3 tables Are: Category: ID, icon, name; Subcategories: ID, Name, Description, Category_ID; Subject: ID, Title, Text, Author, Created, Subcategory_ID; I am now trying to get this information (query): $ string = "select categories.id catid, the categories. In caticon, categories. Catname as name, scatid as subcategories.id, subcategories.name AS scatname, scatdescription as subcategories.description, scatcatid as subcategories.category_id, as COUNT (topics.id) Topics, title AS ttitle, topics. Add sub-sub-categories to the above subclasses from categories classified as Tantric, Subject. ED = 1 sub-disciplines classes Honkaidi = themes. Subcategory_id GROUP BY categories.id "; Result: Perhaps the categories from 5% to 5 - OK, 4 show subcategories only in the first categories. Maybe even the question is long? Thanks for any answers. this subsection.category_id = 1 This should be...

sql - MySQL Combine multiple rows -

I have a table similar to the following (with most lines and fields): Category_id | Client_id | Date | Step 1 1 2009-12-15 First_step 1 1 2010-02-03 Last_step 1 2 2009-04-05 First_STep 1 2 2009-08-07 Last_step 2 3 2009-11-22 First_Step 3 4 2009-11-14 First_step3 4 2010-05-09 last_step I would like to change it so that I can calculate the time between the first and the last steps and finally find the average time between the first and the last steps. Basically, I have to convert something to the table above: category_id | First_date Last_Date 1, 2009-12-15, 2010-02-03 1 2009-04-05, 2009-08-07 2 2009-11-22 NULL 3 2009-11-14, 2010-05-09, Any help would be appreciated. With OMG PONS help, here's the solution: SELECT t.category_id, MIN (t.date) AS first_date, when the case is COUNT (*)> gt; = 2 THEN MAX (t.date) as the ELSE NULL END from the last table in the table T group by t.category_id, t.client_id Updated on the basis of the question update / explanation:...

gridview Devexpress c# -

I use devexpress 8.1 and I can not change the font color of the gridview, but I just change the font color in it Please see the following topics in our documentation: It describes XtraGrid's subtraction How to customize the viewer.

windows - Is there a selectable label control? -

I want a select label control, such as one in the screenshot. It can be done with a universe of Tedit, but I was wondering if there is another method which will work with gradient backgrounds? To clarify, I am using a simple PageControl, which is a gradient drawing in Win XP Account: Update: I have been successful in getting the process by adding CNCtlColorStatic (var) AMsg: TWMCtlColorStatic); Message CN_CTLCOLORSTATIC; TTRA transparence CNCtlColorStatic (var AMS: TWMCtlColorStatic); Start with ThemeServices if ThemesEnabled then starts SetbackMode (AMsg.ChildDC, Windows.TRANSPARENT); Dropperbackbackground (handle, AMS.SBIDDC, Zero, False); AMsg.Result: = GetStockObject (NULL_BRUSH); End inherited; End; It is now transparent, but it is necessary to do something else, because the text is selected as a painting does not work properly. It is difficult to explain behavior, I will check further and update here ... label editable Are not there. TLabel can not even ...

sdk - connection between two iPhone applications -

Is there a way to connect between two applications? For example, to create a dictionary database for the idict app, and is it possible to move the data folder from the app folder into my app folder? I do not think the way you put it, it is possible. You have to create a service and store the information in a centralized location. That's because every app is in the "sandbox" folder.

REST-ful Workflow Service with .NET 4.0 -

With WCF, we can build services that can accept leverage HTTP posts and simply accept a XElement because this is the parameter. I would like to do something with a workflow service so that I can post an XML Infoset for any service in jQuery, it is run through a bunch of rules and then returns an XML Infoset. A WCF service, I can simply go for my Wonderful Way to decorate Operation W / WebInvoke. Is it possible to use WebInvoke w / a workflow service and if so, how should I go? Workflow services are currently connected to traditional WCF SOAP. You can not currently use WCF REST API (i.e., WebHttp binding) with WF 4.

sql server - Can I retrieve a value from a previous line using CURSORs of SQL? -

I am developing a query where I need that the result of a certain area of ​​"current area" of my current line Ho. My current row "+" The same area of ​​the previous row "(SQL Server 2008) How do I do this by using the cursor? Assign the previous line value in one variable: declare @previosvalue varchar (100) = null; proclaim @ servbentvalue Announcement (100); Announce the crs cursor for the selected value from the table; Open CRS; Bring @ctitival ahead to CRC; While @@ fetch_status = 0 start - process here - In the first line, @previousvalue As it should be, since there is no 'back' of the first selection ... for some time where some sorting = @ currentvalueval and other conditions = @ previous price; set @previousvalue = @currentvalue; ahead of CRC @ CERTIFICATE CRAS; DLLL CRS;

Magento - Google Checkout Free Shipping Problem -

I have set up Google Checkout on my Magento store and I'm using flat rates for shipping. The problem is that if I put a zero for the rate. Free shipping I get a message when I go to checkout that I do not send in that country. If I add any value to the rate (0.01 also) it works fine. Here is a screen of config that does not work: Here is a screen of config that works: Here's a screen of error I checkout if I set the shipping rate to 0.00: Any idea why this is not working? I believe (and I can not check, so I'm going out of memory here) If the rate is set to 0.00, then the shipping module lied and there are no available shipment methods. I think you have to make a car discount rule to correct it and you have to take it to GC with free shipping.

python - Using urllib2 for posting data, following redirects and maintaining cookies -

मैं urllib2 में पायथन का उपयोग कर लॉगिन डेटा को एक वेब साइट। सफल लॉगिन के बाद, साइट मेरे अनुरोध को दूसरे पृष्ठ पर रीडायरेक्ट करती है। क्या कोई ऐसा कोड बना सकता है जिस पर यह पायथन में urllib2 के साथ करना है? मुझे लगता है कि मुझे कुकीज़ की आवश्यकता होगी, जब मुझे किसी अन्य पृष्ठ पर पुनः निर्देशित किया जाए तो लॉग इन हो। ठीक है? अगवे में बहुत बहुत धन्यवाद। सबसे पहले, मशीनीकृत करें: आप बस urllib2 के साथ इस तरह की सामग्री कर सकते हैं, लेकिन आप बॉयलरप्लेट कोड लिखेंगे, और यह छोटी हो जाएगी। तब: आयात यंत्र Br = mechanize.Browser () br.open ('http://somesite.com/account/signin/') br.select_form ('loginForm') br ['username'] = 'jekyll' br ['password'] = 'केले' br.submit () # इस बिंदु पर, आप लॉग इन हैं, रीडायरेक्ट हैं, और # बीआर ऑब्जेक्ट में कुकीज हैं और यह सब। Br.geturl () # उदाहरण Http://somesite.com/loggedin/ फिर आप ब्राउज़र वस्तु br का उपयोग कर सकते हैं और जो कुछ भी करना है, लिंक पर क्लिक करें आदि। मैकेनाइज्ड साइट पर...

jQuery, best practice for passing around variables in the DOM? -

I have a DOM element similar to Facebook's "View friends" popup. I have a table with the list of rows , On which I can add tags to those lines: & lt; Tr id = "124" & gt; & Lt; / Tr & gt; When a line is clicked, a model popup is created and lets the user select tags related to those rows, which are sorted like this: & lt; Div class = "popup" & gt; & Lt; Div class = "popup-body-row" id = "3434" & gt; Add Tag 3434 & lt; / Div & gt; & Lt; Div class = "popup-body-row" id = "2112" & gt; Add Tag 2112 & lt; / Div & gt; //e.t.c. & Lt; / Div & gt; I have the following javascript: $ ('.popup-body-row'). Live ('click', function (event) {Var popuproid = event.currentTarget.id // post server to be left}}; This popup gets the ROID, but does not get the initial element to associate with popupROM. I can create popups so that the ...

css - IE6 Fixed Positioning -

I have to fix a footer below the viewport. IE 6 has problems - and yes, it should work in IE 6. This is not my call, too much. Use it: div # footer {width: 1020px; Status: Completed; Top: expression (0 + ((e = document documentElement.scrollTop)? E: document.body.scrollTop) + 'px'); Left: Expression (50% + ((e = document.documentElement.scrollLeft)? E: document.body.scrollLeft) + 'px')}}} in my IE6.css I can fix the footer at the top of the page. But if I switch it to: div # footer {width: 1020px; Status: Completed; Below: Expression (0 + ((e = document.documentElement.scrollBottom)? E: document.body.scrollBottom) + 'PX'); Left: Expression (50% + ((e = document.documentElement.scrollLeft)? E: document.body.scrollLeft) + 'px')}}} this is a mistake Am I implementing the expression function to decide under the port? Thank you! Do not use the expression section This page is slightly slow Can present from and behave strangely. Someti...

Problem using PHP imap functions -

I am trying to create an email message parser for our site if I receive a message from a specific email address, So what I am going to do through the message I save the attachment to attach. This is just the preliminary exam, though, I am running into problems, see comments below. & lt ;? Phcho echo "Loading ...". "& Lt; br / & gt; \ n"; $ MailUser = "help@mysite.com"; "User = $ MailUser" resonate "" & lt; Br / & gt; \ N ";; $ Mailpass =" mypassword "; echo" pass = $ mailpass "." & Lt; Br / & gt; \ N "; // It has to be used because we have SSL on site and regular port 110 $ mailhost =" {localhost: 995 / pop3 / ssl / novalidate-cert} "does not work; echo" host = $ mailhost " . "& Lt; Br / & gt; $ Mailbox = imped_open ($ mailhost, $ mailuper, mailport) or die ("& lt; br / & gt; phalade!" .imap_last_error ()); $ check ...

Can TFS Pending Changes show files that are truly changed like SourceGear Vault? -

I am using SourceGear vault for some private projects and team foundation server for work projects. One thing TFS is missing is a simple feature that is checking it in Walt's dialogue window. In the vault client, you can see if the checked file has been checked from the previous version. . Focus on the column "Details"? It tells you that there is a difference as it is a super assistant if you have to see a complete project because you are going to re-generation the code, I will check my class library project and then I will rebuild your codemeth templates. Only some specific files need to be changed when I see a pending check-in screen, I think the files actually changed And I can compare the effect to see. So ... Can TFS do this? Maybe there is a third-party tool that will do this for me? Is there any TFS SDK or Power Tools that I want to meet anyone want to make it? You can run this command in Visual Studio Command Prompt. / P> tfpt uu / noget / r * ...

git svn - How to push from an often rebased git-svn repo -

I do all my daily work through GIT-SVN, queue the investigators and resize it like a madman: ) To do this, I often queue up to two days (I know TISK TISK) to do this, and it bothers me a bit that its only one place. If I was not using git-svn and was rebooting every time, I would push my computer into other changes and if I do some stupid and loose data cloning it. You can have your own remote copy stomp completely deposit a bare repo in the dropbox One way to do it is to push it and when you have rebased, push - force

c# - IWebBrowserApp.Navigate() How to send Post Data -

I would be very happy if someone could show me a good example of how to send postal data with the navigating method. Available from SHDocVw.IWebBrowserApp . Consider for example. We should have gone to the page: And the values ​​of the named input field should be sent to: Username and password. Edit I'm trying to get native Internet Explorer version 7 or higher with my C # app, available on Windows OS, a specific To send an HTTP request to the URL, the HTTP response handling the server side page using a user's username and password. With the IWebBrowserApp and navigated method, I am able to open a new window / Internet Explorer instance and it can be found on a specific page (local or web ), And then specify POST data and custom headers but the main problem is that I do not know how to write your data in the POST request made by the browser. I would appreciate the help. How did I get an order for IE to open web pages and send some POST data? ...

asp.net mvc 2 - Passing multiple checkbox values to action with Jquery -

I have a problem that is driving me sitting. I have a page that generates on the basis of search, a list of checkboxes within the page is also a dialog box that is designed to suppress a button. What I'm trying to do is get the value from the checkbox and pass them into a controller action which then partially gives the dialog. The problem I am experiencing is that I am getting the value from the checkbox, but they are going to take action in the controller. Not sure what I'm missing. I'm using jquery script var create_dialog = jQuery ("# ​​main div # list_dialog"); // AddToList is a button to send the values ​​of $ $ ("# AddToList"). Live ("click", function () {var myData = new Array (); var i = 0; $ ("Input: checkbox [@ (name = 'id']"). Each (function () (if ( It.check) {myData [i] = this.value; i ++;}}); create_dialog.load (Jurat.Path.createActionPath ("list", "list value"), {id: myadata}, f...

SQL Reporting 2008 Multiple tables repeating on each page -

Ive got a report containing 2 tables, Table1 & amp; Table 2. Table 1 can have 5 rows and then need to continue on the next page. The table 2 that sits under Table 1 should also be shown on the next page. Any indication can be given to

Make Groupbox's controls readonly when is radiobutton clicked in vb.net -

I have several textboxes inside a group box, so when the radio button is clicked, I want to do it, it is possible, and again click on another radio button again I just want to go wrong in vb.net to read. "post-text" itemprop = "text"> Add code to the onclick event for your radio button that sets your groupbox. This control should be done only for reading.

curl - php replacement for safe_mode -

I am new to learning PHP and so I have installed the latest version (5.3.3) and have written some code I have participated in this error: PHP warning: curl_setopt () [function.curl-setopt]: CURLOPT_FOLLOWLOCATION can not be activated when security_mode is enabled or an open_basedir C: \ Rush \ Dev \ personal \ Numina.Framework \ Development \ PHP Library \ Numina.Framework \ clsHttpUtil.php on line 47 When I look at the document for safe_mode it tells me that Y Like why was not like it and I can do to fix this error? safe_mode were good intentions, but it was unevenly implemented It was disliked because it caused more problems than the solution, and there was no general security solution. You can correct your error by closing safe_mode , and now better (such as the Fastcgi, Suxack, Crites, Jail, VPSS ...) applications get better protection There are ways. Do not consider your code to believe that its use or clutter Please note that safe_mode is removed as PHP...

java - Final keyword in for statement -

I was reading some code on the web and fell on these lines (Java): Private list & lt; String & gt; Values; For [...] (last string str: value) {length + = context.strlen (str); } What is the benefit of declaring a variable for loop? I thought the variable specified in the loop was already read (for example, in the example given above, for example 'str' can not assign something). thx What is the benefit of declaring one Variables in Variables for Variables? There is not much in a small piece of code, but, if it will help to avoid changing the context during looping. For example: for (string s: value) {computeSomething (s); ... here's dozens of lines ... s = s.trim (); // or worst = getOtherString (); ... second-class compilation (s); } If you do not make the last use, then the last line other computation might possibly use a different value, which was defined in recurrence and While presenting a micro bug, while reading the second code, ...

c# - Creating an Executable Script which accesses aspx form components and runs function -

Hi, I have created and in which a SQL database has a virtual gridview, I created a function in which the gridview was converted into an axle file. And it was stored on the server. I just want to know how I can write an executable script (which I will set to run at a certain time, Gridview can access gridview and enter the epx file containing gridview. And the ConvertTioxcel () function is located in .cs file that is connected to an .aspx file and then close. Thanks, Fernando Diaz If it were mine, then I will separate the code that retrieves the data, its class library project in gridview and excel processing, then with that DLL, the createa console application that calls those functions. You can schedule a window service to execute .exe. Specifically to answer your question. You can create a console application and create a HTTP webb T. The page needs to be requested using the Stable Wide Men (string [] ARG). {// Prepare the web page that you are asking for HTTP web...

scala - "+=" will reassign or not? -

निम्न कोड देखें: val नाम = सेट ("माइक", "जैक ") नाम + =" जेफ " एक त्रुटि होगी: त्रुटि: वैल के लिए पुन: असाइनमेंट मैं कुछ पुस्तकों में देखता हूं, यह कहा है कि + = वास्तव में एक विधि है, और कोड हो सकता है: val नाम = सेट ("माइक", "जैक ") नाम। + = (" जेफ ") यदि + = एक विधि है, तो यह" नाम "क्यों निर्दिष्ट करेगा? scala.collection.mutable.Set है + = विधि तो वैल या var के बावजूद, आप केवल अंतर्निहित सेट पर एक विधि का उपयोग कर रहे हैं। लेकिन scala.collection.immutable.Set में कोई + = विधि नहीं है, लेकिन + विधि है। + = स्काला में विशेष अर्थ है; इसे इस तरह लागू किया जा सकता है, नाम = नाम + "जेफ" और चूंकि यह एक val 'names' के लिए पुन: असाइन किया गया है, कंपाइलर त्रुटि की रिपोर्ट कर रहा है। उदाहरण (+ लागू किया जाता है और पुन: सौंप दिया जाता है + =) की जगह वर्ग टेस्ट (num: int) {def + (n: int) = नया टेस्ट (num + n); ओवरड्राइड def toString = num.toString} परिभाषित वर्ग test val f...

c# - A question about AlphaBeta algorithim -

I have experienced Alphabeta algorithms with my old chess engine and now I am trying to write new engine and I It seems that algorithm encounters beta cut off but in my opinion, if I do not use compressed windows then it should never be. am I wrong ? I am using int.maxValue for Beta and -int.MaxValue for alpha, which can be the reason for the beta cut-off? Edit: The full code is here. Public results search (intax display) {int alpha = -int.MaxValue, beta = int.MaxValue, ply = maxDepth; Var Bestline = New Stack & Lt; Move & gt; (); Var score = alpha beta (alpha, beta, ply, bestline); Return new results (score, bestline); } F Alphabeta (int alpha, int beta, int ply, stack and lieutenant; move & gt; bestline) {if (ply & lt; = 0) return evaluation. evaluation board); Var Moves = Board. Generatesmows (); Fresh (various steps in tricks) {Board.MakeMove (move); Eval = - alpha beta (-beta, -lmfah, fly-1, bestline); Board.TakeBackMove (move); If (eval> = beta) {ret...

iis 7 - WCF Performance Slow for the first call -

I have a WCF service installed on IIS7. I noticed that the first call for my service is always very slow. Fast & amp; Acceptable If for some time no call is made in service, then it goes back to sleep mode. Then the next call takes a long time again. Any remedy for this problem? is due to process management on IIS when there is no call for some time IIS releases release And stops the process. This is the reason why you can see that it is slow for the first request and the request after a long delay. Because for the first time or after long silence, the IIS loads everything from scratch. GIT compliant runs and so on ... Also note: When you are hosting WCF services on IIS, WCF services enjoy all the features of ASP.NET applications. You should be aware of these features because they can create unpredictable behavior in the world of services. One of the key features is application recycling, including application recycling and recycling process. Through the IIS manageme...

How to write a Sql statement without using union? -

I have a SQL statement like below. How do I add a line (code = 0, dead = 1) to the result of this SQL statement without using the union keyword? Thank you. Select the code, content from the content where the content ExpireDate = '2010/07/23' You always create a view for your table create visual content_selected as code, character, content union Choose end to '0', '1', tap; Select code, WHERE end date = '2010/07/23' or code = '0' from content_view;

mfc - How can I get file extension description through CFileDialog -

The cylinder dialeg file dialog (wrong, // we save as file dialog. _T ("*. TXT "), // Save as default format. _T (" Hello "), OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, _T (" text files (*. *) | * .txt | Excel files (* .xls) | * .xls | Excel description files | (* .xls) || "), this); // returns "xls" to me Const CString File Extension = fileDialog.GetFileExt (); // give me "excel files" or "excel details files" ??? What is the correct way to get file extension details for me? Are you trying to retrieve the details you sent to the API ...? You can retrieve it from the internal OPENFILENAME structure by using Member CFileDialog :: GetOFN and you can see the lpstrFilter member of the structure, but you have to manually purge the string. But API SHGetFileInfo should be able to recover registered file type details for operating system. Pass the "* .xls" (or the extension you want) to pass it nearby.

c# - The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state -

प्रयास करें {स्ट्रिंग एंडपॉइंट अदद = "net.tcp: // localhost: 8000 / MyService"; नेट टीसीपी बाइंडिंग tcpBinding = नया नेटटैंपबैंडिंग (); TcpBinding.TransactionFlow = false; TcpBinding.Security.Transport.ProtectionLevel = System.Net.Security.ProtectionLevel.EncryptAndSign; TcpBinding.Security.Transport.ClientCredentialType = TcpClientCredentialType.Windows; TcpBinding.Security.Mode = SecurityMode.None; एंडपॉइंटएंड्रेस एंडपॉइंटएड्रेस = न्यू एंडपॉइंटएड्रेस (एंड पॉइंटएडद); कंसोल। WrightLine ("::::: डब्ल्यूसीएफ सेवा डेमो :::::"); कंसोल.प्रकाश रेखा ("कनेक्ट करने का प्रयास:" + एंडपेव्यूएंडआर); ChannelFactory & LT; IServices & gt; डब्ल्यूसीएफ = नया चैनलफैक्चरिंग & lt; IServices & gt; (टीसीपी बाइंडिंग, एंडपॉइंट एड्रेस); IServices proxy = WCF.CreateChannel (); (WCF को IDisposable के रूप में उपयोग करना) {Console.WriteLine ("से कनेक्ट:" + एंडपेव्यूएंडआर); शब्दकोश & lt; लंबा, DATALINK & gt; DicDataLink = प्रॉक्सी .getDataLink (); L...

Java platform: How to manage Configuration Settings for each Developer -

इस प्रश्न से प्रेरित: मैं अनुप्रयोग कॉन्फ़िगरेशन सेटिंग्स का प्रबंधन कैसे कर सकता हूं इन्हें प्रत्येक डेवलपर के लिए स्रोत नियंत्रण में पर जावा प्लेटफॉर्म पर नज़र रखने के बिना सेट किया जाना चाहिए उदाहरण के लिए, यह एक ऐसी चीज़ है जिसे हम अब कर रहे हैं: वर्तमान में, प्रत्येक डेवलपर फ़ाइल का संपादन करता है और उसकी सबसे अच्छी कोशिश करता है कि वह प्रतिबद्ध न हो स्रोत नियंत्रण में फ़ाइल हमारे में से कई पैच (अंतर फ़ाइलें) हैं जो हमारे स्थानीय डेटाबेस के खिलाफ परीक्षण करने से पहले कोड पर लागू होते हैं और कोड को चेक करने से पहले पैच हटाते हैं। अन्य डेवलपर संपादन और हाथों से कॉन्फ़िगरेशन फ़ाइलों को वापस लौटाते हैं। दुर्भाग्य से, पैच को पुराना समय से मिलता है। लोग कभी-कभी प्रतिबद्ध होने से पहले अपने स्थानीय विन्यास को वापस करने के लिए भूल जाते हैं। मेरा प्रश्न, हालांकि, डेटाबेस कनेक्शन सेटिंग्स तक सीमित नहीं है। मैं उस समाधान को खोजना चाहूंगा जहां हर डेवलपर स्रोत विनियमित फ़ाइलों को बदलने के बिना एप्लिकेशन कॉन्फ़िगरेशन सेटिंग्स को ओवरराइड कर सकता है यदि हमें जिस तरह से क...

SQL Server 2008: Modify xml replacing an attribute value with a value of a column -

मेरे पास एक टेबल है: घोषित करें @ टेबल तालिका (एक्समलपेर्ट xml, CNT int) XmlPart निम्न रूप का है: & lt; समूह गणना = "0" / & gt; मैं इसे सीएनटी कॉलम के मूल्य के साथ प्रतिस्थापित करके XmlPart को संशोधित करना चाहूंगा। यह वही है जो मैं कोशिश करता हूं: update @Table सेट XmlPart.modify ('/ / count =) के मान की जगह [1] sql के साथ: स्तंभ (सीएनटी)') लेकिन पार्सर मुझे समझ नहीं आ रहा है .. क्या तालिका स्तंभ के साथ एक XML का एक विशेषता (या नोड मान) को स्थानांतरित करना संभव है? आप इसे लगभग सही प्राप्त कर सकते हैं: -) update @Table सेट XmlPart.modify ('replace आपको कॉलम नाम को sql: column कॉलम में डाल देना होगा। कोड> डबल कोट्स में ... देखें।

data structures - Advantages of using union when same thing can be done using struct - C -

I have difficulty understanding the use of union in C. I read many posts here But then, none of these tells about why the union is preferred when only one thing can be obtained by using a structure. As an example quoted from Q & R , as if a compiler symbol can be found in the table manager, suppose that a continuous int, float or a Character Indicators The value of a particular constraint should be stored in the appropriate type of variable, yet it is most convenient for table management if the value is in the amount of storage and regardless of its type in the same place. is stored. The purpose of this union is a single variable which can legally hold one of several types. The syntax is based on the structures: union u_tag {int ival; Float Peal; Four * average; } U; will be used if (UTP == INT) printf ("% d \ n", u.ival); If (UTP == float) printf ("% F \ n", U. Fawley); If (UTP == STRING) printf ("% s \ n", u.sval); Else printf (...

flash - SampleDataEvent.SAMPLE_DATA never fires in Flex? -

माइक्रोफ़ोन। AddEventListener (नमूनाडेटाइवेंट। एसएमपीईडीएटीए, मिल गया है माइकडेटा); इस घटना को मिल गया है मिकडेटा कभी नहीं निकाल दिया गया है .. हालांकि मैं डिस्पैच ईवेंट का उपयोग करने की कोशिश की, लेकिन वह रिक्त बाइटअरे वापस आएगी .. हालांकि Flashcs5 में समान कोड काम करता है ... आयात करें flash.events.SampleDataEvent ; आयात फ़्लैश। मीडिया। माइक्रोफ़ोन; फ्लैश आयात करें। मीडिया। ध्वनि; फ्लैश आयात करें। [बिंदेबल] निजी वैर माइक्रोफोन लिस्ट: ऐरे; सुरक्षित माइक्रोफोन: माइक्रोफ़ोन; संरक्षित var है रिकॉर्डिंग: बूलियन = गलत; संरक्षित वारा ध्वनि रिकॉर्डिंग: बाइटअरेरे; संरक्षित var ध्वनिआउपुट: ध्वनि; संरक्षित समारोह सेटअप माइक्रफ़ोन लिस्ट (): शून्य {माइक्रोफोन लिस्ट = माइक्रोफोन। नाम; } सुरक्षित फ़ंक्शन सेटअपमिक्रफ़ोन (): शून्य {माइक्रोफ़ोन = माइक्रोफोन। मेटाफ़ोन (comboMicList.selectedIndex); माइक्रोफोन। रेट = 44; } सुरक्षित फ़ंक्शन प्रारंभ करेंमाइकरेकॉर्डिंग (): शून्य {isRecording = true; ध्वनिरचना = नया बाइटअरे (); माइक्रोफ़ोन। AddEventListener (नमूनाडेटाइवेंट। एसएमपीईडीएटीए, मिल गया माइ...

c# - Overlay two bitmap images in WPF -

I have to overlay two images (say, JPEG and PNG with transparency). Input: - JPEG image - PNG image Output: - JPEG image is applied with PNG. What is the best way to do this? Thanks in advance for answers and hints! Cheers You can use DrawingGroup like this: var group = new DrawingGroup (); group. hair. Add (new image (new bitmap image (new urie (@ "... ... some .jpg", uricind. Assetolyt), new rect (0, 0, ??, ??))); Group.Children.Add (new image image (new bitmap image (new urie (@ "... \ Some.png", uricind. Esoluit)), new rect (0, 0,? ,,?))); MyImage.Source = New Drawing Image (Group);

list - What is a DList? -

I tried googling for this but all I had found was stories about minor celebrity. Looking at the lack of document, what is it? This is a separate list, P> Scala & gt; List (1, 2, 3), list (4, 5, 6), list (7, 8, 9)) 1: list [int] = list (1, 2, 3) L2: list [int] = Listening (4, 5, 6) L3: List [int] = List (7, 8, 9) Efficient prepending: Scala & Gt; L1 ::: L2 ::: L3 Regi 8: list [int] = list (1, 2, 3, 4, 5, 6, 7, 8, 9) Inadequate insertion makes it an intermediate list (L1 ++ L2), then ((L1 + + L2) ++ L3) Scala> L1 ++ l2 ++ l3 // Disable Risk: List [int] = List (1, 2, 3, 4, 5, 6, 7, 8, 9) Deli Store append, and only need to create a complete list, is effectively implementing: scala> List (L1, 2, 3, 4, 5, 6, 7, 8, 9)

sql - Why is it that the IsEqual (=) operator is working faster than the IsNotEqual (<>) operator in Oracle? -

Like the title, if anyone has an answer then I want to know. I've been googling, but did not get a direct answer Example: This works SELECT1 (*) to Table 1 TB1, Table 2 TB2 Where TB 1.Field 1 = TB 2.Table2 This may take time SELECT COUNT (*) to Table 1 TB1, Table 2 TB2 Where TB1 Field 1 & lt; & Gt; It is important to realize that SQL is a declarative language and is not mandatory. One. You tell that in which situation you want to fit your data and not how those comparisons should be performed. This is the job of the database to find the fastest way to give you an answer (taken by a task). This means that your query appears that small changes can result in a wildly different query plan, which In turn, results in a wildly different runtime behavior. = Comparison can be changed, adapted and customized in the same way as easily joining the two areas. This means that general indices can be used to execute queries quickly, possibly reading actual data and ins...

git - TortoiseGit - Slow Show Log Revision Query -

वर्तमान में हमें TorotiseGit - Show log के साथ समस्या है / दूसरी ओर जीआईटी जीयूआई संशोधन को सभी-सबसे तुरन्त दिखाता है। यद्यपि जीआईटी जीयूआई को संशोधित करने के लिए संशोधन पर डबल क्लिक की आवश्यकता है। हमारे पास 300,000 फाइलों के साथ एक रिपॉजिटरी है और हाल ही में 3000 पुनरीक्षण के पहले, व्यवस्थापक ने मुख्य निर्देशिका में से एक के एसवीएन चाल किया था। हां, इसका मतलब है कि सभी 250,000 फाइलें एक डायरेक्टरी से दूसरे स्थान पर ले जाएंगी। यह धीमा होने का कारण हो सकता है। क्या टॉरोट्सगिट को बड़े एसवीएन रिपॉजिटरी से निपटने की स्थिति में तेजी से लॉग परिणाम दिखाने का एक तरीका है। जवाब है कि git में प्रति फ़ाइल इतिहास नहीं है, इसलिए यह एक फ़ाइल इतिहास बनाने के लिए संपूर्ण रिपॉजिटरी को पार करता है विशाल भंडार के साथ यह एक समस्या बन जाता है।

ios4 - can i make an iphone-app NOT deletable, like the preinstalled ons or some cydia-apps? -

First: This app never accesses on the appstore, so there is an indication of the restriction of apples. The app should be for display only, but I do not want any person playing with the device, can not remove it. Some apps in Cydia show, it is possible. Another thing: I only read something about OS 4-FEATURES, because by this time there is an ios4-problem with this project. But: Can I write software so much that it completely ignores the home button? So that the client gets a chance to play around, and the software can not be found (unless he probably does not have any gesture or search). If the device has been jailbreaking, then the user can do anything, in which the "undeletable" application is removed If the device is not a jailbreak, then perhaps you are not going to be able to app any settings.

Where can I download Source Code Of "OpenGL"? -

मैं सोर्स कोड "ओपनजीएल" कहां डाउनलोड कर सकता हूं? यदि आप देखना चाहते हैं कि रास्टरइज़र (स्क्रीन पर बहुभुज को प्रदर्शित करने वाली चीज़) सॉफ्टवेयर में किया जाता है, एरिक के सुझाव का पालन करें और mesa3d या google "rasterizer" की जांच करें। यदि आप देखना चाहते हैं कि हार्डवेयर पर रेस्त्राइज़र कैसे किया जाता है, तो मुझे डर है कि आप जिस चीज का उपयोग कर सकते हैं वह है। यदि आप देखना चाहते हैं कि कैसे एक 3 डी इंजन किया जाता है, ओग्रे, इरिलिचट या किसी अन्य पर एक नज़र डालें। यदि आप जानना चाहते हैं कि जब आप जीईएफर्स पर ग्लोड्राअरे को कॉल करते हैं, तो आप नहीं कर सकते हैं। ड्राइवर मालिकाना हैं वे ग्राफिक कार्ड को अधिक या कम अग्रेषित करते हैं, लेकिन यह एक सरलीकरण है ... उदाहरण के लिए, एक सामान्य डायरेक्टएक्स कॉल 10000 से अधिक सीपीयू निर्देशों को लेता है।

java - short regex datetime split -

I am trying to split the following: 2010-07-30 10:10:50 And I would like to end with them only: 2010 07 30> usually just with date , P> How can I remove the last part + space? Thanks a lot! ps, now i need it but in php then i need to implement it also in java The answer that has been deleted now works like a magic, / [-] / It has been run in PHP and probably will be in Java also.

Structure constructor in .net: any overhead? -

Regarding the use of constructors; Are those two code blocks similar in display? with constructor for point of point for point I = integers = 1 to 1000 pt = new point (i, i) next Not Manufacturer: As an integer for DM point point = 1 to 1000 pt.X = i pt.Y = i Next First one is less, especially if the constructor There will be more logic, but is it wise to use it in the loop (say that Game Loop has been removed from 60 seconds per second)? Or are they two machines compiled for the same machine code? The time of this code is not actually possible. If you run the release version of the code, you will only get realistic timing results. Whichever kicks in the JIT adapter and it is quite sensible that "PT" is not actually used anywhere, all these codes Which specifies it you will end up with the exact same time and still do not know anything. To actually throw the assignment code to the JIT adapter, you have to do something with "pt". Such as: co...

iphone - NSOperationQueue returning __getNextReady bad access on resuming -

यहाँ मैं कैसे कोड शुरू करता हूँ: m_searchTimer = [[एनस्टीमर टाइमरविथ टाइमइनरवल: 0.5 लक्ष्य : स्वयं चयनकर्ता: @ सिलेक्टर (लॉन्च अनुरोध) उपयोगकर्ता जानकारी: शून्य दोहराता है: गलत] बनाए रखना]; [[NSRunLoop mainRunLoop] addTimer: एम_searchTimer forMode: NSDefaultRunLoopMode]; तब में - (शून्य) लॉन्चरॉइज़ेस्ट विधि: - (शून्य) लॉन्च अनुरोध: (NSTimer *) टाइमर {ASIHTTPRequest * req = [[[ M_twitterQueue संचालन] lastObject] कॉपी]; [M_twitterQueue रद्द सभीऑपरेशन]; [M_twitterQueue addOperation: req]; [एम_टीविटर क़्यूयु जाना]; } एक बार मैं पहुंचता हूं - (शून्य) जाना; विधि, मुझे बुरा उपयोग मिलता है किसी भी विचार का स्वागत किया गया है मुझे समस्या मिल गई है। एएसआईएचटीटीपीआरईईईईईटी का उपयोग करते हुए नामित एक @ प्रॉपर्टी है shouldCancelAllRequestsOnFailure // डिफ़ॉल्ट हाँ है इसे छोड़कर, आप जोड़ते हैं इसे रद्द करते समय एक अनुरोध होता है जो कि कतार दुर्घटना करता है। इसे चालू करके समस्या को हल किया जा रहा है।

sharepoint 2010 - Unable to update a list item from a workflow task in C# -

I'm not getting any exceptions, but the code below is not just working. Any ideas? {{SPListItem item = web.lists ["NewHireFormsLibrary"]. Item [WorkflowProperties ("The" Field 1 "]," [1 field 1]], "" ["field 1"] = "Gotcha !!!"; item.Update (); LogHistory ("Information", "Workflow Indexing Complete.", ;} Hold (Exception Pre) {LogHistory ("Error", ex.Message, ex.StackTrace);}})}} It seems that you are not referring the field to the internal name, Regions must be referenced when they arrive with the indexer of SPListItem . Item ["Field_x0020_1"] = "Try something like Gotcha !!!" ; and it should work should be noted that the internal names do not have spaces and their hex characters like above are replaced by string.

asp.net - Fastest and efficient way of creating file in .NET -

I have an array list containing 30000 items, what is the best way to create a text file on a fly from an ASP Is the page Currently I am using the code below, but I am repeatedly excluding it with larger data, new file stream (sFileName, FileMode.Create, FileAccess.Write ) As file author using the FileStr as the new StreamWriter (fileStr) author. WriteLine ("Error Message") for D as integer = ar.Count - 1 to author. WriteLine (ar (d). Ostring ()) sErrMsg + = "& lt; tr> & lt; / gt; Next author. Close () Close the use of Android File Protection () Using Ending SErrMsg seems to be a string variable you actually want to change it into stringbuilder.

vba - How to use the "post" parameter with the Excel's 2003 hyperlink "follow(...)" method? -

If you follow the method for hyperlink See Help> Object, you will see that it accepts the post as a way to send data. How do I fill out the additional information string or byte array? How should I format the data? What is the limit for the data to be sent? Please see below: Expression. Follow (Nvindo, Adystystry, Extroindo, Method, Header Info) Method Specify the way the optional variant is attached to ExtraInfo The coordinates of an image map, the contents of a form, or a FAT file can be one of the following MsoExtraInfoMethod constants to ExtraInfo name Method optional variants. Specifies the way ExtraInfo is attached to one of the following MsoExtraInfoMethod constants msoMethodGet ExtraInfo can be a string that has been added to that address msoMethodPost ExtraInfo form of string or byte array Posted in If you are typing GET Formatted as. (msoMethodGet, "/ questions / 3354606 /") So if the link www.stackoverf...

c++ - Reference-counting of std::string -

After I'm looking into the code for basic_string (that comes with G ++ 4.2 .1). _CharT * _M_grab (constant: copy creator a grab () use "grab" a copy of a string (also increase its reference number) Does _Alloc & __alloc1, constants _Alloc & amp; __alloc2) {return & _M_is_leaked (!); & Amp; __alloc1 == __alloc2)? _M_Recopio (): _M_clone (__alloc1); } This only increases the reference-count if the allotment is equal to two strings - it is understandable. However, the copy maker is: basic_string (constants basic_string & amp; __str): _M_dataplus (__ str._M_rep () -> _M_grab (_Alloc (__ str.get_allocator ()), __str.get_allocator (__str.get_allocator), __str.get_allocator ()) {} The first attacker that has passed for _M_grab () is a copy of the second. Why? The only way that the operator == () for allocation can be false if the user is using the custom allocator though, even if it is true So, would you think that a copy allocatio...

How to Separate the Jquery response which contains STD_ERROR -

$। Get ("/ student / studentnumber.php", $ ("myform")। Serialize () , फ़ंक्शन (डेटा) {चेतावनी (डेटा); यदि (डेटा.sबस्ट्रिंग (0,7) == 'STDERR') {//$ ("######################) {//$ ("#MYSPAN").text(data);}}}; उपरोक्त स्क्रिप्ट में मुझे "Studentnumber.php" से आने वाला PHP प्रतिसाद है। अगर "सही संख्या" दर्ज की जाती है तो "डेटा" फ़ील्ड में "छात्र नाम" शामिल होता है। एक गलत संख्या दर्ज की गई है, वह "एसटीडीईआरआर: एसएनओ नॉट वैलआईड" को प्रदर्शित करता है। अब यहाँ मैं एक गलत नंबर दर्ज होने पर केवल "एसएनओ वैलआईड" को नहीं भेजना चाहता। मैं "एसटीडीईआर:" / Div> आप बंद हैं। .substring () का सूचकांक कॉल 1 से बंद है। इसे आज़माएं: अगर (data.substring (0,6) == 'STDERR' ) {$ ("# MYSPAN")। पाठ (data.substring (7)); } और {$ ("# MYSPAN")। पाठ (डेटा); } अपडेट: यदि आप $। Trim () का उपयोग करते हैं तो यह उत्तर अभी भी काम करेगा, अतिरिक्त सफेद से...

How to know what elisp files are read (I need this for debugging purpose)? -

Assume I want to check whether the hello.el file is read or not. (defun hello) "test" (interactive) (message "hello, world") (format "hello") (give mouth) ("Hello" format), but it does not seem to work, how do I know that an alias module is read. You should use message instead: Generates just a formatted string, such as you have (+ 1 2) (message "hello") / Code> which add two numbers. Nothing has been done with the result, which is why you have not seen it. If you are familiar with C, then it is like having a line sprintf (s, "hello"); / * This generates no output * / Note: If you have many of these, you may need to customize the variable is.

php - how to handle online status. guest, users etc -

How many users and guests are the best way to keep track of online? Fun and creating forum to learn Now I have 2 fields in the user table named is_online and last_access_time I if current time 5 minutes or more that is more than last_access_time, it is at zero I and if I set the signed user refresh browser to 1, But what about guests? I keep an eye on how many guests are also One more thing that is really good is to show what the user is watching. And on the page, for example Forum Thread, 5 guests, Homer and Shomar are looking at this page. But how should I structured it? Hmm, maybe I should have another question for this. I do not know what I should do What do you suggest? I'm using cookies for this. Set a cookie when user logging in (first make sure no one exists) to make sure. The easiest way to generate a unique ID for that user is to haveh through the current time from your IP. $ id = md5 ($ _ server) ['REMOTE_ADDR']. time ()); Store that...

caching - New-Cache parameters for AppFabric Cache when storing ASP.NET Session State -

What are the "optimal parameters" for creating AppFabric cache when you store session state in the cache? PowerHell Command Line: New-cache [-Keyname] Cache name: & lt; Removal:? Expirable: TimTavoid:? Force:? Enable notifications? Because I do not want my sessions to be removed until the session code or session expires ... For the removal, I am "none" And seems to be receivable, I would think wrong. I have tested and called the session. External objects remove from the cache. I have also tested to check whether the session object has also been expanded by expanding my session, in the cache. It works in the "right" way. Confirms my findings from the AMS staff. 2) Since your question is in the context of session status, when you use the session state provider, the session object is stored in the cache, which will be used for the time period of ASP.NET session. Equals happen with time. Each time the session is del...

c# - Nested Repeater -

I have a display that should be a bit more dynamic than what I am using and I do not quite think which answer Need it, find it Savings with customer product (or so) with savings product (or so) savings on the customer (and so on) I know every sector Always have a minimum, someone said that use nested rapper or something I was looking around and do not know how to use a nested criminal I am on a deadline and by the time I do some work He can not really play with things Is obtained. What should I do to use asap control? One example would be nice but I need help in the right direction. I am using SQL, but I am getting the data through the link. Nested rippers are very easy, just throw one into your item template, and your main repeater's on the main notebook Do the following in the event if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) {DataRowView line = (DataRowView) e.Item .DataItem; Repeater nested repeater = E. ITEM...

apache - Scripts on non-standard ports -

How do you install scripts on a non-standard port (ports other than the default 80) Preferences How to use CPANEL port 2082 Apache listen or Use VHost tells the reason for linking Apache with additional ports.

c++ - Raw Binary Tree Database or MongoDb/MySQL/Etc? -

I am archiving the terabytes of information, before the index, and after compression methods. Should I need a code using a binary tree database manually, using some sort of sort file etc., or using some things like mangodibi or some things like MySQL? I'm worried about every record (like) with things like MySQL and other DBs. I also know that some databases also allow for compression, but they only convert tables to read. These tables / records need to be accessed and overwritten with new data for a long time. I think if I was writing some code in C ++ then I was able to keep the record cost at least What should I do? These non-relational databases that are becoming popular these days, which manage large-scale data management Specialize in Check out or, both of them are in the Apache project.

delphi - String Truncation on Transfer to ClientDataset -

I am using DBExpress driver from Firebird 2.1, DevArt and Delphi 2010. Some of my reports that worked with Delphi 2006 stopped working and an error message was shown which was "arithmetic exception, numerical overflow, or string truncation". My code encountered an error at this point: cds.Data: = dsProvider.Data; I found a place in my SQL statement, due to error: iif (ytd.hPayType prefix; -1 .scode, 'net') sPayType Tcdod is a custom (10) field. My conclusion is that the query returns the data to the dsProvider and when the dsProvider.Data cd. Data is passed, the CD component determines the width of the field that it receives. If I change "IIF" to a case statement, then I get the same error message. I have been able to work on this issue: CAST (iif (ytd.hPayType & lt Varchar (10) sPayType as;;> gt; -1; t.scode, 'NET') Since it was working in Delphi 2006 without CAST, I think That new behavior is due to an update of TClien...

c# - Can I use a full version of Visual Studio 2010 to develop Windows 7 Phone Apps instead of the download package -

With the Visual Studio 2010 Professional, Expression Blend 4 has already been filled on my development machine. Some read that he says about developing an app for Windows 7 phones, I need to download VM_web.exe file, which includes Visual Studio 2010 for phones and emulators as well as a lower version of Expression Blend. What I would like to do, to install this package and to jeopardize any kind of corruption is not necessary on my computer to do this at a time if it will give it to me, but instead of developing the app, my own Use VS2010 and Blend. What does it mean that I need some kind of plug-in and emulator. I have not already included my VS2010 and Windows 7 Silverlight templates. Can I do this or do I have to set a completely different VM to develop the Windows 7 Phone app and load this package? You can just fix on the machine with WP7 Dev Tool VS2010. The installer will install WP7 VS Express, and will also register the WP7 tool with VS2010, so that you can develop W...

asp.net - Emitting unencoded strings in a Razor view -

As per ScottGu in his blog «HTML HTML XSS attack automatically by the default content emitted using a @ block Scenarios » My question is how can you output a non-HTML-encoded string? For simplicity, stick to this simple matter: @ {var html = "& lt; a href = '#' & gt; click me & Lt; / a & gt; // I want to emit the last string as a pure HTML code ...} This is my favorite view: @ html.Raw (" My paragraph text ") Source Phil hack razor syntax reference:

Entity Framework 4 - Code First not storing inherited table separate from base table -

EF code I have created a simple project with CTP 4. I have two classes in this project, which are inherited from each other Found in I want to store data in different tables, but the default of EF4 is to map / map these two organizations in the same table. .toTable () , I can change this behavior, but with this I have a side effect: when I receive a traditionally received object IF I am going to set some information in mapping, but I do not know. Fixed zero main string [] args) {Database.SetInitializer & LT; ZooContext & gt; (New RecreateDatabaseIfModelChanges & lt; ZooContext & gt; ()); (ZooContext ctx = New ZooContext ()) using {mammals = new mammals (); Mam.NumberOfLegs = 4; Ctx.Animals.Add (m); // ctx.mammals.Add (mam) similar behavior ctx.SaveChanges (); }} Public Square ZooContext: DbContext {Public DbSet & lt; Animals & gt; Animals {receive; Set; } Public DbSet & lt; Blue & gt; Receive mammals; Set; } Protected Override Zero OnModelCrea...

PHP xml parser is cutting urls inside node -

Why the parser is cutting the URL on it: Inside the node: http://img844.imageshack.us/content.php?page=done&amp;l=img844/4783/php4dd.jpg After parsing: [done_page] => l = img844 / 8828 / php4e8.jpg private function _perre ($ result) {$ XMLparser = xml_parser_create ('UTF-8'); Xml_set_element_handler ($ XMLparser, array ($ this, 'startElement'), array ($ this, 'endElement')); Xml_set_character_data_handler ($ XMLparser, array ($ this, 'stringElement')); If (! Xml_parse ($ XMLparser, $ result)) {echo '& lt; Br> XML error: '.xml_error_string (xml_get_error_code ($ XMLparser)); 'Line resonance' .xml_get_current_line_number ($ XMLparser); Go out(); } Print_r ($ this-> parsed_results); Xml_parser_free ($ XMLparser); } Public Function String Element ($ parser, $ str) {if (strollen ($ str) gt; {$ this- & gt; precise_rates [$ this-> current_name] = $ str;}} Public Function Started Element ($ parser, $ name,...

c - UDP recvfrom call returns wrong port number. Why? -

I am playing with calls using 'recvfrom' and 'sendto' UDP; The problem is that the sin_port member of struct sockaddr is always wrong due to recvfrom? I'll post some source code but someone has already posted that question (with no replies) and I'm using almost the same code as it does besides, you can post this post. You can get more information about this problem in reading. Thanks in advance EDIT: I really think that number 2 can be the answer to 'number' trouble. How can I see it? Here are two possible reasons: You sin_port It is not changing the order before hosting / displaying the order of the Sin_port Network Endian comes in. It is that you can show the big endian to the port on the little Andian machine. Your customer uses a random source port. Therefore when your destination port is 6000, the customer's source port is chosen randomly. Recvfrom does not give you source IP address and source port number. No destination ...

php - Test if session is started -

How do you check whether sessions are started or not? This is not the way ... session_start (); If (isset ($ _ session)) {echo "sessions"> } And {echo "session closed "; } Session_destroy (); If (isset ($ _ session)) {echo "sessions"> } And {echo "session closed "; } Try it out: if (session_id ())

c# - ConfigurationManager - How to use connection strings with .NET 3.5? -

I see a great post about what I want to do here, This configuration manager asks to use the class. I can not reference the configuration manager class. If I am seeing system.dll, which I am using (which is v2.0.50727), there is no configuration manager. I am using VS 2008, and my project is set to be compiled as .NET 3.5. If I do this, string test = System.configuration.ConfigurationManager.AppSettings ["test"]; The message 'error 182' is not present in the name or name space name 'Configuration Manager' namespace 'System.configuration' (Do you have an assembly reference unavailable?) ' > Any thoughts? is part of the configuration manager system. Configuration Namespace By default it is not referred to in projects, so if any reference to GAC adds.

iphone - How can I escape slashes and quotes in Objective-C? -

मैं निम्नलिखित करना चाहूंगा [नियंत्रक setMessageBody: [NSString stringWithFormat: @ "& Lt; मजबूत & gt;% @ & lt; / strong> gt; & lt; br & gt;% @ & amp; br & gt; .articleDescription, self.articleURL] है एचटीएमएल: हाँ]; & lt; a href = "% @" & gt; हैलो & lt; / a & gt; > लेकिन मुझे यकीन है कि यह कैसे ठीक से भागने के लिए? बस का उपयोग करें @ ".... और अगर आप इसे प्रारूप में डालते हैं , या @ "& lt; a href = \"% @ \ "& gt; हैलो & lt; / a & gt; यदि आप इसे प्रारूप कोड में % @ का उपयोग कर शामिल करते हैं। % @ को केवल stringWithFormat: विधि का पहला तर्क में व्याख्या की गई है।

asp.net - How can one place DataBinding inline code inside of inline c# code? -

How can I achieve the desired effect? Here's the code: gt; & lt;% # Eval (container.detitm, "order xml");%> & Lt;%)) {% & gt; etc., which is placed inside the ItemTemplate inside TemplateColumn . In the CodeBehind page, I will tie a value into the OrderXml field, which sometimes NULL unfortunately I get compilation errors. Remove the bracket before eval: ...

How can I choose which version of a module to include dynamically in Ruby? -

I am writing a Ruby command line application which uses fileutils from the standard library Based on how the invite user invites the app, I include the FileUtils , FileUtils :: DryRun or FileUtils :: Verbose Would like to Since is included is private, however, I can not put arguments to choose the object in the initialize method (this was my first thought, then I could simply pass the information about the user's choice as a parameter of the new .) I have come up with two options that start working, but I either: Set a global variable in the name of the app on the basis of user's choice, and then Las including conditional in include: class Worker Case app :: option "File Utils :: Drain etc. in dry runs". Create sub-classes, where the only difference is that the version of FileUtils contains the appropriate one on the basis of user choice Select. FileUtils in class worker # End class worker in shared workarms :: Dryn & lt; FileUti...