Posts

Showing posts from April, 2011

javascript - OpenUI5 controls not visible -

Image
I'm trying to get at least the examples to work, but the following screenshots are very good for my problem Describes with: As you can see Buttons are provided, but invisible reason for some. Can you help me This is my index.html file: & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "X-UA-Compatible" content = "IE = Edges" /> & Lt; Meta charset = "UTF-8" & gt; & Lt; Title & gt; App 0001 & lt; / Title & gt; & Lt; Script id = "sap-ui-bootstrap" src = "https://openui5.hana.ondemand.com/resources/sap-ui-core.js" data-SAP-UI-theme = "SAP_bluecestrust" data-Sap- Ui-libs = "sap.m, sap.ui.commons, sap.ui.core, sap.ui.table" data-sapp-ui-resourceroots = '{"x4": "/ example4 / x4"}' & ' Gt; & Lt; / Script & gt; & Lt; Script & gt; // var myView = sap.ui.jsview (...

asp.net mvc - mvc robots.txt route not working -

यह मेरा मार्ग कॉन्फ़िफ़ फ़ाइल है: सार्वजनिक स्थैतिक शून्य रजिस्टररॉउट्स (रूट कलेक्शन मार्ग) {मार्ग .IgnoreRoute ( "{} संसाधन .axd / {* pathInfo}"); Routes.MapRoute ("Robots.txt", "robots.txt", नया {नियंत्रक = "होम", एक्शन = "रोबोट"}); Routes.MapRoute (नाम: "डिफ़ॉल्ट", url: "{नियंत्रक} / {action} / {id}", डिफ़ॉल्ट: नया {नियंत्रक = "होम", एक्शन = "इंडेक्स", आईडी = UrlParameter.Optional}); } जब जाकर www.mysite.com/robots.txt मुझे 404 मिलता है। मेरे होम कंट्रोलर में मेरे पास एक रोबोट ( ) एक्शन। मैं क्या कर रहा था गलत? संपादन: www.mysite.com/robots पर जाकर मुझे एक सर्वर त्रुटि 404 देता है। को www.mysite.com/robots.txt मुझे आईआईएस 404 त्रुटि देता है क्या इसके साथ कुछ करना है? www.mysite.com/Home/Robots काम करने जा रहा है, लेकिन www.mysite.com/home/Robots टीएसटी IIS 404 देता है। क्या आपको वास्तव में robots.txt की तुलना में अन्य स्थानों पर उपलब्ध है Www.mysite.com/robots.t...

java - Validate XML without having a specific XSD -

मैं एक XMLStreamReader बनाते समय एक XML को वैध (वैध xml फ़ाइल) कोड> XMLInputFactory । मुझे पता है कि एक ऐसी संपत्ति है जिसे कारखाने javax.xml.stream.isValidating में सेट किया जा सकता है एक विशिष्ट-कार्यान्वयन सत्यापन अनुमति देने के लिए ( Xml के मेरे मामले में) लेकिन मैं जावा 6 बिल्ड 43 (जेबोस एएपी 6.0) के साथ काम कर रहा हूं और अद्यतन नहीं कर सकता इसलिए यह मेरे लिए काम नहीं कर रहा है (कन्नन इश्यू)। इसलिए अगर कोई भी एपीआई (स्टैक्स के अलावा) जो कि एक ही काम कर सकता है जो महान होगा! कृपया मुझे बताएं कि कुछ स्पष्ट रूप से स्पष्ट नहीं है। आप आईबीएम द्वारा जावा एक्सएमएल सत्यापन API के लिए कोशिश कर सकते हैं या आप javax.xml.validation ex: आयात का उपयोग कर सकते हैं javax.xml.XMLConstants; आयात javax.xml.transform.Source; आयात javax.xml.transform.stream.StreamSource; आयात javax.xml.validation। *; ... यूआरएल स्कीमाफाइल = नया यूआरएल ("http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"); स्रोत xmlFile = नया स्ट्रीमसोर्स (नया फ़ाइल ("web.xml")); स्कीम...

File upload is not working in mobile -

फ़ाइल अपलोड & lt; input name = "attachment" type = "file" id = "attachment" / & gt; jquery मोबाइल में काम नहीं कर रहा है मोबाइल में जब मैं अटैचमेंट बटन पर क्लिक करता हूं तो फ़ाइल ब्राउज़र नहीं खुल रहा है। कृपया मुझे इस समस्या से बाहर आने के लिए कुछ समाधान सुझाएं। मुझे सभी प्रकार की फाइलें संलग्न करना होगा।

ios - Define instance variable just for iOS8 -

I want to define an instance variable, just like for iOS 8: UIVisualEffect * blurEffect; How can I make it compatible with iOS7 The UIIiIFF was introduced in iOS 8. Although it is not available for iOS 7, there are ways to blur in iOS7.

oracle - Converting input values to date and varchar2 -

How can I convert the input code to DATE ? How can I convert the input code to VARCHAR2 ? I get an error: ORA-06550: line 8, column 60: Piels -0,200,201: identifier declared 'n' should - ORA -0650: line 8, column 1 9: PL / SQL: item neglected 06550. 00000 - "line% s, column% s: \ n% s" * reason Usually a PL / SQL compilation error My code is: on the SET server; - Oracle SQL Developer is working for - Deleting the variable input Dts are vegzams_number EXAM.egzams_number% TYPE: = & amp; Input_number_of_egzam; Vid_student EXAM.ID_STUDENT% TYPE: = & amp; Input_id_student; Vid_subject EXAM.id_subject% TYPE: = & amp; Input_id_subject; Vid_teacher EXAM.id_teacher% Type: = & amp; Input_id_teacher; Vid_place_of_exam EXAM.id_place_of_exam% TYPE: = & amp; Input_id_place_of_exam; - Problems with these two versions here vexams_date EXAM.exams_date% TYPE: = TO_DATE (& input_date_of_egzam); Vgot_a_mark EXAM.got_a_mark% TYPE: = TO_CHAR...

variables - Shell script file takes partial path from parameter file -

मेरे पास एक पैरामीटर फाइल है (parameter.txt) जो नीचे की तरह है: SASH = / घर / ec2-user / installers installer = / home / hadoop / path1 और मेरी खोल स्क्रिप्ट (temp_pull.sh) नीचे की तरह है: ईपीएएचएचएच = `बिल्ली $ 1 | जीआरपी 'एसएएसएच' -वे | कट-डी '=' -f2` प्रति ईको $ ईपीएटीएच $ {EPATH} / डेटा -इन्टेनाइशन / रसोई.श -फ़ाइल = "$ केजेबीपीएस / P> जब मैं नीचे अपना temp_pull.sh चलाता हूं: ./ temp_pull.sh parameter.txt $ EPATH मुझे सही पथ देता है, लेकिन कोड की तीसरी पंक्ति केवल आंशिक पथ लेता है। नीचे चिपक गई त्रुटि कोड: / home / ec2-user / installers - & gt; दूसरी पंक्ति / डाट-एटिलेशन / किचन.श की डाल दिया है: ऐसा कोई फ़ाइल या निर्देशिका ** 2-उपयोगकर्ता / संस्थापक ** - & gt; तीसरी पंक्ति का पता नहीं है फ़ाइल के मानों को मैन्युअल रूप से पार्स करने की कोई आवश्यकता नहीं है, क्योंकि इसमें प्रारूप वैरिएबल में पहले से मौजूद डेटा है: var = value । इसलिए, अगर फ़ाइल को पर्याप्त सुरक्षित है, तो आप फ़ाइल कर सकते हैं ताकि SASH मान केवल $ SA...

3d - Emulate graphic card Windows Azure VM, is it possible? -

I have some virtual machines on Windows Azure and I need to run a few games in these machines, but I do not Because of VM's graphic card, most games do not work with normal Hyper-V graphic cards (like Far Cry 3). So, what should I know: is it possible to do something to run these VM games? Like emulating a graphic card, even if the game runs slowly, it will help. Thanks! You will need to keep VM a GPU Check N-series VM

javascript - Jquery drag drop hangs or stuck in android browser due to touch event -

When I drag a drop object from both sides, it sticks somewhere, such as when I go somewhere on the screen If I click also, then I can start working because of a mouse event and event trub can be touched. I am using a "jquery.ui.touch-punch.min.js" mobile event for JS, this time it works and sometimes I get trapped problem. This problem occurs in Chromium when Chrome works fine in a browser. How can I solve this, to update the mouse on any event and to completely drag the event form to the DOM or I do not remember anything down The given link:

c - Generating combinations of multiple sets -

I am looking for a non-recursive algorithm or C code so that all the combinations of all sets can be made (sure Not to mention that this is the correct scientific name). For example: I have a set of N = 2 symbols: 1 set: [A, Y, Z] 2 set: [1, Q] should be output: A1 AQ Y1 YQ Z1 ZQ N may be different, the number of symbols Thanks in advance for any assistance in the special set of! :) By algorithm: We can create an integer array, whose Select length N, int [] to track [n] to see how many elements we have selected in all the lists. All elements are initially set to 0 Then we repeat those all arrows through a list of single links. If we have an element in the array i , then select [i] ++ , add it to the result when [i] == select the length of the array, So break and move on to the next array. But I do not know that every time we repeat through an array, the size of the result will be expanded. If you have thought of this, please let me know.

PHP: Counting similar occurences in multidimensional array -

Hello! I have a multi-dimensional array in which I want to calculate similar incidents. So basically I need this: [['type' = & gt; 'Frosties', 'madeby' => 'Klogs'], ['type' = & gt; 'Frosties', 'madeby' => 'Klogs'], ['type' = & gt; 'Cornflakes', 'made' = & gt; 'Kelogs']]; To end it: [['type' = & gt; 'Frosties', 'madeby' => 'Kelloggs', 'Count' = & gt; 2], ['type' = & gt; 'Cornflakes', 'made' = & gt; 'Kelloggs', 'Count' = & gt; Public function count ($ array) {$ newArr = 1} []; Foreign currency ($ breakfast as breakfast) {if (in_array ($ breakfast ['type'], $ newArr) and amp; in_array ($ breakfast ['madeby'], $ newArr) is? // DoSomething ['Count'] ++; } And {$ newArr [] = ['type' = & gt; $ Breakfast ['type...

php - Slim Routing - Routes ignored -

I have a problem how to model my routes so that they are correctly identified, I have the following routes: $ app-> Receive (use '/ course /: id', function ($ id) ($ app) {$ app-> 200, array ("id parameter"))}); $ App- & gt; Receive (use '/ course / present', function () ($ app) {$ app- & gt; render (200, array ("affiliate parameter"))}); $ App- & gt; Receive (use '/ course / search', function () ($ app) {$ app- & gt; render (200, array ("search parameter"))}); If I call URI Localhost / Course / 12 then I will get the expected result "ID parameter", but if I call URI localhost / course / search or localhost / course / attendants I still get the same result. Looks like I'm missing something here ...

BigQuery-Java: difference between QueryResponse and GetQueryResultsResponse -

In Google provided 2 sections are used to get the results Query Resignations and GetQueryResultsResponse I I can not understand the purpose of 2 classes and we have to use these 2 sections? We are getting data from both: queryResponse.getRows () and queryResults.getRows () I have gone but could not understand. What is the difference between these 2 classes and which is better? These two results are almost identical (in fact, they are similar in raw HTTP requests). The query rayspaces are backed by jobs.query (). This method can be used to run a query, but there are only limited configuration options in this feature as a function. For more query options (such as setting a destination table, allowing big results, etc.), use jobs.insert (). Another limitation of Jobs.query () is that it can be time before the query is completed. Partially, this is because many clients (like AppEngine) need to end all HTTP requests within 30 seconds or more. If jobs.query () time out, it will s...

ios - AirPrint without border / margin -

Image
I Din A6 (105x148mm) (USA: 4.13x5.83 inches) though in simulator I always get printouts with range / margins. Is it possible to customize the airprint to print without any margin / range print ? I am using the Cordova AirPrint plugin, which does not offer such optimization. JS here: var cusImage = document.getElementById ('imgDIV'); Window.plugin.printer.print (cusImage, {}, function () {// callback}); In Objective-C, my knowledge is very limited. I looked inside the APPPrinter.m file, I found it only: p. ScalesPageToFit = YES; , it was already set to yes, but apparently the border is not extracted. Here is an image that I tried to print: And here is the airprint output with printer simulator:

I want to Scatter the requests but not Gather results into single payload unlike how scatter-gather does in Mule -

मेरे पास एक प्रवाह है: & lt; प्रवाह का नाम = "फ्लो 1" & gt; & Lt; set-payload value = "महत्वपूर्ण संदेश" / & gt; & LT; बिखराव-इकट्ठा & gt; & Lt; पसंद डॉक्टर: name = "A" & gt; & Lt; जब अभिव्यक्ति = "सत्य" & gt; // TODO & lt; / when & gt; & LT; अन्यथा & gt; // TODO & lt; / अन्यथा & gt; & Lt; / विकल्प & gt; & Lt; प्रवाह-रिफ़ नाम = "बी" / & gt; & Lt; / बिखराव-इकट्ठा & gt; & Lt; लकड़हारा संदेश = "प्रवाह-रिफ्यू बी से: # [पेलोड]" स्तर = "INFO" डॉक्टर: नाम = "केवल बी से प्रतिक्रिया" / & gt; & Lt; / प्रवाह & gt; अभी पेलोड जो बाहर आता है वह पेलोड की एक सरणी है, लेकिन मुझे बी की प्रतिक्रिया से केवल पेलोड की आवश्यकता है। मैं जावा वर्ग को जोड़ने के लिए पेलोड पर पुनरावृत्त नहीं करना चाहता बी प्रतिक्रिया मैं पसंद घटक से प्रतिक्रिया नहीं चाहता, लेकिन केवल प्रवाह-रेफरी से बी। यह कैसे प्राप्त करें? क्या यह केवल आ...

Create a new vector every loop iteration in R -

I have the following problem: I have a for-loop => (in i:20) { T & LT; - C (T, print (I: 20))} ... I know how to save all the results in a vector, but I want to save the result every Vector as its own vector (as you see it above) => so that for example t [18] only 18920 and t [20] only 20 That is, I thought about a matrix, but each line should end with "20" and the rest would be filled with "0" in 20x20 matrix. How about a list for that purpose: lst & lt; - List () for (i 1:20) {lst [[i]] & lt; - i: 20} then receive it by calling lst [[18]] # [1] 1819

WordPress: How can add posts without category into category -

There are some posts without category in my WordPress, over 2000 articles, so I need to add this article to that category Is "news" by SQL This should work: UPDATE Wp_term_relationships SET term_taxonomy_id = '3' Where term_taxonomy_id = '1'; ID of category "News", you may have to change it if it is different for you 1 "Uncategorised" Category ID, so all of the above 1 (UK) all post IDs should be changed (News) Try edit: UPDATE wp_term_relationships SET term_taxonomy_id = '3' Where term_taxonomy_id = '';

What is the difference between iterator with reference symbol, and without. (C++ loop) -

What is the difference between an iterator with Android? Symbol, and without it one, as shown in the examples given below 1 and 2 cases? When should I use one or the other? #include & lt; Iostream & gt; # Include & lt; Vector & gt; Int main () {std :: vector & lt; Int & gt; V; V.push_back (1); V.push_back (2); // For Case 1: (Auto & amp; i = v.begin (); i! = V.end (); ++ i) {std :: cout & lt; & Lt; * I & lt; & Lt; Std :: endl; } // Case 2: for (auto i = v.begin (); i! = V.end (); ++ i) {std :: cout & lt; & Lt; * I & lt; & Lt; Std :: endl; }} Is it something with the creation of an Etherator object, and then what is available in the code block? I am very new to the itater. The difference is that the first loop will not be compiled. ) (auto and amp; i = v.begin (); i! = V.end (); ++ i) {std :: cout & lt; & Lt; * I & lt; & Lt; Std :: endl; } You created a temporary object back by member func...

vim - Auto search NERDTree upon typing -

I am already using CRPP, but I automatically go to NERDTree on a node without my code / Foo but instead, when I type foo then I want to move it there (first result) This is useful when I want to see directory structure but I'm not sure about the filename. (I used CtrlP if I knew the file name) typing / foo then enter is too much key stroke for me. Any ideas about how to achieve this? I do not recommend it because typing / is not such an issue, Autocomed file type Normality call feeds ('/', 't') will automate it with : Set up Inscript , you will also see the match first. Still press Enter to complete the search, however ...

objective c - I need to make a favorite button and change the image when click -

I'm creating a button with a star image and the need to change the image click I click I when button Likes to do and then click on the favorite click. Here is the code - (UITableViewCell *) Table Views: (UITableView *) tableView cellForRowAtIndexPath: (NSIndexPath *) Indekspath {UITableViewCell * cell = [Teblwu qualified Dekyuvr Riug Cell woth identifier: @ "cell"]; If (cell == blue) {cell = [[Uaitiblwugel light] initWithStyle: UITableViewCellStyleDefault reuseIdentifier: @ "cell"]; } FavButton = [UIButtonTypeCustom] with UIButton Button; [FavButton addTarget: self action: @ selector (Btnclait :) Control Event: UIControlEventTouchUpInside]; [Favibtn Setbakgroundpradrshn [Uaimej enrolled Image: @ "Sterds paging"] Forest: Uaikantolstetanorml]; FavButton.frame = CGRectMake (200, 90, 20, 25); [Cell. Add contentviewsviewview: FAVButtons]; Return cell; } You must store the state somewhere, this is usually the array indexed by indexpath (Your d...

osx - Safari NPAPI plugins and retina support -

I am experiencing problems with the support of retina screens with my Safari NPAPI plugin. I am using a CoreGraphics based plugin and for some reasons the backing scalefactor is coming back by windows I is 1 instead of 2 on a retina screen. I tried to see some configuration parameters with luck. The only way to do this work is by making the subclass of NSWindow and overlapping backing scale factor 2 returning. However, I could not find any way to detect retinal screens from the plugin. Any thoughts? Unfortunately, there is probably no way. You can not use NSWindow, so there is no way to ensure that you are drawing pictures on which monitor. If the safari can not give you anything you want, maybe there is no alternative.

How to Retrieve Last Entered Result and Perform Subtraction after that store into SQLite Android -

I am making a stock in system - I know how to start a new record in the table But now, I have to do an additional job by recovering the previous value and connecting with the current value. E.G: ROWID | | Stock ID | Stock amount | Total Stock # 01 A0001 | 20 | 20 || 02 | B0002 | 50 | 50 | 03 | A0001 | 40 | 60 & lt; & Lt; & Lt; (Assuming this new ant value is "40", when I get "60" when STOCKIN is pressed in the database) - Pisces 20 + 40 = 60 The following is code: DBAdapter class public long stock in (string indent, string provident, string unit, string total, string rack) {ContentValues InitialValues ​​= new content value (); initial value. Input (KEY_STOCK_IN_DATE, Indent); InitialValues.put (KEY_PRO_CODE, Prudent); InitialValues.put (KEY_STOCK_IN_AMT, unit); InitialValues.put (KEY_STOCK_TOTAL, total); InitialValues.put (KEY_STOCK_RACK, rack); Return DBInstant (DATABASE_TRANS_TABLE, blank, initial value); } Stocks in the class Pu...

ruby - watir click on javascript button -

I try to upload a file to the web site, but if I try, click on the button Can not find any solution for @@ browser.button (: name = & gt; "submit_btn"). I get this error / net /protocol.rb: 141: In 'read_nonblock': End of the file reached (EOFError) Do you have a The idea is how can I click on the button? & lt; Center & gt; & Lt; Label = "tos" & gt; & Lt; / Label & gt; & Lt; A href = "tos.html" & gt; & Lt; / A & gt; & Lt; Input id = "tos" type = "checkbox" onclick = "if (this.checked) {this.form.submit_btn.disabled = false} else {this.form.submit_btn.disabled = true}; this.blur (); "Check =" "value =" 1 "name =" tos "& gt; & Lt; / Input & gt; & Lt; Br> & Lt; / Br & gt; & Lt; Input class = "btn" type = "submit" value = "upload!" Name = "submit_button" & gt; ...

java - Shared data between clients in socket -

If I have class A and 2 threads from class B, and I think the thread is in class A to variable X I want to reach i a thread manipulates that variable, how does the thread of the first value of x get the second thread? For example public class A {public static x = 0; Public static zero manipulation {x ++; }} and for example class B: executes the public class B. Runnable {Public is run from zero (a.manipulate); }} If I run 2 threads, then from 1st to x will be set, and second set x to 2, is that correct? If not true, how do I?

How can I excute macro program iteratively with consecutive constant numbers in sas? -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब मैं मैक्रो की शुरुआत कर रहा हूँ । मैंने एक मैक्रो प्रोग्राम को संशोधित किया और काम करता है लेकिन, मुझे निम्न मैक्रो सौ गुना लिखना होगा। % quint (dsn = cc1, var = MB, quintvar = MB5, संख्या = 111); % Quint (dsn = cc1, var = MB, quintvar = MB5, num = 112); % Quint (dsn = cc1, var = MB, quintvar = MB5, num = 113); - -% quint (dsn = cc1, var = MB, quintvar = MB5, संख्या = 400); हर बार जब मैं इस नौकरी के लिए एक प्रोग्राम बनाता हूं, तो अंक निरंतर संख्याओं के बजाय एक ह्रास के रूप में मान्यता प्राप्त होता है। मैं इसके लिए एक छोटा और आसान कैसे बना सकता हूं? आप रिटाइन कथन का उपयोग कर सकते हैं और कॉल निष्पादित कर सकते हैं। % मैक्रो क्विंट (डीएसएन, वर्, क्विंटवार, संख्या); % डाल & डीएसएन; % पुट & amp; var; % पुट & amp; quintvar; % डाल और अंक; % सुधार; डेटा _null_; नंबर 111 को बनाए रखना; जब तक (numv = 400) करो; कॉल निष्पादन ('% quint (cc1, MB, MB5,' || numv || ')'); numv + 1; समाप्त; चलाने; यह काम करत...

Google Admob not displaying ads using cordova tabset example? -

I am using the original Adobe example to display banner ads on my Cordoba app, but either an ad class = "lang-html prettyprint-override"> angular.module (' Starter ', [' ionic ',' starter controllers', 'starter services']) .ron (function ($ ionicplayfafet) {$ ionicPlatform.ready (function () (// Nput) if (window. Cordoba & window.cordova.plugins.keyboard) {cordova.plugins.Keyboard.hideKeyboardAccessoryBar (true);} if (window.statsbar) {// org.apache.cordova.statusbar StatusBar.styleDefault ();} var ad_units = {iOS: {banner: 'ca-app-pub-XXXXXXXXXX / 2259066653',}, Android: {banner: 'ca-app-pub-XXXXXXXXXXXXXXXX / 2259066653', required According to platform var, select the correct ad ID Ad Molid = (/ (Android) / i.test (nivigator.userAgent)? Ad_units.android: ad_units.ios; // nothing happens ..... if (AdMob) AdMob.createBanner (admobid.banner); }); }} Do anyone have experience with this or can suggest some ways to...

Sort 2D list in Jython/Python -

I am using WLST (Python / Jethan) to get the configuration of some weblogic resources. I loop in a JM module queue and I recovered the name and some other parameters for each queue. With this information, I create a 2D list, which I want to order with queue. When I can successfully do it in two ways in the Python console: operator import items from Lester L = [["queueName1", 1, 2], [ "QueueName2", 2, 3], ["QAname 3", 4, 1]] Sorted (L, Key = Medetter (0)) or Python / jethan version in my WL server (version 10.3.5) (I do not really know what it is using ) I do not like it when I use a .py script: list2d.sort (key = lambda x: x [0]) I get the error: Problem in starting WLST - traceback (at the end): file "/home/user/scripts/pythonscripts/get_jms_config.py", in line 98, in? If I try to use the item, then it is not better, as I get the following error: WLST - Traceback (most Finally, the problem of getting started: fil...

c# - Entity Framework 6 - Creating dynamic repository not working / Object not match target -

मैं इस कोड का उपयोग कर रहा हूं। सार्वजनिक आभासी ऑब्जेक्ट & lt; BaseObject & gt; GetTypifiedBDOSet () {MethodInfo methodInfo = typeof (ऑब्जेक्टसिटी & lt; BaseObject & gt;) GetMethod ("OfType", नया प्रकार [] {}); MethodInfo genericMethodInfo = methodInfo.MakeGenericMethod (नया प्रकार [] {BDOType}); ObjectQuery परिणाम = genericMethodInfo.Invoke (DBContext.BaseSet, रिक्त) ObjectQuery के रूप में; ObjectQuery & LT; BaseObject & gt; ObjectQuery = result.Cast & lt; BaseObject & gt; () वस्तु के रूप में & lt; BaseObject & gt;; वापसी ऑब्जेक्ट; } लेकिन मैं त्रुटि प्राप्त कर रहा हूं कि ऑब्जेक्ट को 5 लाइन में लक्ष्य से मेल नहीं खाता। (ऑब्जेक्टिज़्म परिणाम ...) मैं एक गतिशील बनाना चाहता हूं ऑब्जेक्टसिटी & lt; BaseObject & gt; ऑब्जेक्ट जिसमें मेरे लिए सटीक क्वेरी प्रकार शामिल है। यदि मैं एक रिपॉजिटरी को गतिशील बना देता हूं तो मैं उस डेटाबेस से सभी प्रविष्टियों का चयन करना चाहता हूं, (बेस क्लास बेसऑब्जेक्ट है!) मैं टीपीसी रणनीति ...

Is there a way to see the source of a pcode file (.p) in MATLAB? -

क्या मैटलॉग में एक पीओडी फाइल (.पी) खोलने का कोई तरीका है? अगर 'ओपन' से आप का मतलब है संपादित करें - फिर निश्चित रूप से नहीं। 'पी' में पिन कोड 'संरक्षित' के लिए है - इसका मुख्य डिज़ाइन लक्ष्य उसके स्रोत की सुरक्षा करते समय एक कार्यात्मक घटक तैनात कर रहा है। यदि 'खुले' से आप का मतलब है चला - तो निश्चित रूप से हाँ। आप जिस तरह से पीढ़ी फ़ाइल पीते हैं, उसी प्रकार से आप MATLAB .m स्रोत फ़ाइल का आह्वान करते हैं जिसमें से इसे प्राप्त किया गया था। उदाहरण के लिए, फ़ाइल myfun.p को खोलने के लिए [बाहर, out2, ...] = myfun (in1, in2, ...);

How to span the Columns of a QTreeView in C++/Qt? -

I want to do some lengthy text in one of my columns of qtreeview (not the first column). This text is to be fully displayed but it is not elaborate. SetFirstColumnSpanned is a method but it only works for the first column. Any ideas about how to span other columns? Try to use For example: tableview-> Horizontal headers () - & gt; Set Resize Mode (column_number, QHeaderView :: ResizeToContents);

performance - Java: Add element into a list inside a HashMap -

I was thinking that there is a more effective way of adding an element than adding a list inside a constraints list To add an element to the copy, and then insert it inside the map with a specific location inside the map, to overwrite the location of that map portion ... Maps & lt; Integer, list & lieutenant; Object & gt; & Gt; MyMap = new Hashmap & lt; Integer, list & lt; Object & gt; & Gt; (); .... Add function list & lt; Object & gt; Tmp = new linked list (); If (myMap.containsKey (myListKey.hashCode ())) {// kcheck TMP = myMap.get (myListKey.hashCode ()); // copy tmp.add (myObjectToAdd); // add myMap.put (myListKey.hashCode (), TMP); // Overwrite} I tried several ways to get direct access to the internal list, but the compiler seems to be in his / her time today ... First of all, there is no reason why you call hash code () to enter the item in the list should do. For one thing, different keys may have the same hash code, as...

.htaccess - How to redirect a page with an additional URL variable -

मैं एक पुराने स्थान () से एक नया स्थान () पर एक एकल पृष्ठ (index.php) पुनर्निर्देशित करना चाहता हूं । इस पेज में कई यूआरएल मापदंड हैं, और मुझे एक अतिरिक्त पैरामीटर (उदाहरण के लिए: p = 9) जोड़ना होगा। पुनर्निर्देशन भी काम करना चाहिए जब index.php निर्दिष्ट नहीं होता है, क्योंकि यह डिफ़ॉल्ट फ़ाइल है। वांछित परिणामों के कुछ उदाहरण: http: // पुराना कॉम - & gt; Http://new.com/index.php?p=9 http://old.com/ - & gt; Http://new.com/index.php?p=9 http://old.com/index.php - & gt; Http://new.com/index.php?p=9 http://old.com/index.php?a=1&b=2&c=3 - & gt; Http://new.com/index.php?a=1&b=2&c=3&p=9 http://old.com/index.php?p=555 - & gt; महत्वपूर्ण नहीं, पैरामीटर पी वहां नहीं हो सकता नेट और विभिन्न परीक्षणों के शोध के बाद, यह मेरी .htaccess फ़ाइल है: RewriteEngine On RewriteRule ^ / Index.php (। *) $ Http://new.com/index.php?p=9 [आर = 301, एल, क्यूएसए] दुर्भाग्य से यह नहीं है मौजूदा पैरामीटर को एक नए के साथ मर्ज कर दें, जैसा कि मैं उम्मीद करता हूं...

css - Change color in drop-down where jquery change multiply drop-down-menu -

I use a jquery to change the drop-down menu multiplied with one selection. And I use a drop-down menu to make changes for everyone else. I've added a different background color for each option and when I change an option on the drop-down menu, all those background colors will not be displayed on other drop-down menus. How can I get it? Here is jquery function addMessage (msg, obvious) {if (obvious! == blank & clear) {$ ('# msgs'). Html (""); } $ ('# Msgs'). Attachments (msg + " & gt; } Select on function () {var stext = $ ("# s_make option: selected"). Val (); AddMessage ("You selected:" + stext); Switch (stack) {case "opt_1": $ ("# s_score> option [value = 'xml_multi_01.php']"). Ether ('selected', 'selected'); break; Case "opt_2": $ ("# s_score> option [value = 'xml_multi_02.php']"). Ether ('selected', 'selected'); b...

c# - EF can't return the items with condition but sql can why? -

Image
मेरे पास इस तरह की एक क्वेरी है: int a = pgc.fronts.Where ( I = & gt; i.ItemCode == आइटमकोड & amp; i.PC == पीसी) .काउंट () पीजीसी मेरे डीबीकेनटेक्स्ट है। आइटम कोड '10414' और पीसी है मान null परिणाम है 0 । तो मैंने क्वेरी को sql कमांड में बदल दिया है: / * ***** SSMS से SelectTopNRows कमांड के लिए स्क्रिप्ट ****** / SELECT [आईडी], [नहीं], [आइटमकोड], [मात्राआरसीसी], [पीसी], [दिनांक], [प्रकार], [लाइन] , [संयुक्त], [QTYIssue], [Recivedby] FROM [pgc]। [डीबीओ]। [फॉरेन्ट्स] जहां आइटमकोड = '10414' और पीसी शून्य है यह 3 रिकॉर्ड के रूप में देता है आप यहां देख सकते हैं: इसलिए ऐसा क्यों होता है? सार्वजनिक आंशिक कक्षा सामने {सार्वजनिक लंबे आईडी} (प्राप्त करें; सेट; } सार्वजनिक स्ट्रिंग नहीं {प्राप्त; सेट; } सार्वजनिक स्ट्रिंग ItemCode {get; सेट; } सार्वजनिक नल योग्य & lt; डबल & gt; मात्रारेखा {प्राप्त; सेट; } सार्वजनिक स्ट्रिंग पीसी {get; सेट; } सार्वजनिक प्रणाली। डेटटाइम तिथि {get; सेट; } सार्वजनिक स्ट्रिंग प्रकार {get; सेट; } सार्वजनिक स...

java - My program keeps throwing IO exception after reading from binary file -

I have taken a text file and typed the object into a binary file and converted it into binary, then I Trying to read from the binary file, which works perfectly till the last record and then it throws the IO exception and never goes on my previous print statement. Below is my code that is triggering error Try {Object InputStream objinputStream2 = New ObjectInststream (New file InputStream ("BinaryFile")); For (int run = 0; run Any help is appreciated Stack trace: at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:606) bluej.runtime.ExecServer $ 3.run (ExecServer.java:730) You will need to reconsider the status of the loop: for (int run = 0; run . Neither run and count has been modified inside the loop, so it will run forever (unless you have a record from your file and exception occurs ). I think that something like this should be: int count = 0; For (int...

javascript - FuelUX - Open datepicker calendar upward -

What is the best way to open the date calendar calendar above? The default is to open the bottom down. I have converted the margin to a negative value on the Dotepaycker-Calendar-Cover class and it works fine, but wondering what another way to do this. Datapaker-Calendar-Open-up {margin: -356px 0; } dropup class to date picture Cover & lt; Div class = "datapicker dropup" & gt; ... & lt; / Div & gt; Html

c# - How can I connect to database my application is using & explore into it? -

I have created a simple application as explained on MSDN , it is simple code first workflow example, it works fine, it stores data and also displays the stored data but I do not know how it can use the database? Note: I am using EF 6 with VS 2013 final App.config : & Lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Configuration & gt; & Lt; ConfigSections & gt; & Lt; -! For more information about the structure of the unit, see http://go.microsoft.com/fwlink/?LinkID=237468 - & gt; & Lt; Section name = "entityFramework" type = "System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, version = 6.0.0.0, culture = neutral, publicKeyToken = b77a5c561934e089" requirePermission = "false" /> & Lt; / ConfigSections & gt; & Lt; Startup & gt; & Lt; Supported serial version = "v4.0" sku = ".NETFramework, version = v4.5" /...

ftp - PHP: ftp_connect - get any error details -

I am trying to connect to remote server with ftp_connect and it incorrectly returns to this particular server at all times . Is there a way to get the details of the error? I tried: error_get_last (); Also ini_set ('display_errors', 1); Error_reporting (E_ALL | E_STRICT); But was it not working any advice? According to PHP docs, "Returns an FTP stream on error or failure on error", therefore, true result for false connection error is There are things to look at port numbers, firewalls which can block the connection, IP address blocking etc.

javascript - Switching between minified code and normal code depending on environment? -

Currently using mysterious to reduce my JS files I have a PHP script in my HTML which Checks the URL and decides whether a large minor JavaScript file or all regular Javascript files are included, it is upset because I have all the files listed in two places; Once in the horror file and once in the switch statement in my PHP script. If one of the teams adds a new file, but not the second, there are bad things, an easy and effective way to go about switch between the two? We want our production server to use the mined code and our local dev environment uses unified code.

node.js - Zeromq REQ-REP pattern sync on nodejs -

I have 1 application (written in nodejs, now A ) via ZMQ Another application should be connected (written in Java with Akke Framework, now B ). The B application is repeated on multiple servers, and selecting the app A by querying every B (The average average demand for this should be loading). I will apply this method through the REC / REP pattern, but I slam on it: ZMQ provides a REC / REP pattern with event handling without blocking strategies defined in A GMQ in node Architecture . I have tested other methods (switching on angle, presenting a socket on the B application and making socket connections), but I want to apply it with zeromq I will try. Any suggestions? Whatever you are looking for can not be REC / REP, because that pattern is strictly only handles a request / reply / request / reply message pattern, and whatever you want is more equest b 1 / request b 2 / Answer B 3 (Due to the point, Asynchronous Hong instead of reque...

ruby on rails - How to read yml file uploaded to aws s3 -

I have a yml file that contains some credentials and keys, so I'm surprised if it is on S3 It would be nice to upload and use it via private URL or AAS object. I tried to give the URL in my development. RB is not working to try to load the file. Next I tried to create an AOS object and access the file in the S3 bucket. s3 = AWS :: S3.new (access_key_id: '.xxx, to read the file and read it.) But this empty me {} Returns whether the url / file has to do anything with permission? How can I get it? This is the first time that I am using AOS and I am not sure That's my approach right or if this is the best way to keep sensitive data safe. Plz how do i get this Guide for the purpose. Thanks I will use the following gem for this Improved Implementation with Imam. Install it and add to you Gemfile then vim .env or your choice Create this new file by using the editor. Add your keys: S3_BUCKET = YOURS3BUCKET SECRET_KEY = YOURSECRETKEYGOESHERE and...

javascript - How to auto-populate the city and state input fields once user enters the valid United States zip code value into an input field? -

Actually, I had this functional functionality on my website but suddenly the URL from which I received state and city AJAX feedback He is doing, he has stopped working. Now what is the biggest problem that I am facing now, how can this effect be effective again? & lt; Input type = "text" class = "form-control" size = "20" id = "store_zipcode" name = "store_zipcode" value = "" & gt; & Lt; Input type = "text" class = "form-control" maxlength = "50" readonly = "readonly" name = "store_city" id = "store_city" value = "" & gt; & Lt; Input type = "text" class = "form-control" readonly = "readonly" name = "store_state" id = "store_state" value = "" size = "20" & gt; jQuery-AJAX code: // Function name Add / Edit form in store when user valid US zip The...

parsing - Is there a general purpose parser for Java bytecode? -

I am trying to algorithm a classification on a feature set received from JAR files. I want to separate the JR file, from which to make text corpus, from which I can remove the facilities to pass the classifier. The problem is, there is a lot of things in Java bytecode (I am using JavaCV) which I do not care, which can be the result of useless features. Is there a available parser I can use for Java bytecode which can get rid of syntax characters? . It is fast, light weight and well documented. It comes with a generator which allows to create code that will be required to build a bytecode with ASM for a certain category file.

google app engine - Search across all namespaces in appengine -

Is there a way to search across namespaces in the Google app engine? This is not possible, but wants to check with the community. Currently, I repeat through all the namespaces and query each of them. It takes time and is slow. Is not possible with standard datastore queries. Option must use the search API, or export it to gimmick.

linux - Filter specific lines with a given prefix from a file -

I need to get the line before the last time of the prefix given on the whole file, the command I do Can I use (Sed or any other option)? For example: (prefix is ​​the first two numbers of each row: for example, (16, 316) (0 312), etc.) File.txt: 0 312 0 0 312 0 0 314 0> 315 0 0 315 9380 0 315 0> 0 315 0 should be output: 16 316 32 0 312 2130 9 0 313 32732 0 314 19781 0 315 30388 Thanks I assume those empty rows that the reality And your file is not in. tac file.txt | Awk '$ 1' "$ 2! = Prefix {getline; Print; Prefix = $ 1 "" $ 2} "| Tac 16 316 32 312 21309 0 313 32732 0 314 19781 315 30388 Reverse the file. When I see a new prefix, print the next line and then reverse the output.

vb.net - How to call wcf rest using fiddler -

Operation contract () Reduce function (x long, longer than long In) / P> Let's say that I have the above contract, my service file is services.svc Am I using the above call to use the intelligence or to add something to the browser Should not be enabled in localhost / services.svc / sorry if the correct syntax operation contract is pasted for any reason Sector are syntax problems have disappeared so right syntax to this URL P>

r - Making a data frame of count of NA by variable for multiple data frames in a list -

मेरे पास 4 डेटा फ़्रेम युक्त सूची है: & gt; नाम (listofdf) [1] "q12014local" "q12014national" "q22014local" "q22014national" सभी डेटा फ़्रेमों में एक ही चर नाम है मैं एक नया डेटा फ्रेम बनाना चाहता हूं जो कि एनएएस की संख्या को वैरिएबल और डेटा फ्रेम के आधार पर गिना जाता है। परिणामी आउटपुट इस तरह दिखना चाहिए: v1 v2 v3 v4 v5 v6 v7 q12014local 328 278 1786 0 0 12 1 q12014national 0 100 124 0 0 7 0 q22014 स्थान 0 0 0 0 0 28 9 0 q22014 अंतर्राष्ट्रीय 423 0 10 10 78 0 0 यहां एक प्रतिलिपि प्रस्तुत करने योग्य उदाहरण है: & gt; Df1 & lt; - data.frame (v1 = c (1: 5), v2 = c ("सेब", "नाशपाती", एनए, "पीच", एनए), वी 3 = सी ("रविवार", "सोमवार" NA, NA, NA)) & gt; Df2 & lt; - data.frame (v1 = सी (2, 7, एनए, एनए, "9"), वी 2 = सी ("प्लम", एनए, "कीवी", एनए, "जैकफुट"), वी 3 = सी ( एनए, एनए, "शनिवार", एनए, "बुधवार")) ...

cql - Cassandra Timestamp+Counter -

How do I want to create some models in CASADRA at present what do i want is: table calculations (user varchar, last_event timestamp, event_count counter, primary key (user)); The goal here is to store those two pieces of data (event_count and last_event) the way a user can be efficiently retrieved. In addition to this, there are many threads to write this data at the same time, the counter type, which handles that case well, is quite useful. However, I know that it is impossible to add a counter and a timestamp in it. The only table is there any other, alternate way for this data to work, which can work? I realize that I can store all events as my own rows, but we should be able to get last and effective last_vanced event_count for a given user Edit for clarity: I have a stream of timestamps associated with users. I want to store the number of timestamps and the most recent timestamps for each user, and I want to optimize for a quick look for a particular user. ...

What is wrong with my python code? -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब मैं बनाने की कोशिश कर रहा हूँ अजगर में एक अनुमान लगाने का खेल यादृच्छिक आयात रैंडिंट प्रिंट से \ "मैं एक संख्या के बारे में सोच रहा हूँ, आपको लगता है कि यह क्या है। \ N" num = randint (1,100) अनुमान = 0 जबकि लगता है! = Num : अनुमान = raw_input ("अनुमान लगाएं \ n") यदि अनुमान लगाया जाए & lt; Num: प्रिंट "अगली बार अनुमान लगाएं \ n" एलीफ अनुमान & gt; Num: print "अगली बार निचोड़ लें \ n" एलीफ अनुमान == संख्या: प्रिंट "यह सही है \ n" समस्या यह है कि मैं कितनी संख्या में प्रवेश करूं, मैं " लगता है एक कम संख्या "हर बार तो क्या गलत हुआ? इसके साथ: अनुमान = raw_input ("संख्या लगता है \ N ") अनुमान एक स्ट्रिंग है, कोई संख्या नहीं। आप यह कर सकते हैं: अनुमान = int (raw_input ("संख्या लगता है \ n")) एक int प्राप्त करने के लिए।

php - URL redirects in htaccess -

I have set up an htaccess file and running on a live server. Everything is working fine with it but I have to add some specific URL again. IIS Web Specific redirects were established in the config file. One example: & lt; Rule name = "URL re-direct" stopProcessing = "true" & gt; & Lt; Match url = "^ program_consumer (.. (\ CFM) | (\ php) | () +) (?. (\ *) | ()) $" / & Gt; & Lt; Conditions logical group = "matching all" track alps = "wrong" /> & Lt; Action Type = "Redirect" url = "site_programs {R: 7}" /> & Lt; / Rules & gt; I have tried hard to translate into MT HTX file I have tried: AddDefaultCharset OFF option + FollowSymLinks RewriteEngine on RewriteBase / #extensionless Resolved .php file for php url% {REQUEST_FILENAME} -d RewriteCond% {REQUEST_FILENAME} \ RewriteCond php -. F RewriteRule ^ (. *) $ $ 1.php [L] # again Direct non-file non directory RewriteCond% {...

datetime - Python Tkinter input date subtraction -

I am trying to get my typewriter dialog to subtract a simple date, but something is holding it shell The date of runtime is subtraction, but I am not getting anything from it. This code has been borrowed from the second script which I have set up all the forms and windows setup. any help Will be staying ... Even now I made it more messy, in some way it doesn even have not been started at all and makeform (root, field) Under "Laboratory" variable has been highlighted: It was running a minute ago, although it does not compute ... Help d = raw_input (entries ['enter date (mm / day / or)']. ()) raw_input receives data from the user through the command line Is it intentionally? You do not need this if you want to type the user in the entry. d = entries ['Enter Date (mm / day / traffic)']. ()

angularjs - Clone transcluding content before any child directives execute -

I have displayed an instruction to use as an example for any other instruction. Here's an example: & lt; One-Example & gt; & Lt; Input ng-model = "name" one-spell-check / & gt; & Lt; / One-Example & gt; I want to copy it to markup that it has been placed inside and to show it to markup which The tag is put in the instructions. but adds the ng-model input to the class, by creating it: Instead, the example should capture the command: & lt; Input ng-model = "name" a-spellcheck / & gt; However, before running internal instructions, I am unable to use transposed content. In the controller , preLink , and postLink functions, there are already CSS classes with input > ng- Model . Does a director compile child instructions before Is there a way to access the contents of the example instruction? This is not possible because ngTransclude has a priority of 0 whereas ngModel's priority is 1 (th...

java - Why sum doesn't work here? -

Here I am with another basic question, I hope that these questions do not bother anyone following my last question Because they are very basic because they are very basic. First of all, I get the name, then change them as input, then convert them into integers and they need to be consolidated and put them in the equation which this yoga does not work. Thank you for your time and support. > Package Love Index; Import java.util.Scanner; Import java.lang.Math; Public class loveindex {public static zero main (string [] args) {scanner scan = new scanner (system.); System.out.println ("test scanner, write something:"); String testi = scan.nextLine (); Testi = testi.toUpperCase (); Four [] ascii1 = testi.to charas (); For (four f: ascii1) {// System.out.println ((int) ch + ""); Int [] a = {(int) ch}; Int All = IntStream.of (A) .sum (); // & gt; & Gt; & Gt; Here it shows an error and quick fix because there is always a big mess ... System.out.println (...

Python 3 dir() method called on null object -

This is not a question to help me locate this code, but rather asking a question that the behavior of the object What is this . In python 3, there is a function dir ([object]) I am reading Python documents, and it says that the argument Name, more or less, and if there is no logic, then it returns the list of names in the current local area. So we say, I only have one code: dir ([nullObject]) I did not start it in my code at all So, it should just be blank, does the compiler see it as an error, or will it treat the function as if it is called without argument? Code> results.

ios - When applying a filter to a UIImage the result is upside down -

This really makes me angry when I change a CIImage a UIImage am, then apply a filter, then Change the image from top to bottom (for landscape) or rotated anticlockwise 90 degrees (for portrait). var Image: UIImage? Var Index: Int? @IBOutlet Weak Var Photo: UIImageView! @IBAction func editImage (Sender: UIBarButtonItem) {println ( "editImage") go IIMAGE = CIImage (Image: self.image) filter = CIFilter (name: "CISepiaTone") filter.setValue (startImage, forKey: kCIInputImageKey) Filter . SetValue (0.8, forKey: kCIInputIntensityKey) to Niaimej = UIImage to (Siaimaj filter. Output Image) Selfkfoto. Image = new Image} image filtered image orientation and scale back on the original values set up: Let NewImage = UIImage (CIImage: filter.outputImage, scale: self .image.scale, Orientation: self.image.imageOrientation)

angularjs - ngGrid: Do not select row if certain conditions exist in -

Image
I have the select all checkbox on a ngGrid that works great but I have There is a situation where some situations exist, I do not want to select a particular line. So if I click Select all, he should select all, but where the check fails, this is what I thought it would have to do: $ scope.gridOptions.before Selection selection = function (line item, event) {angular.forEach (rowItem, function (item) {if (item.entity status == 'accepted') {item.selected = false;} other {item.selected = true; }}); } But this does not seem to work, how do I get it? I tried even after selection. I think the data changes ( selected property), but there is no selection. Select All button is not something I have added. This is the one that comes with ngGrid when you enable the checkbox - which is in the header. You should be able to use the $ scope with the example: Edit: OK, I see what you need now. You can override the checkbox header template and you can tie it on ...

python - Significant Inversions in an array -

I am working on the problem of homework to find the number of significant inversions in the integers array. The "critical inverse" is defined as follows: A serial [a 0 , a 1 , one The important inverse is 2 , ..., a n ] is where a i 2 a J some i . Therefore for example one = [4,5,2,1,3] has 3 significant inversions, because this permutation a 0 > 2 a 3 , a 1 2 a 2 a 1 2 a 3 . To solve o (n log n) complexity is required, it requires the use of the partition and the approach is conquered. I chose to implement a solution based on merge sort. Def countInversions (list): if (len (list) & lt; = 1): return list, 0 and: (= [middle:]) results: , C = merge and calculation (left, right) return result, (A + B + C) However, I'm having trouble with the merge and counting method, especially the important inverse Calculating the Number I customize my code with the count of the normal number of inversions. def merge and cant (left, righ...

css - Bootstrap alignment and spacing of vertical checkboxes with associated horizontal text fields -

Image
What is the most elegant (i.e. non-hockey) way to properly align a group of checkboxes Are there one or more related text inputs? Whatever I have tried, I end up with (i) uneven checkboxes, or (ii) misspelled checkboxes, or (iii) misspelled labels, or (iv) misspelled text boxes. : What is your favorite food? (A) Apple (B) Banana (C) Carrot (D) Other: _______ Definitely very common, I wonder if anyone can find a way to do this with the bootstrap standard class Has been done before, I begin compulsion to code my own classes. Here I have the code: & lt; Div class = "form-group" & gt; & Lt; Label class = "col-sm-2-control-label" & gt; Favorite food & lt; / Label & gt; & Lt; Div class = "col-sm-10" & gt; & Lt; Div class = "checkbox" & gt; & Lt; Label & gt; & Lt; Fieldet class = "form-inline" & gt; & Lt; Input type = "checkbox" /> Apple & lt; / Fieldset...

c++ - Reading and displaying a file -

I am having problems displaying this file. I try to create a file and display it in an output screen I am doing But Milan is not working, it is getting me in line 40 as "unannounced". I have tried to chant things and I do not do anything. What's the problem? #include & lt; Iostream & gt; # Include & lt; Fstream & gt; # Include & lt; Stdlib.h & gt; #include & lt; String & gt; using namespace std; Int main () {char filename [] = "Hello.txt"; String line = "hello, this is my output file"; Offream outfile; OutFile.open (filename); If (OutFile.fail ()) // To successfully open the check, {cout & lt; & Lt; "Named file not found \ n"; Exit (1); } Outfile & lt; & Lt; Line; If (OutFile.is_open ()) OutFile.getline (line); OutFile.close (); System ("pause"); } std :: getline () is an independent Function, not member function The member function version is for the raw letter arrays a...

I have a variable in C++ that says its undefined, when clearly defined in my constructor. C++ -

कन्स्ट्रक्टर यहां है: जब मैं अपना setLeft () फ़ंक्शन घोषित करता हूं , यह मुझे बताता है m_pLeft परिभाषित नहीं है मैंने इसे पूरे स्थान पर स्थानांतरित करने की कोशिश की है और यह कहने के लिए नहीं मिल सकता कि यह अपरिभाषित के अलावा कुछ भी है। सेट लेफ्ट को शून्य सेट-लेफ्ट (BookRecord * leftpointer) के रूप में परिभाषित किया गया है {* m_pLeft = * leftpointer; } #pragma एक बार कक्षा बुकरकार्ड {निजी: char m_sName [100]; // प्रत्येक पुस्तक के लिए अनन्य नाम लंबे समय से एम_लस्टॉक न्यूज़; // एक स्टॉक नंबर, एक बारकोड int m_iClassification के समान; // कैसे एक किताब को वर्गीकृत किया जाना चाहिए, एक डेवी दशमलव प्रणाली डबल m_dCost के समान; // किताब की कीमत m_iCount; // पुस्तक में कितने किताबें हैं BookRecord * m_pLeft; // ट्री के लिए वाम सूचक; BookRecord * m_pRight; // दाहिने सूचक पेड़ से सार्वजनिक: BookRecord (शून्य); बुक रेकॉर्ड (चार * नाम, लंबी एस एन, इंट सीएल, डबल कॉस्ट); ~ BookRecord (); शून्य getName (चार * नाम); शून्य सेटनाम (चार * स्नैम); लम्बे मिलस्टॉक न्यूम (); शून्य सेटस्टॉक न्यूम ...

gtk - Get the maximum number of text lines that fit into a Pango layout? -

I am using a pango within a Kyero reference inside the GUT window. How can I calculate how many text lines and columns fit within the area? Lines are easy; You can provide a sample line of text in PangoLayout and call on it, then make the necessary math to figure out how many vertical your GtkWindow will be. Columns are not so easy (and whichever one you are not using a monospace font, then how many numbers will you calculate does not mean that) if your font is monopaged, Then use the method for lines of the same type.

ios - iPad landscape right view clipped off on load -

Text after "div class =" itemprop = "text"> We just have an iOS app that launches our actual app, which opens only a web application. However, if I open the app in landscape on an iPad, then this is the correct orientation, but it clips from one third to the right of the screen. Essentially, it is establishing a landscape view in the form of a picture, then everything has moved to the left. If I open the app in any other situation, it's okay and it switch between the original portrait or the landscape in any direction. I'm just jumping into the code and not an IOS specialist, so I am not sure about all the different things to try, but I will show the code in which I am working and whatever changes I have made. @ Property (non-dynamic, strong) UIActivInIndicatorview * Activity Indicatorview; @property (non-dynamic, robust) UIWebView * webView; @end @implementation ViewController - (zero) viewDidoadload {[Super Viewedload]; Self.view.autoresizingMas...

javascript - Auto Swap External CSS Stylesheet with toggle scripting -

Hi, I am trying to toggle back this script back to the original CSS external stylesheet. I have the following code that works. $ (document) .ready (function () {$ ("# css-master2"). Click (function () {$ ("link [title = change]"). Attr ({href: "css / master2.css"});});}); Whenever someone clicks anything with id # css-master2, it changes master2.css to an external style sheet (that part works fine). What I want is that it changes back to the original master1.css, if she clicks it again something like toggle? Any help would be greatly appreciated. Check for the link's href, if it is equal to master 2, Switch back to 1. Why can not you do this, can not think that the right thing can be done through two different files instead of CSS classes.

Amazon EMR --wait-for-steps -

I am writing a bash script which runs an AOSMR command (ALS MR version 1.5.2). How do I wait for my script to finish the MR job before moving ahead? - Step for waiting is now discarded. I have found this, but it looks just like the wrong approach: STEP_STATUS_STATE = $ (AS AMR list-step - cluster-id $ {CLUSTER_ID} } | Jq '. Phase [0]. Status.State' | tr -d '"') while while [[$ {STEP_STATUS_STATE} == pending]]] [[$ {STEP_STATUS_STATE} == walking]] SEEEEEEEETE = $ (AS A MR List-Steps - Cluster-ID $ {CLUSTER_ID} | Junk '.' Steps [0]. TetasState '| Tr -d' '') Resonance $ (date) $ {STEP_STATUS_STATE} Gone I go AVS Or wait until the use of the API has expired, as long as the work has ended. Hope this helps Public stable final list & amp; Job Flow Exclusions State & gt; DONE_STATES = Arrays .asList (New Jobflow Execution State [] {JobFlowExecutionState.COMPLETED, JobFlowExecutionState.FAILED, JobFlowExecutionState.TERM...

css - Making an image width:100% inside a inline-block element -

If I have an image on the page width set to 100% in CSS, then the width of the browser is fine. However, if I do a canning divide: inline-block, then the image is no longer set to width: 100% instead, it is shown as the actual width of the image only: img {width: 100%;} & lt; Img src = "http://www.gannett-cdn.com/-mm-/0c9109c71ea0524d9fe840f91fabd67bb94a26a9/r=537&c=0-0-534-712/local/ - / Media / USATODAY / USATODAY / 2013/05 / 30/1369920769000-grumpycat-1305300933_3_4.jpg "/> & Lt; Div style = "display: inline-block;" & Gt; & Lt; Img src = "http://www.gannett-cdn.com/-mm-/0c9109c71ea0524d9fe840f91fabd67bb94a26a9/r=537&c=0-0-534-712/local/-/media/USATODAY/USATODAY/2013/ 05 / 30/1369920769000-grumpycat-1305300933_3_4.jpg "/> & Lt; / Div & gt; So, basically, the inline-blocking div wants to expand into its content, and width: 100 on the image. Wants to expand as a% element, so it seems that they are both co...