Posts

objective c - Why do functions use -(void) and not -(nil) in Obj-C? -

Objective- I often see functions that do not declare anything: - (zero) myFunction {single ?? | but why zero , this way - (zero) myFunction {a ?? | They both do not return "nothing"? Historically in the related languages ​​(syntax) as the language of C-language, Zero indicates that no type is being returned from the function. More precise, in the form of variables (or related to it) given type , there are also types in functions, for example, a function that returns an integer A int type function or a function whose int is the same even if it gives something else. If the function does not return anything - it does not return anything - how is it related? It does not have any type, and zero type represents such a thing. I do not know in Objective-C, but if I correctly understand, like the zero id (or any type of ID), almost like an underlying implementation. and faucet is a (zero *) type, later an typeless indicator can indicate anyth...

sorting - XSLT recursive sort by attribute -

I get a lot of questions and answers about nested / recursive sort using the XSLT, but in my case map it Was not able to. My status: The "set" element can contain 0 or more "properties" elements In a "set" element, 0 Or more subset The attribute in both sets and property elements is made up of "key" I want to sort "set" according to the "key" attribute and "per set". The "key" of the "properties" elements The XML looks like this: & lt; Set key = "..." & gt; & Lt; Property Key = "..." /> & Lt; Property Key = "..." /> & Lt; Property Key = "..." /> & Lt; Set = "..." & gt; & Lt; Set key = "... ... gt; property key =" ... "/> property key =" ... "/> & gt; asset key =" ... "/> & Lt; / set & gt; & lt; / set & gt; & lt; / set ...

.net - Duplicate 'Column' attribute -

I am creating an entity using Entity Framework 4.1 and I am using the column to name different columns Am I have an overall key as well as a foreign key but I am getting the error public class account {[key] [foreign ("account"), column (order = 0) ] [Column ("Transaction ID", Order = 0)] / PK FK Public Entitlement ID {get; Set; } [Key] [foreign ("account"), column (order = 1)] [column ("[account number]", order = 1)] / pk fk public int account {not set; Duplicate 'column' attribute are both primary keys as well as foreign keys / Strong> Well, you do it! Two columns in each property are defined by the Entitlement Instance. The fact is that they are on different lines and are irrelevant in different sets of square brackets. It seems that in both cases there is a redundancy on the first line.

javascript - floating menu bar in containing div (js) -

I have a JavaScript menu bar located on my webpage, then when the browser reaches the top of the bar menu it The lock runs in a fixed position and with the window However, I have to include the menu within a single divas, how can this be done? This is my menu bar: & lt; Script type = "text / javascript" Src = "http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = 'text / javascript' & gt; $ (Window) .load (function () ($) (window) .scroll (function () (if ($ (window) .scrollTop ()> gt = 200) {$ ("# floatbar"). CSS ({status : 'Fixed', left: '0', above: '0'});} and {$ ("# flotbar"). CSS ({status: 'full', left: '0', above: '200px' }}}}}}}};

parsing - Advanced PDF parser for Java -

I want to remove content separately from a PDF file in Java: Full viewer Image Link Is it also possible to get the following? Document Meta Tags Title Only> Documents like input elements Manipulate me or PDF does not need to render i files Which library would be most suitable for that kind of purpose? UPDATE Well, I tried Peedifboks of: document luceneDocument = LucenePDFDocument.getDocument (new File (Path)); Field content = luceneDocument.getField ("content"); Println (contents.stringValue ()); But output is zero. Field "Summary" though okay. The next snippet works fine. PDDocument doc = PDDocument.load (path); PDFTextStripper Stripe = new PDFTextStripper (); String text = stripe.gettext (doctor); Println (text); Doc.close (); But then, I have no clue how to remove images, links, etc. UPDATE 2 I found an example of removing images, but how to remove I have not received any response yet: Link Document Meta Tags ...

Python 2D Array access with Points (x,y) -

Good evening companion, I am new to Python programming, and I was wondering For example, you have a point for example: point = (1,2) and you can use 2D array in Python using points / coordinates ? Matrix, you can use a certain part of the matrix matrix [ point ] = here is a sample value Provides popular multi-dimensional arrays which supports indexing by Tuple: [1, 2] Print [point 1], [3, 4, 5], [6, 7, 8]] print [1, 2] point = (1, 2) print [point] any external There is no such thing as "two-dimensional array" in Python without libraries is. There are only nested lists to call numpy.array () to call.

gtk - How to recreate a TextField widget with my own behavior? -

मैं PyGTK के साथ एक परीक्षण अनुप्रयोग बनाना चाहूंगा। मेरा लक्ष्य टेक्स्टफ़ाइल विजेट बनाना है 100% अनुकूलित दरअसल, मैं एक टेक्स्टफ़ाइल विजेट के डिफ़ॉल्ट व्यवहार को पूरी तरह से बदलना चाहूंगा। क्या टेक्स्टफील्ड (जैसे शॉर्टकट्स / कीमॅप्स, स्क्रॉल व्यवहार आदि) के व्यवहार को पूरी तरह बदलना संभव है? क्या विजेट को खरोंच से पुन: तैयार करना संभव है? अगर हाँ, मैं ऐसा कैसे कर सकता हूं? धन्यवाद। क्या आप जिक्र कर रहे हैं किसी gtk.Entry या gtk.TextView? के लिए, आप उस विजेट को उप-वर्ग बनाना चाहते हैं, जिसे आप बदलना चाहते हैं और आप को बदलने की आवश्यकता वाले किसी भी तरीके को ओवरराइड करना चाहते हैं। यदि आप सी कोड पढ़ सकते हैं, तो यह सहायक होगा क्योंकि आप विजेट स्रोत कोड को देख सकते हैं। यदि आपने कभी अपने स्वयं के विजेट नहीं लिखा है, तो आप शायद एक ट्यूटोरियल जैसे से शुरू करना चाहें।