Posts

Showing posts from September, 2011

c++ - No matching function to call - compiler says I call (QObject *&) when call is (QObject *) -

यह कोड है: शून्य invokeQMLFunction2Arg (QObject * ऑब्जेक्ट, QString func, QVariant P1, QVariant p2) {QMetaObject :: invokeMethod (वस्तु, फ़ंक्शन, क्यूटी :: डायरेक्ट कनेक्शन, Q_ARG (QVariant, p1), Q_ARG (QVariant, p2)); } यह त्रुटि है: त्रुटि: 'QMetaObject :: invokeMethod (QObject * & amp; QString & amp ;, Q :: कनेक्शन प्रकार, QArgument & lt; QVariant & gt ;, QArgument & lt; QVariant & gt;) ' मुझे क्या याद आ रहा है? मैं एक संकेतक के साथ invokeMethod () को कॉल करता हूं, फिर भी संकलक शिकायत करता है कि यह एक सूचक संदर्भ है। आप दूसरे तर्क के लिए एक क्यूस्ट्रिंग पास करने की कोशिश कर रहे हैं, जबकि यह const char * होना चाहिए। उस प्रकार को उचित रूप में परिवर्तित करें क्योंकि इसमें कोई अंतर्निहित रूपांतरण नहीं है। आपको यह तय करने की आवश्यकता है कि इसे इसे QByteArray में कनवर्ट करने के लिए, इसलिए यह एक उदाहरण है कि आप संभावित रूप से लिख सकते हैं: QMetaObject :: invokeMethod (ऑब्जेक्ट, फंक) toUtf8 ()। constData (), क्यूटी :: डायरेक्ट कन

javascript - Correct way to encode JSON and store in MYSQL? -

I am encoding my javascript ARX using JSON.stringify in javascript, send php to them via asxx Before mysql (btw) - $ i_OST, my example looks like an array (1 item) [\ "shon thomson \"] And after mysql_real_escape_string it looks like [\\\ "Shawn Thomson \\\"] ends in mysql like [\ "Shawn Thomson \"] What is the right way to do this, this It ends ( ["Sean Thomson"] ? Thank you for your help. Try using mysql_real_escape_string instead.

java - Text-only Description field in Google News RSS Feeds -

Google News URL will return Google RSS news in the RSS tag with this HTML tags. I want only text details please help me ... You will need to parse the XML . Here's a detailed tutorial on how to use Android XML dragger on Docs: Take a look. Once you've parse the data, store it in a list. Then, pass that list into the adapter so that you can create a list / grid view that will populate on the basis of the data displayed by the feeds. Edit: At a glance, it says: Style text displayed from the provided HTML string. Any image tag in HTML will appear as a normal replacement image which can go through your program and replace it with real images. Looks like it will suit your needs :)

google dfp - Manually Controlling DFP Ad Selection and Display -

We want to add our existing DFP enabled site to the list of our advertisers through custom creatives for a list of our advertisers Taking advantage of the existing methodology targeting, we want to use it completely DFP because already there is an advertiser's report and we will be able to give an impression to our advertisers for these ads. Want to join the Nti and click-through rates. Pseudo-code would be something like this: googletag.setTargeting (one of the keys, "value";) ;; SessionStore & LT; Array & gt; adList = googletag.getAds (); SessionStore & LT; Integer & gt; Offsets = 0; // Alternately sorted ad list by advertiser name, or other metadata (Int i = 0; i <10; i ++) {var adItem = adList [offset + i]; document.write (â ???? & lt; div id = one 'ad_id_a ???? + adList.adid + a' ???? '????);) ;; Googletag.defineSlot (NetworkDPlus, [custom creative size], 'adidaid' + adList.adid); } // next to the store balance ????

ios - List of timezone abbreviations using xcode -

I have obtained a list of all time zones using this function and stored them in an array: / p> Time zoneAllems = [NSTimeZone knownTimeZoneNames]; I want to get a list of summaries, for example: GMT + 1 â ?? | Is there any easy and quick way to do this? Many thanks Edit 1: This solution shows time zone like: Asia / Beirut â ?? | So I need to show the GMT + 2 label instead. try it, < Previous> NSMutableArray * timeZoneArray = [[NSMutableArray alloc] initWithArray: [NSTimeZone knownTimeZoneNames]]; NSMutableArray * abbreviationArray = [[NSMutableArray alloc] init]; (Int count = 0; count & lt; [timeZoneArray count] -1; calculation = counting + 1) {[abbreviationArray addObject: [[NSTimeZone Time ZoneWithName: [Timezoneer Objective Index: Count]] Short name]]; } NSLog (@ "abbreviated:% @", brief Array);

c++ - Sudoku generation: it goes in loop -

I'm trying to eliminate a sudoku generator algorithm, this is my C ++ code: Zero generated sudoku (num sudoku [] [n]) {int i, j, k; Int weight [n], n, old; // To clear the Sudoku matrix, it is for the -1 (i = 0; i & lt; N; i ++) (j = 0; j & lt; n; j ++) sudoku [i] [Ja] .value = -1; Generates Sudoku for // (i = 0; i & lt; n;) {for (j = 0; j & lt; n;) {k = 0; Clean (Vett, N); // vector fills with 1 old = sudoku [i] [j] .val; // saves the real value {if (k & lt; 9) {do {n = rand ()% 9 + 1; } While (looks (Vett, N, N)); // Generate n when it is already present in vett vett [k ++] = n; If (((((Sudoku, i, j, n) present)) & amp; amp; amp; amp; amp; (n = old)) {// if this row, column and The sub-matrix is ​​not present and it is different between the old value, this sudoku is fine [i] [j ++]. Val = n; If (J ==N) I ++; K = 10; }} And {sudoku [i] [j] .val = -1; If (h> 0) j--; Otherwise if (i> gt; 0) {j = N-1; I--; } K = 10; }} While (k It goes into the

Link Pligg Story Title to Iframe -

I want to link pligg story title for the iframe page, to prevent my user from my website is the story url, Here is the answer: Open: template / bootstrap / story_center. tpl and add this code: {if $ url_short neq "http: //" & amp; amp; $ Url_short neq ": //"} & lt; iframe id = "iframe" noresize = "noresize" ng- src = "{$ url}" width = "100%" height = "100%" src = "{url}}" & gt; & Lt; / Iframe & gt; {/ If}

loops - Odd Powershell Variable Behavior -

python - NameError: x is not defined -

मैं एक साधारण साजिश फलक plot2d , def plot2d (xmin, xmax, func): x = np.linspace (xmin, xmax, num = 50) plt.plot (x, func) plt.show () विचार आप एक्स के मामले में चर 'func' इनपुट हैं, जैसे कि x ** 2। संपादित करें * यहां त्रुटि है: & gt; & gt; & gt ; plot2d (-10,10, x ** 2) ट्रेसबैक (सबसे हाल का कॉल अंतिम): फ़ाइल "& lt; stdin & gt;", लाइन 1, & lt; मॉड्यूल & gt; नाम: त्रुटि: नाम 'एक्स' परिभाषित नहीं है संपादित करें ** मुझे लगता है कि यह समस्या यह थी कि जब आप पहली बार फ़ंक्शन कॉल करते हैं, तो अब linspace x अभी तक नहीं बनाया गया है। यह काम किया: आयात के रूप में एनएमपी आयात matplotlib.pyplot plt def plot2d के रूप में (xmin, xmax): x = np.linspace (xmin, xmax, num = 50) func = input (' परिभाषित करें fucntion: ') plt.plot (x, func) plt.show () आप इस बारे में सीखना चाह सकते हैं अपने कोड को थोड़ा सा पर्याप्त होगा: आयात के रूप में एनपी आयात matplotlib.pyplot plt डेफ plot2d (xmin, xmax, func) के रूप में: x

Please specify the product's option(s). configurable product magento -

I am working with configurable product, I have created a custom view to display the configurable product I'm getting an error while adding the addable product (please specify the product's option). This error occurs only with configurable product. I am using this code to add to the cart $ params = array ('product' => $ product- & gt; 'iid '(),' Super_Edit '=> Array (133 = & gt;' 3 ', 143 =>' 19 ', 142 =>' 18 ', 141 =>' 16 ', 140 = '14', 144 = & gt; '21', 139 = & gt; '12 ', 138 = & gt; '10', 137 => '22', 136 = & gt; gt; 9 ', 135 = & gt;),' qty '=> 2,); $ Cart = Dana :: Millennintlton ('Checkout / Cart'); $ Cart- & gt; AddProduct ($ product, $ parameter); $ Cart- & gt; Save (); Dana :: getSingleton ('Checkout / Session') - & gt; SetCartWasUpdated (true); In the code above 'super_

search - Post Form to a page in CQ5 -

I have a Custom Search Component that searches for some parameters from the dropdown [myParam] and Displays the search results on the second page. I currently use the default (GET) form & lt; Use form id = "searchForm" action = "/ content / myWeb / searchResult.html" method = "get" target = "_ blank" & gt; ; In the results page, a component raises the request parameter and processes the search. I need to make this a post submission so that the search parameter is not displayed in the url. But if I make it a method = "post" , I get this error: status 500 message javax.jcr.nodetype.ConstraintViolationException : No {} found a similar property definition / content / myWeb path / path / in / search / page This exception occurs in a casual way which sling tells you that the postal you are trying to do is not a subnet I can get it. What happens, in this case, that SlingDefaultPostServlet is sling default, which

python - How to add large quantities of files to zip in a memory efficient way? -

I'm a bit new to optimize programs for memory efficiency, so this may be a little less preference: if I Want to add hundreds of files (possibly 100 MB +) in a zip, which method would be better to keep the system system available? My existing method: zipfile.ZipFile (zip_name, " a ", compression = zipfile.ZIP_DEFLATED) as myzip: for file in zip_queue: myzip.write (file) or like this: zip_queue file: zipfile.zipfile (zip_name, "a", compression = zipfile.ZIP_DEFLATED) as myzip: myzip.write (file) I followed I estimate that whenever she attaches the file, she flashes the memory every time, but the zip opening and the Do you spend more than memory cost each time just by keeping the file open? Thank you! The first way I will do it is to simply eliminate the same output file and avoid opening it again. For me, I suspect that every approach uses memory, the exact details of it are skeptical, and if this description has a lot of significance, then

How to manage tfs permissions with powershell -

I need to connect to a TFS archive and change the permissions of user X, whether to do it through PowerShell Any way? You can use the tfssecurity executable to perform these actions. Take a look at the following links and see if the functionality is supported as you wish:

Visual studio setup project permission -

I am creating an installation package using the Visual Studio Setup project. It all went well and the installation package really installs my windows app and it runs, but when the app tries to write in a settings.xml file (inside the installation folder and it does not already exist) Then I get the path [access folder access path] \ settings.xml has been rejected! Inside the installation package can allow an app installed to create an overwrite. One more thing is that my app reaches the clipboard (takes the data on the clipboard or writes) so do I still need to give this permission to my app, and if so, then I would like to add my app (this install) to these permissions How to set up the setup project? ps In my original app I set it to full confidence. This is the reason why the program files folder needs to have administrator privileges to write forever Such as user's application data) that a limited user can write. This requires your executable which requires upgrade

mysql - Using PHP/PDO to set a NULL value -

पीएचपी / पीडीओ का उपयोग करना IA ???? एक MySQL (mysql-5.0.96) नामक एक चर को सेट करने का प्रयास कर रहा है? ??? flt_statusâ ???? जिसका डिफ़ॉल्ट सेट है ??? और जिसे INT (5) के रूप में परिभाषित किया गया है, शून्य के लिए। यहां स्टैक ओवरफ्लो (11692773, 13 9 7777) पर कई थ्रेड हैं जो इस विषय को कवर करते हैं लेकिन उनमें से कोई भी मेरे लिए काम नहीं करता है मेरा (बहुत संक्षिप्त) कोड इस तरह दिखता है; $ vs = एक ????: ip, flt_status, sunriseâ ????; $ Match = array (â ????: ipa ???? = & gt ;? $ ipa ????, एक ????: flt_statusâ ???? = & gt; एक ???? अशक्त, पीडीओ :: पैरामाइंट टीएका, ????: सूर्योदय ???? = & gt; एक ???? $ सूर्योदय ????); $ वार्स = आईएपी, फ्लैट_स्टैटस, सनराइज '????; $ sql = "स्केड्स में डालें ($ वार्स) वैल्यू ($ बनाम)"; $ Query = $ db_found- & gt; तैयार ($ sql); $ query- & gt; निष्पादित करें ($ match); मैंने ऊपर की चर्चाओं में उल्लिखित कई तकनीकों का प्रयास किया है और अन्य लोगों ने Google का उपयोग करते हुए पाया है लेकिन हर बार flt_status का मान शू

git - Unable to push ruby on rails master project to heroku windows 8 -

Whenever I do git my commaster then I have a problem, Returns the error: Invalid path! Syntax is: git@heroku.com< App & gt; .git where & lt; App & gt; Your app's name is Fatal: Could not read from the remote repository Please make sure you have the right access rights and the repository is present. I have used MSysGit and I have made a ruby ​​on the rail project, pushed it to the Gitball. Then I successfully validated the myoku login in the project folder. Horokoo successfully created an RPA keypair, it was added for it. So I try to push for it and it fails every time, is anyone able to help? The problem is that your SSH key is being used yet uploaded to Heroku I am not familiar with your GIT client, but what you need to do is get your SSH key file, then run: Harokee Keys: /path/to/my/key.pub Add This will upload your public SSH key to Herook, so that you can push your repository.

json - ElasticSearch Explain Result Output: Nested Level of Description with Weight or CustomScore -

I am explaining the output to Elasticsearch. I am trying to find out how deeply relevant it can be described as part of the value, description, description combination. I am trying to parse those details which have "weight" or "customshore" as I have not got a JSON parser in which XPath has the functionality to find the Sibling nodes (I got a description node because the string was matched on "weight", then I want to assemble "value" brother node) I'm counting on recursive. I have a "weight" or "customshore" Details are seen First, by combining value, description, description, deepening at 5 levels, it's okay by me. I was wondering if it ever says deeply for high magnitude 10, 20 or 30. Interpretation is being executed depending on output query if you look carefully at its structure You will see that it matches the elements of the query and the internal elements of the explanation correspond to the structur

python - pulling and integrating remote changes with pygit2 -

I have the following problem I am writing a script that searches for a folder for the repository, sees the remote on the net And pulls all the new data into the repository, informs me of new changes. The main idea is clear. I'm using Python 2.7 on Windows 7 X64 using pygit2 to access GIT features. The command line simple command supports "GIT pull 'original' ', but the GIT API is more complex and I do not see the way. Okay, I came away: import pygit2 orepository = pygit2.Repository (" path / to / repository / .git ") oremote = repo.remotes [0] Results = oremote.fetch () This code retrieves new items and downloads it to the repository, but the master branch Does not update or exits new data. Reporter of repository with TortoiseGit By nurturing, I see that nothing was checked in any way, even if the new log message appeared, I did not show the log. I use the git pull command to refresh the repository and copy everything at all. Now my question is: Wha

r - Unstacking a stacked dataframe unstacks columns in a different order -

आर 3.1.0 का प्रयोग a = as.data.frame (do.call (Cbind, lapply (1: 100, फ़ंक्शन (x) {c (1,2,3)})) b = अनस्टैक (स्टैक (ए)) # वापसी सभी गलत (colnames (a) == colnames (b) ) स्टैक / अनस्टैक पर प्रलेखन कहते हैं कि अनस्टैकिंग को "यह [स्टैक] ऑपरेशन रिवर्स" करना चाहिए। क्या मैं कुछ भूल रहा हूँ? कॉलम की अंतिम कुछ पंक्तियाँ मुझे पुन: आदेशित करने की आवश्यकता क्यों है? > ढेर ( utils ::: stack.data.frame ) फ़ंक्शन दो कॉलम, "मान" और "इंडस्ट्रीज़" के साथ एक data.frame बनाएं। "इंड" कॉलम कोड के साथ बनाया गया है: इंडस्ट्रीज़ = कारक (rep.int (नाम (x), लप्पली (एक्स, लम्बाई))) लेकिन, सामान्य रूप में कैसे काम करता है ("स्तर" के आदेश पर ध्यान दें) कारक (c (1, 2, 3, 10, 4)) # [1] 1 2 3 10 4 # स्तर: 1 2 3 4 10 कारक (पेस्ट0 ("ए", सी (1, 2, 3, 10, 4))) # [1] A1 A2 A3 A10 A4 # स्तर: A1 A10 A2 A3 ए 4 यदि आपके द्वारा वर्णित कार्यक्षमता आपके विश्लेषण के लिए महत्वपूर्ण है, तो आप stack के संस्करण को बेहतर ढंग से संशोधित कर स

php - if database id field empty hide text -

If there is no ID in the database ID 'type' then I am trying to not display the text. If there is an item 'id' in the database, then the information will be displayed as 'Type: Item type' which is fine. The problem is that when an ID # is not in the database because no item type is selected, then the page appears on 'Type:' when I do not want to show anything. This code below which displays the text is below. & lt;? If get ($ -> this-> Parameters-> ('item_type', 1) == 1 || ($-> Parameters-> get ('item_type', 1) == 2 & amp; amp; blank ($ this-> item-> type)) {? & Gt; & Lt; Strong class = "label_detailed_item" & gt; & Lt ;? Php echo jettext :: _ ('type'); ? & Gt; & Lt; / strong> & Lt; Span class = "value_detailed_item" & gt; & Lt ;? Php echo font ("/", $ this-> item-> type); ? & Gt; & Lt; / Span & gt; &

javascript - Externally-located 'npm run' scripts in package.json on Windows? -

जैसा कि हम जानते हैं, आप npm run का उपयोग करके scripts हैश को आपके package.json : "स्क्रिप्ट": {"build-js": "ब्राउज़र ब्राउजर ब्राउजर / मेन.जेएस | यूगलेटीज -एमसी & gt; स्थिर / bundle.js "} कौन सा npm रन बिल्ड-जेएस से चलाया जा सकता है। आप भी ले जा सकते हैं ये स्क्रिप्ट अलग-अलग लिपियों में आते हैं, जैसे कि बाश स्क्रिप्ट, जैसे: "स्क्रिप्ट": {"build-js": "bin / build.sh"} यह स्पष्ट रूप से विंडोज़ पर नकारात्मक रूप से काम नहीं करता है, क्योंकि विंडोज़ को बाश स्क्रिप्ट चलाने में सक्षम नहीं है। आप बस पोर्ट स्थापित कर सकते हैं और इस तरह से, लेकिन मैं एक ही चीज़ करने के लिए कुछ प्रकार के मूल विंडोज का उपयोग करने में सक्षम होना चाहूंगा। मैंने कुछ अन्य तरीकों की कोशिश की है, जिसमें मानक नोड स्क्रिप्ट फ़ाइल के भीतर से मनमानी कमांड चलाने के लिए child_process.exec : "स्क्रिप्ट": {"build-js": "node bin / build.js"} < / code> लेकिन मैंने देखा है कि child_process अपेक्षा

Multiple "is" in Python -

I have a list with a few hundred objects, and I want to check if any newcomer object is already added to me The list is not (a similar object, but this is a very accurate example). I have a dumb feeling like this: def is_one_of (test_object, all_objects): all_objects for elm: if test_object is elm: return true return false Can not it be more beautiful? Use any : < code> if any (all_objects have test_object for X): already looks like your code :)

couchdb - Updating a Couch Document -

Assume that I have an existing couchdb JSON document hosted on the server. And I want to add some data to the document that I can do? The document says that the following data is already in: "User: [{" name ":" John "," lastname ": doe"}] I want to add another user: "user: [{name": "jane", "last name": doe "}] < / pre> Can it be done with curl and PUT ? Assuming that I receive the document ID of the document from the server and do something like this: curl -X PUT -d $ new http://127.0.0.1: 11898 / database / $ documentid " I tried the above which had failed, so wondering if there is any way to update the thinking document by adding new stuff. You can use "" to make partial updates of documents.

How to retrieve the errors of a C compiled code with GCC from a C# application -

I have a C # app which is one. Generates CPP file. I try to programmatically compile that file, such as using the GCC compiler: Private Zero Button 2_Click (Object Sender, EventErgus E) {Thread. Sleep (2000); Process process = process Start (@ "C: \ Program Files (x86) \ codeBlocks \ MinGW \ bin \ mingw32-gcc.exe", "-o one x.cpp"); Thread.Sleep (2000); } When I press 2 button, after 2 seconds, a console (GCC compiler) appears, but it disappears immediately so that I can not see its content . I would like to see if the code contained in the x.cpp file has been successfully compiled, if there are errors generated by the GCC compiler. Thank you very much. If you need success / failure - check [exit code]) Generally, zero Success is, non-zero failure. There is a general appouch for collecting output. Perhaps for the debug / valid approach, the compiler will probably have to dump to log in to a file. Since the console you can create a CDM / BAT fil

javascript - Verify if element exists and pass it to function -

मेरे पास निम्न है: google.maps.event.addDomListener (विंडो, लोड ', सेटमैप); फ़ंक्शन सेटमैप () {var कैनवास = दस्तावेज़.getElementById ('मानचित्र'); // अधिक कोड} मैं JQuery का उपयोग कर रहा हूँ कैसे पता लगा सकता है कि तत्व "मानचित्र" मौजूद है ... और फ़ंक्शन setMap को कॉल करें अगर तभी मौजूद है ... और setMap फ़ंक्शन के अंदर इसे परिभाषित करने के बजाय इसे भी पास करें। < p> इसे आज़माएं: google.maps.event.addDomListener (विंडो, 'लोड', सेटमैप); फ़ंक्शन सेटमैप () {var mapElement = $ ("# map"); अगर (मैप Element.length == 0) {वापसी; } Var कैनवास = document.getElementById ('नक्शा'); // अधिक कोड}

mysql - pulling values from two tables after Select distinct id on another table -

Sensors are spreading around my house, they send all data to an MSLL DB. Sensors send several samples of communication per second with DB which is every 5 minutes. I have general sensor information (primary key sensor) on the table 'sensor' I need to draw the most recent sample time and table 'sensor' from the table 'censored' On the most recent last connection from the table 'SensorMoritoring' for each specific sensor ID. So I can compare them to PHP. Right now I am doing this with the whiles in PHP but I think an easy and more efficient way to do this with SQL is to Page 21 questions are done) I have this: Sensor ID selection from sensor and then within a short time: $ query1 = "Select IOS = Select Sensorizing by Selecting Selection". $ Line ["sensorID"] "order limit description description of the last contact"; $ Query2 = "Sensitendar where sensor id =" sample time from selection time "

c++ - Constructor-style casting in function call parameters -

I do not understand that using the constructor-style casting fails to compile the following code: template & lt; Typename T & gt; Zero Efu (Constant T & T) {} Int Main () {EF (Unsigned Four (0)); } Errors are: Error: the expected expression of expression should already be ???? Although these three syntax are correct error: expected '(' function-style cast or type templates for building T Then this kind of place is clearly to blame here. I thought Was it possible to relate to our old friend in some way, so I tried, which should get rid of this type of ambiguity, but no luck: template but still: < ul> ERROR: Expected prefix for the GCC "without signing" . Error: Expected '(function-style cast or page) So my question is why is not that function, allowing one type home in style caps? It does not seem unclear to me. Note : I know that I foo & lt; Unsigned char & gt; (0) , but does not an

ajax - In asp.net-mvc, How can I show a loading image while my other image is getting generated from Url.Action? -

मेरे पास निम्न कोड है: & lt; img src = "& lt;% = Url.Action ("LocationMap")% & gt; " आईडी = "ओवरले" / & gt; और इसके लिए थोड़ा समय लगता है (जैसा कि मैं उड़ने पर एक छवि बना रहा हूं)। मैं कैसे "लोडिंग" दिखा सकता हूं। छवि या संदेश, जबकि इसे पुनर्प्राप्त किया जा रहा है क्योंकि अभी यह छवि टूटा हुआ है, जब तक कि छवि लोड नहीं होती तब तक यह अच्छा लगता है । ऐसा कुछ? यह सिर्फ निम्नलिखित के जैसा कोड जोड़ने के लिए कहता है: & lt; स्क्रिप्ट & gt; $ ('आईएमजी')। लोड (फ़ंक्शन () {// छुपाएँ मास्क छुपाएं;}); & Lt; / स्क्रिप्ट & gt;

nullpointerexception - Receiving a java.lang nullpointer exception error in Processing -

I'm getting the java.lang nullpointer exception in my processing project, I think it's something with CDSTENCE, But I 'm not sure I have taken some stuff and still getting this error. If someone knows where I went wrong then it would be greatly appreciated. square ball {int xpos, ypos; Int bowl; Color myColor; Boolean view = true; Ball (at tempdium, color tempColor) {ballDiam = tempdiam; myColor = tempColor; } Zero Update () {If (visible) {fill (myColor); Oval (Exposure, Yup, Ballidium, Ballidium); }}} Ball hole, gball; // Announce a ball object for golfball and float codistance = dist (gball.xpos, gball.ypos, hole.xpos, hole.ypos); Click to keep track of string msg; Int step = 20; Int difx, dify; Boolean moving = false; Zero setup () {msg = ""; Click = 0; Size (800, 400); Hole = new ball (50, # 000000); // gaul = new ball (35, #ffffff); } Zero draw () {background (# 009900); Println ("click is count" + click); // Set the hole ball in the form of

php - How to make header show only on home page? Wordpress -

Here is the website that I'm editing with WordPress: www.thestudentbubble.com < / p> As you can see, there are 3 lines 'headers' stating what the site is all about, how can I just reveal it on the vocal page? I found the header. The php file and code looks like this: & lt ;? php if (get_header_image ()) :? & Gt; & Lt; a href = "& lt ;? php echo esc_url (home_url ('/'));? & gt; & Gt; & Lt; img src = "& lt ;? php header_image ();?>?" class = "header-image" width = "& lt ;? php echo get_custom_header () -> width?; & gt;" Height = "& lt ;? php echo get_custom_header () -> height;; & gt;" Alt = "" / & gt; & Lt; / A & gt; & Lt ;? Php endif; ? & Gt; Try it out: & lt; php if (is_home ()) {// it is a homepage} else {// is not this homepage}? & Gt; The Wordpress function allows you to More information about

mysql - How to use aggregation functions with multiple joins? -

I need to find the maximum work experience of the employee meet . This is my table: Make Tables Company (id INT not original primary key AUTOCCREMENT, name VARCHAR (250)) Faucet; Create table worker (id INT not original primary key AUTO_INCREMENT, name VARCHAR tap (250)); Make Table Company (Employee) (Company_ID not INT, Employee_ID not INT, Rent_Data Date, Error Zero, Regina_Data DATE DEFUILT Faucet, Foreign Key (company_id) Reference Company (ID), Foreign Key (employee_id) Reference Person (ID); and my query that meets all the companies of Meet select Employee. Name, company Join the company (company.id = company_employee.company_id) employee at JOIN company_employee (company_employee.employee_id = employee.id) where the employee can join the company, company_employee.hire_date, company_employee.resign_date, (company_employee.resign_date - company_employee.hire_date). Name = 'Meet' This Return + ------ + -------------- + ----------- + - ----------- + ----

java - How to convert String into Date object using "DateFormat"? -

I am trying to change the date / time of my machine in the GMT timezone by using the following code: Date Format GMTformat = New SimpleDateform ("EMM DD HH: MM: SS GMT 'yay)"; Timezone GMTtime = Timezone.Gate Time Zone ("GMT"); gmtFormat.setTimeZone (gmtTime); System.out.println ("Original Date:" + New Date ()); String s = gmtFormat.format (new date ()); System.out.println ("as the converted date string:" + s); System.out.println ("Date changed as Date object:" + GMTFormat.parse (S)); Code output above: Normal date: Mon 21 21:04:06 AST 2014 Converted date as string: Mon 21 Apr 18:04 : 06 GMT 2014 As a converted date date object: Mon 21 21:04:06 AST 2014 However my problem is when I have a "converted date string" as "converged date string" Object "using the pars function, but as you can see the date changes to the original date Why is that? The problem is solved when I do the following:

.net - ToggleButton disable setting IsChecked behavior on button clicked -

ToggleButton की विशेषता IsChecked की विशेषता के व्यवहार को हटाने के लिए कोई रास्ता नहीं है जब मैं टॉगल बटन क्लिक करता हूं? मुझे एक कस्टम प्रॉपर्टी के लिए बाइंडिंग द्वारा प्रबंधित करने के लिए IsChecked विशेषता चाहिए। इसलिए आप केवल अपने बाध्यकारी और अस्वीकार इनपुट के माध्यम से अपने कोड को संभाल करने के लिए नियंत्रण चाहते हैं। आप IsEnabled = "False" को सेट कर सकते हैं, लेकिन तब यह Disabled` state में थोड़ी अपारदर्शी दिखाई देगा, जब तक कि आप उस कंट्रोल टेम्पलेट को तदनुसार नहीं बदलते। मुझे लगता है कि आप क्या चाहते हैं अभी भी यूजर इनपुट को छोड़ने के तरीक़े से अधिक है लेकिन फिर भी अपने IsChecked को संभाल लें, तो मैं इसे इसे सेट करने का सुझाव दे रहा हूं; & lt; ToggleButton IsHitTestVisible = "False" IsTabStop = "झूठी" ईशंकित = "{बाध्यकारी ब्लाह}" /> आशा है कि यह मदद करता है, चीयर्स।

javascript - usingSession in webdriver js -

Does anyone know how to use the op () op in Webdriver js? I have a WebDriver session started by another process and I would like to use the WebDrive JS API from that session. Edit: For a previously established session by javascript "layer" in webdrive JS (using the internal API): function createriver (port, session) {var base = require ('selenium-webdriver / _base'), executor = required ('selenium-webdriver / executable'); var url = base_url + ':' + port; var WebDriver = base.require ('webdriver.WebDriver'); var Executor = Examiner. The sequent exchanger (url); Return WebDriver.attachToSession (Exporter, Session); } Sadly, it seems that you can not already engage the current session if you use "builder.js" at the root level (node_modules \ selenium-webdriver, which is the one that comes "by default" when it works: var webdriver = requires ('Selenium-WebDriver') ; Var Driver = New WebDriver Builder

php - preg_match pattern check that strin contain only letters,whitespace and dot -

An easy way to check the code below shows that the name field only includes letters and white space if If the value of the Name field is not valid, archive an error message: $ name = test_input ($ _ POST ["name"]); If (! Preg_match ("/ ^ [a-zA-Z] * $ /", $ name)) {$ nameErr = "letters and white space allowed only"; } My question is how can I add dot (.) here? Exchange this line: if (! Preg_match (" / ^ [a-zA-Z] * $ / ", $ name)) if (! preg_match (" / ^ [a-zA-z \. * * $ / ", $ Name]) To avoid the character of . , as it has a special meaning in its regular meaning.

Tomcat + Mysql - Unable to find java:comp -

I am trying to use Tomcat + MSQL to develop web applications and this is my configuration: persistence.xml & lt; Persistence Unit Name = "Unit Mailing" Transaction Type = "RESOURCE_LOCAL" & gt; & Lt; Provider & gt; org.hibernate.jpa.HibernatePersistenceProvider & lt; / Provider & gt; & Lt; Non JTA-data-source & gt; java: comp / env / jdbc / unit mailing & lt; / Non-jta-data-source & gt; & Lt; Will be unlisted sections & gt; False & lt; / Will be unlisted sections & gt; & Lt; Shared-cache-mode & gt; ENABLE_SELECTIVE & lt; / Share-cache-mode & gt; & Lt; Recognition Mode & gt; Nobody & lt; / Recognition Mode & gt; & Lt; Properties & gt; & Lt; Property Name = "javax.persistence.schema-generation.database.action" value = "none" /> & Lt; / Properties & gt; & Lt; / Persistence unit & gt; web.xml & lt; Resource-Rif &

html - CSS3 transform rotate breaks layout and stacking order, superseding z-index -

Image
I'm designing an HTML5 mobile app, in which the app has an overlay that appears at different points. The overlay XEx may be visually impaired on the top of the index, but interactively, the sites behind one of the following are intercepting the desired clicks for the overlays. I think I know why this is happening (CSS is stacking reference for the reference given below for an element), but I do not know how to work around it. This problem is very similar But in this example the resolution does not apply. Before starting to implement CSS3 animation and before converting to my layout, the stacking context has never happened to me. Now I am a mess. So far I have tried conversion-style: flat; -webkit-transform: translateZ (0px); -WebKit-transform: translation 3D (0,0,0); And approaches to keeping and keeping Z-index elements less than blocking the desired clicks for a thousand different Z-index outlets. I am at a loss and can use some outside perspective. If you

why when I enter zeroes on the left of an integer , c++ borland compiler changes the integer value? -

इस सवाल का पहले से ही एक उत्तर है: < / p> 7 जवाब यह कोड, जब मैं चलाऊँगा यह C ++ Borland संकलक 5.02 पर # शामिल & lt; iostream.h & gt; शून्य मुख्य () {int x; CIN & gt; & gt; x; Cout & lt; & lt; एक्स; } जब 0010 से x दर्ज करते हैं, तो आउटपुट है 8 ? और ये कुछ प्रविष्टियों के लिए जो इसके शून्य पर शून्य हैं, लेकिन सभी नहीं? सी ++ में: अस्थिर संख्या में एक अग्रणी 0 है। हेक्साडेसिमल संख्या में एक अग्रणी 0x है। अन्यथा, आपके पास दशमलव संख्या है। इसलिए: 0x10 एक हेक्साडेसिमल नंबर 16 है। 010 8 का प्रतिनिधित्व करने वाला एक ऑक्टल नंबर है। 10 10 अंकों का प्रतिनिधित्व करने वाला दशमलव संख्या है।

Do I always have to use constructor in C# -

Do I always have to use Constructor in C #? I am working on some examples. They use the constructor, I'm not sure that I understand it, because I think I do not have to use the constructor. If a constructor is not defined, then the default constructor will automatically generate Have been for you Generated code is similar to writing: Public MyClass (): base () {} If you want to start the parameter, or member You have to write your own if you inherit the parameter with a base class, then you have to write one. Since you are just learning about the constructor, you do not have to worry about it yet, but it is something to keep in mind. Note that if you have any constructor (even one with a parameter), you need to explicitly define it if you still have One without parameters Here is the documentation for a default constructor:

php - What is this database error in codeigniter -

मुझे codeigniter में निम्नलिखित त्रुटि मिली त्रुटि संख्या: 1064 < कोड> आपके SQL सिंटैक्स में एक त्रुटि है; लाइन 2 पर 'WHERE' एपआईडीआई = 'बटनेट_डेफॉल्ट' का उपयोग करने के लिए सही सिंटैक्स के लिए आपके MySQL सर्वर संस्करण से संबंधित मैन्युअल की जांच करें SELECT `responseURL 'WHERE' एपीआईडीआई = 'बट्टएन_डेफ़ॉल्ट' यह मेरा मोडल फ़ंक्शन है जो डेटाबेस से डेटा प्राप्त करने के लिए आईएम का उपयोग कर रहा है फ़ंक्शन get_response_url ($ appID, $ merchant_id) {$ this- & gt; db- & gt; चयन करें (' responseURL '); $ इस- & gt; db- & gt; ( 'response_urls') से; $ इस- & gt; db- & gt; जहां ( 'APPID', $ AppID); // $ इस- & gt; db- & gt; or_where ( 'merchant_id', $ merchant_id); $ Query = $ this- & gt; db- & gt; प्राप्त करें (); यदि ($ query- & gt; num_rows () == 1) {foreach ($ query- & gt; परिणाम () $ पंक्ति के रूप में) $ row- & gt; responseURL; } और {$ appID = 'buttn_default

java - How to lock an instance when a method is being executed -

I do not know whether this question is useless or not, but I can find the answer after looking for 2 hours ... I am trying to create a program that uses multiple threads and a shared instance of a class when a certain method is being called on this example, then we will call it "reconnect" Say, the other method should wait for the call until the "reconnect" is executed. It is not finished. How do I get it? Is it just: synchronize (this) {////////} or: / P> Public ReentrantLock Lock = New ReentrantLock (); Public Zero Re-connect () {lock.lock (); //// lock unlock(); } Sorry if it was asked earlier. Thanks for reading. Addition 1: It was mentioned in the comments, when a method is being executed in addition to "reconnect", and is called "reconnect", "again Connect "should wait until every method is executed. Depends on the complexity of your program. First is enough for very basic functions. The latter (lock

xcode - iOS7: How to create a simple animation? -

I was wondering how to create / import an animation in XCode? Do I really need to use Spritekit? Is there a simple / light solution? This is my animation (built in Flash) There is no need to use. You can stick with UIAnimation because you are trying to achieve all, rotating the image at certain intervals.

How can I get the type name from an instance in Javascript? -

var कुछ प्रकार = समारोह () {} var instance = new someType (); मैं instance से "someType" कैसे प्राप्त करूं? example.constructor.name या example.toString () काम नहीं करता। अपडेट: < P> मेरे पास कोई नियंत्रण नहीं है कि कुछ टाइप कैसे शुरू किया गया है। जिस प्रकार के साथ मैं काम कर रहा हूं वह तीसरी पार्टी ढांचा में घोषित किया गया है। आप नहीं कर सकते, क्योंकि someType फ़ंक्शन / कन्स्ट्रक्टर नहीं, चर का नाम है। आपको फ़ंक्शन को के रूप में परिभाषित करना होगा < pre> var someType = function someType () {} या फ़ंक्शन someType () {} मेरे पास कोई नियंत्रण नहीं है कि कुछ टाइप कैसे आरंभ किया जाता है जिस प्रकार मैं काम कर रहा हूं वह तीसरी पार्टी ढांचा में घोषित किया गया है। तब आप भाग्य से बाहर हैं। यदि आप सभी को जानना चाहते हैं कि क्या कोई निश्चित कन्स्ट्रक्टर फ़ंक्शन का कोई ऑब्जेक्ट है, तो आप instanceof : उदाहरण के उदाहरण का उपयोग कर सकते हैं someType < / div>

vb.net - getting variables into sql string from list box -

I'm trying to get the contents of a list box and the SQL string through a variable (moon). Select the 3 strings from the main body of the code given below. The last two strings work fine, but nobody does the first. This is where I try to variable the code and try to make some changes on the code but nothing seems to work. Does anyone have any suggestions on SQL: da = New AudiDiData adapter ("Choose from book * where [author] = '' & amp; Moon '', my connection) 'fails da = new audiadetta adapter ("Select from books", myConnection) 'works da = new Audiadetta adapter ("book Choose from * where author = 'Molly brown' ', my connection)' works' {code} main code body import system. Data import system Data.OleDb Import System.Data.Odbc Importing System.Data.DataTable as the String Dim Data File as String Dim Context as String Dim ConnString as String Dim Myconnection as OleDbConnection = New OleDbConnection Dim

css - Twitter Bootstrap Extend not working -

I am running a rail app and have installed the Twitter-Bootstrap-Rail Mani (v2.2.8). I am trying to use the detailed method, but the problems are coming: home / index.html.erb: & Lt; P class = "text-error" & gt; Test 1 & lt; / P & gt; & Lt; p class = "test" & gt; Test 2 & lt; / P & gt; /app/assets/stylesheets/bootstrap_and_overrides.css: / * = twitter-bootstrap-static / bootstrap key Use Font Awesome icons (default) to change the use of glyphicans sprites instead of the awesome font, replace with "twitter-bootstrap-static / sprites requirement" replace = twitter-bootstrap-static / fontoff / body { padding-top: 60px; } #error_explanation {color: # f00; UL {List style: None; Margin: 0 18px 0; }} .test {@extend .text-error; } I expect as "Test 1", but Test 2 does not inherit .text-error formatting. Your file name must be bootstrap_and_overrides.css.scss and no bootstrap_and_overrides.css

json - How to compare files in soapui through groovy script? -

मैं सफलतापूर्वक और बाह्य फाइल में प्रतिक्रिया को सहेजने में सक्षम हूं - response.json अब मैं response.json के साथ baseeline.json की तुलना करने के लिए एक groovy स्क्रिप्ट लिखने की आवश्यकता है। मेरी क्वेरी चारों ओर घूमती है कि मैं कैसे आधाररेखा को पार्स कर सकता हूं Json एक चर में, कहते हैं def file1 = baseeline.json ताकि बाद में मैं groovy के माध्यम से दो फाइलों की तुलना कर सकता है यह वही है जो मैं कर रहा हूं, हालांकि मैं बाहरी फ़ाइल को किसी चर में संग्रहीत करने में असमर्थ हूं, मेरी जीरोजी स्क्रिप्ट इस प्रकार है: def a = context.expand ('$ {# TestSuite # BaseLineFolder} ') + "\\ file1.json" एक डीईएफ़ slurper = नए JsonSlurper () डीईएफ़ File1 = slurper.parseText (क) //log.info मैंने कुछ दिनों पहले एक मित्र को एक ही समस्या का समाधान करने में मदद की। उसकी एक बाहरी फाइल में एक जेसन प्रतिक्रिया होती है और सोपानू में जेसन की प्रतिक्रिया के साथ तुलना करना चाहती थी। उसे मेरे समाधान था .. FilePath डीईएफ़ आयात groovy.json.JsonSlurper = "c: /s

Powershell: Move Items Based on Destination from Hashtable -

I am trying to write a PowerShell script to transfer files from one directory to another based on certain conditions. For example: An example of a file name: testcenter123456-testtype-222-412014.pdf. The script should first search for "test center 123456" before the first dash ("-") and then see a hash table for the matching key. All files follow the format shown above. Once it finds its key, then that key should use the same value (Example: "c: \ temp \ destination \ customer7890") Destination file path And copy that file as. I looked around the stack overflow and got some questions & amp; As it was to answer some parts of similar questions but the fact is that Even so far what I have: $ hashTable = ConvertFrom-StringData (this is a very new one) [IO.File] :: ReadAllText ("c: \ temp \ filepaths.txt")) $ directory = "c: \ temp \ source" Go-ChildItem $ directory | where {! ($ _ PsIsContainer)} | Foreach-Objec

mp3 - TinyTag import error python 3.3 -

I am trying to import small tags in Python to be able to read MP3 tags but I am the same I get the error. I'm running this code Import from tinytag to TinyTag tag = TinyTag.get ('/ some / music.mp3) print (tag.album) < P> And with this error, I get it importError: There is no module named 'tinytag' If someone is about to fix me It can be very appreciated or may suggest another reader compatible with Pygm3. Like you, I'm new to Python and I struggled with this, but I Eventually worked. I'm sure that's the better way, but it works (on windows, with my examples) I've installed a Python module named easy_install (bundle with setuptools). You can google it in the directory \ Python26 \ Scripts, you should see an exe file called easy_install if it is working Then I've downloaded TinyTag to my PC like \ Downloads \ tinytag-0.6. 1.tar.gz Then in the Notepad I wrote a small text file named myinstall.bat; easy_install c: /

node.js - Using express-validator typescript definitions -

I'm trying to convert some of my code into typecript, but problems with Express-Vedic definitions My code looks like this: /// & lt; Reference path = '.. .. .. .. .. / d.ts / node.d.ts' / & gt; /// & lt; Reference path = '.. .. .. .. .. / d.ts / express.d.ts' / & gt; /// & lt; Reference path = '.. .. .. .. .. / d.ts / express-validator.d.ts' / & gt; Import Express = Expected ('Express'); Import Verifier = Required ('express-recognizer'); Validate the function (Re: Express Request, Re-Express. Response) {req.assert ('name', 'name is required'). NotEmpty (); Var errors = req.validationErrors (); If (errors! == empty & errors. Conviction & gt; 0) {res.json ({Result: incorrect, errors: errors}); return false; } Back true; } The typewriter compiler generates the following error: Error TS 2094: property does not exist at the value of 'expression' type 'express.Request' E

javascript - How to access to iframe grandparent id element from child? -

I have a lifelong page that has an iframe and in turn the second in iframe. I have the parents follow the code to reach grandparents, read an Element ID IFrame: $ ('# ddlEstilo', Parent document) .val (); // Parents' grandparents page access But the content of iframe (parent) is sent to other IFRAME (hair) and I get grandparents from the hair page Need access. the original. ($ ('#ddlEstilo', parent document) .val ()); // ??? This solvent is as follows: ($ ('#ddlrestillo', original document) .Val ());

python - How do I get index of line -

I am reading the file, how do I change the signals of each line? [lines.strip ()] Print Title [0] For the lines for the title, then when I enter my first line excel If I read in, the line variable is equal to the line value in the axle, but how do I know that which point is it? Usage: For index, quote (excelRead, Start = 1): keywrds = [] title = line.split ("+") title = [lines.strip () in title) Print title [0] Print index Start parameter computation indicates that you want to start index instead of 0, instead of 0.

php - Cakephp run cakephp shell in browser for debug purpose -

मेरे पास CakePHP 2.x शेल सेटअप है: / var / www /flat/app/Console/Command/ReminderShell.php और इसे चलाने के लिए मैं / var / www / flat / app / कंसोल कॉल करूंगा / केक रिमाइंडर daily_reminder यह ठीक काम करेगा जैसे $ listOfUser = $ this- & gt; उपयोगकर्ता- & gt; खोजें ('first', array ('पुनरावर्ती' = & gt; 1, 'conditions' = & gt; सरणी ('उपयोगकर्ता। हटाए गए' = & gt; 0, 'User.locked' = & gt; 0, 'Group.deleted' = & gt; 0, 'समूह लॉक '= & gt; 0,))); $ This- & gt; आउट (print_r ($ listOfUser, सच है)); यह उपयोगकर्ता की एक सूची मुद्रित करेगा, जैसे कि cakephp डीबग। समस्या यह है कि डिबग करने के लिए बहुत मुश्किल है यदि सूची बहुत लंबी है, तो कमांड लाइन शीर्ष आधा कटौती करेगा क्या ब्राउज़र में इसे खोलने के लिए कोई रास्ता नहीं है? कैसे यूआरएल को इंगित करने के लिए? और हम भी डीबग () का उपयोग कर सकते हैं; कमांड भी नियंत्रक में सामान्य की तरह? आप बस अपने आउटपुट को कम : / var / www / fla

google app engine - TextProperty field in NDB gets "=" appended after every line -

I have a very strange case that I was not able to debug for a day. At the front end I have Textarea and submit the button. On submission, the Tedarera field is saved as ndb.TextProperty () , when I send a multilevel text, the text in the database will be = or = 20 Characters on each line first I thought that they were randomly inserted, but it seems that every 76 characters have a = character It's really hard to debug this as my localhost example Works, but it is not deployed version. Besides, they are both in sync, in addition to my localhost example, the new line and tab characters are shown correctly in the text field of the datastore unit, but on the deployed version, the DataStore field will be displayed as a text block without a new line or tab. have been shown. Can anyone guide me in the right direction? Oh, blobstorehandler you have not mentioned this in your original question. OK is your problem I do not believe you can add two. If you are upload

segue - Xcode: detect identifier row selected -

There are two designs for a cell in a utivhetive and it shows correctly, but the problem occurs When I select a line for passes, the controller for details with one seagull ... How can I identify the identifier of the selected row? Depending on the selected row ... View other details required to redirect the controller. Thanks for all;) If you have access to the selected cell , Then you have access to it (for the documents I have here linked to you).

antlr4 - What is the grammar to have parentheses take place of linebreaks? -

Image
For example, I'm trying to write a grammar to parse the DNS zone files. Resource records are usually separated by Newline. However, using a bracket, a record can be broken into several rows. For example: record1 part1 part2 part3 part4 or record 1 part 1 (part 2 part3 part4 ) How do I allow brackets to exist in any place within the record. How about (not well tested). Grammar: grammar DNS; File: (record | NL) + EOF; Record: record name recordpart + (nl | eof); Record Name: Some; RecordParty: '(' RecordPartyoneNewline ')' | something ; RecordPartyoneNew Line: NL | Recordpart; Some: [a-zA-Z0-9 :.] +; // be adjusted! WS: [\ t] + - - Skip; NL: ('\ r'? '\ N') | '\ r'; Comment : ';' ~ [\ R \ n] * - & gt; Skip; Test case (from Wikipedia): example.com. SOA ns1.example.com in 1800 Mailbox.example.com. (100; chennaiemar 300; refresh time 100; retire time 6000; expiration time 600; negative caching jit) exampl

java FileInputStream cannot find file -

I'm very new in Java coding and I'm having a lot of difficulty I consider using a programmable buffer reader I am, which I have already created with a name called "scores.txt". So I have a method named procedure file that seems to set up a buffted reader and loop through the file, then reading each score again, I have to convert the score to an integer, add them and show the meaning of the calculation. I do not know how to add them and calculate the meaning, but I am currently working, reading from the file keeps saying it can not recover the file, but I'm sure I have a file in the document called "scores.txt". It has so far to me ... this is very bad. I am not so good on this :( Maybe there is a different problem? Public static zero main throws IOException (String [] Arguments, FileNotFoundException {String file = "scores.txt"; Process file ("scores.txt"); // call method process file} throws public static zero process file

swing - Can NBM (NetBeans Module) application run as standalone java application -

This question may be a very dumb question, but I'm totally new to the NBM application. I have created an NBM application in Net Beans. I really liked making Wizards App in Netbeans, it's very easy and easy. Can I run NBM application as standalone wizard application? Like an executable jar app. If not, there are any frameworks I use to build a swing wizard application. Please loot on this forum for the solution. We can not make the NBM project as a standalone Java application.

java - Using flood fill algorithm to erase specific elements of a textfile -

Image
I have a problem with my classes where I will have to take all the "cancer" cells of a text file and flood algorithm Get rid of them using This is the right question: Create a program that reads a 15x15 grid text file, which shows human cells featured cells with a plus sign goes ???? +++ If they are healthy cells, and sign in with a zero - ???? If they are cancerous, only the plus signs will be included in the rows and columns outside the grid. Note: Use the Flood Algorithm to determine this information. So far, I can get at least one cancer cell area to convert to "" , but I can not find another one yet. That's it. This is an example of how it should look: Import java.io.buffferedReader; Import java.io.fileReader; Import java.io.IOException; Import java.util.ArrayList; Create Public Class Flood Intra {// Global Variable (Grid and Blob Seas) that are accessible anywhere within Class FlatIntro Public Static Character new grid [] []; Public Stat