Posts

c# - How to find element in visual tree in wp7? -

I need to find an element in the visual tree. For example, I have a grid and I have my own text T- Setting in the box is: WatermarkTextBox ExpanderView Expands. Xaml & lt; Grid.ColumnDefinitions & gt; & Lt; Column width = "100" /> & Lt; Column width = "280" /> & Lt; Column width = "100" /> & Lt; /Grid.ColumnDefinitions> & Lt; Grid.RowDefinitions & gt; & Lt; RowDefinition / & gt; & Lt; RowDefinition / & gt; & Lt; /Grid.RowDefinitions> & Lt; Grid grid. Rau = "0" grid. Column = "0" & ​​gt; & Lt; Border / & gt; & Lt; / Grid & gt; & Lt; Grid grid. Rau = "0" /> & Lt; Grid grid. Rau = "0" grid. Column = "2" /> & Lt; Toolkit: expand ExpanderView = "setText" collapsed = "hideAppBar" & gt; & Lt; Image Height = "100" margin = "- 53,0,0,0" /> & lt; ...

Jquery: Strip all specific HTML tags from string -

I have a variable that has a string of text and html tags such as: Code Some text more text here & lt; / span & gt; & lt ; / P & gt; & lt; p & gt; Also & lt; / p & gt; "; I would like to remove all tags of a certain type. For example, we all call p and span . This is the best I can come up with: Some text More Text Here & lt; / span & gt; & lt; / p & gt; & lt; p & gt; Also & lt; / p & gt; ; Var $ temp = $ (temp); $ ("P", $ temp) .replacewith ("foo"); Warning ($ temp.html ()); // Returns "some text" The closest response I can find is this answer by Nick Craver. demo: $ ('span, p'). . Content (open) (); Each such element will receive elements and text, and each content will remove the element by wrapping the section. Based on your current perspective, it will look something like this: ; / P & gt; "; Var $ temp = $ (temp); $ Temp....

Objective-c inserting data with iphone 4s -

I have created an app that uses IM to insert data with FMDB wrapper and consult with SQL database The data is displayed in a table view, the problem is that when I do everything right on an iphone 4, but when I do it on an iphone 4s, then this is not a problem. My code is part of: Loading DB: aPools = [[NSMutableArray alloc] init]; NSString * path = [[NSBundle main bundle] Pathfoser resource: @ "pool db" type: @ "sqlite"]; MainDB = [[FM Database Alok] InitVithpath: Path]; [Menadi's Open]; FMResultSet * fResult = [mainDB Execution: @ "selection * from pulse data]]; While ([FRSALT next]) {Puladata = [FRS fruit string fora column: @ "name"]; [APools addObject: pools data]; } [Close to main DD]; Saving: - (zero) saveIntoDB: volume with name (NSString *): (float) volume type: (NSString *) type and DESC: (NSSTING *) Dell [[Menadi Open]; [MainDB executeUpdate: @ "pool, data (name, volume, type, dcc) values ​​(" ,,,,,?) ", Na...

jquery - Solving $(window).resize -

I have a script that is at $ (window). Resize () needs to hide the divs in a list. However, because I'm using the old OS, my browser does not change in realtime again, instead it detects a trail where this size will change, and then open to go, this size changes. Type, the script below only removes a device from the list instead of all those conflicts. How can I fix this? jQuery: $ (window). Resize (function () {movePivots ();}); Function Slobient () {var last_pivot = $ ("ul li: last"); If ($ ("# container"). Width () - $ ("ul"). Width () & lt; = 0} {last_pivot.remove (); } Else {}} CSS: # container {float: left; Width: 50%; Minimum width: 450px; Max-width: 900 pixels; Height: 1000px; Background-color: #EE; } #nav {float: left; Background color: #ddd; Minimum width: 450px; Max-width: 900 pixels; Width: 100%; } Ul {float: left; Margin: 0; Padding: 0; List style: none; Background color: #ccc; } Use a while loop: $ (Window). Re...

mysql - Where is the syntax error in this CREATE TABLE statement? -

बनाओ टेबल बच्चे (chil_id INT ऑटैन्ग्रेमेंट प्राथमिक कुंजी नहीं है, बाल_नाम VARCHAR (20) नहीं है, child_sname VARCHAR 20) नहीं, नाराज, बच्चे_अभियान नहीं, नारी, बच्चे के लिंग ENUM ('एम', 'एफ') DEFAULT 'M', parent_id INT नहीं), कंसल्टेंट विदेशी कुंजी (parent_id) संदर्भ माता-पिता (parent_id)) ENGINE = InnoDB; त्रुटि संदेश: आपके एसक्यूएल वाक्यविन्यास में त्रुटि है समस्या इस पंक्ति में है: parent_id INT नहीं नल), कोष्ठक स्तंभ / बाधा घोषणा बंद कर देता है, लेकिन आप एक बाध्यता के बाद शामिल हैं, जो त्रुटि फेंक रहा है वह कोष्ठक निकालें और आपको सेट करना चाहिए। सही कोड यह होना चाहिए: बनाएँ तालिका 'अभिभावक' (`parent_id` INT नहीं शुद्ध AUTO_INCREMENT, प्राथमिक कुंजी (` parent_id`)) इंजन = InnoDB; बच्चे को बनाएँ (chil_id INT AUTO_INCREMENT प्राथमिक कुंजी नहीं है, बच्चे के नाम VARCHAR (20) नहीं है, बच्चे के नाम VARCHAR (20) नहीं, नाराज, बच्चे का जन्मदिन नहीं है, बाल-लिंग ENUM ('एम', 'एफ') DEFAULT 'M', parent_id...

php - Cannot send session cookie - headers already sent -

संभव डुप्लिकेट: PHP में निम्न कोड चेतावनी देता है। & lt;? Php if (! Isset ($ _ सत्र)) {session_start (); // पंक्ति 4} यदि (! Isset ($ _ सत्र ['वैध_अडमिन'])) {हेडर ("स्थान: लॉगिन.एफ़पी"); // लाइन 9}? & Gt; चेतावनी: session_start () [function.session-start]: सत्र कुकी नहीं भेजा जा सकता - हेडर जो पहले से ही भेजे गए हैं (आउटपुट C: \ wamp \ www \ Wagafashion \ Order.php: 8) सी: \ wamp \ www \ wagafashion \ Lock.php पंक्ति 4 पर चेतावनी: session_start () [function.session-start]: सत्र कैश सीमक नहीं भेज सकते हैं - हेडर पहले ही भेजे गए हैं सी: \ wamp \ www \ wagafashion \ Order.php: 8) सी में: \ wamp \ www \ wagafashion \ Lock.php पंक्ति 4 पर चेतावनी: हेडर सूचना को संशोधित नहीं किया जा सकता है - हेडर जो पहले से ही भेजे गए हैं (आउटपुट C: \ wamp पर शुरू किया गया है \ Www \ wagafashion \ Order.php: 8) में सी: \ wamp \ www \ wagafashion \ Lock.php पंक्ति 9 पर मैंने खोज की और एक सवाल पाया लेकिन मैं अब तक वहां क्या बात है, उसे समझ में नहीं आ रहा है। मैं इसे ...

Ruby on Rails Inline around_save Callback Yields a LocalJumpError -

रेल 3.0.5 & amp; रूबी 1.9.3, क्या around_save कॉलबैक इनलाइन कोड के साथ घोषणा के शरीर को परिभाषित करना संभव है? यही है, मैंने देखा है कि यह मामला ठीक से काम करता है: around_save: around_save_body def surround_save_body 'save save before' उपज डालता है 'save save' end [114] pry (main) & gt; A = गतिविधि.फंड (57) = & gt; # & Lt; गतिविधि आईडी: 57, ... & gt; [115] प्राइ (मुख्य) & gt; सहेजने के बाद सहेजने से पहले a.save = & gt; सच है जबकि मैं शरीर को इनलाइन डालता हूं, मुझे एक स्थानीयजम्प एरर मिलता है: आसपास_सेव करें | गतिविधि | 'सहेजने से पहले' उपज डालता है 'बचाने के बाद' अंत [117] pry (main) & gt; A = गतिविधि.फंड (57) = & gt; # & Lt; गतिविधि आईडी: 57, ... & gt; [118] प्राइ (मुख्य) & gt; स्थानीय सिक्योरेशन सेव करने से पहले एक एस्केर: /home/maksim/hkn/website/app/models/activity.rb:47:in 'ब्लॉक में & lt; कक्षा: गतिविधि & gt; मैंने दूसरे उदाहरण में उपज से उपज गतिविधि बदलने की कोश...