Posts

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

इस सवाल का पहले से ही एक उत्तर है: 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...