Posts

Showing posts from May, 2014

versionone - V1APIConnector returning 0 results for any query -

I am using V1APIConnector to connect to my version on application. For any queries I execute, I always get 0 records in the result. The below I am using is a part of the code: V1APIConnector dataconnector = new V1APIConnector (_dataUrl, _username, _password); V1APIConnector metaconnector = new V1APIConnector (_metaUrl); Imatamodel Metamold = New Metamodel (Metaconductor); Eyeservices service = new services (Metamod, datacancer); System.out.println ("create a query"); IAssetType Fault Type = Metamodel. Get Asset Type ("Defect"); Query query = new query (bug type); IAttributeDefinition nameAttribute = Defects type. GetAttributeDefinition ("name"); Add query.getSelection () (nameAttribute) .; Query.getPaging () setPageSize (3) Query.getPaging () setStart (0). System.out.println ("retrieve query"); Query result result = services.retrieve (query); System.out.println ("Result Size:" + Results .getAssets (.) Length); There are thousa...

java - Swing/libgdx Level Editor -

I am trying to create a level editor to create the game. I want to play the game swing Run in JPNEL . Here's how I did this. Public class gamepellelJPNL (set layout (new border layout); canvas = new algebraic canvas (new migration), add (canvas.getCanvas (), BorderLayout. CENTER);}} So this is the problem when I run MyMegade as LWGLAPP, then it runs with about 60 fps, but when I display it in JPanel Runs with 1000 fps and gets too much CPU Is there a way to fix this, so it will not use this CPU so much. I do not have much experience with swing, should I use something else. There is no framerate of libdx. It runs with the highest possible framerate, so you can do something like this in your main loop Better: thread (sleepy) (1000/60-Gdx.graphics.getDeltaTime ()); You want your desired Can change 60 with framerate and voice!

How to use values from functions in C -

I am trying to work on the project where I have been denied using the global variable. In my project, I have the following functions: int addAccount () {int ID_number = 0; Int id; Int id_array [10]; Double account_blanes; Double balance error [10]; Int choice = getChoice (); If (like == 1) {if (ID_number + 1> 10) {printf ("error \ n"); } And {ID_number = ID_number + 1; Printf ("Enter ID \ n"); Scanf ("% d", and ID); ID_array [ID_number - 1] = ID; Printf ("Enter the initial balance \ n"); Scanf ("% lf", & amp; account_balance); Balance_reary [id_number-1] = account_blanes; }} Return; I somehow need to get value for these variables and use them in any other function (especially ID, ID_number, and account_balance). The function I need for these values ​​is as follows: zero display () {int count; Int choice = getChoice (); Int ID_number = ID_number (); If (like == 2) {for (count = 0; count & lt; id_number; count ++) ...

.net - TFS 13 Code Review Request -

Image
I can not get any code review request in tfs13 The only thing that I can do everywhere Can I find review No code review Please tell me where to find it. Code review can be started from Team Explorer -> My task -> Progress work Code review is only available in premium or higher versions, as shown in the image below

php - Symfony 2.5 Translate an uploadable field -

How can I create "uploadable" and "translatable" one unit area at the same time using StofDoctrineExtensionsBundle? ? It is that I have tried to do this unit: Product.php / ** * Product * * @ORM \ Table ("Products") * @ORM \ unit (repository class = "my \ bundle \ unit \ product repository") * * Vectable uploadable * / category product {.... .... / ** * @Assert \ File (* MaxSize = "30M" *) * @witch \ uploadableFilld (mapping = "product_file", filenameproperty = "filename") * * @wire file $ file * / public $ file; / ** * * @Gedmo \ Translatable * @ORM \ column (type = "string", length = 255, name = "file_name", nullable = true) * * @world string $ fileName * / protected $ fileName; Unfortunately this does not work

wordpress - How to redirect based on URL -

I am using the Wp Store Locator plugin. And I have modified it according to its requirement. But I'm stuck in redirection. Actually this plugin works with a small code. So the time to list my URL is like: localhost / wordpress /? Page_id = 391 Is there a link to me now that http: // localhost / wordpress /? Redirects to Wpsl_id = 3 : The code for: add_action ("template_redirect", 'my_theme_redirect'); Function my_theme_redirect () {$ dpath = $ _SERVER ["HTTP_HOST"] $ _SERVER ["REQUEST_URI"]; $ Templatefilename = 'Single-Store Php '; If (strop ($ dpath, 'wpsl_id')! == incorrect) {$ return_template = get_template_directory () '/'. $ Templatefilename; // $ nurl = get_permalink ($ return_template); // resonant $ return_template; Go out; Wp_redirect ($ return_template); Go out; }} This code is not redirecting to any place. This is the same page localhost / wordpress /? Page_id = 391 What can be the prob...

java - Integrating Felix into Netbeans 8.0 -

Image
I want to develop a protegé plugin using Netbeans. So, someone is suggesting me through Netbeans OSGI that I still do not know how it works in my work, however, I chose Felix and I am following it. Unfortunately, I stepped it step by step and blocked at this stage However, for me Instead, it does not work for me, it displays me: Thank you for helping me and advising me if I am wrong. 1) View this project with GitHub () git clone 2) Open it as an existing project with NetBusiness 8 3) Create it. () () Sling Launchpad is not dependent on other sling specific bundles and can be used without an Apache sling framework . This makes everyday life more comfortable. Pam your plugin. Add the following snippet to XML and whenever you create a plugin project, NetBeans update the plugin in the Felix container. ... & lt; Construction and live; & Lt; Plugins & gt; & Lt; Plugin & gt; & Lt; Group & gt; Org.apache.sling & lt; / Group ...

symfony - Symfony2 UploadedFile::guessExtension() for XML -

I'm having trouble with extensions for XML files uploaded I tried getExtension () (Empty string returns), estimationExtension () and guessClientExtension () (both returns NULL ). Am I just a hardcode extension (I know that it should always be XML) or is there any way to get it? I think the uploaded file has a mm type text / xml when I upload a .txt file, this extension is cured. Maybe I'm getting the upload file wrong? $ request = $ this- & gt; GetRequest (); $ Form = $ this- & gt; CreateForm (new file type type), empty, ['em' => $ this-> getDoctrine () - & gt; getManager ()]); $ Form & gt; ($ Request) deposit; If ($ form-> isValid ()) {$ file = null; // @ War $ file \ Symfony \ Component \ HttpFoundation \ File \ UploadedFile foreach ($ request-> Files as $ file) {$ file = $ file ['file']; break; } Var_dump ($ file-> EstimateExchange ()); } thanks getting it from the uploaded $ Try File-> getFilename...

mercurial - Undo "discard" local changes after merge in TortoiseHg -

Image
I just lost a bunch of work because I accidentally clicked "discard" when I used to merge remote changes tried. Can someone suggest me recovering my latent local changes? : Did Mercurial or Tortoise HG store the back up of the last deleted changes? Was it through this window? In this case, I'm afraid, no, no. I believe this window command should be hg update -r MY_BRANCH -C where - c flag indicates that there will be no backup. On the one hand, if it is a different It was, if you want to find out .org files, which format will format backup.

php - strip http:// from the_author_url() -

मैं इसके लिए http: // से कैसे छुटकारा पा सकता हूं: & lt; A href = "& lt;? Php the_author_url ();? & Gt;" & gt; & lt;? Php the_author_url ()); ? & Gt; & lt; / a & gt; मैंने इसे करने की कोशिश की है: & lt; a href = "& lt;? Php the_author_url ();? & Gt;" gt; & Lt;? Php $ url = the_author_url (); $ Url = substr ($ url, 0,6); Echo $ url; ? & Gt; & Lt; / a & gt; लेकिन इसका कोई प्रभाव नहीं पड़ा ... The_author_meta () काम नहीं करेगा, क्योंकि उस फ़ंक्शन गूंज es परिणाम है इसके बजाय, आपको get_the_author_meta ('user_url') , जो वापसी s यूआरएल का उपयोग करना है। & lt; a href = "& lt ;; Php the_author_meta ('user_url');? & Gt; "& gt; & Lt;? Php echo str_replace ('http: //', '', get_the_author_meta ('user_url')); ? & Gt; & Lt; / a & gt; ध्यान दें कि यह https यूआरएल के लिए खाता नहीं है (यदि आवश्यक हो, तो आप इस...

json - Scala Pickling for sql.Timestamp -

I am using I Skla Pikling Library (0.9.0-snapshot) Jason Siriyllaijing. serializing and like to write a custom Pickler and unpickler for deserializing sql.Timestamp areas such as common areas, I am able to order time stamp field by overriding pickle method Spickler, I also (string Is it possible for the timestamp field to be able to desrialize the time stamp value in json string? I mean, case class T1? {"tpe": "T1", "Junk" and " Id ":" 42 "," name ":" name "," time ":" 2014-10-17 17: 19: 29.97 "} It is possible, but the case class Unable to dismiss back T1 (42, "name", new timestamp .. new date (getTime)) pickle.value.unpickle [T1] // show error scala.MatchError: 2014-10-17 17: 19: 29.97 (class of java.lang.String) My current implementation looks like this class TimestampPickler (built-in Val Format:. PickleFormat) extends The SPickler [timestamp] Unpickler [ti...

angularjs - JavaScript behavior and code check -

I created it. Summary This code is: var myObj = function () {returns {getThis: function (callback) {return callback ("this"); }}} Var myDidSome = function () {return {doSome: function (text) {return text + "cool"; }}; }; Var subObj = function (objG, didSome) {var txt = objG.getThis (function (text) {return didSome.DoSome (text);}); Console.log (txt); } New sub-oz (new mine oz, new maided mon); To decode this code, see myObj and myDidSome as services ( angular ones ). I am most interested in myObj.getThis , it is going to erase some of the $ http feedback, so when this is my callback function to $ Http passing through parameters obtained from . What I'm thinking about is $ Http is async . In my txt property subOj ( think of as an administrator ) class is correctly populated when the data comes back, So I think it should be undefined by this? In my scenario it is completely synchronous, which clearly works So, I would like to...

Ruby splat operator changing value inside loop -

I want to define a method that can take an optional amount of arguments and hashes, like def foo (* b, ** c) 2.times.map.with_index {| I | New_hash, new_array = {}, bc.map {| Key, value | New_hash [key] = Value [i] Do not assume [i] .nil? } New_array & lt; & Lt; New_hash if new_hash.length & gt; 0 send (: bar, new_array)} Enddef bar (* b) PB & If I have understood the split and double split operators correctly (which I doubt), then Send this array to b to the bar method, and by adding only new_hash to foo if there is something in it Something strange - I try with a few snippets below and give an example # invoking #foo foo (a, key: 'value') #foo #foo # i First repeat 0 # B [] # C {: key = & gt; ['Value1']} # transmissions (: bar, new_array) = & gt; Send (: bar, [[:: key => 'value1'}]) # Bar yield: [{: :: key = & gt; 'Value1'}] Now, something happens # duplicates #foo # i in # duplication is # 1B [...

excel vba - Calculating datapoint position with chart mouseover event -

Image
I have an embedded chart on a sheet (X, Y scatter). I also have a mouseover event on the chart - when you hover over a DietPower - prints the selected value of the same datapout for the cell. It works with using the GETChartElement method. However, I would like to add a feature in which you can add an arrow (or line) by adding a Deatpoint and a predefined, named cell. I was also able to do this, but Unfortunately my calculation was not enough because the line is not at all at the endpoint of the dotpoint point but anywhere near it (see picture). > The way I did this: Private sub as myChartClass_MouseMove (ByVal button long, unless shift byval ByVal X long, ByVal y as long) Me.myChartClass.GetChartElement first, second, ElementID, ARG1, aRG2 set chrt = ActiveSheet.ChartObjects (1) .Chart set Service = ActiveSheet.ChartObjects (1) .Chart.SeriesCollection (1) chart_data = ser.Values ​​chart_label = ser.XValues ​​YValue = chart_data (aRG2) XValue = chart_label (aRG2) '...

git - Removed sensitive file from GitHub history, but I can still access it -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब मैंने गौण रूप से फ़ाइल को कमांड किया है डेटा को समझें और वर्तमान गीथहब रेपो राज्य से और पूरे इतिहास से इसे छुटकारा पाने के लिए चाहते थे। यह सुनिश्चित करने के लिए, यह प्रक्रिया पूरी हो गई है, मैंने अपने ब्राउज़र में एक नया टैब खोल दिया है, जिसमें URL उस रिपॉजिटरी इतिहास में उस फ़ाइल के प्रारंभिक चरण की ओर इशारा करता है। मैं गिटहब सहायता में " मैंने जवाब के माध्यम से पढ़ा है, जैसा कि कई अन्य लोगों के लिए यहां और अभी भी कुछ भी नहीं है, मेरी स्थानीय रिपॉजिटरी और उसके गीताहब रिमोट समकक्ष से स्पष्ट रूप से हटा दिया गया है, लेकिन जब मैं उस अन्य टैब को रीफ़्रेश करता हूं, तो मैं उस फ़ाइल और उसके संवेदनशीलता सामग्री। मैं क्या याद कर रहा हूं, या मुझे आगे क्या करना चाहिए? मुझे गीथहब समर्थन से संपर्क करना पड़ा। इस प्रक्रिया को पूरा करने के लिए उनके पास git gc भाग गया । मेरे पास अभी तक मेरी रिपॉजिटरी के लिए कोई सहयोगकर्ता नहीं है, और जब से मैं उपयोग नहीं कर रहा हूं टैग, मैंने कदम समाप्त कर दिया है, मेरी राय में अप्रासंगिक ...

go - Ignore JSON tags when marshalling -

I am getting JSON data from an external source. I do not want to take the field name in this JSON with me, I am converting those names that I understand by using the Jason: "Original Name" tags. When I take such an object back to JSON, then I naturally retrieve the ugly (original) names again. Is there a way to ignore the tag during martial arts? Or a way to specify a different name for Marshall and Unmershail? To clarify, I have prepared the same code and pasted it below. Thanks in advance. Package type import ("Encoding / Jason" "FMT") type band structure {name string: json: "bandname" 'album' int` json: "albumcount" `} func main () {/ p> // JSON - & gt; Object data: = [] byte (`{" band name ":" AC / DC "," albumcount ": 10}`) Band: = and band {} Jason. Universal (data, band) // object - & gt; JSON str, _ :: json.marshal (band) fmt.println ("real result:", strings...

Is it possible that key bindings in vim in tmux get some delay after some usage? -

I use TMX inside VM. Some key bindings such as & lt; Leader & gt; Kashmir After some time there is some delay after using Vime. When I restart Vim, there is no delay for some time. I could not find the exact reason for this problem, so I just want to see if there is something that is I can help to figure out what is the reason for this problem. I used the Verbose map & lt; Leader & gt; K is not examined, there is no other mapping, the problem is only in tmux, I have a standalone MacVM window that is always open and there is no delay in it.

go - TLS Authentication: What does each cert need to contain? -

I'm writing a define. It works like this: Post (update) Put (create) Delete (Delete) Methods Example: put http: // server1 / key (body = value) Get the http: // server1 / key value in the body of the reaction Now when a put, post is deleted, it duplicates the request and sends it to them, so that each node has the same data and the node is checked, in case of one of the nodes Is unavailable. This header adds, so nodes know that they should not duplicate a request and send it to other nodes. OK, it works so far, but now I just need to be able to transmit nodes and A WebUI to those nodes and here's the place where TLS comes in play. As far as I understand I need a root CA, so I can sign the server and client certificate. And I want to get a valid certificate, not "self-signed", because I use Go and Crypto / TLS and should check the certificate. My question is: Which extensions or fields require each certificate? I would not want t...

c# - WCF Service not publishing the wsdl -

I'm fairly new to WCF services, but I never got my head around the binding and. My service is right now, works fine if tested in WCFTestClient but does not expose WSDL to other applications. I'm not sure how this is done. Here's the code: & lt; System.serviceModel & gt; & Lt; Behavior & gt; & Lt; ServiceBehaviors & gt; & Lt; Behavior & gt; & Lt; ServiceMetadata httpGetEnabled = "true" /> & Lt; The services included in the debugging include exceptions = DishialInstine = "false" /> & Lt; / Behavior & gt; & Lt; / ServiceBehaviors & gt; & Lt; / Behavior & gt; & Lt; Binding & gt; & Lt; BasicHttpBinding & gt; & Lt; Bond name = "default bidding configuration" & gt; & Lt ;! - & lt; Safety Mode = "None" & gt; & Lt; Transport Customer Credential Type = "None" /> & Lt; / Safety & gt; - & gt; & Lt; / Bi...

Java big list object causing out of memory -

I am using Java Spring Ibatis I have a Java based reporting app Displays the data in I think that when the system tries to process data in large quantities, it throws the "out of memory" error I know that we can increase the memory size Or we can present paging in application reporting. Any remedy? I am curious if there is something like the list is large in the collection of memory and the disc, then we do not have to make any major changes to the application code? Any suggestions appreciated. The first thing is that you should check the memory you are exiting from. -XX: + HeapDumpOnOutOfMemoryError -XX: HeapDumpPath = / where / you this will generate a Hep Dump HIFF file. You can use something like some Eclipse Memory Analyzer Tool to see which part of the heap (if you have all) to increase or you have a memory leak.

java - Can't add a row to a jTable even when using getModel -

I have been searching through this website for several hours so far my button is already present in a row table This table is created by simply clicking on swing controls and adding a table and changing the field through properties. The table's variable name is 'Table'. And when faced with this line of code: table.getModel (). InsertRow (table.getRowCount (), new object [] {NOM [i], data [i]}); The 'InsertRow' part is redded and I can not seem to fix it. Private zeros jButton1ActionPerformed (java.awt.event.ActionEvent evt) {string direcdate = direc1.getText (); File folder = new file (direcdate); File [] listOfFiles = folder.listFiles (); String [] noam = new string [250]; String [] data = new string [250]; Int i = 0; For (file listoffuffy: listofffiles) {simple data formatting sdf = new simpledataformat ("dd / mm / yay"); If (listOfFile.isFile ()) {nome [i] = listOfFile.getName (); Data [i] = sdf.format (listOfFile.lastModified ()); I ++; ...

javascript - dragend on background stopPropagation does not work in Chrome 36 -

इस उदाहरण पर विचार करें: & lt;! DOCTYPE html & gt; & LT; html & gt; & Lt; शीर्ष & gt; & Lt; मेटा वर्णसेट = "यूटीएफ -8" & gt; & Lt; title & gt; सैंडबॉक्स & lt; / title & gt; & Lt; स्क्रिप्ट src = "http://d3js.org/d3.v3.min.js" & gt; & lt; / स्क्रिप्ट & gt; & Lt; / head & gt; & LT; बॉडी & gt; & Lt; div id = "vis" & gt; & lt; / div & gt; & LT; स्क्रिप्ट & gt; Var svg = d3.select ("# vis") शैली ({स्थिति: "निश्चित", चौड़ाई: "100%", ऊंचाई: "100%"}) .append ("svg")। शैली ({मार्जिन: "3%", सीमा: "1px ठोस #aaa"}) .attr ("दृश्य बॉक्स", "0 1000 1000") svg.on ("क्लिक करें", फ़ंक्शन (डी, आई) {console.log ("क्लिक करें" ") यदि (d3.event.defaultPrevented) वापसी console.log (" के माध्यम से गिर गया क्लिक करें ")}) svg.append (" rect ...

php - Laravel - Query "with" -

I have a query where I need to get information from 2 tables. So I need to get an invoice with Invoice_State 1, where user_status is 1. However I can ask the invoice table with the user table. When I get a DD ($ invoice) I get an invoice with the user ... $ invoices = Invoice :: with ('user') - & gt; Where ('invoice_status', '=', 2) - & gt; get (); But I'm not sure how I can get user-> account_status. I tried to do this but found a query error which can not be found on account_states. $ invoices = Invoice :: with ('user') - & gt; Where ('invoice_status', '=', 2) - & gt; Where ('account_status', '=', 1) - & gt; get receive (); In a closure to handle queries for curious-loaded content Can pass: function ($ query) {$ query- & gt; where ('account_status', '=', 1);}))) - & gt; Where ('invoice_status', '=', 2) - & gt; get ();

html - Using an absolute path after XPath following-sibling -

मैं निम्नलिखित XPath खोज का उपयोग कर रहा हूं: getNodeSet (डॉक्टर, "// img [@src = './images/min_es.gif']/../../following-sibling::tr ") परिणाम एक & lt; tr & gt है ; जिसमें दो तालिकाएं हैं (एक दूसरे के भीतर) तो: & lt; tr valign = "top" & gt; & lt; td height = "163" & gt; & amp; # 13; & Lt; तालिका की चौड़ाई = "128" सीमा = "0" सेल्सपेसिंग = "0" सेलपैडिंग = "0" ऊंचाई = "163"> gt; & gt; वैल = "शीर्ष" & gt; & lt; td width = "96" & gt; & amp; # 13; & Lt; तालिका की चौड़ाई = "126" & gt; & lt; tr & gt; & lt; टीडी चौड़ाई = "65%" valign = "top" & gt; & lt; फ़ॉन्ट आकार = "1" चेहरा = "एरियल, हेल्विटिका, सेन्स-सेरिफ़" & gt ; & amp; # 13; Microclina & lt; / font & gt; & lt; / टीडी & gt; & amp; # 13; & Lt; td width = ...

javascript - parseInt on array and sum issue -

By using jQuery, I have an array population with checkbox values ​​then I created the loop to loop through the array , Parses the checkbox values ​​in the whole, assigns them the value for the sum and "total". When I run it, I do not get a number, I suspect something is up for the loop. Does anyone show me what I am doing wrong here and please forgive me if my coding is not as clean as I want, I am just starting in JS. // Create array and select the checkbox values ​​var allvals = []; $ ('Input: checkbox [name = brand]: check'). Each (function () {allVals.push ($ (this) .val ()); //allVals.map(number);}); For (var i = 0; i & lt; allvals.length; i ++) {var total allvals [i] = parseInt (allvals [i]); Total + = allways [i] & lt; & Lt; 0; Warning (total); } & lt; Script src = "https://ajax.googleapis.com/ajax/libs/Jquery/1.11.1/jquery.min.js" & gt; & Lt; / Script & gt; first which you have to create the total ...

java - Linked list .clear() method not working properly -

I have to make my own double linked list. I am making a beginning, so please forgive me for lack of knowledge. This list is to implement the list Java interface, so I have an exhaust, an extract and a clear method, from which the clear () method does not work, which means that it Do not remove all the elements in the list, only something Here is the obvious () method: public (for clear) (for (T: this) {this.remove (t);} This.remove (This.size);} Remove (object) method: Remove public boolean (object o) {if (this.indexOf (o) > = 0) {Remove (this.indexOf (o)); return true;} description is false;} And finally, remove (int) method: remove public T {int (index) = if {getNode (index) == null | | This.isEmpty ()) {return tap;} and if (this.size == 1) {this.size = 0; n & gt; CurrentNode = this.firstNode; This.firstNode = Null; This.NlastNode = Null; return currentNode.data;} node CurrentNode = this.getNode (index); if (currentNode.nextNode! = Null) {if (currentNode....

ios - KVO exc_bad_access (code=1) -

- (शून्य) setTableView: (UITableView *) तालिकादृश्य {_tableView = tableView; [_tableView addObserver: स्वयं केकेपाथ के लिए: @ "फ़्रेम" विकल्प: 0 संदर्भ: शून्य]; [आत्म अद्यतनफ़्रेम]; } exc_bad_access एक पर्यवेक्षक को जोड़ने का प्रयास करते समय आती है। विधानसभा कोड में, त्रुटि कोड 'NSKeyValueObserverRegistrationLock' है। है पता नहीं क्या त्रुटि पैदा कर रहा है मैं एक्ससीस्ट चला रहा हूं, इसलिए संभावना हो सकती है कि परीक्षा कोड को आवेदन कोड में इंजेक्शन के कारण त्रुटि हो सकती है। क्या कोई भी मदद करता है? कुछ चीजें आपको अपने विकल्प पैरामीटर को परिभाषित करना चाहिए। NSKeyValueObservingOptions struct में 0 के लिए कोई प्रविष्टि नहीं है। यदि आप नए मान के बाद हैं तो NSKeyValueObservingOptionNew का उपयोग करें। अगला मैं मानता हूँ कि आपने जो सूचीबद्ध किया है वह एक UIViewController में रहता है? UIViewController में एक फ्रेम संपत्ति नहीं है हालांकि इसका विचार है (हालांकि आपकी तालिका दृश्य भी है)। मुझे यकीन नहीं है कि आप किस फ्रेम का निरीक्षण करने का प्रयास कर र...

Google Compute Engine gives error from when creating instance with existing boot and data disk -

I basically made an example with a stable boot and data disk. I want to test that something should happen with an event, I can rebuild one with the same boot and data disk and it will run normally. However, when I create an example I am getting this error from the Developer Console: Invalid Value for field 'resource. Disk [1] .source ':' site-data 'is a valid URL for the proper type of legitimate resource. The only thing I'm doing differently is to set the boot disk to the previous site-boot disk, instead a new image, and read / write the site-data disk Attach to I recommend that you try again - it seems that your web-based developer console It was broken for some time when you put your question. Now it is working correctly. I also found this error, making an example with extra disk drive only boot drive works fine, but trying to make an example with any additional disk (including a new, empty disk) You got results in the same error raised above. ...

.htaccess - PHP: How to get the last directory paths and echo them -

मेरे पास .htaccess और index.php फ़ाइलें "localhost / poppers / f /" के अंदर स्थित हैं। मेरे पास index.php द्वारा संसाधित "/ f /" निर्देशिका से सभी url अनुरोध हैं I । क्या मैं प्राप्त करना चाहते हैं और गूंज "f" निर्देशिका के बाद सिर्फ पूरे रास्ते कितने स्लैश उसमें शामिल की परवाह किए बिना है उदाहरण: स्थानीय होस्ट / पॉपर / f / abcdef / 123456 / xyz / 456 आउटपुट मैं चाहता है: abcdef / 123456 / xyz / 456 (चाहे निम्न निर्देशिकाओं की संख्या का) क्या मैं उपयोग करने के लिए कोशिश कर रहा हूँ है: dirname (dirname ($ _ सर्वर [ 'REQUEST_URI'])) , लेकिन नहीं लगता है काम करने के लिए आप अपने फिर से लिखना नियम में एक वातावरण चर जोड़ सकते हैं और इसे PHP कोड के अंदर पहुंच सकते हैं: अपना / poppers / f /.htaccess इस तरह: RewriteBase / पॉपर / f / RewriteCond% {REQUEST_FILENAME} -d RewriteCond% {REQUEST_FILENAME} -f RewriteRule (+।) सूचकांक RewriteEngine चालू! .php [एल, ई = URIPART: $ 1] यह रूट किया जाएगा index.php और / पॉपर / च से रिश्तेद...

javascript - Accessing local file in HTML -

Therefore, I currently have a JavaScript code that imports a CSV file and uses a javascript to outline a multi-dimensional array Does. My problem is that when the code tries to open the CSV file, then this error is found with can not load the XMLHttpRequest file: //XXXXXX_List.csv. An invalid response was received, the origin of the 'empty' is not allowed for entry Is there any way to bypass it? I researched and found that I can disable it by adding an additional command line option, but in doing so I do not need that others can open the page without adding additional command line options, the file is located in that folder, The page on which the import script is. I have tried: file: ///// servername / list csv file: //servername/List.csv./List.csv List.csv File: /// \\ servername \ List.csv But none of these works. Can anyone help me with this? My code is now like this: var listurl = "file: /////servername/List.csv";

javascript - How to combine different ways of module loading in RequireJS? -

is a code (module module 1, module 2, and module 3 load at the same time): Define (['module1', 'module2', 'module3'], function (module1, module2, module3) {return} {/ * ... * /};} ); There is another (one module after module 1 and module 2 is loaded one and module 3 is loaded on demand, dynamically): How to add these two methods and modules 1 and 2 can be loaded as the first example at the same time, and module 3 as a second example dynamically Additional modules to load)? The second example does not work as you imagine. defined (function (requires) {...}) Syntax is the only one which basically converts to asynchronous call as the first example, to load all the three required modules in parallel Before the module function is executed. If you intend to actually implement the order of loading, you will find something like this: defined (function (required) {// these two Modules will load parallel Var modules 1 = Required ("module 1...

activerecord - How to rewrite this rails 4 query to reduce the code -

I have a rail query where I am selecting all the test ID where the name field is empty or zero, rewrite it One way, then this is cleaner? Sue. Where (name: "") .pluck (: id) + test Where (name: zero) .pluck (: id) The shortest way I know Here's how to write it: Trial.Jet (name: [Nil, '']). ID This will find all the trials record IDs where name is empty or empty.TT produces the following SQL: Where (`` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' ' >

sql server - Query to compare differences of two columns from two different tables -

I am trying to create a union all query, on two different named columns in two different tables I take the column "Mtrl" in USER_EXCEL and want to compare it against the "short_material_number" column from the IM_EXCEL table. I would then like to return the query difference between only two columns, both columns are home content numbers, but different names (according to column) are given in the tables. I have so far: (select [Mtrl] except selection [short_material_number] dbo.IM_Excel to dbo.USER_EXCEL) UNION ALL (Select [short_material_number] dbo Except IM_Excel [Mtrl] dbo.USER_EXCEL) However, when the query I have been asked in an error message that is trying to get: Message 8114, Level 16, State 5, Line 22 Error to change the data type varchar. After the text "itemprop =" text "> You are almost certainly getting this error because of your two columns There is a FLOAT data type, while the other VARCHAR is a good pla...

node.js - AWS - Node app won't connect to running mongo instance -

I installed Mongo on my elastic Beanstock node. JS App and started the Moga daemon process. I am not sure how to connect to the database, though on my local node app, I am able to connect to these credentials: module.exports = {'url': 'mongodb: //127.0.0.1: 27017 / test '} I am assuming that it is not connected because I need a user, a password, and connect to create a database But I'm not sure how to do this Remote Databases I also set up mongo on T1.micro I am looking for resources to be very rare, so there is not much help there. I did not realize that I had to start Mongo, which processes myself Run mongod .

jquery - Limit appended items to x number -

I am working on a project and it seems that a wall is struck What I am trying to achieve, When a button is clicked, then a div with class = "test" should be added to a div, however I want it to be limited to only 5x so that if there is 5 divisions with orbit = "test" , Then instead of adding a warning is shown. I have it: click on hi gt;'}}}}) ; However this item keeps going after number 5 ... Nobody knows what I am doing wrong? Thanks so much in advance! Your question_row variable is slightly off: var question_row = $ ('# campaign_builder_questions_area. Test'); question_oro is now an array of your assigned class - check the .length of question_row Now.

c# - XPath expression for xml with a namespace prefix -

निम्न xml को देखते हुए: & lt; ns0: MCCI_IN000002UV01 xmlns: ns0 = "कलश : HL7-संगठन: v3 "& gt; & Lt; ns0: id रूट = "2.16.840.1.113883.3.277.100.1" एक्सटेंशन = "68423f2b-397a-4de4-8b8d-ea1f6c174954" / & gt; & LT; ns0: creationTime & gt; 201,410,171,106-0,700 & lt; / ns0: creationTime & gt; & Lt; ns0: versionCode कोड = "बलोट 200009" /> & Lt; ns0: इंटरेक्शनआईडी रूट = "2.16.840.1.113883.1.6" एक्सटेंशन = "एमसीसीआईआईएसआईएसआईडीआईएडीएएमटीए 2यूवी 01" / & gt; & Lt; ns0: processingCode कोड = "P" / & gt; & Lt; ns0: प्रसंस्करण मोडोड कोड = "टी" / & gt; & Lt; ns0: रिसीवर nullFlavor = "NA" & gt; & Lt; ns0: उपकरण nullFlavor = "NA" classCode = "DEV" निर्धारक कोड = "INSTANCE" & gt; & Lt; ns0: id nullFlavor = "NA" / & gt; & Lt; / ns0: डिवाइस & gt; & Lt; / ns0: रिसीवर & g...

php - Move the Editor Box in WordPress -

This question and an answer is already here is: 2 Responses I'm looking around To find a solution to move the main editor box into the WordPress 'New Add' page, I want to add two meta boxes between the title and the editor. Most of the methods I found on the internet, mostly using the wordpress hook hooked How to do this? Found solutions replace it with 'post_type' with your custom post types .. // TinyMCE editor move down ADD_ACTION ( 'add_meta_boxes', 'action_add_meta_boxes', 0); Function_add_meta_boxes () {global $ _wp_post_type_features; If (isset ($ _ wp_post_type_features [ 'post_type'] [ 'editor']) in & amp; & amp; $ _wp_post_type_features [ 'post_type'] [ 'editor']) {unset ($ _ wp_post_type_features [ 'post_type'] [ 'Editor']) ; add_meta_box ( 'description_section', __ ( 'description'), 'Inner_custom_box' Post_type ',' normal ',...

javascript - Return nested promise to parent function -

I have seen that the result of the promise chains is the changing of a scope variable in most angle tutorials. $ http.get (someURL). Then (function (value) {$ scope.someValue = value;}); Is it possible to return the original value? Anytime I have tried another promise gives back. $ scope.test = function () {$ http.get (someURL) back. Then (work (value) {return value;}); }; $ Scope.test = function () {var deferred = $ q.defer (); $ Http.get (someURL). Then (function (value) {deferred.resolve (value);}); Refund refund. } I do not want to match any other promise, just return Jason so that I can do something like this: & lt; Button ng-click = 'some_vars = test ()' & gt; Get AJAX & lt; / Button & gt; & Lt; Ul ng-repeat = 'var_vars in var' & gt; & Lt; Li & gt; {{Var.title}} & lt; / Li & gt; & Lt; / Ul & gt; IMO should do the following: Your Controller It does: $ scope.some_vars = []; $ Scope.loadVar...

c# - How do I set dependency propertly value programmatically? -

इस एक्सएएमएल पर विचार करें: & lt; esri: एलिमेंटलेयर नेम = "एलिमेंटलेयर" & gt; & LT; ESRI: ElementLayer.Children & gt; & Lt;! - संपादन योग्य टेक्स्टबॉक्स - & gt; & Lt; टेक्स्ट बॉक्स की चौड़ाई = "100" ऊँचाई = "20" esri: एलिमेंटलेयर। एनाफ़ेफ़ = "40,0,40,0" टेक्स्ट = "संपादन योग्य पाठ" क्षैतिज एलाइन्मेंट = "सही" वर्टिकलएलिन्मेंट = "निचला" / & gt; & Lt; / ESRI: ElementLayer.Children & gt; & Lt; / ESRI: ElementLayer & gt; मैं इसे कोड में फिर से लिखना चाहता हूं। मेरे पास अभी तक यह है: var कस्टमलेयर = this.mapControl.Layers ["ElementLayer"] एलिमेंटलेयर के रूप में; अगर (कस्टमलेयर == रिक्त) वापसी; Foreach (इस में कस्टममैपमैटम। CustomLayerData) {var tb = नया पाठ बॉक्स (); Tb.DataContext = customMapItem; // TODO: कैसे सेट करें esri: ElementLayer.Envelope = "40,0,40,0" ??? customLayer.Children.Add (टीबी); } इसलिए, मुझे कोड में dependedncy संपत्ति ...

c# - "if" Conditions in Formview Markup -

I want to show a student report card using a form view. The report card will have additional columns, if it is a report card from the second period and has more than 2 columns, if it has a third term. To find out what this is the word, I need to evaluate Terminumber property, and show the appropriate title. This is my mark up code: (Eval ("TermNumber") == 2)%> & Lt;% {% & gt; & Lt; Th & gt; First Term Score & lt; / Th & gt; & Lt;%}% & gt; & Lt;% else if (Ev) ("TermNumber") == 3)%> & Lt;% {% & gt; & Lt; Th & gt; First Term Score & lt; / Th & gt; & Lt; Th & gt; Second term score & lt; / Th & gt; & Lt;%}% & gt; This is the result in run time error: Databasing method such as Eval (), XPath (), and bind () can be used only in the context of a database control. The reason for this is that Eval can only become part of a & lt;% #%> tag. Using & lt;% #%> result...

r - Sort rows of matrix according to number of different digits -

I have a matrix that contains lines of binary vectors: libraries (gtools) Mat and lieutenant; - Repeats the devices (2,6, V = C (0,1), declares = TRUE) I would like to sort the rows of the matrix so that each row differs. Only 1 point from your direct neighbors (up and down) Is this possible? Interesting questions! The way in which I thought that it was thought of to be done, it is to recapture such matrix with a small number of digits in it. Suppose we have an N-digit matrix (which contains all 2 ^ N unique en-bit sequences) where each neighbor is different in more than one. If we do rbind with its matrix (according to the lines), then each row of the result will be more than 1, and in between the two rows will be equally identical. We can add 1 in front of the first half and 1 in front of the second half. All 2 ^ (n + 1) in the result are unique (n + 1) -bit sequence, and all neighbors have more distance than each other. For the base case, we (0 1) for 1-digit ma...

ios - Xcode 6 Missing Utility Application Template -

I'm currently making iOS app: Second Edition by Richard Warren to learn how to make iOS apps. I have Xcode 6, and the book is asking me to set up a utility app, but the template is no longer present and apparently. Is there anything like this template, or is there a way to get a template from somewhere else? Any help is appreciated if more information is required, then I will happily provide it. Thank you. Many templates were deleted in Xcode 6. I would rather start from the Single View app.

annotations - Android ORMlite: how to configure nested POJO classes? -

I have an Android app that manages places (such as museums, homes), each of them content (main Photo from the form). database (canBeNull = false) Private list & lt ; SMContent & gt; Content = new arreelist & lt; Content & gt; (); ...} @ DatabaseTable (table name = "sm_contents") Public class SMCTent {... @DatabaseField (id = true) Private string ID; ...} How can I configure these two classes for parse and manage by ORMLite properly? Thanks in advance.

javascript - Realtime Table Updates -

I am trying to find a table to update real time. Ex. The employee's name, employee ID, work in the table 1 (check box) | Draws data from database, checks 2 goes into the table. In Table 2, there is the employee's name, employee ID, work (check, check box) . When tested by Table 1, update / insert any other table in the database. And keep it here. | That is why there is a list of employees in Table 1 and if I think they have a job, they will go from that table to another, (real-time). > BTW can have more tables like Table 1, but only 1 table 2. And all this will be on page 1. If IDK is the case but I am using the Laravel 4 framework. So my thoughts were probably Ajax? If someone has some example code that I could learn, I would love that. thank you in advanced. It seems that you need a framework like amber or angular or knockout or backbone or? . These javascript frameworks will connect via API, via AXX and allow for a UI. If this is a small project, th...

cucumber - All Capybara steps pass, but scenario fails -

I have a special flaky test. I sometimes fails it wisely and tells me which step is spoilt. But sometimes it fails in the scenario without failing any of the steps: Using the default profile ... .............. ........ ...... F Failure scenario: Features of cucumber / admin / staff_allocation. Feature: 43 # Scenario: Staff Allocation shows current data 1 (1 failed) 19 steps (19 passes) 0m6.173 s I suspected that the issue was "when" phase There was an allegation (opposite of "again"), but in my stages, I can not find any such address. Is there any other reason why the scenario will fail when it crosses all its stages? Do you have any useful information from RSPC? Try using rspec - format to get some of your essential information Try to experiment by putting 'sleep 5' in the last line of your scenario. It is possible that at the end of your trial you have a defective claim and when some scenario is completed and Capibara cleans it at the end....

javascript - Is there a way to get jQuery's .on() functions to play nice with promises? -

Stay with me - I know what I am doing down is stupid, I'm not just online solution for UN You can see yourself: I have the following work, which I promise: function getInput () {var form = $ ("form .prompt "); // Some form in the DOM, it is promising returns properly. Promise.resolve (form.show) focus (). Submit (function (event) {var input = $ (this). Find ("input"); var InputVal = input.val (); Warning ("form submitted input input is" + input veal); event. PreventDefault (); resolution (inputVal);})); } I call that function and try to wait for the promise to resolve it: getInput () Then (function (feedback) {warning ("input is solved; response is" + response);); I want to see the following practices: There is no alert until I submit the form, after which I will see "form submit"! And then "input solved". Instead, I see an "input solution" immediately. (Obviously, after this, once I submit th...

java - Replace everything after last forward slash -

I am trying to extract everything after the previous forward slash in my URL. I wrote some Reggae which works in the Java Regex testers, but unfortunately not in my local code. Why there can be any insights in it, it will be appreciated. Right now my REEGex pattern, target string and desired output are as follows. Regular expression: "[^ /] * $" target string: / example / c / coffee 101 desired output: / example / c / cafè999 Bare-bones java code: target = "/ example / c / coffee101"; Change = "cafè999"; Target.replaceFirst ("[^ /] * $", change); Thanks a lot! You must assign a return to the string class in the string object in any way Does not change: target = Target.replaceFirst ("[^ /] * $", replaced);

php function that gets information -

I'm trying to create it, so it shows the latest announcements in a link with the title I tried to do it And now I'm trying to return it to the variable and it will not be ... functions.fp & lt; Php is required ("common.php"); Function getAnnouncements () {$ query = "Select from announcements"; Try {global $ db; // database $ stmt = $ db- & gt; Execute the query against the ready ($ query); $ Result = $ stmt-> carry about (); $ Result reward ['title']; } Hold (PDOException $ ex) {// Note: On a production website, you get output $ ex- & gt; GetMessage () should not be. // This is an attacker can provide useful information about your code. Dead ("Failed to run query:" $ Ex-> getMessage ()); }}? & Gt; index.php & lt; Div class = "declaration" & gt; & Lt; Div class = "container" & gt; Latest announcements: & lt ;? Php getAnnouncements (); Echo "& lt; a href = ...

Smoother CSS transition on mobile (phonegap/cordova on android) -

So I'm developing an Android app, in which I have 4 routes, which used 4 tabs on my navigation Top can go It works great, but I thought it would be great to include swapping effects to change the routes. As I am using angular.js, I have ng-enter and ng-leisure classes which I am using to create these CSS transition effects. Enough said, my question is: Can I do something (maybe using another CSS property) to make these animations smoother, because they are okay now? This is what I am using in my CSS: .slideLeft {left: 0; } .slideLeft.ng-enter {-webkit-transition: 0.3s linear all; Status: fixed; Z-index: heirs; Left: -100%; Height: heir; } .slideLeft.ng-leave {-webkit-transition: 0.3s linear all; Status: fixed; Z-index: 9999; Correct: 0; } .slideLeft.ng-leave-active {-webkit-transition: 0.3s linear all; Status: fixed; Left: 100%; Correct: -100%; } .slideLeft.ng-enter-active {-webkit-transition: 0.3s linear all; Left: 0; Status: Relative; } .slideRight {true: 0; } .slideRigh...

ruby on rails - DJ doesn't deserialize an unsaved ActiveRecord model workaround -

The main problem is that my email does not send with 'Railway 3.2.19' "Delayed_job_mongoid" To send me an email UserMailer.delay.question (@question) is registered in my database Delay work but with error Error: Error: :: DocumentNotFound, Category: ContactForm, Primary Key: 54418fe3c4bff8bb17000008 (Problem: Document ID) 54418fe3c4bff8bb17000008 With Category For ContactForm Not found. Summary: When an ID or ID Calling ContactForm.find with the array, each parameter must match a document in the database or this error was raised for search ID (s): 54418fe3c4bff8bb17000008 ... (1 total) and the following IDs were not found : 54418fe3c4bff8bb17000008 Solution: An ID is in the database or the wrong Mongoid.raise_not_found_error configuration option is set, that would be the reason for not having a search for a single ID instead of raising this instead of raising it Moody errors, or only matched documents while searching for multiples.) So access to my l...

ios - Is there a minimum rate that the AVPlayer can handle? -

How much can the playback rate of the appplay be? I did not find anything about this in the docs. For example, can it play at the rate of 0.00001? 0.01? EDIT: You can define whatever you want, the question is, what exactly is the lowest rate? The minimum rate is based on the type of pitch correction that is enabled on the audio track, recorded by apple here has been done. Then you can use either AvAudioTimePitchAlgorithm Spectral or AvAudioTimePitchAlgorithmVarispeed to bring your playback rate to 1/32 speed. You can also disable the audio track and get the same results.

java - sentence counter from a file -

I'm trying to create a simple program that counts the word, some strings and sentences. I have a counter counter and I have a counter that some strings are counted, but I can not understand how to count the sentences if I essentially have more than one. " So far this is my code .. int count = 0; // When there is something in the file, while reading and counting (inputFile.hasNext ()) {string token = inputFile.next (); Count ++; } Int characters = 0; Scanner scanner = new scanner (file); While (scanner.hasNextLine ()) {string next token = scanner.xt (); If (nextToken.equalsIgnoreCase ("for")) {Letters ++; }} There are many libraries that you can try, more complex people like NALP, such as Penispip, Waka and Gate. (See) It all depends on how deep you want to look at it.

java - Can't copy internal file to user's computer -

Image
itemprop = "text"> I have a program for which an internal file (DICTIONARY) can be copied to a folder copied to the user's computer : Private Static Last String DICIDI = "WordHail DDIC"; Private Static Last String DIC_FOLDER = System.getProperty ("user.home"); Private static final string PATH_SEP = System.getProperty ("file.separator"); Public static final string DICTIONARY = DIC_FOLDER + PATH_SEP + DIC_NAME; This works on my computer, where all Java content is: public static zero createDictionaryIf required () throws IOException {path out_path = FileSystems. GetDefault () .getPath (dictionary); Boolean dic_exists = Files.exists (out_path, new link option [] (LinkOption.NOFOLLOW_LINKS}); if (dic_exists) return; file file = new file ("src / dictionary"); // Here is a problem for user *** Try ******** path in_path = file.toPath (); {Files.copy (in_path, out_path, REPLACE_EXISTING, COPY_ATTRIBUTES, NOFOLLOW_LINKS);} hol...

jquery - toggle on click but doesn't slide back down once clicked -

I got a jQuery toggle that works, but when I click it again, this slide does not Clicking on it is being clicked on I also tried to click on others What am I doing wrong? I've done this once, but maybe I forgot something relatively simple javascript: $ (function () {$ ("li.subMenu"). (Function () {$ (". SubMenu-link") slideup ("normal"); $ (this) .next (). Slidedown ();}); $ (". Submenu-link"). ': First'). Hide ();}); HTML: & lt; Li class = "submenu" & gt; & Lt; I class = "lock" & gt; & Lt; / I & gt; & Lt; Span class = "title" & gt; User account & lt; / Span & gt; & Lt; Span class = "toggle" & gt; + & Lt; / Span & gt; & Lt; Ul class = "subMenu-link" & gt; & Lt; Li & gt; A link & lt; / Li & gt; & Lt; Li & gt; A link & lt; / Li & gt; & Lt; Li & gt; A link & lt; / L...

Finding How Many Numbers are in a Double using Swift -

I have placed an application that fixes the solution of three variable systems to use the rule of the crawler. It works great, but in some cases there are huge numbers in the answer to the answers given. There should be a simple way of detecting a double length, then restricting it, I can not seem to find it. var x: double = dx / d var y: double = dy / d var z: double = dz / d return (x, y, z) The code given above indicates the end of the function which calculates the digit, which is not really necessary. In short, there is an easy way to determine length (quantity of numbers), If you just need to show the number of fixed digits to present, you can use a format string. string (format: "% 3.1f", 1.111) // 1.1 3 specifies how many letters are in the number, whereas 1 is specified It does how many points will be after the decimal point.

api - Ruby HTTP request 401 Unauthorized -

We received a request to change this API request, however our Ruby God had left a few months ago and we have only one site This is what it uses. What I currently have in the code given below and I have been able to fix any syntax errors, or I think it is really working with Ruby on my second day. This phone number is designed to send it and you receive an SMS. Although I'm running in error 401 I just do not know if it's a big deal to remove the AIST code or now just felt like a good thing The original The form is how the requirements for me were presented and I had already tried to reuse the places. {"msisdns": ["phone number"], "mobileflow": "xxxxxxxx"} The following headers should be included together Post: 'Content-Type: Application / Jason', 'Accept: Application / Jason', 'Authority: xxxx-xxx-xxxx' The code is: def mobile_club is required 'rest_client' phone_number = params [: p...

objective c - why lowercaseString of NSString is not released after the original NSString object is released? -

कृपया निम्न कोड की जांच करें: CFUUIDRef uuid = CFUUIDCreate (kCFAllocatorDefault); NSString * strUuid = (NSString *) CFUUIDCreateString (केसीएफएलओकेटरडिफ़ॉल्ट, यूयूआईडी); NSString * lowerUuid = [स्ट्रूयूआईड लोअरकेस स्ट्रिंग]; एनएसएलॉग (@ "स्ट्रुउइड बनाए रखने की संख्या:% ट्यू", [स्ट्रूयुइड बनाएटेनकाउंट]); CFRelease (strUuid); CFRelease (UUID); एनएसएलॉग (@ "कमयूयूआईआईडी बनाए रखने की संख्या:% टीयू", [कम यूयूआईआईडी कोटाइट]); NSLog (@ "lowerUuid:% @", lowerUuid); इस कोड को गैर-आर्क परियोजना में चलाने के लिए, आउटपुट होगा: स्ट्रूयूआईडी बनाए रखने के लिए माउंट: 1 कमयूयूआईआईडी को बनाए रखने के लिए माउंट: 1 कमयूयूआईडी: xxxxxxxx-xxxx- Xxxx-xxxx-xxxxxxxxxxxx लोअरकेस स्ट्रिंग NSString की एक संपत्ति है, इसकी परिभाषा है: @property (केवल पढ़ने के लिए) NSString * लोअरकेस स्ट्रिंग; तो यह समझाने के लिए उचित है कि अगर मूल NSString ऑब्जेक्ट जारी किया गया है, तो लोअरकेसस्ट्रिंग गुण NSString के dealloc विधि में जारी किया जाएगा। लेकिन ऊपर दिए गए कोड में, मूल य...

php - Comparing two inputs with database data: error -

I am trying to compare two input values ​​with two values ​​from the same line from a MySQL table. But I always get an error message what's wrong with this code? (It worked just fine with one input) // Check connection (mysqli_connect_errno ()) {echo "failed to connect to MySQL:". Mysqli_connect_error (); } // Escape Variable for Security $ numero_cedula = mysqli_real_escape_string ($ conn, $ _POST ['numero_cedula']); $ Codigo = mysqli_real_escape_string ($ cu, $ _POST ['codigo']); $ Sql1 = "Selection number from CDULA test where number codula = $ numero_cedula and chev = $ codigo"; $ ObjGet = mysqli_query ($ conn, $ sql1); If (mysqli_num_rows ($ objGet)) gt; {Echo "duplicate"; } Else {resonant "not a duplicate"; Although the spaces in the column names are allowed in the SQL, for this reason ( In your case ) because there is a place in the column name Numero Cedula : v - space v - space $ sql1 = "Select th...