Posts

Showing posts from July, 2014

javascript - Want to set alert on browser close button. share your idea -

इस सवाल का पहले से ही एक उत्तर है: < / P> 3 जवाब असल में यदि सत्र चालू हो रहा है और उपयोगकर्ता सीधे ब्राउज़र बंद करें बटन को बंद करता है तो यह कुछ अलर्ट दिखाता है और उस चेतावनी को देखते हुए वह चेतावनी जारी रख सकता है या रद्द कर सकता है। खिड़की .onbeforeunload = confirmExit ; फ़ंक्शन की पुष्टि करेंएक्सिट () {वापसी की पुष्टि करें ("एक बटन दबाएं!"); }

Way to generate virtual mac address in PHP -

I am working on a web application where I have to create demo mac address for each record. Note - There will be a lot of records in this way, for which I need a demo mac address. I do not want a precise Mac address - I would be unique like a MAC address, but not UUID. For example - 00: 17: 88: 00: 00: 00 echo fonts (':', str_split (substr (md5 (mt_rand)), 0, 12), 2)); (Mt_rand (0, 0xffffff), 10, 16), 12), 2));

neo4j - Difference between merge and create in Cypher -

Can anyone tell me that there is a difference between merge and create in Caesars Q & A? How does Neo4j store physical data? Thank you in advance .. create only makes it what it says, and if it means to make a duplicate, then it makes sense. MERGE is created equally, but also checks to see if a node with the properties you specify already exists. If this happens, then it does not produce. Here's an example: It helps to avoid duplicate. I use the create twice to create a person with the same name. neo4j-sh (?) $ Make (page: person {name: "bob"}); + ------------------- + | No data returned. + ------------------- + Built-in node: 1 property set: 1 label added: 19 ms neo4j-sh (?) $ Make (p: person {name} : "Bob"}); + ------------------- + | No data returned. + ------------------- + Built-in node: 1 property set: 1 label added: 1 5 ms So now when We have two bob, query. neo4j-sh (?) $ Match (page: person {name: "bob"}) retur

Is it possible to have TypeScript support in Visual Studio Express for Windows? -

To download VS 2013 Express for Windows, I got my hands on the Windows 8 machine, and was prepared to check the new Windows runtime API, WinRT provides the possibility of code in HTML5 / CSS / JS, but I am interested in using the typescript as the JavaScript option, when this possibility is not coded for DOM Underlined Received, but only applies to Visual Studio 2012 and not to even express version, as Web Sesensiyl extension there will not work. Typuscript web page which is fully support VS 2013 update is built in 2 RCs. However, when this update installs some new extensions and typedcripts are also installed in the program file, it does not add type support for VS 2013 Express for Windows. I'm still not compiled from the IDE Please note that this is a different question, which is related to Vs. 2013 for the web . . I have examined the accepted answer there and it will not work. I am interested in working TypeScript with VS2013 Express for Windows 8 or VS 2013 Express for

c# - WCF Service Begin method calls Background worker -

I know that information about this has spread to the whole internet, but I can not find any special solution for my scenario Could I am using .NET 4.5 VS 2012 I have created a WCF service #region ISampleService member public IAsyncResult BeginServiceMethod (String msg, Async callback callback, object asyncState) {Thread.Sleep (10 * 1000); Newly completed asynchronous result & lt; String & gt; (msg.ToUpper ()); } Public String End Service Manager (IAsyncResult Results) {Completed Synonyms & lt; String & gt; res = Asyncrasult completed as a result & lt; String & gt; Return Ridge Data; } #ndrion What I now have to do is call any other method from BeginServiceMethod , which eventually starts to take a background worker action I want to continue execution of EndServiceMethod on the event completed on the background worker. I do not know whether it is possible or not or is it a good design or not. Actually, I came to the problem when the old struct

C++ reading files, array variable matrix -

What I am trying to achieve is the matrix that I have in two separate text files, Users of the program whose messages have been printed on the console. However, it is necessary to perform on the matrix in future operations, so someone told me that I need to identify text files in the form of matrix. If this makes sense? So I let him go one and even I have this code. That's why I'm getting all the matrix A 1 1 where I would like 0 0 The fact for Matrix B is that it prints the text file but does not read it as a matrix. I do not know what I want to know about it, if someone can help, it would be good! #include & lt; Iostream & gt; // declared variable #include & lt; iomanip & gt; #include & lt; String & gt; # Include & lt; Fstream & gt; using namespace std; String code (string and line); int main () {int MatrixA [3] [3] = {{1.0,0}, {0,2,0}, {0}}}; Offstream outage; Instream MyFile; String Infail; String line; String outfile; Cou

android - Modifying element of a listView how to get access to it -

I have found that in order to modify the row in a list, I need to know as adapter.getItem (status ) But I do not know how to work around this, should I post any code, please tell me here is my EditListItemDialog file: package com.example.classorganizer ; Import java.util.ArrayList; Import java.util.list; Import com.example.classorganizer.Monday.DiaryAdapter; Import android.app.Dialog; Import android.content.Context; Importroid.os.Bundle; Import android.view.View; Import android.widget.TextView; Class EditList itemImdimOog Expands the dialog View.OnClickListener {see private editText; Personal Diary Adapter Adapter; // Public Adultistime Dialogue (reference reference, list & lt; string & gt; piece_mandie) {// first constructor // super (reference); // this.fragment_monday = fragment_monday; //} @ Override Protected Zero to Create (Intstance saved from bundle) {Super. Secret (Saved Instantstate); SetContentView (R.layout.edit_text_dialog); // See your XML with EditText and

Google Ad Manager for ios -

This is the first time that Google Ad Manager is used, is Google Ad Manager not only for websites but also for apps is? I do not have any tutorials to integrate with iOS Apps if it was used for the app, please help me integrate it on iOS. I appreciate any help thank you your first ad request Follow any highly-tailored ad server. After adding the ADI header and the library to your application, include the IMAAdsLoader.h header file and make an example of the IMAAdsLoader with an example of IMASettings. for expansion You can reuse a single instance of IMAAdsLoader for all ads request in your application.

xcode - iOS App Name doesn't appear -

Image
App name is not visible in both app icon Your suggestion is about what could be wrong with the simulator and the device The following are the things I have investigated: [Project's Name]. Plist went to and got one key: bundle name with value: $ {PRODUCT_NAME} The project name and name are clicked on the name field of the file inspector application to use the application.plist application bundle to set the display name CFBundleDisplayName Or if you want to give a custom name, $ {PRODUCT_NAME} string

javascript - Unable to update an entry in the firebase list -

After some attempts, I still can not find the right way to update a list in Firebase. I have my Dev account in Firebase, but only for this question I used the sample on public firebase url: var url1 = New firebase ("https: //samplechat.firebaseio-demo.com/message_list "); Url1.push ({text: 'its work', user_id: '123'}); SetTimeout (function () {url1.on ('child_added', function (snap) {snap.update ({text: 'its not working', user_id: '123'}); snap.child ('text'). ('This is not working'); console.log ('Message in range', snap.val ());})}}, 6000); I am able to set up the data, but when the child_added function is started for the message I get the JavaScript error below: Unkit type ERROR: There is no undefined function What could be the problem? You are not using the data snapshot object right inside your function. To change it snap.ref (). Update ({text: '....', user_id: '...&

datastax enterprise - How to check the size of the column in cassandra -

I want to calculate how many data are stored on each row per line key. I want to see the size of the column and the number of keys / rows, can anyone help me how to do this? will give you the estimated number of keys, and tell you the number of columns / cells and the size of the row / partition (Look for "row / partition size" and "column / cell count")

c++ - std::string comparison, lexicographical or not -

निम्न कोड, आलेख से आता है शामिल करें & lt; iostream & gt; #include & lt; स्ट्रिंग & gt; नेमस्पेस एसटीडी का उपयोग करना; Int main () {std :: string a = "\ x7f"; std :: string b = "\ x80"; Cout & lt; & lt; (एक & lt; b) & lt; & lt; endl; Cout & lt; & lt; (एक [0] & lt; b [0]) & lt; & lt; endl; वापसी 0; } हैरानी की बात है 1 0 स्ट्रिंग तुलना शब्दार्थिकी होना चाहिए? यदि हां, तो आउटपुट कैसे समझाया जाता है? सी ++ विनिर्देश में कुछ भी नहीं है, यह कहने के लिए कि Char है हस्ताक्षरित या अहस्ताक्षरित , यह संकलक पर निर्भर है आपके कंपाइलर के लिए ऐसा लगता है कि char डिफ़ॉल्ट हस्ताक्षरित अक्षर के लिए होता है, यही वजह है कि दूसरी तुलना false / html>

jquery - wrap only text inside a span -

How do I hide content just inside the span and leave the tag? What is the markup ... & lt; span class = "foo" & gt; & Lt; Span class = "bar" & gt; + & lt; / Span & gt; Lorem ispum laurem ispamlarem esphelarem asasp & lt; / Span & gt; Now this is what I want $ ('.foo'). wrapInner ('& lt; span class = "foobar" / & gt;') is wrapping the entire internal content. Thanks in advance .. You have to filter the node and then wrap it . Use Try it: $ ('.foo'). Each (function () {$ (this) .contents (). Eq (2) .Wrap ('& lt; span class = "focus" /> gt;');});

lua - How to implement a loading screen using storyboard? -

In a corona app using the Storyboard Library, what are the best practices for adding a loading screen between scenes? I'm guessing that it should go somewhere: enterScene (), but I'm not sure how it should work with Corona's rendering process as if I understand it, if I do the following, the code After waiting for Corona, the loading screen will never be displayed and then pulls everything at once. Function view: enterScene (event) ShowOffice overlays () Load File () Hide Loading Screen Overlay () End A new for loading screen What is the right approach to creating a storyboard view? If so, how can I load other content in the background when the loading scene is displayed? In your case, you should use loadScene (): Just call the createScene part of your new scene 2 ... then what you can do, updating the progress of loading in Scene 2's createScene, and every x milliseconds of progress being loaded in your original scene 1 Verify. When it is 100%, just ca

java - reading from external txt file from jar file -

मुझे चाहिए कि मेरा प्रोग्राम ऑपरेशन का समर्थन करेगा: java -jar filename.jar & LT; Input3.txt मुझे नहीं पता कि इस तरह के कमांड से कैसे निपटें। मैं अपने मुख्य कार्यक्रम में इनपुट फ़ाइल कैसे पढ़ सकता / सकती हूं? मुझे लाइन से टेक्सटी फ़ाइल लाइन को पढ़ने की आवश्यकता है I आपके पास आपके प्रश्न का उत्तर है। आपकी मुख्य विधि प्रोग्राम को उसके तर्कों में फ़ाइल पथ को स्वीकार करने के लिए तैयार होना चाहिए (और उसे फ़ाइल के साथ क्या करना है)। यदि फ़ाइल पथ पहली तर्क है, तो आप इसे आर्गेंगमेंट एरे की पहली स्थिति के माध्यम से एक्सेस कर सकते हैं। सार्वजनिक वर्ग मुख्य वर्ग {सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग) [] आर्ग्स) {स्ट्रिंग फ़ाइलपथ = आर्ग्स [0]; }} निष्पादित करने के लिए, आपको बस करना होगा: java -jar filename.jar input3.txt

php - Creating a table on HTML with information from various MySQL tables -

I have a website that I'm building for a school project, in which I already have many webpages , Though, and the database through the use of Foreach. But on the question in this page, I am trying to retrieve data from different tables, so that a user can choose a category and submit a text and submit it. But for some reason it is not outputting any data if I try with only one table and without using the table.field method, and just typing the fields, it works. But for everything I know, I have to do this from various tables. annione help me on this? & lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; / Head & gt; & Lt; Body & gt; & Lt ;? Php mysql_connect ("localhost", "root", "") or die ("problema na conexao"

java - Replace Needle in AChartEngine DialRenderer -

I currently use dialer to create a dial in the Android application. I want to exclude the needle for a custom made needle which is in the form of an image. PNG format. I still have a code that looks like: DialRenderer renderer = new dialer (); Renderer.setAngleMin (270); Renderer.setAngleMax (90); Renderer.setChartTitleTextSize (20); Renderer.setLabelsTextSize (50); Renderer.setLegendTextSize (50); Renderer.setMinValue (0); renderer.setMaxValue (10); Renderer.setVisualTypes (new dial renderer. Type [] {type NEEDLE, type. NEEDLE}); Is it possible to remove the needle? The overall picture is that I have a background image that shows the speedometer and then I have the background of the background image of the Dial Rinderer that just shows the needle and some other things. So I can not actually find a way to change it with 'image', but instead I Modifies the source code of AChartEngine downloaded and the needle that makes it more suitable for my application. I h

jasper reports - How to center align barcode using jasperreports and barcode4j -

I use iReport 5.5.0 . How to align a barcode component to the center The relevant piece of my jrxml is below & Lt; JR: Code 128 xmlns: JR = "http://jasperreports.sourceforge.net/jasperreports/components" xsi: schemaLocation = "http://jasperreports.sourceforge.net/jasperreports/components http: //jasperreports.sourceforge Purge / xsd / components.xsd "textPosition =" bottom "& gt; & Lt; Jr: codeExpression & gt; & Lt; [CDATA [$ F {number}]] & gt; & Lt; / Jr: codeExpression & gt; & Lt; / Jr: Code 128 & gt; & Lt; / componentElement & gt; "Text" itemprop = "text"> Create a style after this, it is called "barcode", like: & lt; Style name = "barcode" fontName = "Helvetica" fONTSIZE = "10" hAlign = "center" valign = "center" /> and set the property of your barcode element to "barcode".

roc - scikit-learn roc_curve: why does it return a threshold value = 2 some time? -

Text after "div class =" itemprop = "text"> Correct me if I am wrong: "Threshold" to be a array of scikit learning that the numbers returned by roc_curve are given In [0,1] should, however, sometimes it gives me an array with the first number near "2". Is this a bug or did I wrong? . Thanks In [1]: Import as numpy in NP [2]: from sklearn.metrics to roc_curve import [3]: np.random.seed (11) [4]: Aa = np.random.choice ([true, wrong], 100) [5]: bb = np.random.uniform (0,1,100) [6] in: fpr, tpr, threshold = roc_curve (aa, b B) in [7]: Threshold Out [7]: Array ([1.97396826, 0.97396826, 0.93274463, 0.95941372, 0.93214862, 0.93076592, 0.92960511, 0.92245024, 0.91179548, 0.91112166, 0.87529458, 0.84493853, 0.84068543, 0.83303741, 0.82565223, 0.81096657, 0.80656679, 0.79387241, 0.77054807, 0.76763223, 0.7644911, 0.75964947, 0.73995152, 0.73825262, 0.73466772, 0.73421299, 0.73282534, 0.72391126, 0.71296292, 0.70930102, 0.70116428, 0.69606617, 0.65

php - SVG Image not using parameter -

I am trying to create a SVG that takes parameters, but for some reason it does not implement them ... I have the following SVG file: & lt ;? Xml version = "1.0" encoding = "UTF-8" standalone = "no"? & Gt; & Lt; Svg width = "1" height = "1" xmlns: svg = "http://www.w3.org/2000/svg" xmlns = "http://www.w3.org/2000/svg" version = " 1.1 "& gt; & Lt; Defs & gt; & Lt; ref id = "paramFill" param = "color" default = "# 000000" /> & Lt; ref id = "paramOpacity" param = "opacity" default = "1" /> & Lt; / Defs & gt; & Lt; Polygon points = "0,0 1,0 1,1 0,1" style = "fill: url (#paramFill); Fill-opacity: url (#paramOpacity); Fill-rule: evening; / & gt; & Lt ; / Svg & gt; The PHP caller looks like a SVG file, but when the image is displayed on the page, I get an all black ima

java - How would I create the function for sending an email with the parameters set as String from, String to, String Subject, and String body? -

I am trying to create a Java batch email program which send an email to a specific inbox with the Excel report attachment Will give I have the function: Send Public Zero Email (String To String, String Subject, String Body) {} I try to use Spring And I'm trying to leave XML configuration in an incognito file instead of encoding (for learning purposes). I want to inject a static resource which is an Excel file, and I'm avoiding using FileSystemResource for attachment to my mentor / teacher to learn this module. I do not have to say anything to the body. For the Dummy Purposes the subject line will be "Report" even if I have so far, the actual email function needs the meat which is necessary so that I can pass the parameters of sending e-mail by reference in the main category : Public class SendEmail {Private Java MailSender mailSender; Public SendEmail (JavaMailSender MS) {this.mailSender = ms; } Public Zero Send e-mail (string to string to string subject,

ios - How to determine whether an image was taken from the library or from the camera -

I want to check through a statement if an image is taken from the camera roll or taken by the built-in camera. How can I do this through a statement? Thanks for your help! code: - (zero) image picture controller: (UIImagePickerController *) picker didFinishPickingMediaWithInfo: (NSDictionary *) information {if (picker .sourceType == UIImagePickerControllerSourceTypeCamera) {toolbar.hidden = NO; } If (picker.sourceType == UIImagePickerControllerSourceTypePhotoLibrary) {toolbar.hidden = NO; } If (picker.sourceType == UIImagePickerControllerSourceTypeSavedPhotosAlbum) {toolbar.hidden = NO; } Else {toolbar.hidden = YES; } ImgView.image = [for information object: @ "UIImagePickerControllerEditedImage"]; [Self shotgun viewer unpowered: yes complete: zero]; } simply check sourceType : if (picker.sourceType == UIImagePickerControllerSourceTypeCamera) {// image taken with camera} other {// image taken from the camera roll} Image picture controller: didFinishPi

java - Eclipse crashed and now R file not generated -

My project was compiling, and I do not have any changes in my local repository in XML files but eclipse at a point Crashed, when I opened it again, the R file was not generated. I have tried Mandatory clean project, Mandatory restart eclipse, Install the latest updates from SDK Manager and then install new eclipse software updates. But the R file will not be ready for this project yet. 1) There is no error in XML files that I can see, 2) There are no XML file changes in my last few comma or local repositories, 3) I have removed bin and gene folders and they get automatic rebirth without an R file. 4) I have returned my entire project with some reduction when I know that the project was compiling but Eclipse will not generate R files only any suggestions ? Is some menu being used on your app? If you have any errors in the file menu, then your R file does not appear I had the same problem yesterday

colors - Transparent ARGB hex value -

The colors in the table are not all transparent. I think the value for A is set to FF . What is the code for transparency? For example, this color is FFF0F8FF (Aliceblue), like ? F0F8FF ? transparency in alpha channel ( aa in #AARRGGBB ). Maximum price (255 DCC, FF hex) is completely opaque. The minimum price (0 Dec, 00hex) is completely transparent. The values ​​in between are semi-transparent, i.e. the background is mixed with the background color. Set alpha to zero to get a completely transparent color. RR , gg and BB is irrelevant in this case because no color will appear, it means # 00FFFFFF (" Transparent white ") is the same color as # 00F0F8FF (" transparent aliceblue "). If it does not make any difference to keep it simple, then choose black ( # 00000000 ) or white ( # 00FFFFFF ). You will be defined as transparent in the table that you've linked to as # 00FFFFFF .

content management system - Using AngularJS within or alongside a CMS -

I was using a CMS (Orcord CMS) to manage the front end of the upcoming web project, when It was suggested that I use AngularJS for "dashboard" like I am not very familiar with Angulose, I started reading about it and started by looking at some tutorials. Am I wondering if AngularJS can work in a CMS such as orchard? I thought CMS would be a good idea so that the end user could modify the content as needed. AngularJS was suggested to use on our "dashboard" because it displayed dynamic content and made updates very easy to implement. Does any CMS framework work well with the fingerprint framework or have two mutually exclusive configurations? / p> Sure, there is no problem. You want to use angular, or any JS structure.

vb.net - How to check a string against the Windows dictionary? -

How can you check that a certain string is in the Windows dictionary? Or, in other words, how can you completely catch up for Windows, so you can set a new dictionary for that content? itemprop = "text"> is one for Windows 8 and Windows Server 2012, which can be used via COM from VB.Net. There is a link to the list on the Microsoft Word Dictionary format (.dic file), unfortunately the site is currently unavailable (the link provided is via Webac Machine). Microsoft provides one, although this requires a third party dictionary. Merriam-Webster Online, which is free for non-commercial use. which connects to an online service and can be used with VBnet, just import SmallBasicLibrary.dll. Import Microsoft.SmallBasic.Library Module MyModule sub-main () Dim Definition = Dictionary. GetDef insertion ("vowel") is given a string given the word in the word console. WrightLine (cstr (definition)) and sub end module expiration

c# 4.0 - Filling rdlc report via asp.net code -

I am trying to fill the RDLC report with the dataset I have typed. I am trying to fill it through code, but I do not know what to put in specific places. The name of the dataset is GPSDBDataSet.exd, the name of the report if the report is RDL, the name of the draftscher is coordinates Using Microsoft. Reporting. Webform; Public Partial Category _Default: System.Web.UI.Page {Secure Zero Page_load (Object Sender, EventArgs E) {ReportViewer1 = Visible True; ReportDataSource rds = New ReportDataSource (); ReportViewer1.Reset (); ReportViewer1.ProcessingMode = ProcessingMode.Local; Local Report Rep = Report Details 1 Local reports; rep.Refresh (); rep.ReportPath = "Report.rdlc"; rds.Name = ???????; rds.value = ???? rep.dataSources.Add (RDS); }} It's been a while, but try it out. Rds.name = "yourdatasetname" // In your case it should be up to cadinates rds.value = ds.table [0]; Code Dataset DS = New Dataset (); try {ds = retrieveData (); // S

scala - HDFS Directory as parameter in Spark Streaming -

Text after " I'm having problems with SPARC streaming examples: When I started it using SBT Try to run local / user / dir / subdir / I get this exception [info] Running org apache.spark.streaming.examples.HdfsWordCount local / user / dir / subdir / 14/04/21 18:45:55 Information StreamingExamples: Use the spark's default log4j profile: org / apache / spark / log4j-defaults.properties 14 / 04/21 18:45:55 Information Streaming Exams: Setting the log level for streaming example [Warning] A custom log in classpath 4 J. Properties to override 14/04/21 18:45:55 Warne Utils: Your hostname, Ubuntu resolves a loopback address: 127.0.1.1; (Interface at eth0) instead of using 10.4.4.6 14/04/21 18:45:55 Warning Utils: set SPARK_LOCAL_IP if you need to force another address to 14/04/21 18:45:57 NativeCodeLoader's Warning: Unable to load native -hadoop library ... used builtin-Java classes where applicable 14/04/21 18:46:00 Error JobScheduler: time generating error job

Calling java function in jsp page -

I have a Java file called FaceDetection.java, which has a function called FaceActionMon and has two arguments. There is no main function of the Java file. Now I call this java class file function in my JSS page like this: FaceDetection.FaceDetectionMain (ImagePath, imagery); SEVERE: Excerpt for [jsp] [/ SharedCrpto1] exception in the context of path for servlet.service () servlet.service () Unable to compile class for JSP [JSP: An error occurred in the JSP file: 90 jsp file In: /uploadwebcamimage.jsp FaceDetection can not be resolved 87: Fos.write (imageData); 88: String Imagecap = FileStore + "\\" + FantasyName + ".png"; 89: 9 0: Boolean Flag = Face Detection. Face DetectionMine (ImagePath, Impanem); 91:%> 92: & lt; / Body & gt; 93: & lt; / Html & gt; Stacktrace:] with the original reason org.apache.jasper.JasperException: Unable to compile class for JSP: jsp file encountered an error: 90: /uploadwebcamimage.jsp FaceDetection can not be

php - Many different classes in @return. How to avoid writing them all? -

मेरे पास एक फ़ंक्शन है: $ मॉडल = $ this- & gt; मॉडल (' aNameOfTheModel '); क्या यह एक से मॉडल () PHPDocing का एक और तरीका है: / ** * @ वापसी करें | बी, सी | डी | ई | एफ मॉडल (स्ट्रिंग $ नाम) * / ए, बी, सी ... कक्षाओं में विभिन्न तरीकों (उदाहरण के लिए a :: getMaleUsers या बी :: जबपर्टी स्टार्ट्स )। मैं B < पाठ "> आमतौर पर, आप प्रत्येक वर्ग के अंदर एक मॉडल () फ़ंक्शन परिभाषित करेंगे तो आप उस वर्ग के मॉडल फ़ंक्शन को कॉल करेंगे। (आमतौर पर मॉडल फ़ंक्शंस स्थिर भी होते हैं, क्योंकि वे एक सिंगलटन के रूप में ऑब्जेक्ट को इन्स्तांत करते हैं, लेकिन मुझे लगता है कि यह सब आप पर निर्भर करता है) तब आप प्रत्येक वर्ग में PHPDoc अलग-अलग कर सकते हैं और उसी अंतर्निहित कोड को चला सकते हैं बस उसमें मूल मॉडल फ़ंक्शन के साथ वर्ग को बढ़ाकर। फिर प्रत्येक वर्ग के भीतर मॉडल पद्धति कुछ ऐसा दिखाई दे सकती है: वर्ग foo का विस्तार बार {/ ** @ संचरण फू * / सार्वजनिक स्थिर फ़ंक्शन मॉडल () {वापसी पैरेंट :: मॉडल ( 'foo'); }} फिर आपकी विस्तारित कक्षा में आपके ज

c# - What is usage of this recuring generic class? -

This code has been compiled in Visual Studio, what is the use of it public Class Mayclass & lt; T & gt; Where T: Myclass & lt; T & gt; Note: Where T: MyClass & lt; T & gt; This is usually used so that the base class can not change its actual type Could refer to This is done in an attempt to protect type-security, so track the current type in the parameter specified in the base class or in the return value order. For example, public class animals Be able to define the type of return to be animal basis class method only GiveBirth without type parameter < Code> Animal , which can reduce the type of security for customers. If you control the entire hierarchy and can ensure that the classes provide the correct type of parameters, but note that it is a sad sad public square cat : Animals & lt; Dog & gt; {...} Another downside is that any client needs to take account of normal type of parameters, if they want to apply to th

javascript - Prevent accidental scrolling with swipe in jQuery Mobile -

I am using jQuery Mobile when the user can accidentally scroll the page while swiping on the left or right, So again and again the "rant" page is closed above the window. I want to suppress page scrolling during the left or right swipe event. I have tried: $ ('# foo'). ('Swipeleft swiperight', function (ev) {$ .event.special.swipe.scrollSupressionThreshold = 100; ...}); But this does not stop the behavior. I tried to add status: fixed during a swipe event for both HTML and Body Dome. Neither works because they change the flow of the page. How should I face this problem? Thank you. You can use debugging functions like I took // Minified Only 160 bytes! Function debans (A, B, C) {var d; Return function () {var e = this, f = arguments; Clear timeout (d), d = set timeout (function () {d = null, c || a.apply (e, f)}, b), c and amp; D & amp; a. Apely (E, F)}} var myDebouncedFn = debugs (function () {// you all taxing stuff}, 250); Window.addEv

Problems with Modulo operator Ruby: Why am I getting "undefined method `%' for 1..100:Range"? -

For some reason I'm getting the error 1..100 for the undefined method '%': Category When I run the following code: [1..100] .each do | X | If x% 3 == 0 & amp; Amp; X% 5 == 0 puts "CracklePop" elsif x% 3 == 0 "Crackle" elsif x% 5 == puts "pop" and "x" end and gives x end Any ideas what's going on? This is a bad syntax for categories. You have created an array with 1 element, and that element is itself 1..100 what you wrote is [(1.100)] Is equal to. You are running once again on the External array, and set x to (1..100) Are (1..100) .each , which invokes every on the category, not an array in which category Includes.

MvvmCross iOS similar to IMvxAndroidCurrentTopActivity -

I am trying to create a plugin in MVvmCross which uses UICFSAT. But to use it I have to be top view in iOS. I found IMVx Android content top activity in Android, but there was no such thing in iOS. Is there anything I can use in this way in iOS? var activity = Mvx.Resolve & lt; IMvxAndroidCurrentTopActivity & gt; (). Activity; If (activity == faucet) {new throw throw ("can not get current top activity"); } I do not think there is an exact equivalent. Like the illustrator, using the plugins IModalHost , from the presenter - eg See Other plugins rely on Static S or Globals - e.g. For your plugin, you can provide users with a custom interface in your app (for example in the presenter) or as a bridge request in IModalHost can add. / P>

Passing nearly all build flags to an external project in CMake -

Is there a short way for external projects to pass almost all the flags? Basically, I have a project using external project_ad to download and compile an external project. On a special platform, I want to modify most build flags like CMAKE_OBJCOPY, CMAKE_OBJDUMP, CMAKE_RANLIB, etc. the wanted. Now, when I do this for the parent project which adds the external project, I would like to pass these options to the external project. Of course, I can do this by setting the CMAKE_ARGS option in external project_ad, but there are some flags to make the copy. In fact, I am looking for an option which copies all the flags and then overwrites me some As a last note, since I use ExternalProject_Add to download an archive, I hesitate to use the add_subdirectory, which can encode all the flags Will, because I can not give you a URL. You can list all the flags required in the cmake toolchain file and ExternalProject_Add Only one option can pass: CMAKE_TOOLCHAIN_FILE . & gt; Cat CMak

joomla3.0 - How to change Back to top label in Joomla 3 template Protostar -

Protocolers Joomla 3 is the default template, in the footer section, a link is back to top Returns the user at the top of the HTML page The only document I found in this text is still in place: Template / ProtStart / Language / N-GB However, the text did not change, in fact, can not change it on the website, so I think there is another place for it. Where can I go and change it? When the template is installed, then enter that file in the language / n-gb / n- G.T.P.L. Prostoore.IN is transferred to .INI, so the file should be actually updated. As it is being said, a better way is to use the language override feature on behalf of the administrator. In that file you will see that the language key is TPL_PROTOSTAR_BACKTOTOP (what's on the left side of the equal sign). On the administrator side, go to Extensions - & gt; Language Manager Then on the left side of the page, click on "Override", press the new button and add the TPL_PROTOSTAR_BA

java - Does switch case order affect speed? -

इस सवाल का पहले से ही एक उत्तर है: < / P> 8 जवाब मैंने कोशिश की है google मेरे पास बहुत बड़ा स्विच है, और कुछ मामलों स्पष्ट रूप से अधिक सामान्य दूसरों की तुलना में हैं। तो मैं चाहूंगा पता है अगर आदेश सचमुच के रूप में रखा गया है और "ऊपरी" मामलों को "निचले" से पहले परीक्षण किया जाता है, इसलिए इसका मूल्यांकन तेजी से किया जाता है। मैं अपना आदेश जारी रखना चाहता हूं, लेकिन अगर यह गति , फिर शाखाओं की पुनर्व्यवस्था एक अच्छा विचार होगा। उदाहरण के लिए: स्विच (चिह्न) {case आयन। नल: वापसी नल; मामले आयन। बूलीयन: वापसी पढ़ो बुलियन (); मामला आयन। बीईटीई: वापस पढ़िए बाइट (); मामला आयन। सीएचएआर: पढ़ना खरीदार (); मामला आयन। हार्ट: वापसी पढ़ना लघु (); मामले आयन। आईएनटी: वापसी readInt (); मामला आयन। लंबी: पढ़ें पढ़ें लाँग (); मामले आयन। फ्लोएट: रिटर्न रीफ्लॉट (); मामले आयन। DOUBLE: वापस पढ़ें डबल (); मामले आयन। खतरा: वापस पढ़ें स्ट्रिंग (); मामले आयन। बुलियन_अरे: वापस पढ़ो बुलियन (); मामले आयन। BYTE_ARRAY: रिटर्न readBytes (); मामला आयन। CHAR_ARRAY: वापस

python - Why standard NDB query returns different result compared to GQL query? -

I use the following code to calculate the number of institutions: def get_emails_count (email_type = none, yesterday = none, status = none): email = EmailQueue.query () if email_type: email = emails.filter (EmailQueue.email_type == email_type) if tomorrow: ... : Email = emails.filter (EmailQueue .status == status) Email = emails.count (keys_only = true) Return email get_emails_count (email_type = 4, status = 0) and the following GQL Query (used on the GAE console): SELECT __key__ on the e-mail Where email_type = 4 and status = 0 gives the first code 245, the second one gives 5 instances (which is more visible to the right thing). What's wrong with the first code? Be careful about the use of any comparison: If Status: Email = Email Filter (EmailQueue.status == position) Note that if 0: is evaluated by false . Instead, you should write: If there is no status: email = email .filter (emailcu.status == status) < / html>

Bash script argument with spaces -

I am trying to use the Torrent-Video-Player script but it does not work with those files, In which are spaces, this is a Nautilus script. #! / Bin / bash xterm -e "peerflix" $ 1 "--vlc" "test.torrent" - & gt; OK "test test.torrent" - & gt; The prefix test can not be performed: no such file or directory was found Replace the line xterm -e "peerflix" $ 1 "--vlc" to xterm -e "peerflix '$ 1 "--vlc" or xterm -e "prefix \" $ 1 \ "--vlc" The first form is equal to: xterm -e "peerflix" $ 1 "--vlc" It is not what you expect Were there.

ruby - Share traits across different factories -

I have several models that can be authorized (an author's area) and / or tenant (a tenant area) ) Therefore, I have written concerns for both of them. The problem is in tests. I used the shared_examples_for block to write the tests for the concerns and included them in my model tests. Anyway, to do this, I have many symptoms and after the blocks, for example: (create:). Authorize | Authorable.author = build (user, tenant: authorable.tenant) End Symptom: do no_author do (after). Allow Authorable.author = nil end end trait: no_enant do tenant nil end This piece of code should be equal in factories of all models that are tenant and authorized. I could not find any way to do this. Is this possible? Symptoms can be registered globally, so that they can be used in no other factory Use of the successor of factorial: factorygear. Defining property: no_author do after (: build) {| authorable | Authorable.author = nil} end character: no_enant do tenant zero end factor

c++ - store a high amount of HTML files -

I am working on an academic project (a search engine ), its main work search The engines are: 1 / - crawling 2 / -storing 3 / -deption 4 / -pap ranking All sites that crawl my search engine locally Which means that this is a intranet search engine . After storing files found by the crawler, these files need service quickly for caching purpose. So I wonder what is the fastest way to store and retrieve these files? The first idea to use IPT or SSH, but these protocols are connections based protocols, time to connect, search the file and make it long. I have already read about the anatomy of Google, I have seen that they use a data repository, I want to do but I do not know how. Notes: I am using Linux / Debian, and the search engine back-end has been coded using C / C ++. Storing personal files is very easy - wget - http://www.example.com Be careful of the pages that are generated by the code (crawlable) of example.com, where you can access the content (o

flip flop - Verilog DFF Simulation Producing x for Output -

Image
It should be the easiest issue to sort, but for some reason I can not understand it I currently own Verilog Reading and developing these are very basic modules and test benches for these modules as a practice. One of these modules is D flip flop (DFF). Here is the DFF module (no reset): module DFF (CLK, D, Q); Parameter n = 1; // DFF width input clock; Input [N -1: 0] D; Output [N-1: 0] Q; Reg [n-1: 0] q; Always @ (posedge clk) Q & lt; = D; And end module And here is the test bench: module dff_tb; Reg Clack, D; reg Q; DFF # (1) DUT (CLK, D, Q); Initial start clk = 1'b0; Forever # 10 clk = ~ clk; // Generate clock end of initial D = 0; // Check D = 0 if (Q! == 0) $ display ("[unsuccessful] Q = 0"); # 40d = 1; // Check D = 1 # 40 if (Q! == 1) $ display ("[unsuccessful] Q = 1"); $ Over; // complete trial end endmodule and the simulation is here: Test Bench Reg Q is X for the simulation period (thought [0] does not question ...). Why any tho

ios7 - iOS 7 UINavigationController transition style - View overlapping -

I am currently transferring my application from iOS 6.1 to iOS 7 and I am just wondering if it is anybody It is possible that the old style of UINavigationController transition between scenes using iOS 7 visual overlapping and not Is this possible? I hope this will not be the only solution. Thank you in advance, What I really wanted to do was, the following formula Is described in Thanks!

ios - randomly distributing labels in a view -

I am trying to distribute many labels on a view randomly. The code works below but clearly the distribution is not very random, so I have replaced this line in cat.frame = CGRectMake (self.view.frame.size.width - ( 50 * arc4random ()% Self.numOfCats), (50 * arc4random ()% self.numOfCats), 100, 100); To try to make a few thumbnails of at least randomity, however, can you explain any labels on the screen and there was no error message? Bonus I do not think that the method of making randomness is that the great (i.e., never expected to get 0,0), bonuses, improve your method Can you also make randomness? I have to make sure that no label is being overlapping ... for (int i = 1; i & lt; = self.numOfCats; i ++) {cat * Cat = [self timer]; Cat.frame = CGRectMake (self.view.frame.size.width - 500, 100 * i, 100, 100); [self.view addSubview: cat]; } This should know about the better view of your random status Labels: cgttefram = cat.frame; // The original frame, which wa

org-mode exclude fullpage.sty from latex preview preamble -

Image
fullpage.sty का उपयोग करते हुए एक पूर्ण पृष्ठ पूर्वावलोकन छवियों का निर्माण करके एक दस्तावेज़ प्रस्तावना ब्रेक्स लेटेक्स पूर्वावलोकन में पेज नंबर Ie, यह कोड: # + LATEX_CLASS: आलेख # + LATEX_CLASS_OPTIONS: [a4paper] # + लेटेक्स_हेडर: \ usepackage {fullpage} \ begin {equation} ई = एमसी ^ 2 \ अंत {समीकरण } पूर्वावलोकन छवि उत्पन्न करेगा: LaTeX पूर्वावलोकन प्रस्तावना से पूर्ण पेज पैकेज को बाहर कैसे करें? इसके अलावा, क्या यह एक बग है और एक बग रिपोर्ट की आवश्यकता है? यदि आप fullpage.sty पैकेज को में जोड़ते हैं जैसे कि अपने emacs विन्यास फाइल में org-latex-packages-alist : (ऐड-टू-लिस्ट 'org-latex-packages-alist' ("" "fullpage" इसे निर्यात के लिए उपयोग करना चाहिए, लेकिन पूर्वावलोकन के लिए नहीं।

User agreement banner in SSH secure shell service -

I used to display a message to display a login banner when connecting to a remote server using SSH Looking for some help, and after that the user with the sign "yes or no" should only be asked to enter the password during SSH after entering "yes". I know that login banners can be configured using /etc/issue.net and then after restarting / etc / ssh / sshd_config SSH. However, if I want additional SSH to accept the policy banner after displaying the banner, how do I know about it? Thank you for your help in advance. You can use something like this: #! / Bin / bash cat / usr / share / agreement .txt read -p "Do you accept? (Y / n)" option if [[$ choice = y]]; So make the file /usr/share/agreement.txt with the content of your contract and make the script executable ( chmod + x ). Then edit / etc / passwd and set the command to run on the path of this script (for example, / usr /share/agreement.sh < / code>).

javascript - How to Insert records into mongo with Node where records have an $oid -

I'm new to Mongo and node and I'm trying to create a script which essentially works like a rail Does rake db: seed work where I have a set of .json files in a specific folder, and when I run the $ node seed then this is my seed.js file Which will take them all .json files and files based on the filename of the .json file Mixes Basically I run the $ node seed and it executes the / seed .js which is /seeds/account.json , / Seed / Customer. Jason , etc. In this way, I can limit this code and then the next developer can run just $ node beed and its Mongo instance can work with some data Will come for you. The problem I have is that I have data from my collection dump, so some sample data from the account looks like this: {_id : {'$ Oid': '534d832177da4e0d380 00001'}, id: 1, name: some, datetime: '2014-04-15T14: 06: 09-05: 00'} Now when I run the $ node , I get this error: [error: key $ OID should not start with '$']

big o - for loop running time analysis java -

For all of these I have to find out the time to run. 1. for (int i = 0; i & lt; n; i + = 2) yoga ++; For 2 (int i = 1; i & lt; n; i * = 2) yoga ++ 3. For the (for int i = 0; i & lt; n; i ++) (int j = 0; j and lt; n; j ++) yoga ++; 4. yoga ++ (int j = 0; j & lt; n; j ++) for (int i = 0; i & lt; n; i ++) sum ++ // The above two ends one after the other, not the nested 5. For (int i = 0; i & lt; 2 * n; i ++) yoga ++ 6 For (int i = 0; i & lt; n * n; i ++) Yoga ++; 7. (int j = 0; j & lt; n * n; J ++) for (int i = 0; i & lt; n; i ++) + + +; 8. For (int i = 0; i & lt; n; i ++) (int j = 0; j & lt; 10000; j ++) plus ++; For the first time I got the O (N) and the fourth one I got the O (N ^ 2). Are they right? And how do I make others? I'm really confused with the other. The answer can be expressed in large o or large theta. <div class = "post-text" itemprop = "Basically,

ios - Cocos2D physics collision delegate -

I started learning coco 2D and tried to handle the phantom collision with new physics features, but the method ccPhysicsCollisionBegin always Accidents with CCPhysicsCollisionBegin Representative methods must return a BOOL. This is the complete method - (BOOL) ccPhysicsCollisionBegin: (CCFishix Cleanson Peer *) Pair Monsters Coalition: (CCNode *) Monster Projectile: Peripheral ( CCNOD *) projectile {[exorcised head;]; [Projectile chief]; Yes come back } In this way I add my phantom CCSprite * projectile = [CCSprite spriteWithImageNamed: @ "projectile.png"]; Progligistics = _ Player. Projector. PhysicsBody = [Scyphicus body body variationofradias: Progelil Consentixin / Vithth / 2.0 F and Center: Progekl. Tankpoint Inpoints]; Projector: PhysicsBodyCoolingGroup = @ "" Player Group "; Projector. PhysicsBody Collation Type = @ "Projectile Cleansing"; [_physicsWorld addChild: projectile]; Monster.position = ccp (self.contentSize.width +

sql - Getting wrong result when converting percentage field to float -

I have a question that should display some data based on certain criteria. The following conditions in my query when displaying data to me: Cast (percent in float form) / 100 & lt; 0.50) which should give me a price of at least 50%. However, while executing the query, I get prices like 95, 100 ... but I do not give less than 0.50, even if I have specified the condition in a query. To select any of the tables, check to see if the value is 0.95: select cast (float as percentage) / 100 table 1 Where id = '1111' What am I doing wrong? And what's the solution? This is my where is the block: WHERE msystem = '111' AND ((code = '2222' and cast ( Percentage as float) / 100 & lt; 0.50) or (code = '3333')) This code is here: (code = '2222' and cast (percentage as float) / 100 & lt; 0.50) or (code = '3333') This is the second part of or (code = '3333') allowing for more than 0.50 resul

Jquery understanding how onclick changes work? -

यहां एक सरल jquery कोड है: $ (document) .ready (function ( ) {/ * $ (Function () {// सबमिट_बटन_प्रकार फ़ील्ड का मूल्य सेट करता है यदि 'जमा करें और // जोड़ें अन्य बटन क्लिक किया जाता है। $ (' # Submit-id-submit_and_add ') क्लिक करें (फ़ंक्शन () {$ ('# Id_submit_button_type')। Val ('submit_and_add');});}); * / $ ('# submit-id-submit_and_add')। क्लिक करें (फ़ंक्शन () {$ ('# id_submit_button_type') Val ('submit_and_add');})}} ऊपर के दो के बीच अंतर क्या है? सबसे पहले, मैंने फ़ंक्शन के अंदर क्लिक हैंडलर को संलग्न किया है I विश्व स्तर पर परिभाषित करने का दूसरा तरीका, यह कैसे काम करता है यह केवल तब होता है जब क्लिक होने पर इसका मूल्यांकन किया जाता है मान लें कि मेरा HTML है & lt; input id = "id_submit_button_type" name = "submit_button_type" type = "hidden" / & gt ; & lt; इनपुट प्रकार = "सबमिट करें" नाम = "सबमिट करें_और_एड" मान = "सहेजें और amp; एक और &quo

android - What are the Dalvik thread states? -

Every ANR dump lists states of all threads at the time of ANR. I know that wAIT means but what is the suspension and monitor mean? Thanks in advance ... Summary of the dalvik thread: The beginner - Not yet running. Startup - not yet running, but almost there. Zoombe - dead (you should not see it). Running (A / K / One Runnable) - Thread is actively running VM is to suspend all threads to dump the stack, so you usually have to skip any thread Will not see this. Wait - Waiting for the thread () and waiting patiently. TIMED_WAIT - Waiting for the thread (), with a timeout (Thread.sleep) is implemented as a timed waiting.) Monitor - Thread on a monitor lock Blocked, meaning it is stuck in an attempt to enter the "Synchronized" block. Native - thread is implemented in native code VM does not suspend the thread in the original code unless it is the JNI call (on which they transit to run, and then immediately suspend) . VMWIT - thread is blocked for

vb.net - How to increase downloading speed of a file over internet? -

I have this code for download file but it gives me slow performance rate. Clients as clients. Add ("User-Agent: Mozilla / 5.0 (Windows NT 6.1; WOW64) Apple WebKat / 536.5 (Chrome / 19.0.1084.56 Safari / 536.5") Client, such as KCHML, GECO.Proxy = No Client.Download File Async (New Yuri (Url), cd and varied and encoded) How to split and merge a file to fast download? If you have a file dow in several parts to improve performance If you want to load, you will need to create a HttpWebRequest for each part and call your AddRange method to specify the limit of bytes, which you can download I have never done it myself, so I do not have any examples, but if I want to do this, then the first thing I want to do is to code the HttpWebRequest.AddRange method Read the MSDN documentation for And then search the web for the same method.

php - Password_hash and default salt is it enough? -

इस सवाल का पहले से ही एक उत्तर है: < / p> 14 जवाब मैं सोच रहा था कि अगर password_hash ("custompassgoeshere", PASSWORD_BCRYPT) पासवर्ड को डीबी में संग्रहीत करने के लिए पर्याप्त है या अगर मुझे इसमें कुछ और सल्ट जोड़ना चाहिए (I धन्यवाद! बीक्रिप्ट अपने आप में पर्याप्त सुरक्षित होगा।, यह सुनिश्चित करें कि आप पुनरावृत्तियों / लागत को उच्च स्तर पर बढ़ाते हैं (लेकिन आपके सर्वर के लिए धीमी गति से नहीं)। स्वीकार्य हैशिंग टाइम्स के लिए आपको कुछ मानों का परीक्षण करने की आवश्यकता हो सकती है। आप अपने पासवर्ड को नमक करने के लिए नहीं करते हैं, बीसीआरप्प्ट स्वचालित रूप से प्रत्येक हैश के लिए अद्वितीय नमक उत्पन्न करता है और इसे स्टोर करता है हैश देखें:

java me - J2ME Manager.CreatePlayer() freeze application for a split second when using the first time -

When I call for the first time for the manager. Creteplayer () It deposits my application for a second partition and it is a problem because I am writing a game and it is worth mentioning, what can I do to fix it? As far as I know, there are general arguments for the game: > Display screen loading All heavy operations are prepared / preloaded and cached here, so games can be run easily later usually called here The way to go is manager.createplayer and player.prefetch () . All images & amp; The sound is ready first, and can be used quickly when the game starts. Start the game (loop) The resources have been created / preloaded, you can now use (Draw / Play) here Player Use instances that have been & amp; Prefetch (from the loading screen) You can read about player state (especially about prefetch). Note that you can reuse the player example and call the call start () multiple times to play the same sound Can. No need to call again on createP

machine learning - How to output resultant documents from Weka text-classification -

Then we are running a multifunctional naive classification algorithm on a set of 15k tweets. We first broke every tweet in the vector of the Word feature based on the workstringword vector function. After this we can save the results to a new ARF file such as our training set. We repeat this process with the second set of 5k tweets and re-evaluate the test set using the model obtained from our training set. What we would like to do is to output each classification which is categorized into the test set with classification ... we can see general general information about the performance (Precision, Recall, F-score) and the algorithm The accuracy of but we can classify different sentences on the basis of our reality, which is based on our classifier ... is there any way to do this? Another problem is that in the end our professor will give us 20k more tweets and hope that we classify this new document. We are not sure how to do this: We are working with all the data that has b

python - Negation or exclude filter in Django REST Framework -

I have used the Django REST framework for a while, but in a situation where I have everything I need to be recovered again after seeing a known relationship documentation in the API view, I can not see any underlying mechanism to achieve it. I think I can override the get_queryset () in my ListView and can parse and then custom URL query parameters, but I'm curious if someone else has more Have a more elegant solution? Update After a little more research, it appears more than a druggo-filter query, and I do not mention any exclusion functionality I could find it: which provides the value excluded from the results. It looks like you search for Have been

java - Setting an icon image to top right and bottom left buttons -

How do I create a 4x4 grid of colorful, clickable areas using swing? OK, so the buttons I need are the I have my updated code. Now I am trying to get text field or jalebell to show the bottom left. But I can not get it to work. I thought that could make another panel, but apparently not. import java.awt. *; Import java.util.ArrayList; Import javax.swing. *; Public Class Heist {Array List & Lieutenant; Jebton & gt; Button = new arreelist & lt; Jebton & gt; (); Public Heist () {Jeffrey Frame = New Geoffram ("Hedge!"); Frame.setLayout (new border layout ()); JPNext Top = New JPN (); Top.setLayout (New BoxLayout (top, BoxLayout.LINE_AXIS)); Top.add (new JTextField ("move:")); Jpgnl center = new zpn (); Center.setLayout (new grid layout (4,4)); For (int i = 0; i <16; i ++) {center.add (new payton ()); Buttons.add (new pocket ()); } Zeppel Down = new zpn (); Zeppel Down R = New Zeppel (); Bottom. Sealout (new grid layout (1,2)); Below R.Scallout

android - Is it possible to Save a string array to an XML file? -

I know that it is possible to use it. GetResources () to load XML data into a string array, but how do I contrast? I want to add an array to an XML file and save it. You have the data located on the runtime located in the xml file located in your reserve folder. There are 5 options to save data on runtime 1) Shared priorities: Store private primitive data in key-value pairs 2) Internal storage: Private data store on device memory 3) External storage: Store public data on shared external storage. 4) SQLite database: Store structured data in a private database. 5) Network connection: Store data on the web with your own network server The share priority occurs when you have small data to save files such as internal storage or external storage image, text file etc. Can be used for. SQLite database can be used to store contact numbers, area names and network connections when you have the status of the client server for the data entry application. Read more here