Posts

Showing posts from August, 2011

.net - How to notify C# code from Azure database -

I am creating a WCF service (collar) for the Azure service (collar) of another third party service (ANTN) Calls async methods. Third party service calls callback methods of other WCF service (LISTNER) I hosted on Azure, enter service details in the database with caller status = pending. In the callback service (LISTENER), I am updating the status of the request as a complete / removal in the database. After LISTENER changed the value database, I want to inform my C # code Is it possible ??? How is it trying with reactive extensions for .NET (Rx)

asp.net - System.OutOfMemoryException -

I have a program written in asp.net from lucene.net. Firstly I am making an index with 28000 documents. Secondly, I am performing a search but sometimes there is an error (I think this error is thrown when there are many results) Important part of the code: dim hit hit = explorer Search (Query) Due to the result, the integer = hit Long () 'Ergabnis (Gross's Fear Hit)' ################### '####### Results #####' #### ###### trefferanzahl = Result if (result> 0) then integer such as dim h as DIM I = result - 1 redesigned array_results (h, 6) "array zoom reporting von den" failden "dim cellx Result for I = 0 as a new tableclay () - 1 step 1 as a dim tmpdoc document = hit.doc (i) 'error here is! Double = hit as the scoring score.core (i) msbx ( "2. Dockname:" and Hits. Array_results (i, 0) + = tmpdoc.Get ("doc_typ") array_results (i, 1) = tmpdoc ("title"); ("title")) array_pad (i, 0) = tmpdoc.Get (...

measurement - Measure data roaming traffic on Android? -

After Just back from Iceland a very good holiday, and data awaiting bill roaming from my phone company. I hope that as much as possible to restrict my traffic as much as possible, but I want to know in advance that I used a great app but it did not measure roaming data traffic at all. So I just want to make my own app to roam the data traffic. I have some booleans to start with (& amp;), but I'm sure how to measure traffic If so, then true then the question is not. How do I measure data traffic while roaming? (Something like API level 8 functionality that I am after, but API level 3). SmartPhone used is Samsung Galaxy i7500 (Android 1.6) thanx for your time! post = "itemprop =". Text "> method 1. parse" / proc / net / dev " my In the phone it appears: Inter. Find | Transmitted face | Bytes packet errs Drop FIFO frame compressed multicast | Bites packet errs drop FIFO colls carrier narrowed: 712 8 0 0 0 0 0 712 8 0 0 0 0 0 0 D...

objective c - libcurl authentication on iphone? -

Can I use the libcurl library in IPhone to authenticate anyway? Although libcurl is not provided by the OS, you can create your own static library (here description: ). Basic authentication is handled automatically. You only need to add a username: Password like URL: Do not forget to avoid a percentage of any reserved characters in the username or password. / P>

javascript - setTimeout and click -

$ (दस्तावेज़) .ready (function () {$ ("। Rshownews")। क्लिक करें (फ़ंक्शन ( ) {Window.setInterval (function () (ajaxselectrss ($ (this) .attr ("title")), 1000);});}); फ़ंक्शन एजेक्ससेल्टर्स (आरएसएसरल्वर) {var ajaxRequest; // अजाक्स संभव बनाता है कि चर! कोशिश करें {// ओपेरा 8.0+, फ़ायरफ़ॉक्स, सफ़ारी अजाक्स अनुरोध = नया XMLHttpRequest (); } पकड़ (ई) {// इंटरनेट एक्सप्लोरर ब्राउज़र्स {ajaxRequest = new ActiveXObject ("Msxml2.XMLHTTP") का प्रयास करें; } पकड़ (ई) {try {ajaxRequest = new ActiveX ऑब्जेक्ट ("Microsoft.XMLHTTP"); } पकड़ (ई) {// कुछ गलत चेतावनी ("आपका ब्राउज़र तोड़ा!"); विवरण झूठा है; }}} // एक ऐसा फ़ंक्शन बनाएं जो सर्वर से भेजे गए डेटा को प्राप्त करेगा ajaxRequest.onreadystatechange = function () {if (ajaxRequest.readyState == 4) {var ajaxDisplay = document.getElementById ('news'); AjaxDisplay.innerHTML = ajaxRequest.responseText; }} // var rssurlvar = $ (this) .attr ("title"); Var queryString = "rurl...

Why this piece of code does not work in perl...Its simple -

#! Usr / bin / perl $ file_name = "file.txt"; खुला (फ़ाइल, $ file_name); जबकि (& lt; FILE & gt;) {my $ line = $ _; यदि ($ line = ~ m / svr \ b /) {my $ server_name; $ Server_name = $ 1; प्रिंट $ server_name; }} file.txt: ewrerfSvr // निकाला जा करने के लिए दर = आरपीएम आईडी = 123 दर = 45 ADDR = retriveBal किराना = "-r -e $ {MAIN_ROOT} / लॉग / stderr -ओ $ {MAIN_ROOT} / लॉग / stdout -एक -" freedonSvr BALFSvr // निकाले जाने की दर = RPM1 आईडी = 12323 दर = 45etf ADDR = retriveBal किराना = " -r -e $ {MAIN_ROOT} / लॉग / stderr -ओ $ {MAIN_ROOT} / लॉग / stdout -एक - "freedonSvr डी $ {REV_AccountBalance_NAME}" // मैं भी निकालना चाहते हैं:। REV_AccountBalance मुझे इस का उपयोग करते हुए नियमित अभिव्यक्ति करने के लिए सुझाव दें # usr / bin / perl सख्त का उपयोग करें;! चेतावनी का उपयोग करें; मेरी $ file_name = "file.txt", खुला (मेरे $ एफ एच, $ file_name) या मरो "फ़ाइल खोली नहीं जा", जबकि (& lt; $ एफ एच & gt;...

c# - GridView how to apply string format to item -

I have the following code in the column section of my gridview: & lt; Columns & gt; & Lt; ASP: Boundfield Datafield = "nominal-compliant" header text = "nomination normal" /> & Lt; ASP: Boundfield Datafield = "AAL" headtext = "AAL" sortedExposition = "Aual" /> & Lt; ASP: Boundfield Datafield = "Semestrial" headertext = "semestrial" data format string = "{0: 0.00}" /> & Lt; Asp: BoundfieldDefined = "Tertium" HeadText = "Semestral" htmlnx = "incorrect" data format string = "{0: 00.0000}" /> & Lt; ASP: Boundfield datedfield = "funny" header text = "funny" /> & Lt; / Column & gt; This gridview is a feed from a data that is all the datacolom string type. My problem is that DataFormatString is not being applied and I do not know why. I want to get lots of decimal points in all columns, incl...

gdi+ - NotImplementedException from .NET's CustomLineCap constructor -

I want to draw a custom line cap - an equilateral triangle with radius r. Apparently I can not: Slow triangle side single = CNG (3 * R / 2) path as CNG (3 * r / Math.Sqrt (3)) = New Graphics Path () slow point () point = New point () as the new point (-triangle side / 2, 0), _ new point (triangle side / 2, 0), _ new point (0, Triangle lighter)} path.AddLines (points) 'Not applicable, exception, what is a slave? '_HlpCap = New custom lines cap (path, nothing) Am I really confused or is it just a framework bug? Edit: Commented Cidade after Mark, I tried to use (nothing, path) and it helped, but I need to fill the triangle, not only to stroke it ... Exception GDI + The library comes from its GdipCreateCustomLineCap () function from NotImplemented position. Try the stroke path instead of nothing : Slow path 2 like graphicspath = new graphics path (path2.AddLines); _HlpCap = New Custom Line Cap (path, path2)

persistence - Is it possible to write custom SQL in OrmLite? -

I have a class that I want to continue and it stores most of my data in a hashmap. I want to map these fields to the table in squid, leave the people missing in the map as null . Is it possible to override ways to save some records in the database using custom implementation using ORMLite? I think Roddik has been moving but I thought I would be as the author of OrmLite anyway I will post an answer. My normal answer is that it would be better to create an object to store the columns instead of the map. Although the SQL string is a line of columns, the complete point of ORM is that we can handle rows in the form of objects in Java instead of the map of rows. @DatabaseTable public void RandomThing {@ DatabaseField String column 1; @databasefield string column2; @documentfield string column3; Public Zero Randmashing (String column 1, String column 2, String column 3) {...}} Right now, there is not a way to continue the map of strings in ORMLite.

javascript - DOM CSS Cross Browser Library -

I usually work with jQuery, which removes most of the cross browser's pain (though, unfortunately From, all). However, there is no support for the manipulation of CSS DOM, and it still seems to be a bit of a bay area - there is some information. Our application allows users to theme their site, expand it with some CSS stylesheet generating colors, it is very straightforward, but I implement it directly in CSS DOM Before I want to "preview" before, before saving them back to the database and preparing the CSS file. Is anyone aware of a library that will make cross browser CSS DOM manipulation easy? Just because we are clear, I'm trying to change the CSS rules to add / remove classes, with an element, or set of elements (such as $ .css ()), or I not am I want to modify stylesheets directly. I highly recommend it. I have not seen any other libraries as much functionality or as an interface.

iphone - Objective-C category method available to subclasses? -

मेरे पास निम्न श्रेणी है: @interface UIViewController (अतिरिक्त) - (शून्य) exampleMethod; @end ----- #import "UIViewController + Additions.h" @ कार्यान्वयन UIViewController (अतिरिक्त) - (शून्य) उदाहरणस्वरूप [एनएसएलॉग (@ "उदाहरण।"); } @एंड मेरे पास भी निम्न सार तत्व है: @ इंटरफेस डीएफएबीदृश्य वीकंट्रोलर: UIViewController @end ----- #import "DFAbstractViewController.h "#import" UIViewController + Additions.h "@ कार्यान्वयन DFAbstractViewController @end और यहां कंक्रीट वर्ग है: #import" DFAbstractViewController.h "@ इंटरफ़ेस DFConcreteViewController: DFAbstractViewController @end ----- #import "DFConcreteViewController.h" @ कार्यान्वयन DFConcreteViewController - (शून्य) दृश्यडिडलोड {[स्वयं उदाहरणस्वरूप]; } @end ठीक है। तो यह मेरी समझ है कि कंक्रीट वर्ग, DFConcreteViewController , अपने सुपर वर्ग में एक श्रेणी से आयातित विधियों का उपयोग कर सकता है, DFAbstractViewController । यह सही है, क्योंकि विधि कॉल अपेक्...

winforms - how to disconnection access in my C# program? -

I tried to compress my Access 2007 database in such a way: System .Diagnostics.Process. Start (@ "C: \ Program Files \ Microsoft Office \ Office12 \ msaccess.exe", @ "c: \ Mydb.mdb / compact"); In my C # program and I get this error: You tried to open a database that was already opened by the user on the machine has gone. When the database is available, try again (error 3356) I tried Conn.close () but still get error thanks in advance Check your Task Manager to see if you already have access to it. If you do, then close these examples and try again.

c++ - SEGMENTATION FAULT in vector<string> iterator function used to draw text to my self-coded GUI -

ग्रीटिंग्स सब, त्रुटि: प्रोग्राम प्राप्त संकेत 'SIGSEGV', सेगमेंटेशन फॉल्ट मुझे कोड: ब्लॉकों में उपरोक्त गलती को बनाने के लिए निम्नलिखित कोड के साथ कुछ समस्याएं आ रही हैं I यह एक चैट बॉक्स के लिए है जो मैं एक नेटवर्क चैट प्रोग्राम के लिए उपयोग कर रहा हूं जहां वेक्ट चैट चैट लॉग की प्रत्येक पंक्ति के लिए टेक्स्ट के तार से भर जाता है मुझे नहीं पता कि एक विभाजन की गलती क्यों फेंक रही है, क्योंकि मैं इस मेमोरी में किसी भी मेमोरी को लिखने की कोशिश नहीं कर रहा हूं। त्रुटि बनाने वाली रेखा है [अगर (iter-> empty ()); ]। अगर मैं उस रेखा को हटाता हूँ तो यह अभी भी ड्राटेस्ट फंक्शन कॉल पर गलती को फेंक देगा। क्या कोई मेरी सहायता कर सकता है? फिलहाल मेरे लिए यह दुःस्वप्न रहा है! FYI -> मैं कोड :: ब्लॉकों पर उबंटू कोडिंग हूँ कार्यक्रम SDL का उपयोग करता है, खासकर 'नेट' और 'थ्रेड' हेडर DrawText फ़ंक्शन केवल टीटीएफ_रेन्डरटैक्स्टबल्डेड () और एसडीएल_BlitSurface के लिए एक आवरण है, लेकिन मुझे पता है कि त्रुटि ड्यूटिटेड फ़ंक्शन में सीधे नहीं है क्योंकि मैंने इसे कई मु...

perl - How can I extract hash values into an array in their insertion order? -

Given a hash in Pearl (any hash), how can I remove values ​​from that hush, in order Which they were added and put them in an array? Example: My% given = (foo = & gt; '10', bar = & gt; '20 ', baz = & gt; 15' ); I have to get the following results: my @givenValues ​​= (10, 20, 15); to perldoc perlfaq4 : Use from CPAN. Use Tie: IxHash; My% myhash tie, 'Tie :: Eckhams'; (My $ i = 0; $ i & lt; 20; $ i ++) {$ myhash {$ i} = 2 * $ i; } My @ keys = keys% myhash; # @keys = (0,1,2,3, ...)

.net - Asp.Net Ajax Control using WCF service with CallbackContract -

क्या WCF का कॉलबैक कॉन्ट्रैक्ट या किसी अन्य "रिमोट इवेंटिंग" तंत्र का उपयोग करना संभव है जिसे डब्लूसीएफ द्वारा एस्पनेट्स अजाक्स कंट्रोल / पृष्ठ? अभी तक सभी लेख मैंने कॉलबैक कॉन्ट्रैक्ट्स के बारे में और Asp.Net पृष्ठों से WCF के उपयोग के बारे में अलग से इलाज किया है। हां, बिल्कुल। यदि आप कॉलबैक (ड्यूप्लेक्स) के साथ एक डब्ल्यूसीएफ सेवा को कॉल करना चाहते हैं तो आप इसे स्क्रिप्ट विधि में हमेशा की तरह कर सकते हैं। संपादित करें: मुझे नहीं पता कि आपको अजाक्स के साथ क्या करना है, लेकिन, मान लीजिए कि आप WCF सेवा से आने वाले डेटा का उपयोग करते हुए एक स्वत: पूर्णतया एक्सटेन्डर वाले पाठ बॉक्स को भरने के लिए उपयोगकर्ता को सुझाव देना चाहते हैं, आपको एक ScriptMethod प्रदान करना होगा। इसके अंदर आप सामान्य तरीके से सेवा को कॉल कर सकते हैं जैसा कि [WebMethod, ScriptMethod] सार्वजनिक स्थैतिक स्ट्रिंग [] GetSuggestedItems (स्ट्रिंग उपसर्ग टेक्स्ट, एंट काउंट) में समझाया गया है {// संदेशों को संभालने के लिए InstanceContext का निर्माण कॉलबैक इंटरफ़ेस पर InstanceContext उदाहरणConte...

c# - Using WatiN to crawl to next page on google -

How can I navigate to the next page? To automatically click on the page number, 1, 2 to the end, till the end ... Something you should get started with these lines: var ie = new IE (); Click on ie.Link (Find.ByText ("1")). Though it is really original, it should work, you can throw it in a simple loop and be done with it. Good luck!

sharepoint - How can I import data into read-only datasheet fields? -

I am importing the data into the SharePoint list in Excel using "Datasheet View". When I paste the data, I get an error message "Cell is read only." For the read only field. Is there a way to import data into the read only field? As Ryan pointed out, it is not possible to overwrite the results of a calculated field . My recommendation is to remove the column based on the dateet, then add the columns on which the calculation is based (if they are not already displayed). You can paste source data for those calculations, automatically populate the results.

c++ - Copy constructor problem -

मैंने कथन निर्माता का प्रयोग करने की कोशिश की: X y = X (); लेकिन कॉपी निर्माता को बुलाया नहीं जा रहा है। मैं जी ++ 4.1.0 का उपयोग कर रहा हूँ मैं कक्षा में एक्स (कंस एक्स एंड) और एक्स (एक्स एंड) कन्स्ट्रक्टर दोनों सेट करता हूं। क्या यह काम करना है या मैं कोड में कुछ बहुत ही बुनियादी समस्या कर रहा हूं? वर्ग के लिए मेरा कोड वर्ग ए {सार्वजनिक: int i; ए (इंट ii) {i = ii; } ए (कॉन्स्ट ए & amp;) {i = 5; } ए (ए & amp;) {i = -1; } ए () {i = 5000; }}; जब मैं इसे A a = A (); या A a = A (100); का उपयोग करते हुए इसका उपयोग करता हूं, काम करते हैं लेकिन जब मैं इसे ए (बी); या ए ए = बी; का उपयोग करता हूं तो यह ठीक काम करता है। मुझे क्या याद आ रही है ? मैंने देखा कि इसके अनुसार, यह काम करना चाहिए परन्तु यह मेरे मामले में काम नहीं कर रहा है: (। आपके सभी उत्तर और टिप्पणियों के लिए अग्रिम धन्यवाद। संकलक को कुछ स्थितियों में प्रतिलिपि कन्स्ट्रक्टर को कॉल को दूर करने की अनुमति है। किसी अस्थायी वस्तु को शुरू करने से उनमें से एक है। इस मामले में, अस्थायी रूप से एक अ...

java - Exposing DAO as web service -

Can anyone talk about the document in order to uncover the DAO as an external web service? Currently, in my application we adhere to the DAO -> Service -> UI layered architecture. Everything is internal to the app, our DAO Springs reach DB via JDBC and the services are visible only for web applications. Now we need the downstream system within my company to reach the DAO, Ve made me know what to do with our DAO and, if any, other technologies to me This will need to be done. In addition, will I expose the DAO itself or the services? I think I do not fully understand the problem. You will have to create service operations operating for CRUs for DAO, while simultaneously operating any particular data that performs your DAo, you already expose the DAO through service on your current UI. Can not you use that service as a template for your exclusion service?

html - Internet Explorer 8: list problem -

There is an unordered list, and one of the list items contains two links, for some reason, Internet Explorer 8 out of the list As part of the list, the first list is visible outside and apparently shows it out of the included divas, this is what it looks like (those two rows should be on one line!): html: & lt ;! - These div create background image - & gt; & Lt; Div class = "box" & gt; & Lt; Div class = "boxBody" & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "" & gt; & Lt; / A & gt; & Lt; A href = "" & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; / Div & gt; CSS: li {list-style-type: square; Margin-left: 25px; Font-size: 12px; } EDIT: When stepping through the code, I have come to know that due to link between Li, there is some reason why t...

.NET web service programming with iPhone clients in mind -

I want to write a .NET web service that will be consumed by an iPad app in particular. We are leaning towards using the rest but someone can tell me that this is an easy way (from the iPhone side). How to go with REST / JSON in conjunction with WCF on iPhone / iPad app on the net looks like. Here's a nice tutorial for using Json: And you can download the iPad Customer Jasonon Library from here: Hope it helps. / P>

.net - Returning a Dictionary<int, int> or an int[][] on a WCF response -

क्या यह एक शब्दकोष वापस लेना बेहतर है या int [ ] [] एक WCF प्रतिक्रिया पर? या इससे कोई फर्क नहीं पड़ता? वे वास्तव में दो बहुत अलग चीजें हैं, और विभिन्न प्रयोजनों की सेवा करते हैं। यदि आप एकल पूर्णांक से दूसरे एकल पूर्णांक मानों पर मैपिंग वापस करने का प्रयास कर रहे हैं तो शायद आप शब्दकोष int, int & gt; वापस करना चाहते हैं। अगर, हालांकि, आप पूर्णांक मानों की कई "सूचियों" लौट रहे हैं, तो एक जैग वाला सरणी उपयुक्त होगी। इस स्थिति में, आपको पूर्णांक के सरणियों की एक सरणी वापस करनी होगी: मूलतः, कई संख्यात्मक मान संग्रह।

Drag Drop from .NET application to Explorer -

I am looking to provide the ability to drag and drop files with grids and other controls in my application in Explorer. For any good samples / articles? It is very straightforward, just call DoDragDrop in a mouse download event. You will need actual files on the disk for this. Private Zero Form 1_MouseDown (Object Sender, MouseEventArgs E) {string [] files = new string [] {@ "c: \ temp \ Test.txt"}; This.DoDragDrop (New DataObject (DataFormats.FileDrop, Files), DragDropEffects.Copy); }

Preview PDF in Access 2007? -

Is there a way to access a PDF file in Access? I am storing the file path in the database and I am able to open it with a button in the database, but I also want to be able to show a preview of it. I suspect that you will be able to do this with a raw PDF file, though you have your application The first page of PDF can be saved and saved as an image file that you can load as a preview.

Flex; recognize email addresses as object in a text field -

I changed an email address after being entered in a textfield as an object shown in this image on MS Looking for office approach; The issue is that now my cursor is placed after "user2@gmail.com. , As if it was an object and simple text was not recorded. I think it is possible in Flex? All ideas and suggestions are welcome. This is possible; But you probably have to create one component to do this I believe that this way supports "multiple selection" functionality. Just check the demo I'm not sure about optimization for this Although, though.

c# - Using reflection to ensure properties are properly cased -

Also, about determining if all the squares are being serialized in a given place name The way I can claim about all the people is the names given in the namespace on all the classes? I would like to determine that they are properly ceded (for example starting with capital four) and all have been marked as virtual / override; Is there any way I can do this by using reflection? Have you tried using FxCop - it's a tool that integrates with Visual Studio Does and implements the coding style.

data structures - How do I implement a Bipartite Graph in Java? -

update Some answers have been suggested to use an adjacent list yet. How does an adjacent list appear in Java? ... there is no correct indication :) I am trying to apply a Bipartite graph in Java to sort 2 groups of information from a file. I found this example and it actually works: However, I want to apply my own version ... if you see one, you Understand why I want to do it myself So I have to read that file so that I can easily get the number of Shiromani, but the number of edges is not so easily received. An example line would be "Person A Pursbeee" , which can be read as " " Persona is Personal Person " , then read these lines ..." "B" is called "B" "D says B" "B is called D" "E says A & C" ... produces this group: {A, D, C} and {B, E} How would I have to go about implementing this bilateral graph? What is a good resource for this task? What algorithms should I consider an...

blob - Oracle clob over dblink with different charset -

यहाँ परिदृश्य है: ओरेकल ए: वर्णसेट WE8ISO8859P1 ओरेकल बी: वर्णसेट WE8MSWIN1252 ओरेकल ए & lt; - dblink -> ओरेकल बी ओरेकल बी सीधे, फायरवॉल के मुद्दों पर नहीं जा सकता: ( मुझे ओरेकलबी से कुछ बाइनरी फाइलें मिलनी हैं और ये फाइलें सीओएलबी प्रकार के कॉलम में हैं (मुझसे मत पूछो क्यों और मैं ब्लॉब में परिवर्तन नहीं कर सकता।) मैं फ़ाइलों को बी से ए तक लाने के लिए एक "चयन करें" का उपयोग कर रहा हूं और उन्हें clob_to_blob फ़ंक्शन का उपयोग करके द्विआधारी में कनवर्ट कर रहा हूं। मुझे कुछ दूषित फाइल मिल रही है और मेरा मानना ​​है कि ओरेकल, WE8ISWIN1252 को स्वचालित रूप से डीब्लिंक पर (अच्छी तरह से, कॉलम CLOB है, तो यह टेक्स्ट है, सही है?) पर WE8ISO8859P1 को परिवर्तित कर रहा है। इस के लिए कोई वैकल्पिक हल है? पहले से धन्यवाद y करें कहां DBMS_LOB.CONVERTTOBLOB@remote (....) का उपयोग करने की कोशिश की लेकिन आप संभवत: दूरस्थ CLOB के चेकसम के कुछ प्रकार प्राप्त करना चाहते हैं, यह देखने के लिए कि वे अक्षर कनवर्ज़न प्राप्त कर रहे हैं, जो भी मूल बाहरी स्रोत से...

Is PostgreSQL IN() statement still fast with up to 1000 arguments? -

I ask them to return all the rows from one line except those that are in some list of those values Questions are continuous on time. Like SELECT * table, the WHERE ID (%), and the% value is guaranteed to be a list, although not a subquery, in some cases this list of values ​​can be up to 1000 elements long. Should I limit it to a small novelist (as low as 50-100 elements is as low as I will go in, in this case) or will there be a negligible performance benefit? I think this is a big table, otherwise it does not matter much. Depending on the number of tables and the number of keys, this can be triggered if there are many IN keys in a sequence scan, then postgres often do not use any index for it. Select more keys, big chance of a sequence scan . If you use any other indexed column in WHERE , such as: choose from the table Where ID (%) and my_date & gt; '2010-01-01'; There is a possibility of getting all the rows that match Indexed ( my_date ) Column...

deflatestream - .NET Deflate Stream Error/Bug -

Does anyone experience the following error while using .NET Deflate stream? System.IndexOfRangeException: The system was out of range of the array. System.Oo.Compression.HuffmanTree.CreateTable () on System.IO.Compression.Inflater.DecodeDynamicBlockHeader) System.IO.Compression.Inflater.Decode On) System.IO.Compression.Inflater.Inflate (byte [] bytes, int 32 offset, int 32 length) system. IOO Compression. Defaults Reed (byte [] array, intros offset, intros count) This error occurs when the display disk reads from disproved disk. I am using simple indexed files in which there are several smaller defaults in encoded sections. This is an very rare rare error, because this error is only a narrow object of several hundred thousand (or million) experiences. It seems that the HuffmanTree.CreateTable method routinely performs exceptions and fills the array beyond its boundaries. I have tried to allocate an array which is twice the size of the original decompression and it still t...

android - pathPattern to match file extension does not work if a period exists elsewhere in the file name? -

I see many examples of using pathPattern to define an intention filter for a specific file extension / type; For example, pathPattern = ". * \ .xyz" . Unfortunately, this does not work properly if the file in question is somewhere else in the path; For example, "my.filename.xyz" Is there a PathParton syntax that will match both "MyFillName.exes" and "MyFillName.exe"? The Android team chose in a unfortunate way to implement Pathton. You can take a look at how you can implement pattern matching for Android. Pattern Match Class: We use it. * This work is in regular expression, where * match is greedy and will match as many characters as possible. In the implementation of Pietermill, this match is not greedy. Example: string: "/ mnt / my.file". *. .mytype "Path Pattern:" * \\. Mytype " In Path". * "Pathner will match the alias /" / mnt / my ", and therefore will not be able to match...

mobile webkit - Selecting an item on Android web browser -

When I tap a link (or any selection item) in a web page on the Android web browser, link / The item is being highlighted (a thin orange line pulls around the selected object) Does anyone know if this behavior can end or not? In advance thanks, odd see magic []: & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Android Link Test & lt; / Title & gt; & Lt; Style type = "text / css" & gt; A {-webkit-tap-highlight-color: rgba (0, 0, 0, 0); } & Lt; / Style & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; A href = "http://www.google.com/" & gt; Hello, world! & Lt; / A & gt; & Lt; / Body & gt; & Lt; / Html & gt; Tested on Android 2.1 With that bit of CSS and orange-more is not implemented.

jquery - Removing children elements given an index? -

मुझे इस तरह एक लेआउट मिला है: & lt; div id = 'parent '& gt; & Lt; div id = 'row_0' & gt; & lt; / div & gt; & Lt; div id = 'row_1' & gt; & lt; / div & gt; & Lt; div id = 'row_2' & gt; & lt; / div & gt; ... & lt; div id = 'row_N' & gt; & lt; / div & gt; & Lt; / div & gt; कुछ बिंदु पर, मैं एक विशिष्ट इंडेक्स के ऊपर सभी "div" पंक्तियां निकालना चाहता हूं, जैसे: के लिए (var index = 1; index and lt ; $ ('# पैरेंट')। बच्चों। लैंप; अनुक्रमणिका ++) {$ ('# माता-पिता')। निकालें ('# पंक्ति_' + अनुक्रमणिका); } क्या jquery में ऐसा करने का एक आसान तरीका है? जैसे कुछ 'सिर्फ सूचकांक एन से शुरू होने वाले सभी बच्चों को हटा दें'? (लूप के लिए ऊपर वास्तव में काम नहीं करेगा, लेकिन ऐसा कोई भी प्रकार है, जो कोई अन्य रास्ता नहीं है) " #parent के सभी बच्चों को हटाएं (अलग करें), तत्व N से शुरू करें: $ ( "# जनक")...

Header already.... when header() is used...PHP -

जब मैं हैडर का उपयोग करता हूं ('स्थान: http://www.yoursite.com/new_page.html') ; जो पृष्ठ का एक PHP पुनर्निर्देशन है, यह कहता है कि हैडर पहले से ही लाइन में पारित हुआ .... लैंडिंग पृष्ठ & lt ;? ( 'Header.php') शामिल हैं; ? & Gt; मैं कैसे इस त्रुटि संदेश आ सकता हूं? सहायता की सराहना करें। धन्यवाद जीन ध्यान दें कि हेडर को इससे पहले और कुछ भी भेजा जाना चाहिए सुनिश्चित करें कि हेडर फ़ंक्शन के पहले कोई कोड / html या यहां तक ​​कि स्थान / इंडेन्टेशन नहीं है और पहले खोलने वाले php टैग & lt;? Php के साथ-साथ टैग को खत्म करने के साथ ही ? & Gt; अपने पृष्ठ में।

c++ - Convert ASCII string into Decimal and Hexadecimal Representations -

I need to replace an ASCII string ... "hello2" in decimal and hexadecimal representation (a numerical form, Specific type is irrelevant). So, "hello" will be: 68 65 6C6C6F32 in hex. How can I do this in C ++ without using a huge statement? Edit: OK, so this is the solution that went with me: int main () {string c = "b"; Char * cs = new char [c.size () + 1]; Std :: strcpy (cs, c.c_str ()); Cout & lt; & Lt; CS & LT; & Lt; Endl; Char a = * cs; In the form of int = a; Cout & lt; & Lt; Like & lt; & Lt; Endl; Return 0; } You can use printf () to write results to stdout or you can use Sprintf / snprintf is a string to write the results. % X Here is the key in the format string. #include & lt; Cstdio & gt; # Include & lt; Cstring & gt; Int main (int argc, char ** argv) {char * string = "hello2"; Int i; For (i = 0; i & lt; strlen (string); i ++) printf ("% x", string [i]); Retu...

regex - My regular expression allows spaces when formatting phone number -

I have the following Regex used in javascript. phone_number.match (/ ^ 1- \ d {3} - \ d {3} - \ d {4} $ /); It works great with one exception. This allows spaces. I want to format strictly 1-xxx-xxx-xxxx but this 1-xxx-xxx-xxxx Allows Anyone have any idea how can I not allow spaces? No, this is not ;-) It's just impossible to get your regexp / ^ 1- You do not have any space character in \ d {3} - \ d {3} - \ d {4} $ / - and it does not match (check).

ruby on rails - build relationship from list of ids -

Hello, I have is_and_bollongs_to_me relationship between posts and comments and in my editing action I have a The form that gives me the list of IDs 1,3,5,8 etc. I want to create relationships between my existing models and all the models which are in the Aids list, so @ post.comments 1,3,5,8 ids Returns the comments with in fact I need to execute Delete from comments_posts WHERE post_id = @ post.id comments_post Enter the values ​​(1, @post.id) (3, @ Post (5, @ Post.id) (8, Post.id) or Post-text "itemprop =" text "> absolute [: list] || = [] # Create an empty array via form is empty @ posts.comment_ids = consult [list:] #Remember organizations open again

java - Testing graphics generation with JUnit -

I am using Graphics 2D of Java to generate graphical representation of the article. I am using ImageIO to write a PNG file. ( ImageIO.write (image, "png", out); ) I'm thinking how to write a JUnate test, to check whether the generated graphics is expected is. I can pre-PNG files, but what if the font is different on a different machine? You can try testing specific, known attributes of the output such as: Is there a white pixel on (100,100)? Is this limit completely black? Is the image expected size? And / or you can write a test for some "total assets" which allow some fidget in the result: Get less than 90% of the match from the image? Is the most common color in the image equal to the background color?

javascript - Native widgets created by Dojo don't work -

I am using dojo. Create a page to throw some original widgets. In particular, I have set a set of radio buttons on the page, and even if they work correctly, it depends on the basis of where I place them. I will make them in the DIV which I will make. However, when I do this, they do not work if I put them under the body, then they work if I put them in the same def as the second set of radio buttons that I made earlier (I even made that DIV), they work if I put new DIVs, with buttons inside them, where they work, or at the bottom of the page, they do not work. "Do not work", I mean that I am connected to their onclic, but my connected work is not called. In Firefox, radio group behavior is otherwise normal: I can select one of the buttons in the group. In IE 8, I can not change the item which is selected. Does this practice recognize anyone? "As soon as you ask for help, the more you understand it yourself." Something happens. It has been detected,...

ios4 - Test rig exited abnormally with code 134 with OCMock verify on iOS 4 -

I am trying to add osmoc to my iOS 4 project. To test it, I have a method with person a method, -hello . When I run this exam: - (zero) testcock {id duplicate = [oakock object mockfor class: [person class]]; [[Fake hope] Hello]; [Fake hello]; [Fake verification]; } Everything is fine, and the build is successful if I remove the Hello call like this: - (Zero) TestCock {ID Fake = [Okock Object Mockfor Class: [person class]]; [[Fake hope] Hello]; [Fake verification]; } I expected that I would get an error message which was not supposed to be a fake copy of my expectation. Instead, I get a secret message about crashing the test rig: / developer / tools / play platform UNitTests.include 451x test rig / developer / playoffs / iPhone simulator. Platform / Developer / SDKS / iPhoneSimulator4.0.sdk / developer / usr / bin / otest '134 Exited abnormally with code (it may crash). Is this accident normal when the expected method is not called? Do you have a bad con...

data annotations - Server/Client input validation for asp.net form using attribute / dataannotation -

I was playing with data validation verification of asp.net mvc 2. This client is very well connected to the side verification. I really like that I can only define a set of rules and enable it to be used on both the client and server side parties. I wonder if it is possible to do this with ASP.NET form. The following code snippet shows how this is done, and simple data validation on the server side works fine when the object is created. However, I would like to reuse the verification check on the client side or do not need to define 2 sets of validation definition on client / breaking the ASP.NET JavaScript library). [Required (ErrorMessage = "property is required.")] [Regular expansion ("" ^ [0-9] * (\.)? [0-9] + $ [Datamember, display name] ", Error message =" property format invalid ")] get public string property {}; Set; } and I have created the following method on the base class to verify public bool IsValid () {bool result = true; ...

windows - How to find out what process/service initiates a network connection -

On Windows, how can I find out which service or process starts a network connection at a known address? Thank you. You do not know exactly what you want, but the procedures displayed are related to the port.

environment variables - windows 7 maven 2 install -

I am going to work through a book, "Flex on Java" and I have been asked to ask me 2 Maven will be added to Apache site: M2_HOME = C: \ apache-maven-2.2.1 and M2 =% M2_HOME According to the instructions,% \ bin for the environment wires then becomes number 6, which says "In the same dialogue, in the user variable Update / Create Environment Environment Variables Command The value % M2% . Which environment variable should I edit and add % M2% to add the available Maven to these? After Googling I found a post which is called "append", is not in the price of JAVA_HOME , I have tried to prepaid it and add it to Java home But when I try, command an mvn from the command line that it does not recognize. Never before N was not used, this is my first set. Can anyone see what I am not doing or what I have to do to be able to use the mvn command, please and thank you. You should edit the environment variable path . The path to Windows 7 i...

nsdate - A problem when converting string to date in iPhone? -

How to change NSString from 2010-08-03 04: 37: 31: 31.0 to 3 August 2010? Is this possible? This is probably a duplicate but NSDateFormatter is what you are looking for Are there. NSDateFormatter * dateFormatter = [[NSDateFormatter alloc] init]; [DateFormatter setDateFormat: @ "yyyy-MM-dd HH: mm: SS"]; NSDate * date = [dateFormatter dateFromString: inDateString]; [DateFormatter setDateFormat: @ "MMMM DD ',' Yay ']; NSString * Outdated String = [dateFormatter stringFromDate: date]; Although there are two problems with this approach. The input string is that it does not have timezone data Unlike different cultures, different orders from the day of the month if you use the normal NSDateFormatterStyle formats such as NSDateFormatterLongStyle can use one of . ,

How to manage multiple versions of a product with Mercurial? -

My company's product is module-based, which means that we ship with five base modules, Can buy. We are using Mercurial, for which we are relatively new to our source control, and since we have released 1.0 of our product, managing different module development has been a nightmare. We want to be able to release small bugfix updates without waiting for the specific module to complete the development, so a repo for everyone does not work very well. I have read about the branches but certain guides suggest that the branches are temporary, and it is difficult to merge. Ideally, we have a base repo that is a product and then with different modules with different repo (or branches), so that the QA main product and main + addons are made separately While developers are working on ModuleA, developers working on BugfixB do not have the effect of doing it, I tried to do it with a lot of trouble, but spoiled my treasure. Should I use Nominated Branches? Or bookmarks? I am looking f...

c# - Data Mapper for Child Objects -

Assuming that we have a customer class in which there is a complex property called Address: Code> public class customer {public string name {get; Set; } Public Address {Received; Set; }} In order to continue the customer objects in the database, I need to implement the data mapper pattern. Do I have something similar to the Customer Data Mapping client and address or 2 different data mappers: Continuing on the client's account and the address card? I want to know your thoughts on this. Cheers, MOSS if you want With a hand map, I would recommend having two maps, with which is assigned to the addressDataMapper for that property on client request. It allows you to check mapping separately and Address Mapper can be re-used separately. SQL or NHibernate from LINQ such as an LINM can take care of it for you.

iphone - How would you create a static version of the UIPopoverView? -

I tried to use a popover in my interface, but all the convenience of the UIPOputer controller made it impossible My goal is to use Chrome for popover, but none of the related events or works, I need to display it on the screen (no dismissal) and no modal. So now I am considering creating my own view using images. My question: Is this a better way to accomplish (a scene with image boundaries)? If you want to remain on your UIPOprescreen and allow the user to interact with other views P> When a popover is active, interaction with other ideas will usually become inactive until the popover is dismissed. By assigning a series of ideas to this property, the tap outside the popover can be handled by the corresponding sequences. You should be able to achieve the effect by simply passing through an array in which only the "Background" view controller's view.

How to parse a string to retrieve the words in the string in variables using shell script? -

I have a command that gives the following output when executed $ cleartool Pwv Work directory view: abhijeet_trialProj_r2.4-phase1_ba_abhijeet_branch Set View: abhijeet_trialProj_r2.4-phase1_ba_abhijeet_branch $ cleartool PWV Work directory view: ** Any set **: abhijeet_trialProj_r2.4-phase1_ba_abhijeet_branch $ CT PWV Work directory view: ** any ** SET VIEW: * * None ** I use this command "Claytonal PVVV" in a shell script. I am. $ View_used string "Working directory view: ** is not set 2.4-step1_b_abg_rarap " I need to retrieve two values ​​from $ values_used work_dir_view =" **** none **** "or" Abhijit_triel prows_r -2.4-step1_b_jhijit_brunch " set_view =" **** none **** "or" abhijit_trael proz_r -2.4-step 1_b_b front Thank you. var = $ (cleartool pwv | awk -F): See '' / Task Directory / {T = $ 2} text "itemprop =" text "> / set = / s = $ 2} END {print t, s} ') - $ v...

javascript - How to add a dialog box to the WYMEditor for catching the choice? -

I want to add a button to the Toolbar of the WYMEditor, which will show a dialogue box and paste it back from the contents with a dialog . How can I do this? True code is welcome) I think it's already 'Word from Paste' As exists in WYMeditor. Do you want to add additional functionality? WYMeditor's version comes packed with (a Rail Content Management System) This functionality is already in place. I believe they have changed the name of paste from the word button.

spring - Java Date format -

I have a spring web application that runs in Tomcat, I set the date and number format for a specific format in my application. Have to do. Can I set any descriptor in the form specific to my application or can I set all the system formats only? I want to use this method: yyyy.mm.dd. This code is incorrect because it is not a standard locale pattern: String CurrentDate = Simple Data Format.GetDateTimeInstance (Dataformat.Hart, Dateformat.Hart, Locale.UK ). Format (new date ()); But I do not want to type the pattern everywhere in the application, I want to set the pattern once. I would like to if I type this code: string current = simple data format.gatedate instance (date format.html). Format (new date ()); The result is: 2010.08.04. Is this possible? java.util.Date objects do not have a format (they Only represent the date and time values, such as integers that represent only one number value and know something about the formatting numbers of 't...

wpf - Receiving EditingCommands on derived InlineUIContainer -

I have a class that came out of inline UICTyear. I want to take an action when one edit on a flow document selection The command (such as togglebold) is used, in which an example of this class is included. I have tried to register for this order but it has not been raised. I have tried overpriced onaprati, but it is called only on clear changes, not when my inlineUICTIVE is part of a selection that works on it. Any ideas about how I can accomplish this?

Professional Windows 7 icon packs -

First of all, I know that there are some topics about the icon pack on the StackHowflowflow. However, I'm looking for specific Windows 7 style icons. Most icon packs that you get are neither old nor inexpensive Windows 7 or very future, attractive, insect, non-professional. I came to: () Is there an icon pack (which is similar to Windows 7 requirements (all sizes, angle of drawn icons, etc ...) and professional looks or Windows 7 ? Have you taken a look at those that include VS2010 ? I do not have access to it yet but it is considered to be a icon from Windows and Office etc., Must meet Karik requirements (although it may be an older version possibly icon).

Need help with HTML Layout's Skeleton please -

I know it's trivial but I do not think so. Can anyone show me how this template should have a very basic HTML skeleton? I'm able to use tables, but I know it's not big. Either XHTML Qt or HTML5 will be OK. & Lt; Ul id = "nav" & gt; & Lt; Li & gt; Menu item & lt; / Li & gt; & Lt; Li & gt; Menu item & lt; / Li & gt; & Lt; Li & gt; Menu item & lt; / Li & gt; & Lt; Li & gt; Menu item & lt; / Li & gt; & Lt; Li & gt; Menu item & lt; / Li & gt; & Lt; Li & gt; Menu item & lt; / Li & gt; & Lt; / Ul & gt; & Lt; Div class = "article" & gt; & Lt; H2 & gt; Header & lt; / H2 & gt; & Lt; Div class = "content" & gt; & Lt; P & gt; Content content content & lt; / P & gt; & Lt; P & gt; Content content content & lt; / P & gt; & Lt; P & gt; Content content content &...

Get content within a html tag using php and replace it after processing -

मेरे पास ऐसा HTML (sample.html) है: & lt; html & gt; & Lt; शीर्ष & gt; & Lt; / head & gt; & LT; बॉडी & gt; & Lt; div id = "content" & gt; & Lt; -! सामग्री - & gt; & Lt; p & gt; कुछ सामग्री & lt; / p & gt; & Lt; -! सामग्री - & gt; & Lt; / div & gt; & Lt; / body & gt; & Lt; / html & gt; मैं सामग्री का भाग कैसे प्राप्त कर सकता हूं जो कि 2 html टिप्पणी '& lt;! - content - & gt;' php का उपयोग कर रहा है? मैं इसे प्राप्त करना चाहता हूं, कुछ प्रसंस्करण कर रहा हूं और उसे वापस रखता हूं, इसलिए मुझे मिलना और रखना है! क्या यह संभव है? इसाफवान - आप div के बीच की सामग्री को निकालने के लिए एक regex अभिव्यक्ति का उपयोग कर सकते हैं एक निश्चित आईडी)। मैंने पहले यह छवि टैग के लिए किया है, इसलिए समान नियम लागू होते हैं। मैं कोड को देखता हूं और थोड़ी देर में संदेश को अपडेट कर सकता हूं। [अपडेट] यह प्रयास करें: & lt; php फ़ंक्शन Get_tag ($ attr, $ value, $ xml...

Does any of you know how to mask a URL in php ? or related to Javascriptor Ajax? -

Do any of you know how to mask a URL in php ?? As you see in the free URL redirectional services () I mean that I have a URL which will redirect me to but I have a URL Is it possible ?? Thank you in advance ... Use URL-Reconstruction by Example . Edit: The cross server will not work, I forgot. Then link your domain from the DNS server to another server.

MySQL mystery: Null value is not different from non-null string -

Why is this query returning 0 rows? Choose from t.f1, t.f2 (select tap F1, 'A' from F2 to double) where t.f1 & lt; & Gt; T.f2; I have an distilled version of a complex query. I want to compare two tables with one related data from one and I want to select the rows in which some fields Different values ​​can be included but one may be missing one row in one of the tables, the upper pair correctly reverts zero values ​​for these rows, but then, the WHERE section is incorrect (or unused Copy of) the filter these lines. Why in this case - 'empty' is not different for any tap value (like 'A')? I'm running madness is that it select from t.f1, t.f2 (select tap F1, 'A' F2 to Dual) T; 1 row (as I expected) but select from t.f1, t.f2 (choose null f1, 'a' F2 to dual) where t.f1 = t.f2; returns 0 rows !! So null is not equal to 'A' and is not different for tap 'A'! Please ... can anyone explain this...

unit testing - Can I calculate and check java project code coverage through Maven? -

संभव डुप्लिकेट: मैं अपने जावा कोड बेस के कोड कवरेज की गणना करना और बिल्डिंग प्रक्रिया को विफल करना चाहूंगा अगर कोई पैकेज, कक्षा या विधि 80% या उससे कम के कवरेज का कोड है क्या कुछ खुले स्रोत उपकरण से हासिल करना संभव है? अधिमानतः एक maven2 प्लगइन के माध्यम से। क्या आपने कोबर्टुरा की कोशिश की है?

sql server - how to gain a high performance with a very big database -

I was always wondering how any other site like any other site like facebook Should be faster than that, although large amounts of data that store daily in large quantities .. What are they using to store the information and if I store sql server Such as news feed is okay or what (news feed is stored in a separate table Will be honored which is called news ). On the other hand if I am involved in big tables with each other what can happen - it can be slow (maybe) or does not matter how big the table is? When you talk about scaling at the size of Facebook, there is a whole different ball park. About the latest estimate (sixty thousand) put Facebook Datacenter. Only the cash is estimated (terabytes) in a mosque. Although their last end style is MySQL, it is used as a pure key-value store according to the public key: Facebook uses MySQL, but primarily a Key-value is added to the web server as continuous storage and reasoning because optimization works smoothly on there (...

Why does this Ruby statement throw an exception? (Arrays/Bools) -

I'm not a Ruby man, I just play one on television. I have to modify some old chron job to pull some Jason down and turn into objects. Here is the code raw_json = Net :: HTTP.get (URI parsing ("URL is removed to protect innocent")) Tags = ActiveSupport: JSON .decode (raw_json) tags.count detects tag.count 5 correctly, but that line is immediately the reason for the crash: 5 # Counts right! Rack abortion! Undefined method for false `count ': FalseClass What is the dealerio? What is the content of raw_json ? What seems to be happening is that returning ActiveSupport :: JSON # decode (hence the undefined method is false for 'fault': FalseClass ). I think that JSON # decode returns false if only given empty string, which means that HTTP # get is returning an empty string raw_json and see what is expected in it.

c - Why does my program read an extra structure? -

I'm making a small console-based RPG to brush my programming skills. I am using structures to store character data. Things like your HP, power, maybe the inventory below the road. One of the important things that I should be able to do is to load and save the letters. This means that the reading and saving structures I am just saving and loading a structure with the first name and last name, and I am trying to read it properly. Here's my code to create a character: zero creator () {char namebuf [20]; Printf ("First name:"); If (zero! = Fgets (namespuff, 20, stdin)) {char * nlptr = strchr (namebuf, '\ n'); If (nlptr) * nlptr = '\ 0'; } Strcpy (party [nMember]. Fname, namebuf); Printf ("Last name:"); If (zero! = Fgets (namespuff, 20, stdin)) {char * nlptr = strchr (namebuf, '\ n'); If (nlptr) * nlptr = '\ 0'; } Strcpy (party [nMember] .lname, namebuf); / * Characters were created, now * save / save (party [nmber]); Pr...

ruby - Regex to match last occurrence -

As I do not want to spend the correct regex googling another hour: I want to delete the last backslash of a given string With Gsub: "C: \ Program Files \" Gsub (fancy_regex_here, '') # = & gt; "C: \ Program Files" Thanks in advance for any help should be fancy_regex_ "\\ $"

php - passing mysql account to remote server -

I have to connect 2 php pages to 2 different servers, One "email" "DB (MISCIL) with the table is generated by a PHP page. The other server has a PHP file that needs to be read" email "table ... another php page User does not need to be opened The fact is that I need to make this work with a lot of DB It's not just that I can not store mysql connection parameters on php page 2 server and just open it ... I have to pass the connection advisory every time For now I have this By using something like, 1 server on the PHP page: $ socketcon = fsockopen ("http://www.server2.com", $ 80, $ errerno, $ errorstr, 10); If $ $ socketcon {$ socketdata = "GET page2.php? Dbuser = xxx and dbpass = xxx and db = xxx http / 1.0 \ r \ n host: http: //www.server2.com \ r \ n connection: Close \ r \ n \ r \ n "; Fwrite ($ socketcon, $ socketdata); Fclose ($ socketcon); } But I'm afraid it's too bad to insert parameters in the URL .......

web config - WCF Web Service Metadata Publishing Disabled Error -

I have my web The config has been modified to add a custom bond to boost buffer and message sizes, and it seems like to break the context of my behavioral element in order to make the service element explicitly. When I VS.S. I try to run my web service using the WCF Test client, or if I go to the service page, I get an error: Metadata publishing service is currently disabled for this I have compared this with some different sources from my web.config and everything seems to match. I do not know what is the problem Here is the System.serviceModel element: & Lt; Endpoint address = "http: // localhost: 1895 / BIMIntegrationService.svc" binding = "custom binding" binding = configuration = "custombinding 0" contract = "bimantation ws.beb integration service" /> & Lt; / Services & gt; & Lt; / Services & gt; & Lt; Behavior & gt; & Lt; ServiceBehaviors & gt; & Lt; Transaction name = "metad...

android - Problems understanding the life cycle when screen goes off and on -

Info: My device is a Nexus One with 2.2 and I have tested two projects, one on 1.5 and one on 2.1. Problem: I have trouble understanding the screen and the life cycle of my application. Here is my output / / activity starts 08-04 17: 24: 17.643: error / play activity (6215): executed on ... 08 -04 17: 24: 17.643: Error / Play Activity (6215): On Resume Performed ... // Screen Shuts Off 08-04 17: 24: 28.943: Error / Play Activity (6215): On Pauses Implemented. .. 08-04 17: 24: 32.113: Error / Play activity (6215): Onest option ... 08-04 17: 24: 32.113: Error / Play activity (6215): execution of On Destory ... 08- 04 17: 24: 32.983: Error / Play Act Viti (6215): Performed on the ... 08-04 17:24 24: 32.983: Error / Play Activity (6215): OnResume executed ... 08-04 17:24 24: 32.983: Error / Play Activity (6215): onPause Execute ... // goes to screen 08-04 17: 24: 47.683: Error / Play Activity (6215): Performed on Honor. .. // locked 0 8-04 17: 24: 56.943: Error / Play activity (62...

database - How can I write a SQL statement to update a column in a table from another column in the same table? -

I have an Oracle DB where a program writes in two columns when it updates the table in the second column 1 column Based on the price. For a long time people have edited the database manually and forgot to include value in 2 columns. I want to write a simple SQL statement which updates all the columns and syncs 2 columns in 1 column. I know that there is some simple statement to do this. To make a little Google I thought something like the following: Contact the updater suppliers - supplier_name = (Choose customer name from customers where customer customers.Customer_id = suppliers.supplier_id) (Existing customers select Name FROM customers where customer customers.Customer_id = suppliers.supplier_id); However, it is between 2 separate tables where I am doing it on the same table. Believes that both columns are not zero if the columns are faucetable, then its Use decoded instead: set_table_table column 1 column = 2 column WHERE decode (column1, column2, 1, 0) = 0; ...

sql - Mysql Query Confusion -

मेरे पास ये टेबल हैं: डोमेन domain_module domain_module_feature_to_domain एक डोमेन में कई domain_module_feature (ओं) हो सकते हैं, domain_module_feature_to_domain तालिका में 3 कॉलम - dmf_id, dmf_domain_id और dmf_feature_id है। इस उदाहरण के आसानी से मान लें कि डोमेन में केवल 2 कॉलम हैं - dm_id और dm_name। मैं एक "उन्नत" खोज को अनुमति देना चाहता हूं जहां मैं देख सकता हूं कि किस डोमेन का उपयोग सुविधाओं का होता है, उदाहरण के लिए फ़ीचर 1 और 2 नहीं, लेकिन सुविधा नहीं है 3. किसी कारण के लिए मैं इस पर अपने सिर को बिल्कुल भी नहीं देख सकता। मुझे लगता है कि छद्म-एसक्यूएल जैसे कुछ भी होगा: SELECT * `डोमेन 'से बाहर जायें domain_module_feature_to_domain पर (` dm_id` = `dmf_domain_id`) जहां` dmf_feature_id` =' 1 'और `dmf_feature_id` =' 2 'और` dmf_feature_id`! =' 3 ' क्या आप मदद कर सकते हैं? धन्यवाद। ... SELECT * से 'डोमेन' जहां मौजूद है (SELECT * FROM domain_module_feature_to_domain WHERE dm_id = dmf_domain_id और dmf_featu...

flex - inline formatting of a tooltip of an itemrenderer of a datagrid? -

How to do some parts of the tooltip adventure? I'm showing I'm generating a Upakrntip, column name to a Detagreed in Detatreder and then assume I assume I want to be bold ... public override function set data (Value: Object): Zero {var dg: DataGrid = this.listData.owner as DataGrid; Var Datafield: String = (DatagridColumn as dg.column [this.listData.columnIndex]) .dataField; Var toolstring: string = ""; (Var i: int = 0; i & lt; dg.columns.length; i ++) {var field name in DataGridColumn) .dataField As String = (dg.column [i]; ToolString = StringUtil.substitute ("{0} {1}: {2} \ n", ToolString, FieldName, DisplayLead (Value [Field Name])); } This.toolTip = toolString; Super.data = value; This.text = displayString (value [dataField]); } If you want to change all tooltips in your application, you can do this / CSS, as mentioned here in the document. I have found that often to be limited, so it is more common I will make one. The document is a...

flash - how to prevent Google from indexing the div placeholder for swfobject? -

I am using swfobject, and in the replacement div I have a message that does not have Flash or JS support . There is a message in the replacement divis such as "You do not have a Flash Player, please download here" - My concern is here, that Google will see and index this message, which is not relevant to the content Of the page, and it is going to affect search ranking. Is there a way to mark a piece of content that Google is ignoring? My guess is not But how can you go about keeping a message without indexing it? My only idea is, but then Google will punish any site that uses frames so that there is no good option. Any thoughts? Edit: Google Enterprise Search Works Only Sorry

vb6 - Number of copies never passing from print dialog, always 1 -

We use a VB6 application that vbprndlg.dll to print selection dialog Library user to show Here we have recently received a report from users on Windows Vista and 7 (both 32 and 64 bit), which states that the number of copies is always 1, it does not matter if they are copies on the dialog box What do the numbers put in When the exact same code is running on an XP Pro machine, the number of copies passes through the reporting object. So far I have run a test using both the normal communication control and vbprndlg .dll to increase the print dialog on both Vista and 7 computers, and every time the number of copies Always be reported to be 1, if I type the number in the box or use the button to increase the arrow buttons. Number of copies other properties - such as which printer is selected and from page number Or report correctly When I work hard on the number of copies of the crystal report object (shown below), then correct copies of print # - so this dialog instead of cry...

latex change heading text -

I want to change the text for some titles in some parts of my latex document. Specifically, I am using the 'Book Document' class, and I want to change the title of 'Chapter #' on some custom text ... Once I have used for the Latex and Book Doc class The files included are touched, but I think the better solution ... any thoughts? You can use \ Renewcommand {\ chaptername} {MyChapter}

java - JPA left join to find unused entries -

I'm sure I'm stupid but I can not seem to know ... There are two tables: Department (made, name) employee (EID, first, last, done) They have related institutions which enter department and staff in JPA management The employee has a departmental field, the department does not maintain the employee list. What I have to do, though, is getting all those departments who do not have any employees using plain old SQL It is easy to connect with one left: SELECT d * As Dffter, join the department as e-DIDID = EDID, where eDID is the tap How do I translate this query into JPQ? Can i For example, the example I have found for JPQLL passes through another way. for example. Select from the employee and add e-mail to e.departmert d while something else like Select D from Departments De Lieut Job D. Line Where eDepartment is faucet But the department does not have a reference for its employees (in my application it is clearly not to the departments and employees). I...

How to identify decent C++ developers in an informal gathering -

I am going to an annual free software / open source conference. This event is very community-oriented and the hallway meetings are very informal. Since the company I'm currently working on is looking for C ++ developers (in a Linux environment), I printed the letter "We are recruiting C ++ developers" on the T-shirt . Hope someone will come for me, introduce myself and tell me that he is a C ++ developer and is looking for a job. What should I ask them to measure their C ++ knowledge? I need a question that can be raised in a crowded hall and with a pastry. An example can be: Why a killer should be virtual Or maybe some other open question such as: / P> What is your least preferred C ++ feature? Explanation: This question will not replace an interview, it seems to give an estimate whether someone Suitable to invite the candidate in the interview. Apart from this, we already have a very competent person who is working full time to fill these ...