Posts

Showing posts from June, 2011

Adding date boosting to complex SOLR queries -

I currently have a SOLR query that queries (q), query field (qf) and phrase field (pf) Uses I want to retrieve results is an example: / solr / select? Q = superbowl and qf = title ^ 3 + title = 2 + intro + integer & amp; Pf = title ^ 3 + title = 2 + intro + integer & amp; FLI = ID, title, TS_modified, score and debug learned = true The idea is that the title and title of "main object", its best indicates that the result "about "But introduction and full text also provides some input. That is, imagine a collection of links, where there is a metadata in the archive (what is its collection), but each link has its data (link title, summary, etc.). If we search for "superbowl", then the most relevant results in the archive metadata are "superbowl", the least relevant results are "superbowl" in the summary of those links ... but they are all valid results. What I'm trying to do promotes the score of relevance so that t...

asp.net - Replace CheckBoxList TemplateControl with custom UserControl? -

I'm trying to create more detailed item templates for standard checkbox list controls. It exposes a ITemplate property called TemplateControl, but I did not really find it to use can not find a simple resource here is the code I have so far: Protected Overrides Sub OnLoad ( ByVal e as System.EventArgs) MyBase.OnLoad (e) dim before new list (ListItem's) items.Add (new ListItem () to {.text = 'a' along, .Value = "1"}) items.Add (new ListItem () {.text = "B", .Value = "2"}) (with items.Add (new ListItem) {.text = 'C', .Value = "3"}) Dim Lst New CheckBoxList () dim TPL as ITemplate = LoadTemplate ("~ /CustomListItem.ascx") Dim G New (with as TemplateControlWrapper) TPL .InstantiateIn (g) lst.TemplateControl = g lst.DataSource = item lst.DataBind () Form.Controls.Add (lst) End Sub class got TemplateControlWrapper inherited UserControl End Class It seems TemplateControl is completely ignoring the property, an...

How can I disable "HTML Checking" in NetBeans? -

I am using NetBean's compile setting, and when I'm editing , Then it's really easy to have a single file but when I'm working with a square (or more) square files and switching between files, I have a problem: Tasks tab is almost useless because it is in the project generated by some external device from the HTML "error" message (+) E dozens are full of HTML files HTML number of errors also removes any real Java errors. I want one of these: One way to tell NB to ignore the directory with HTML files ("help"). One way to close HTML "errors" or to specify HTML. One way to filter "work" errors via the file type, the parent folder: All Java is under "com". I used settings and properties, but found nothing which helps. & lt; Rant & gt; Yet another reason is that I hate an IDE which uses the "takes everything in the folder" approach .... & lt; / Rant & gt; + = files are valid...

database - album tree deletion -

मेरे पास तालिका है album_id | उप_ अलबम_आईडी | नाम sdf2342 | 0 | परिवार a2243d | Sdf2342 | पत्नी 23ods | Sdf2342 | जैक 23jskd | 0 | मैं उसके सभी उप-एल्बम के साथ चयनित एल्बम को हटाना चाहता हूं और यदि अधिक उप-एल्बम है तो उन्हें भी हटाएं .. इसलिए उप-एल्बम में उप-एल्बम भी हो सकता है ... जैसे कि फ़ोल्डर ट्री व्यू। कोई सीमा नहीं है। मैं कैसे एक एल्बम के सभी उप एल्बमों को चयनित एल्बम के साथ हटा सकता हूँ .. यह एक प्रश्न के साथ कर रहा है। यदि आप पदानुक्रम से बार-बार पंक्तियों को हटाना चाहते हैं, तो यहां कुछ अच्छी पृष्ठभूमि है:

tdd - When to use a unit testing framework (vs. just using asserts)? -

I'm working on a small (currently 150 places, possibly less than 500) project, Based on some things I found on the Web - especially, I am simply using the bus in my unit tests. Since I am learning now, I stay far away from the overhead too. Learning Unit Testing settings such as kuunts At this point, my thinking is that the extra learning phase - even a shallow one I am thinking that the structure is not worth the effort for such a small project: is it wrong (i.e. now it will be better to learn the framework)? How does one framework stop at some point? There is a break too to learn a unit test frame. Not long to reach More detailed message for intent failure: Expected real actual value Execution of all test cases in lieu of prevention of previously unsuccessful claim Two indicate where the error is located.

asp.net mvc - What is the MVC program flow? -

What happens after I write in the URL of my application by looking for the good details of the flow of events (life cycle) Is there any one in the browser when the page actually appears? Thank you. This is the one by which help can be found.

How do I include the text of a file in my Java code? -

It looks like Java has been set up for what I did before in C ++ (no big surprise) has not been done. I have a set of rules that arise from any other application (if-series of investigation then). These rules change from time to time, so in C ++ I will do this: double variables ForRules = 1; Bool condition = false; #include "rules.out"; If (condition) // do something essentially checks in the rules, then to determine whether the position should be set to the correct, "variable "Forearium (and many other variables). If it is set to true after the eval of the rules, then the program does something. Is there a similar way to do this in Java? Or my only choice of rules. Actually there should be a whole class, which must be done immediately. Thank you! Since you are automating the rules.out, you can do your Java function as Hopefully autogenenerate is not very painful in adding functionality to it.

Why do I get the u"xyz" format when I print a list of unicode strings in Python? -

कृपया निम्नलिखित व्यवहार का पालन करें: a = u "foo" b = u " B \ xe1r "# \ xe1 एक उच्चारण के साथ एक 'ए' है s = [a, b] print a, b प्रिंट s s में s: print x, परिणाम है : foo bár [u'foo ', u'b \ xe1r'] foo bár जब मैं बस वैल्यू में बैठे दो मान मुद्रित करता हूँ एक और b , मुझे मिल रहा है जो मुझे उम्मीद है; जब मैंने एक स्ट्रिंग मान को सूची में डाल दिया और उसे प्रिंट किया, तो मुझे अवांछित u "xyz" फ़ॉर्म मिलता है; अंत में, जब मैं सूची से एक पाश के साथ मूल्यों को मुद्रित करता हूं, तो मुझे पहले प्रपत्र मिल जाता है। क्या कोई इस प्रतीत होता है अजीब व्यवहार को समझा सकता है? मुझे पता है कि शायद एक अच्छा कारण है। जब आप एक सूची मुद्रित करते हैं, तो आपको repr () प्रत्येक तत्व की सूची वास्तव में मुद्रित नहीं होती है, इसलिए अजगर इसकी संरचना के कुछ प्रतिनिधि को मुद्रित करने की कोशिश करता है। यदि आप इसे किसी विशेष तरीके से प्रारूपित करना चाहते हैं, तो कैसे आप इसे स्वरूपित करना चाहते हैं, या इसकी __ repr __ विधि को ओवरराइड कर...

flash - AS3: Loading SWFs in a for loop -

I am trying to load the external SWF for the loop, and I have a problem that is actually eating me Is: Event handler I need to know the loaded SWF file name, but I can not get it. The code below shows what I am trying to do. Anyone have any ideas? function loadManySWFs (arrayOfFileNames: Array) {for (var i = 0; i & lt; arrayOfFileNames; i ++) {var mLoader: loader = new loader (); Var mRequest: URLRequest = new URLRequest (arrayOfFileNames [i])); MLoader.contentLoaderInfo.addEventListener (EventComplete, OnloadComplete); MLoader.load (mRequest); }} Function onLoadComplete (e: Event) {// Here I have to know the file name of SDF which was loaded. how can I do this? } Thanks for any help! event .target That is, you can retrieve that URL. function onLoadComplete (e: event): zero {LoaderInfo (e.target) .url); }

java - MD5 Signing a HttpServletResponse -

I'm looking for a way to inspect the contents of a HttpServletResponse MD5 hash Pseudocode can look like this process (reply response, request request) {defaultProcessingFor (response, request); Dispatcher.handle (feedback, request); // Here I want to read the contents of the response object (now filled with data) so that the MD5 hash can be prepared with them and it should be added to a header. } Is this possible? Yes, this is possible. You need to decorate the response with the help in which you replace it with a custom implementation that writes the byte to both the MD5 digest and the "basic" outstream stream. Finally provide an accessor to get the last MD5 amount. Update I just went a little bit for fun, here's a kickoff example: Response Casing: Public Sector MD5ServletResponse HttpServletResponseWrapper Extended {Private Ultimate MD5ServletOutputStream Output; Personal Final Prints Author Writer; Public MD5ServletResponse (HttpServlet...

.net - How do I authenticate a user to consume a web service programmatically? -

I have a web service set on an IIS server when I navigate to the page in a web browser, then I want to In the form, I ask for a username, though I have to serve one. Want to consume in the NET application (C #). What do I need to do to provide a username and password program so that I can use the service? Or is there any other way that I should authenticate the user? Try something like this: YourWebReference webservice = New YourWebReference (); Webservice.Credentials = New System.Net.NetworkCredential ("user name", "password"); Webservice.DoSomething ();

Breaking circular references while maintaining access to attributes (Objective-c) -

मेरे पास दो वर्ग ( test1 और test2 ) हैं जो प्रत्येक एक संपत्ति (क्रमशः test2 और test1 क्रमशः) दूसरे वर्ग के एक उदाहरण की ओर इशारा करते हुए इसका अर्थ है कि Test1.m को Test2.h आयात करना चाहिए और Test2.m को Test1.h आयात करना होगा। .h फाइलों में एक आगे घोषणा भी होनी चाहिए। दुर्भाग्य से, इसका मतलब है कि मैं test2 और test1 के गुणों को डॉट नॉटेशन के साथ एक्सेस नहीं कर सकता। मैं उन्हें संदेश पास करने के साथ पहुंच सकता हूं, लेकिन मुझे या तो नोटेशन का उपयोग करने में सक्षम होना चाहिए। मैं इस समस्या को कैसे सुलझा सकता हूं? संबंधित टेस्ट 1 // test1.h @ वर्ग परीक्षण 2; @ इंटरफेस टेस्ट 1: एनएसओबीज {टेस्ट 2 * टेस्ट 2; Int a1; } @प्रॉपर्टी (नॉनैटोमिक, बरकरार) टेस्ट 2 * टेस्ट 2; - (शून्य) मेथ 1; @end //Test1.m #import "Test1.h" #import "Test2.h" @ इप्लिमेंटेशन टेस्ट 1 @ सिंटिसाइज़ टेस्ट 2; - (शून्य) meth1 {test2.a2; // किसी संरचना या संघ में कुछ 'सदस्य' के लिए अनुरोध} @end Test2 // Test2.h #import & lt; फाउंडेशन / फाउंडेशन। एच...

A design pattern question -

I am preparing an application, and I am unable to pinpoint the correct design for it. I have one in mind, but it is not part of GOF pattern and therefore I'm not sure that this is a good way. My project probably creates data from any data 15-20 documents (documents are of the same type, but data can vary widely). After receiving the data, it should be displayed and displayed in any supported 4 formats. Also, to complicate matters, even though the documents are broadly classified into 4-5 types, some documents (in these classifications) are formatted in the same form. Now, I have given it the following methods: Data creation Data display Data creation common interface Creates an interface with an interface that can control all of these documents. The data display reads through the data object and displays the way it is needed. My first question is - I did not know about such an interface object. GOF pattern set is such a good design decision? As I mentioned e...

ruby on rails - String to Array and Hash with Regexp -

I would like to turn on a string with the opening hours like this: "Monday - Friday> 10: 00-18: 00; Saturday &&; 12: 00-17: 00; Sunday> 12: 00-15: 00 " In: [[:: duration = & gt; "Monday-Friday" ,: hours = & gt; "10: 00-18: 00"}, {: duration = & gt; "Saturday" ,: hours = & gt; "12: 00-17: 00"}, {: duration = & gt; "Sunday",: hours = & gt; "12: 00-15: 00"}] I'm trying it with a string. Scan () method but can not understand the Regex. In addition to this, if you have a suggestion that it is a way to reverse the best way (i.e., when it takes time to open some form.) Updates - You get all the right solutions! Right now I am using (thanksgjedelen): str.scan (/ ([\ w]] +)> ([\ d: -] + ) - ([\ D:] +) /). Map {| (P, O, C). {: Duration = & gt; P, opens: = & gt; O, shutdown => C}} but how is it now reversed =) then given: [{: opens => ...

c# - How can i use XMP to modify metadata of Sharepoint Document? -

I am trying to modify the meta data of Sharepoint document. How I can use XMP for this task ? Using C # Can someone give me some code samples? image and XMP

c# - "Error: Phone reports generic communication error or syntax error. (GsmComm.GsmCommunication.CommException)" -

I was checking the sample code with the GSMMC library, my modem is the Nokia 5130 Express Music modem and the connection was done successfully But when I tried to send the SMS .. I got this message "Error: Phone Report Generic Communication Error or Syntax Error. (GSMMCMGSM Communication .comexception)" What's the problem? Any other code is ... Just make sure your port is the same where you have your own mobile phone. One method goes to the device manager and checks the comm port, which is listed there along with the name of your phone. If that port is COM14, then try connecting to COM15

How to use jQuery to call ASP.NET AJAX Page Method? -

ASP.NET AJAX पृष्ठ विधि को कॉल करने के लिए jQuery का उपयोग कैसे करें? डेव वार्ड द्वारा देखें।

iphone - how to give background color for selected text in text view -

How to paint the background color for the selected text in the text view? Hi, I'm developing text visual based app. In I. I have to change the color for the selected text. I tried to use representative methods but I did not find any such property. If any iahve any ideas, suggest how to overcome this issue. Thanks in advance "postproperty" itemprop = "text"> There is no way to change the selection color within the appstore limit. In fact, the selection of MobileNotes.app background is light blue even though it is dark, we can see that the selection of the blue non-blue background does not allow background color. However, you can calculate the rectangle captured by selection, then make a colorful transparent non-interacting UIView over it to simulate the background color change. Unordered method by globally overriding + [UIColor selectionTintColor] (for example, etc.) By using) em>

php - How to commit on a Google code branch? -

How can I access a Google Code Subversion branch using Cheese? Apparently I am doing a problem with it because TortoiseSVN is asking for username and password I input the e-mail address I used to create the project and its Had a related password and it does not work. Update: Great, I was committed but now I have a new question, can I remove such test folders in Google Code that I have committed? "post-text" itemprop = "text"> You generate a different password for the SVN login. Go to your settings in Google code, and set a Google code password. This is different from your google.com login. Check out for a step-by-step walkthrough.

internet explorer - jQuery 1.3.2 append() fails in IE7 and IE8 -

कोड सरल है प्रत्येक ब्राउजर में काम करता है लेकिन आईई। जे.जेट ('/ अपलोड / अपलोडप्रक्रिया /' + अपलोड की गई है, फ़ंक्शन (डेटा) {जे ('# अपलोड-फाइल')। ;}); डेटा पर सतर्क () आवश्यक डेटा दिखाता है HTML और - कोई जादू नहीं है jQuery 1.4 पर अपग्रेड करने के लिए नहीं पसंद करेंगे। पृथ्वी से इंटरनेट एक्सप्लोरर को मिटा देना पसंद करेंगे समस्या यह है कि प्रतिक्रिया वाले शरीर में अमान्य HTML है - एक अतिरिक्त & lt; / div & gt; । यह उस दस्तावेज़ में डालने जा रहा है जिसे HTML सख्त होना चाहिए।

How does HL7 format process ECG (digital) data -

Whether the HL 7 format (if stored in XML) can be stored and ECG data is generated on the digital display ECG machine ? If so, how does it? Is this raw image data (BMP) or XML like tag? Any help is welcome. Thanks, Xibee I am too late for the party but future readers I am about to add my st to. The HL 7 (for ECG) specifies a specific format in which the format is requested by the FDA (clinical trial) in xml (for example) during the saving of ECG data (AFAI ). See how to implement it, especially about the "set of sequence" node, read page 34, which includes the personal lead of the ECG which you want to save. Note that sequenceset / sequence number one does not contain your raw data but it is used to interpret future sequences! This means that if you have 12 lead ECGs regularly, then your XML has 13 views ECG Data InSales are saved in the "Points" node of each sequence Are there. Note that these should be of lower value and they should match the ...

indexing - TOP 2 faster than TOP 1 in Sql Server? -

"postproperty" itemprop = "text"> We have a table with + - 500k rows in the SQL Server 2005 database and a full text index from your columns. We were doing some tests and found that SELECT TOP 1 ... was taking longer than two minutes to return (full text column, 'anyValue'). Thank you, thank you! > Edit: Some more information about the problem, SQL uses a remote scan on top 1 query plan , While the Top 2 uses index sequence. Very strange Edit 2: These are both execution plans from Sql:. Top 1 StmtText - ---------------------------- ---------------------- ---------------------------- ---------------------- ---------------------------- ----------------- | --Tap (top expression: ((1))). --Nested Loops (join the left half where: ([ECRReload] [dbo] [TECR_PRODUTO_COMPLETO_VENDAVEIS] [idProduto] = [full-text search engine] [KEY] ....)). --Index scan (object: ([ECRReload] [dbo] [TECR_PRODUTO_COMPLETO_VENDAVEIS] [ix_tecr_produto_completo...

.net - How to sign CAB file using signtool.exe? -

मेरे पास 3 फ़ाइलें हैं mycert.cer mycert.pvk mycert .spc क्या कोई मुझे समझा सकता है - मुझे ये फाइल किस लिए उपयोग करनी चाहिए? कमांड लाइन से signtool.exe का उपयोग कर मुझे test.cab फ़ाइल पर हस्ताक्षर करने की आवश्यकता है I लेकिन मुझे समझ में नहीं आ रहा - यह कैसे करना है। मैनुअल बहुत अच्छा नहीं है: ( अग्रिम धन्यवाद। यदि आप एक सरल समाधान चाहते हैं, तो आप साइन्टोल के विज़ार्ड मोड (निष्पादित signtool signwolver ) की कोशिश कर सकते हैं, उदाहरण के लिए समझाया गया है। लेकिन अगर कमांड लाइन निष्पादन की आवश्यकता है, तो जांच लें ।

email - Is an e-mail address a URI? -

I have tried to ascertain whether the e-mail address should be asked to follow the definition of one May be URI or not, but I have not received any clear confirmation about it yet. I hope someone can provide me some insights here. Thanks in advance :) Yes, but with the "mailto:" prefix. The URI has this form: & lt; Scheme & gt ;: & lt; Plan-Specific Parts & gt; & lt; Scheme & gt; is "mail", & lt; Scheme-specific parts & gt; know. For example: Mail: max@provider.com is a valid URI.

How to switch image based on anchor tag using jQuery? -

I have a list of thumbnail images when the user clicks on a small thumbnail image, to show this full image It swaps. I'm trying to get the anchor tag name so that I can blast value i . But I am working on it, no idea? My Javascript: Function swap (image) {document.getElementById ("main"). Src = image .href; } My HTML & amp; PHP Script: & lt; Img id = "main" src = "images / main.jpg" width = "226" height = "226" alt = "" /> & Lt; P & gt; & Lt; Strong & gt; Day & lt ;? Php echo $ i; ? & Gt ;: & lt; / Strong> & Lt; / Strong> & Lt; Br / & gt; & Lt ;? Php echo $ today [$ i]; ? & Gt; & Lt; / P & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt ;? For Php ($ i = 1; $ i & lt; $ day; $ i ++) {echo '& lt; A href = "picture / predecessor - '. $ I.' .jpg" name = "day - '. $ I." "Oncl...

internet explorer 8 - IE8 table images outside of cells when loading -

Image
As part of the webpage, I have a photo gallery using the table with 6 rows and 3 columns. I Images with IE8 are hanging vertically outside their cells and overlap the cell below until the page is fully loaded, or until the page refreshes (or the cursor is passing over the image) , Then the image will be transferred). All other browsers and versions of IE are OK Loaded (or refreshing) page is fine, when it looks quite bad as a page load. I have found that the only solution is to create a new table for each line The code validates that I have removed the javascript from the page and tried to delete the HTML and CSS step by step, but It does not seem that an issue is fixed. I come to the conclusion that the browser or its display may be an issue? I suspect that when problems are having other demands on my system resources then problems can get worse or maybe more. I appreciate any suggestion Screenshots this is randomly and if I refresh the page, but just goes into IE8 IE7 ...

Example of Visio + Architechture of JSF application -

I was asked to show the technique design of my JSF application with Visio. Is anyone an example of the uml Visio diagram? If your problem is actually that you do not know how to make UML / usage in general / I would recommend learning about it, you can install / use UML plugin for / to port / Visio to generate some UML in your IDE. If you are using Eclipse for example, / Li>

jinput - How to interpret gamepad-rumblers? -

I am experimenting with ramps on my gamepad and when I read Gamepad (with JeanPut), It finds 5 ropes. So I expect from the gamepad to have two ranks in each side and one in between. However, this is not true because: Struggling in anger always comes from one side, and; If I mess up the 3 or 5 rumblers together, the thunder is only a little stronger - compared to just one kind of tickling, not expected, 3 or 5 times stronger. So I do not know what to think about it. Can someone explain how to interpret these five pundits (from developer-perspective)? Suppose you are actually activating all five ropes, not experiencing five times the increase In the interpretation of this, it seems that the first rumbler contributes significantly more to the balance pad than the balance. This is expected to be expected unless the rumbler is fully deployed in the unpopulated (temporary) situation within the gamepad. As for the situation, as you say (indirectly), all are located on one...

Python / Regex: exclude everything except one thing -

मान लीजिए मेरे पास ये स्ट्रिंग हैं: a = "हैलो" b = "-hello मैं केवल - (स्ट्रिंग C / code>)? मैंने एक कोशिश की है अगर "-" कुछ में लेकिन जाहिर है कि यह सही नहीं है। क्या कोई कृपया सलाह दे सकता है? मान लीजिए कि हम इन तारों को एक सूची में डालते हैं, इन्हें खोला जाता है और जो सभी मैं निकालना चाहता था वह C था। मैं यह कैसे करूँ? सूची 1 में: अगर नहीं re.findall ('[^ - $]'): मुद्रित aa बहुत गंदा? यदि आप केवल वेरिएबल सी : यदि '-' == कुछ: प्रिंट 'हूर्रे!' अपडेट का जवाब देने के लिए: हाँ, यह बहुत गंदा होगा। आपको वहां रीगेक्स की ज़रूरत नहीं है सरल स्ट्रिंग विधियां तेज हैं: & gt; & gt; & gt; Lst = ["हैलो", "-होलो", "-", "नरक-ओ", "-"]> gt; & gt; & gt; I के लिए, आइटम को एन्यूमरेट (lst): यदि आइटम == '-': प्रिंट (i, आइटम) 2 -

multithreading - Non-deterministic programming languages -

I know that you can do something in a prologue some functions (list ): - Some other functions (X, list) doSomethingWith (X)% and so on This list will not be repeated on every element; , With a different execution for each possible value, it can separate "machines" (using multiple threads, backtracking on a thread, X some other functions (X, List) causes to return the truth! (I do not know how this happens, but it is not important for the question) My question is: Other non-manual programming languages ​​are out there? It seems that non Neutrality is the simplest and most logical way to implement multi-threading in a language with temporary variables, but I've never done this before - Why is not this technique more popular? Nodederminism is unpopa because it makes it difficult to think about the consequences of your programs, and in fact the ethical hang (as Concurrent ML, which has information about communication Languag...

iphone - NSFetchedResultsController with predicate based on dependent property -

मेरे पास एक कोर डेटा आईफोन ऐप है जो सदस्यता संस्थाओं को प्रदर्शित करता है, जहां उसका कोई भी आइटम नहीं हैं पढ़ा । दूसरे शब्दों में, मैं इस तरह एक विधेयका का निर्माण करता हूं: [एनएसपीडिकेट प्रॉजेक्ट विथ फॉर्मेट: @ "कोई भी आइटम नहीं .read == नहीं"] हालांकि यह काम करता है प्रारंभिक प्राप्त करने के लिए, यह सदस्यता संस्थाओं को प्रभावित नहीं करती है जब मैं आइटम को संशोधित करता हूं, तो NSFetchedResultsController सदस्यता को कभी भी पुन: मूल्यांकन नहीं करता संस्थाएं सदस्यता एक आइटम की पढ़ा संपत्ति सेट की जाती है, तब भी इसे अपडेट करने का एक बेहतर तरीका क्या होगा? मैंने इसे बनाने की कोशिश की items.read वाले एक सेट को वापस करने के लिए unreadCount पर सदस्यता और keyPathsForValuesAffectingUnreadCount का उपयोग कर रहा है। मुझे यह काम करने की उम्मीद नहीं थी, और ऐसा नहीं हुआ। मुझे _NSFaultingMutableSet से एक अपवाद मिलता है कि पढ़ा कुंजी समर्थित नहीं है। मुझे दो समाधान मिलते हैं: जब आप किसी आइटम को संशोधित करते हैं, तो प्राप्त किए गए परिणाम नियंत्रक...

jquery - Logic for stacking behaviour in javascript -

I am trying to write some javascript which will stack the object by setting the z-index. Test case: I have hacked together, but I want to extrapolate that behavior a bit more logically. It is: Given the number of elements, when element C is moved to the top, then all the elements above that element wade below 1, while all elements of the element beneath that element Must stay on A "linked list" makes for a good data structure when you are talking like this Keep track of the order of your stackable elements through a series of simple nodes. // ListNode {value: {} Next: {& lt; ListNode & gt;}} .. and updated or added sequence as new nodes. I did an example of a list used for deep sorting on the following URL:

iphone - Objective C in C++ – Out of Scope -

I have a little problem with WOsclib, especially not with the library, this callback function is also high. Listen to specific OSC commands I have to keep some callback methods such as zero TheOscStartMethod :: method (Const. WOscMessage * message, const WOscTimeTag and when, Configure TheNetReturnAddress * Network ReturnAddress) {std :: Cout & Lt; & Lt; "Start signal found"; Start.alpha = 1.0; } The starting IBOutlet is UIImageView. But the compiler tells me that the starting radius is out. If I try to start in obj-c code, then it should work as how can I get my Objective Object C in C code or at least any Objective-Function I can call Thanks Create an objective C ++ file with the file extension. MM then you can call Object C and C ++ objects in the same code. The XCode file extension will call the correct compiler (i.e. adding x-c ++ to the compile command) It is not that C ++ and Objective-C are different Languages ​​and understand each oth...

sql - Self join of time series data -

I need some help that I think should be a very simple self-job query. This is just adding the matching time and end time to two records in one record I have the following in a table Time event 08:00 start 09 : 00 stop 10:30 start 10:45 stop 11:00 start 11:15 start 12:00 stop 12:30 stop I want a scene like this starttime stoptime 08:00 09:00 10:30 10:45 11:00 11:15 12:00 12:30 Note that starting a closest match Should or should Time. If there is no matching event for any reason, then it should be kept blank. Thanks, Disclaimer: Thinking of a different table design will never be a good idea to join the dates and time. If you have an id of the event that you are starting then you can easily join in trying to find the end of the match of that event. Try for SQL Server: Enter '@Events value (enter '09: 00,' Stop '): @Events table (EVENTTIME FOUR (5), EventType varchar (5)) @Events value (00 ',' Start '08) 'included in the decla...

c# - LINQ query returns way more results than in the entire database -

I have the following LINQ query: The problem is that 13k results are coming back when tblSurveys only 20 are all what I am doing wrong from centrally located in surveyContext.tblSurveys (s.Survey_Date surveyContext.tblSurvey_Types in the surveyContext.tblTypes_for_Surveys in R & gt;? = STARTDATE & amp; & Amp; s.Survey_Date & lt; = stopDate) & amp; Amp; (S.Unsubstantiated || (st.SurveyID == s.SurveyID & amp; amp; st.SurveyTypeID == t.SurveyTypeID & amp; amp; amp; amp; amp; t.UnsubstantiatedAvailable & amp; From where d.SurveyID = = S..ServveyID selection d.DeficiencyID) .ount () == 0)) by order order s.Survey_Date s; Do you have foreign keys and relationships setup in your database? If so, you can make your query very simple. I also recommend not changing the name of your table in the .dbml file, even if they are not all 'tbl' prefix. You set up relationships, your query (something) can look like this. where (s.Survey_Date> ...

svn - Using a variable to define a VCS root URL in Team City -

We are trying to define a teamcity project for a release tag. When we are ready to release, we tag the trunk with a tag that contains the version number. We want the building process of checkout based on this tag and when the build is completed, move the file under a name to the folder, which is based on the version number. We are interested only in this "latest edition" project, so whenever we go to a new version, we will reconfigure the existing TC project with the new version number. The problem I have is in the VCS Root URL Parameter (SVN). I know how to set a variable to build a build that can be used in the processes, which we can use to configure files to be moved in the file. However, I can not find a way to create a variable that we can refer to in the SVN URL. Is there a way to get the VCS URL from variables? Is it possible to share a variable between the VCS root and the project configuration? I do not think Team City supports it, you do not use the ...

asp.net - WCF + Json = wrong serialization -

क्यों यह WCF 3.5 विधि [सेवा संपर्क] [AspNetCompatibilityRequirements (RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed )] सार्वजनिक वर्ग जेसन [[ऑपरेशन कॉन्ट्रैक्ट] [वेबगेट (रिस्पांसफ़ॉर्मेट = वेब मेसेजफ़ॉर्मैट.जेसन)] सार्वजनिक स्ट्रिंग ऊपरी (स्ट्रिंग टेक्स्ट) {रिटर्न टेक्स्ट। टूवरपर (); }} रिटर्न {"d": "TEXT"} ? इसे {"TEXT"} मैं jQuery का उपयोग कर कॉल कर रहा हूं। $ ("# ऊपरी")। क्लिक करें (फ़ंक्शन () {$ .ajax ({type: "GET ", Url:" /Json.svc/Upper?text = "+ $ (" # input1 ")। वेल (), सफलता: फ़ंक्शन (डेटा) {$ (" # input1 ")। Val (data.d); }});}); यह एक सुरक्षा सुविधा है जो। 3.5 3.5 में JSON सीरियललाइजेशन में जोड़ दी गई है। । यह कंटेनर ऑब्जेक्ट है, इसलिए इसके बजाय, कहते हैं, परिणाम [0] , आप केवल results.d [0] कहेंगे। अधिक जानकारी के लिए पढ़ें।

Write XML File from a flex application back to a rails Server -

I have an XML file, which I want to send to the rail server, I use the following code to do this: & lt; In the function triggered by the save button, I do the following: mx: HTTPService id = "dataService" result = "resulthandler (event)" result = "e4x" /> / P> var params: Object = {}; Paramaze ["xml_file"] = xmlDoc; DataService.method = "POST"; DataService.url = "http: // localhost: 3000 / container"; DataService.send (parameter); Unfortunately there is always the problem (see below). If I remove Parameters var, then it runs a GET request ... [RPC Fault faultString = "HTTP request error" faultCode = "Server.Error.Request" faultDetail = "Error: [ IOErrorEvent Type = "IoError" bubbles = false cancelable = false eventPhase = 2 text = "Error # 2032: Stream-Fehler URL:"]. URL: "] What could be the problem? Thanks for any indication! Markus You are...

JQuery UI Nested Tabs - Load AJAX content into a single DIV -

all, I'm using the jQuery UI nested tabs to consider this type of structure There are 2 main tabs: Animals, Birds. Under the animal, two tabs "cats", "dogs" are both tabs "cats" and "dogs" should be loaded via AJX when clicked. Therefore, the code for them is something like this: & lt; Div id = "fragment-1" & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "/ public / catstab" & gt; & Lt; Span & gt; Cats & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "/ public / dogstab" & gt; & Lt; Span & gt; Dogs & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ("# tabs-loading-message") Show (); $ ('# fragme...

Can I make a video of a running Java Swing application on the fly? -

I have a Java swing GUI program that renders anywhere between 1 to 25 frames per second. It's just a window and there is only one panel in which I do all the rendering, e.g. No other swing components. I need to be able to produce the test run of my program because it runs. The problem is that regular screen casting tools (such as third-party applications that start before running my favor) often miss some of my frames and I need an exact video. I know how to use robot class to capture screenshots of my java window but i probably can not save them to disk as i run, it will slow down everything Thanks / Div> You can use the FEME wrapper in Java - and Java-level Java. Here is the sample code with Xgler. Last robot robot = new robot (); Final Toolkit Toolkit = Toolkit.getDefaultToolkit (); Last rectangle screenbank = new rectangle (toolkit.gatescarsius ()); // First of all, create the IMDiAddriter to write the file. Last IMADA Author Writer = Toolfactor Ma...

Calculate an Internet (aka IP, aka RFC791) checksum in C# -

Interestingly, I can get the implementation of internet checksum in almost every language except C #. Does anyone have an implementation to share? Remember, this specifies that: "The checksum field is complementary to the complementary amount of 16-bit words all 16-bit. For checksum computing purposes, checksum The value of the field is zero. " More clarification can be found. Something is available, but it's not really one big worry for me at this point. Please include your tests! (Edit: Valid comments about checking someone else's code - but I am going out of the protocol and I do not have any test vectors nor unit tests to see if it is currently being used Yes, it matches!! -) EDIT: Here are some unit tests with whom I came in. They test an extension method that repeats through the entire byte collection. If you get a test error, please comment. [TestMethod ()] Public Zero InternetChecksum_SimplestValidValue_ShouldMatch () {IEnumerable & lt; ...

activex - Where do .CAB files go on my web server? -

I am working on ASP Classic site which uses third party's ActiveX control I have previously used with ActiveX controls Have not worked and I'm not sure where to place the CAB files on my web server so that they can be installed through IE, when IE objects can not run, can anyone tell me the right direction? The code in my page looks like this to load the object: Item id = "printer" class = "CLSID: 402C09 CD-68 ED-48B0-B008-E7B01DDBD2D5" codebase = "RADTATT printer Cab # version = 2,0,0,0 "& gt; From the server's perspective, CAB files are not just being executed on the server - data files are They are installed and executed on the customer, this is the whole point, place them in any place you want, for example, create a subfolder named "cab" under the root of your website and keep them there. If ActiveX (AKA "objects") is disabled in IE, then you Anchit ASP functionality must duplicate. Depending on the na...

SSIS script task error retrieving variable values -

एक स्क्रिप्ट कार्य में, मैं एक नेटवर्क स्थान से एक फ़ाइल को पुनः प्राप्त करने का प्रयास कर रहा हूं और एफ़टीपी उस फ़ाइल को ऑफसाइट स्थान पर मैंने SSIS में FTP कनेक्शन बनाया और परीक्षण किया कि यह सेटअप और काम करता है निर्मित तीन चर चर 1. FullPathName = \ \\\ filename.txt ftpservercsc चर 2 FTPFilePath = \ ftpservercsc \\\ चर 3 FTPFileName = filename.txt एक स्क्रिप्ट कार्य बनाया गया है और इस तरह के रूप में vb कोड जोड़ा ... 'कनेक्शन प्रबंधक का उदाहरण प्राप्त करें सेमी के रूप में ConnectionManager = Dts.Connections ( "एफ़टीपी कनेक्शन प्रबंधक") मंद remotePath स्ट्रिंग = Dts.Variables ( "FTPFilePath") के रूप में मंद। 'एफ़टीपी उद्देश्य यह है कि फ़ाइलों भेजता है बना सकते हैं और कनेक्शन इसे पारित' ऊपर बनाया Value.ToString। मंद एफ़टीपी के रूप में FtpClientConnection = नई FtpClientConnection (cm.AcquireConnection (कुछ नहीं)) 'एफ़टीपी सर्वर ftp.Connect से कनेक्ट ()' FTP सर्वर जहां छोड़ने फ़ाइलें 'ftp.SetWorkingDirectory ( ...

geometry - How to make a Cocoa Disclosure Triangle -

मेरे पास अधिकांश कोड है जो काम करता है [self.disclosureButton setBezelStyle: NSDisclosureBezelStyle] ; [स्वयं। डिसकोजरबटन सेटबूटोनप्रकार: NSPushOnPushOffButton]; [स्वयं। डिसकोजरबटन सेटटाइटल: शून्य]; [स्व। डिसकोजरबटन हाइलाइट: नहीं]; हालांकि, जब मैं बटन दबाता हूं, तो प्रेस को इंगित करने के लिए यह काला हो जाता है। मैं रंग बदलना बंद करने के लिए इसे कैसे प्राप्त करूं? आप देख रहे व्यवहार कोको के प्रकटीकरण के लिए सही है त्रिकोण, इसलिए मैं कहूंगा कि आपका कोड सफल है।

design - Pragmatism or purity - Should we rely on GUI framework to store program state? -

I was once accused of creating C # custom user controls. It has a control with a group of openable sections. Control is a label control that the user can click on to toggle between that script / extension status. Next there is an image control that will change the state to indicate whether a particular segment is collapsing or expanded. Somewhere in control, I need a function to return the status of a particular section. The question is whether the function should be restored to the state on the state under control, or should we deposit the state into an additional variable, which is in addition to the current situation beyond the danger of the sink? Most of the time, when people go with "pure" solutions to such problems, they are just hiding, coupling it Do not remove coupling usually reflects the complex complexity of those problems which they are trying to solve. Since it can not be removed, it can be implemented in a straightforward manner. Your case is no except...

flash - Embed vimeo player in Rails? -

I want to allow users to submit a vimeo url and embed in a player. Is there a plugin or gem that does this? Thanks Vimeo details are how to use your API: Under their "Informal download" page, this is the gem:

iphone - What is the different of parentView and superView -

I am thinking about the difference between a supervision and parent vio. view.parentView view.superView Does the two codes reach the same object? thanks interdev A 'parent' in UIViv 'No ...

unix - Find suid and gid files under root -

I search for find command argument to find all the files under / Setuide and Setgid privileges I have find / so far set or setgid (): Setuid or Setting (POSIX): Find / -Perm-4000 - O-spam-2000 Setid and Setgid: Find / -Perm-6000

javascript - code-style: Is inline initialization of JS objects ok? -

I often get inline using Initializing (see the example below), especially in a switch statement when I Do not know which cases will be loop hits, I know that it is easy to read compared to the statement. But is this a good practice or will it affect side-effect or performance? for (var i in array) {var o = o? O: {}; // init object if it does not exist o [array [i]] = 1; // key-enter code} Is there a good website to get coding style suggestions? Another commonly used pattern to do this, or = Use of operator (slightly more readable than your Ternary IMHO): // ... var obj = o || {}; This operator will return to its second operand if it evaluates the first code false , else it will be the first one. is safe when you expect something, to use it since, because duplicate value null , undefined , NaN , 0 , a zero-length string, and of course false . I used to be useful for setting default values ​​ on function arguments, when definitely expecting to be v...

smarty - If I am using CAKEphp do I need to use smartytemplates too? -

If I am using CAKEphp do I also need to use smartytemplates? no. The cake has its own "template" system, which uses .ctp files, which are just plain HTML / PHP files.

php - Extacting contents from excel in Drupal -

I want to remove the contents of an excel file and give them a new post ( pages ) I want to maintain the row column relationship. Ex: sample.xls Names | Age Sex A | 20 | M b 30 | F C | 40 | M in Drupal (which I want) Name | Age Sex A | 20 | M b 30 | F C | 40 | M Is there a module in Drupal to do this or would I like to make a new one for this? Thanks .. Try the

Are there any java collection wrappers/collections that fail upon multithreaded access? -

I am trying to track some concurrency problems related to collection in large code-base. I would like to replace all the archives / maps with an alternative implementation which throws an exception when the third thread accesses it (or similar; I can work many potential strategies). Anyone know of any library / tools / strategies to do this? I was thinking about replacing one search into the whole code-base and just try to "temporarily try to wrap a different" different version but a conscious map () and put ( ) Methods with ReentrantLock (or what you use): java.util.concurrent.locks.ReentrantLock class X {Private Finals ReentrantLock Lock = New ReentrantLock (); Public Zero M () (If (Lock! LockLock ()) {// Pre-shutdown, hint: lock.isHeldByCurrentThread ()?} Lock.lock (); Try {// reps wrapped hashmap} Finally {lock .unlock ()}}

java - ANT task to move and rename, files and folders, recursively -

मेरे पास एक फ़ोल्डर संरचना है जैसे: /PROJECT/PROJECT.html / प्रोजेक्ट / PROJECT_readme.txt /PROJECT/PROJECT.css /PROJECT/PROJECT.js /PROJECT/abc_PROJECT_def.txt /PROJECT/something.js /PROJECT/other.txt /PROJECT/somefolder/PROJECT_other.txt मैं पूरी निर्देशिका की प्रतिलिपि बनाने के लिए एएनटी का उपयोग करना चाहता हूं और फाइल या फ़ोल्डर में प्रसंग स्ट्रिंग को एक निर्दिष्ट मान जैसे Mysuperproject, इसलिए परिणाम फ़ोल्डर संरचना ऐसा है: /mysuperproject/mysuperproject.html /mysuperproject/mysuperproject_readme.txt /mysuperproject/mysuperproject.css /mysuperproject/mysuperproject.js /mysuperproject/abc_mysuperproject_def.txt / एमएसयूपीपरप्रोजेक्ट / एसोमिंग.जेएस / एमएसयूपीपरप्रूफ / ओटरेस्ट / एमएसयूपीरप्रोजेक्ट / सोफ़ेल्डर / एमएसयूपीपीआरप्रोजेक्ट_थरेस्ट एएनटी में ऐसा करने का एक आसान तरीका है? आपको उपयुक्त होना चाहिए संबंधित डॉक्स को ध्यान से पढ़ें। यह एक मुख्य कार्य है, इसलिए आप इसे कुछ भी विन्यस्त करने के बिना डाउनलोड कर सकते हैं।

Where can I find some reference materials on ASP.net database submission forms -

I am new to asp.net, looking for a tutorial that will tell me how to create a web with many text boxes Submit this information in the database tables on the user by submitting the registration form, dropdown, and pressing the submit button. I searched but nothing has been done till now. If you see that there is a ton of tutorials especially about data access via asp.net, however you have to I suspect that I have posted this for "Over-Communication" which you are after. What you want to do in your simplest is your ASPX page, call it at default .aspx and it has the following: Now in your codebihnd file (.aspx.cs file) you want an event handler for the click event of my button protected myButton_Click (object sender , EventArgs e) {var myConnectionString = "The connection string goes here"; (SqlConnection conn = new SqlConnection (myConnectionString)) (SqlCommand CMD = New SqlCommand ("INSERT dbo.mytable (fieldName) VALUES (@ value1)", co...

python - Find an element in a list of tuples -

मेरे पास एक सूची है 'a' a = [(1,2) (1,4), (3,5), (5,7)] मुझे एक विशेष नंबर के लिए सभी ट्यूप्ले ढूंढने की आवश्यकता है। 1 के लिए कहना होगा परिणाम = [(1,2), (1,4)] मैं ऐसा कैसे करूँ? यदि आप मैच की पहली संख्या चाहते हैं तो आप ऐसा कर सकते हैं: आइटम में आइटम के लिए आइटम [0] == 1] यदि आप बस उन में 1 के साथ ट्यूपल्स की खोज कर रहे हैं: [वस्तु में आइटम के लिए 1 आइटम में]

javascript - textbox focus out -

I need to focus in the text box. I try to focus on the external divis and IE its functioning is fine but not in Mozilla. How do I do this? This is my current code: & lt; Div id = "external" & gt; & Lt; Input type = "textbox" / & gt; & Lt; / Div & gt; Onfocus: Document.getElementById ("External") Focus () I wonder What is the purpose of using a textbox in this case if the user can never write anything inside. Just add a disabled = "disabled" attribute or readonly = "readonly" (if you want to post the value).

Ash (shell provided by busybox) tutorial -

I have found that the asynchronous asynchronous syntax of the beadybox is different from other standard shells (sh, bash, tcs). A tutorial for any document or Ash of its composition? Link indicates that the busybox is Ash Debian Dash.

timeline - Getting data from SQL Server (serverside) to JavaScript (clientside) -

I'm looking for a good newbie advice on how to use a JavaScript-based data to read data efficiently from SQL Server Could. Please note that I have not done anything like this before. I have basic OOP knowledge and I would like to use JSN, I've written a small Java application, but have never done JavaScript (though I think it would not be very difficult to do the basics after Java). So what I am actually asking is for a person to take steps to help me make an observation about what steps need to be taken to do this; What do I need to know, how do I use it and in what order I can. The database will contain entries from fifty thousand to one million, this is a lot of GPS coordinates, year numbers and small wire. Any help would be greatly appreciated. Please keep in mind that I am quite new, so nothing is basic! :] Regarding being a moderator, [web] sits on the server that Connects to and asks for additional information from SQL Server because it requires that if yo...

java - How to fill data in a JTable with database? -

I want to display a JTable which displays the data from the database table as it is. Up till now, I have used Jettbble to display data from the object [] []. I know that one way to display data is to convert the database table into an object [] [] but someone else is easier and more powerful and flexible I would recommend taking the following approach: a line class To display the row read from your ResultSet . This can be a simple wrap around a object [] . A list & lt; Line & gt; Archive, and subclass AbstractTableModel can be supported by this collection. List by reading from the built in ResultSet & lt; Line & gt; uses to populate Svingvokr or Background thread on (ie doInBackground () within the law). Call swingwalker to publish the method to publish the event despaste thread (like every 100 lines) to line . When the process of swingwalker is called with the latest section of the rows, enter your list & lt; Line ...

bash - Copy folder recursively, excluding some folders -

I am trying to write a simple bash script that will copy all the contents of a folder that contains the hidden files and folders Other folders, but I want to exclude certain folders. How do I get it? Use rsync: rsync - av --exclude = 'Path1 / to / exclude' --exclude = 'path2 / to / exclude' source destination Note that source and source / is different, a trailing slash means that copy the contents of the source in the destination folder. Without a trailing slash, this means that copy the folder source to destination . Alternatively, if you have many directories (or files) to exclude, you can use - exclude-from = FILE , where FILE is the name of a file in which files or directories are not included. --exclude can also contain wildcards, such as - exclude = * /. Svn *

iPhone - Failed to save the videos metadata to the filesystem -

My application uses UIJPPP so that the user can use the camera and edit a photo to edit / etc Could. I'm getting the following error message: 2010-02-03 10: 41: 24.018 Livingroom [5333: 5303] Failed to save video metadata in the file system. The information may not be consistent with a plast. Program received signal: "EXC_BAD_ACCESS". A search on Google brings several threads to different forums, no final answer / root cause / an example of how to fix / debug the thread code below, which comes from my app's The same happens: If I reboot then the error disappears for some time (10 tests in a row, no error) I - Phone I am not able to determine whether it reboots after reboot, but it does not use the video source and the fact that a reboot resolves the problem for some time Meme leakage (maybe?). The problem always appears on the iPhone Reboot) and when the simulator selects a picture from the album, but the app does not crash on the iPhone or simulator. ...

data processing - Ways to read only select columns from a file into R? (A happy medium between `read.table` and `scan`?) -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब मेरे पास कुछ बहुत बड़ी सीमांकित है डेटा फ़ाइलों और पूरी फाइल के लिए एक data.frame बनाने के लिए समय और मेमोरी न लेने के बाद मैं आर में केवल कुछ कॉलम पर प्रक्रिया करना चाहता हूं। केवल एक ही विकल्प मुझे पता है read.table जो बहुत बेकार है जब मैं केवल कुछ कॉलम या स्कैन चाहता हूँ जो कि मुझे क्या चाहिए के लिए बहुत कम स्तर लगता है। क्या कोई बेहतर विकल्प है, या तो शुद्ध आर के साथ या शायद कॉलम निष्कर्षण करने के लिए किसी अन्य शैल स्क्रिप्ट को बुला रहा है और उसके बाद स्कैन या इसके आउटपुट पर readable का उपयोग कर रहा है? (जो कि शेल स्क्रिप्ट को कॉल करने और आर में अपना आउटपुट कैप्चर कैसे कर सकता है)। कभी-कभी मैं ऐसा कुछ करता हूं जब मेरे पास टैब-सीमांकित फ़ाइल में डेटा होता है: df & lt; - read.table (पाइप ("कट -f1,5,28 myFile.txt" [गलत शुद्ध आर संस्करण हटाया गया है) - read.table के लिए colClasses तर्क में नल का उपयोग करके सही शुद्ध आर संस्करण देखें।

drupal - Drupal6: Removing template files -

I use a custom template file called user-profile.tpl.php for a while I am doing But CCK wanted to explore content profile capabilities. I changed the name of the template file with arbitrarily, but instead of defaulting to using the standard profile view, it is complaining that it was sent to User-profile.tpl.php file. So either it saves somewhere in the database, the cache is disabled so that nobody knows how drupal can save the template file name? And how can it be reset? Make sure that whenever you create, If you are using that module, you can use the link on the upper left of the admin_manu, go to Settings -> Display and clear the cache.

iphone - Parsing SO RSS feed using TouchXML, no <entry> tags found -

I am trying to parse a stack overflow RSS feed for a specific question: For this, I am using the TouchXML library to have a problem in the following code: CXMLDocument * parser = [[CXML document alloc] initWithData: sourceData option: 0 error: zero] ; NSArray * allEntries = [Parsons nodesforxpath: @ "// entry" error: zero]; NSLog (@ "Entries entered:% d", [All entries count]); // Returns 0 The count of all entries in the NSLog details feed should be returned. In this case it should be '3', the problem is that it gives 0. I found that this code works: CXMLDocument * preParser = [[CXML document alloc] initWithData: sourceData option: 0 error: zero]; NSString * sourceStringUTF8 = [Preprors XMLString]; [Preemptor release]; CXML Document * Pars = [[CxML Document Alok] InitVheDatata: [sourceStringUTF8 Data Wrapping Encoding: NSUTF8 String Encoding] Option: 0 Error: Zero]; NSArray * allEntries = [Parsons nodesforxpath: @ "// entry" error:...

javascript - JQuery - $ is not defined -

मेरे पास एक साधारण jquery click event & lt; script type = "text / javascript "& gt; $ (फ़ंक्शन () {$ ('# पोस्ट')। क्लिक करें (फ़ंक्शन () {चेतावनी ("परीक्षण");});}); & Lt; / स्क्रिप्ट & gt; और साइट में परिभाषित एक jquery संदर्भ & lt; script src = "& lt;% = ResolveUrl (" ~ / लिपियों / jquery- 1.3.2.js ")% & gt;" type = "text / javascript" & gt; & lt; / स्क्रिप्ट & gt; मैंने जांच की है कि स्क्रिप्ट सही तरीके से हल हो रही है, मैं मार्कअप को देख रहा हूं और फायरबग में सीधे स्क्रिप्ट देख पा रहा हूं, इसलिए मुझे मिलना चाहिए। हालांकि मैं अभी भी प्राप्त कर रहा हूं: $ परिभाषित नहीं है और jquery कार्यों का कोई नहीं मैंने इस तरह की $ (दस्तावेज़) के विभिन्न रूपों की भी कोशिश की है .ready और jQuery आदि। यह 3.5 पर एक MVC 2 ऐप है, मुझे यकीन है कि मैं वास्तव में घने, हर जगह जा रहा हूं गूगल पर कहते हैं कि फाइल की जांच ठीक से संदर्भ है, जिस पर मैंने जाँच की और जाँच की है, कृपया सलाह लें...

css selectors - Multiple classes in body tag, multi-dimensional css structure or blueprint for insanity? -

This question is about an approach to CSS structure, and so much more discussion oriented. I am working with some outsourced CSS where there are many classes near the body tags, which are up to half a dozen (to make things a little worse, any of the CSS selectors will have an HTML tag Which is confusing it in analyzing CSS.) These body sections are then used to modify classified or IDEED widgets. It seems that this approach is like adding an additional dimension to CSS, perhaps in some effort to create a structured CSS approach, documentation may have helped, none has been provided to us. This is different from my point of view where widgets are mainly styled through id'd divs, perhaps extracting more general elements into one square, i.e. div # MyWidget.widgets Whether or not such an approach is worth using, especially I am working with thousands of pages from websites, which include many legacy goods, by different people with different skill levels. goes? Thank you .....

JQuery UI Tabs - Load AJAX Tab content -

All, I'm using the jQuery UI nested tabs to consider this kind of structure There are 2 main tabs: Animals, Birds. Under the animal, two tabs "cats", "dogs" are both tabs "cat" and "dogs" should be loaded by AJX, when selected. So, the code for them is something like this: & lt; Div id = "fragment-1" & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "/ public / catstab" headline = "cat" & gt; & Lt; Span & gt; Cats & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "/ public / dogstab" title = "dog" & gt; & Lt; Span & gt; Dogs & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ("# tabs-load...

java me - BlackBerry - How to create alarm event? -

I want to add an alarm In my application, I have successfully used the calendar and set the appointment but how do I access the alarm I can do Please help me. The following is my code public class alarms {private event event; Public Zero myAlarm () {try {eventList eventList = (EventList) PIM.getInstance () OpenPIMList (PIM.EVENT_LIST, PIM.WRITE_ONLY); Event = eventList.createEvent (); Event.addString (event.SUMMARY, PIMItem.ATTR_NONE, "My alarm"); Event.addString (event.LOCATION, PIMItem.ATTR_NONE, "My Location"); Event.addDate (event.END, PIMItem.ATTR_NONE, System.currentTimeMillis () + 360000); Event.addDate (event.START, PIMItem.ATTR_NONE, System.currentTimeMillis () + 120000); Event.commit (); } // block block (exception e) {}} // method of myAlarm} / / end of main class alarm / eventlight evList = (EventList) PIM.getInstance (). OpenPIMList (PIM.EVENT_LIST, PIM.READ_WRITE); BlackBerryEvent ev = (BlackBerryEvent) evList.createEvent (); If (evList.i...

tsql - SQL If "something" select count -

मेरा एक कस्टम व्यू से आ रहा आउटपुट इस प्रकार है ... Col1 Col2 Col3 Col4 xxxx केक 1 1 * केक xxxx 2 * 1 xxxx केक 2 0 * xxxx केक 0 0 * केक xxxx 2 * 0 केक xxxx 2 * 0 और मैं क्या चाहूंगा राशि के लिए है ... हर पंक्ति के लिए, यदि शब्द केक को 1 में मिलते हैं, तो कॉल 3 का मान जोड़ना और फिर योग करने के लिए Col4 का मान जोड़ना उपरोक्त दृश्य से SUM का परिणामस्वरूप, 1 + 2 + 0 + 0 + 2 + 2 = 7 पहले से धन्यवाद! ps तारों को सिर्फ दिखाने के लिए जोड़ा जाता है, जो राशि को योग में जोड़ा जाना चाहिए। SUM का चयन करें (प्रकरण जब Col1 = 'केक' तब Col3 होता है जब Col2 = 'केक', फिर से 4 दूसरा 0 ईडी)

python - Matplotlib: Formatting dates on the x-axis in a 3D Bar graph -

In view of this, how can you convert numerical data into a formatted date / time string in the X-axis? I have tried to use the ax.xaxis_date () function without success. I also tried to use plot_data (), which does not work for the 3D bar graph, here's a modified version of the sample code I'm trying to do: Date as NP import matplotlib.dates as plut import numpy mpl_toolkits.mplot3d Import Axes3D import matplotlib.pyplot date = [dates.date2num (datetime.dat2num (datetime.datetime (2009312)), datesdate ( Datatom.datatated) (datetime.datetime (2009 6 9)), dates.date2num (datetime.datetime (2010,1,1)), #tc ...] fig = plt.figu Re () ax = x for x3 (fig), zip in zip (['r', 'g', 'b', 'y'], [30, 20, 10, 0]): xs = np.array (dates) ys = np.random.rand (20) ax.bar (xs, ys, zs = z, zdir = 'y', color = c, alpha = 0.8) ax.set_xlabel ( 'Date and time 'Ax.set_ylabel' ('series') ax.set_zlabel ('sum') plt.show () ...

Firefox: Communicator presence issue -

We are using NameCtrl in our application and works fine in IE. But it's not working in Firefox. The Firefox website says that they do not support ActiveX controls. Is there any way to show communicator presence in Firefox? A little late, but it is using browsers other than IE. if (window.ActiveXObject) {nameCtrl = New ActiveXObject ("Name.NameCtrl"); } Else {try {nameCtrl = New ActiveXObject ("Name.NameCtrl"); } Hold (e) {nameCtrl = (function (b) {var c = null; try {c = document.getElementById (b); if (! Boolean (c) & amp; (boolean (navigator.mmtype) & amp; & Amp; Navigator.mime type [B] & amp; amp; amp; and navigator.mm type [b]. Disable plugin) {var a = document. CreateElement ("object"); a.id = b; a Type = b; a.width = "0"; a.height = "0"; a.style.setProperty ("visibility", "hidden", ""); document.b.appended child (a); c = Document.getElementById (B)}} Grip (D) {c = null...

php - Using PDO to create a mysql query function, wont insert rows -

I'm trying to try using PDOs, and I'm using some pre-built functions to help simplify things when I want to do a query, first joins one, runs another query . Unfortunately this will not let me insert rows using the dbiquity (). Selecting works fine, just can not find anything else to work Here is the code: function dbConnect () {global $ dbh; $ DbInfo ['database_target'] = "localhost"; $ DbInfo ['database_name'] = "mescalcaster"; $ DbInfo ['username'] = "root"; $ DbInfo ['password'] = "password"; $ DbConnString = "mysql: host =" $ DbInfo ['database_target'] "]; dbname =" $ DbInfo ['Database_Name']; $ Dbh = New PDO ($ dbConnString, $ dbInfo ['username]', $ dbInfo ['password']); $ Dbh- & gt; Set Attribution (PDO :: ATTRRAMOD, PDO :: ERRMODDEXEPEPS); $ Error = $ dbh- & gt; Errorinfo (); If ($ error [0]! = "") {Print "& lt; p ...