Posts

Reading a angularjs promise object? -

मेरे पास एक ऐसी सेवा है जो दिखाया गया एक अध्ययन ऑब्जेक्ट देता है: $ scope.study = StudyService.studies.get ({id: $ routeParams.studyIdentifier}); मैं अध्ययन ऑब्जेक्ट का उपयोग करके प्रिंट करता हूं: कंसोल ($ scope.study); मुझे क्रोम कंसोल पर यह संदेश मिलता है: संसाधन {$ वादा: ऑब्जेक्ट, $ हलः गलत, $ प्राप्त करें: फ़ंक्शन, $ सेव: फ़ंक्शन, $ query: फ़ंक्शन ...} तो मैं यह अध्ययन ऑब्जेक्ट कैसे पढ़ूं? मैं इसकी सामग्री प्रिंट करने में सक्षम होना चाहता हूँ उदाहरण के लिए एक आईडी, और मामलों की एक सूची है। मुझे प्रिंट करने में सक्षम होना पसंद है: console.log (study.id); console.log (study.cases.length); मैं इसे कैसे पूरा कर सकता हूं? मुझे लगता है कि आप 'एनजीआरससोर्स' का उपयोग कर रहे हैं आपकी सेवा से एक प्रतिक्रिया के रूप में एक वादा प्राप्त कर रहे हैं यदि हां, तो उस मॉड्यूल का उपयोग करने के कुछ दस्तावेज हैं और ऑब्जेक्ट्स को कैसे रिटर्न करना चाहिए। $ resource हालांकि आपके उदाहरण के लिए, आपको केवल निम्नलिखित कार्य करने की आवश्यकता होगी StudyService.stud...

Rails bundler not installing spree gems -

I am trying to create a new Rail application that uses flowing, I spree_fancy I am trying to install the gem and it was told to add my gemfile This is my gem file: source 'https: // rubygems .org 'gem' rail, '4.1.4' gem 'sqlite3' gem 'sass-reels',' ~ & gt; 4.0.3 'Gem' euglaform ',' & gt; = 1.3.0 'gem' coffee-rail ',' ~ & gt; 4.0.0 'Gem' jquery-rails 'gem' turbolinks 'gem' jbuilder ',' ~ & gt; 2.0 'Mani' sdoc ',' ~ & gt; 0.4.0 ', Group :: Doctor Mani' Spring ', Group :: Vikas Mani' spree ',' 2.3.1 'Mani' spree_gateway ',: git = & gt; 'Https://github.com/spree/spree_gateway.git' ,: Branch = & gt; '2-3-stationary' gem 'spree_auth_devise' ,: git = & gt; 'Https://github.com/spree/spree_auth_devise.git' ,: Branch = & gt; '2-3-stationary' gem 'spree_...

asp.net - Send Authorization cookie when calling OData service -

I have 2 web applications. The first web application contains ASP.NET web pages and a subscription provider has been used for authentication. The second web application is strictly an Odata Web API site that requires authentication. Both the sites on the Web site have "machine validity key / decryption" and both are using "form" authentication, similarly "name of the form .testAUTH" When I call the OData service and inspect the identity for both threads and httpcontext, they are both empty and certified for the name. So how can I identify Odata? TETATU cookie? Edit: Well, that's what I did. It does not seem right, but if someone knows better, please let me know dbContext.BuildingRequest + = AddCookie; Private Zero AddCookie (Object Sender, Microsoft.odata.Client.BuildingRequestEventArgs E) {var authCookie = HttpContext.Current.Request.Cookies ("Testwath"); E.Headers.Add ("cookie", ".teastAUTH =" + authCo...

Update mysql in if condition in php -

मुझे एक समस्या है visual_form_builder (वर्डप्रेस प्लगइन) में मैं फ़ील्ड के मान को पोस्ट करना चाहूंगा और इन फ़ील्ड मानों के साथ बाद में मैं अपनी mysql तालिका में रिकॉर्ड को अपडेट करना चाहूंगा। समस्या यह है कि अगर कोई शर्त नहीं है, तो बस mysql_query कमांड तो कमांड चलाते हैं, और यह mysql तालिका में field_description फ़ील्ड को अपडेट करता है। लेकिन यह स्थिति में है, यह mysql तालिका अपडेट नहीं करता, लेकिन यह "पोस्ट" प्रदर्शित करता है अगर मैं mysql क्वेरी में कमांड डालता हूं, तो यह चलती है और dbtable के लिए नई लाइन सम्मिलित करता है। कोई विचार? कृपया मुझे और धन्यवाद पहले से करें! यहां मेरा PHP कोड है: यदि (isset ($ _ POST ['save_form'])) {प्रिंट "पोस्ट & lt; br & gt; , "; Mysql_query ("UPDATE wp_visual_form_builder_fields SET फ़ील्ड _विश्लेषण = 'मान 4' WHERE field_id = '31'"); } यहां स्रोत कोड के html कोड का हिस्सा है: & lt; form method = "post" id = "visual-form-builder-update "एक्...

c# - Web.config URL Rewrite -

I would like to rewrite all those files which are real files or actual directories, and / api / * to ~ / Default.aspx . This is what I have done so far: & Lt; Conditions & gt; & Lt; Input = "{REQUEST_FILENAME}" matchType = "IsFile" reject = "true" /> & Lt; Input = "{REQUEST_FILENAME}" matchType = "isDirectory" reject = "true" /> & Lt; / Status & gt; & Lt; Action type = "rewrite" url = "Default.aspx" /> & Lt; / Rules & gt; & Lt; / Rules & gt; The problem with this is that it also rewrites / api / * as default.aspx . Try adding the following condition: & lt; Condition & gt; & Lt; Input = "{REQUEST_FILENAME}" matchType = "IsFile" reject = "true" /> & Lt; Input = "{REQUEST_FILENAME}" matchType = "isDirectory" reject = "true" /> & Lt; Input = "{UR...

Using variables to save a repetition field in FileMaker -

I have found a fraction number in which there are many iterative ones I want to use a variable to save it so that the user Clicking on the button can show all the details of these parts in different layouts. But I do not know how to use variables to save many values ​​in this way. And I do not know how many iterations for each part number. Although FileMaker allows areas of duplication and for some database developers behind them, They should never be used for data, as mentioned by others, you should reconsider the data structure. It is being said that you can get information in repeating the area by referring to the repetition described in repetition. If you have repeated repeats called "partNumber" with 10 iterations, then you recurrence by each: Partnumber [1] Partnumber [2]. . . Partnumber [9] Partnumber [10]

Excel: Removing Duplicate Values Using Array Formula For Multiple Columns -

I am trying to remove duplicates from 7 different columns and add unique values ​​to a column and I The way to do this is to use the Excel formula I have tried the array approach below, but it does not work for more than one column: = INDEX ($ A $ 11: $ A $ 100000, MATCH (0, COUNTIF ($ C $ 11: C11, $ A $ 11: $ A $ 100000), 0)) Here What do I want: Data start: column 1: abdcbi column 2: cghfdc column 3: feagba results end: abcdefghi ... (order is not important) Not sure that this really answers the question, but you can try to use COUNTIFS to identify the rows where there are duplicate values ​​in combination with two or more columns: = COUNTIFS ($ B: $ B, $ B1, $ C: $ C, $ C1) This formula contains those lines Passenger numbers will be back to where B1 and repeats itself in C1. You can copy and paste each row in your formula, or use it as an array formula. Here's more about how to do this: