Posts

Showing posts from March, 2014

angularjs - Popup Controller function call in angular.js -

I'm using it because it sounds popular, I'm calling the popup dialog as follows: $ scope.upload = function () {createDialogService ('simpleModal.html', {id: 'simpleDialog', title: 'India to upload video', background: true, controller: 'Trafficist Controller', success: {label: 'success', FN: function () {console.log ('simple mode off');}}}); }; And in my simpleModal.html only the following (a form) & lt; Div class = "row-fluid" & gt; it happens. & Lt; form ng-submit = "addNewVideo ()" & gt; & Lt; Input type = "text" ng-model = "newVid.videoURL" placeholder = "video url here" & gt; & Lt; Br / & gt; & Lt; Input type = "text" ng-model = "newVid.locality" placeholder = "locality" & gt; & Lt; Br / & gt; & Lt; Input type = "text" ng-model = "newVid.town" placeholder = "c...

ruby on rails - How to unit test a module (a resque scheduler job) in rspec -

मेरे पास एक (सरलीकृत) मॉड्यूल है: (/app/jobs/checkpulse.rb) मॉड्यूल चेकपल्स @ आकार =: दिल की धड़कन def self.perform () Machine.all.each do | मशीन | Machine.update_columns (active_alarm: true) # updated_at एंड एंड एंड को स्पर्श नहीं करना चाहता मैं इसे रेल कंसोल में उपयोग कर सकता हूं और यह सभी मशीनों को अपेक्षित रूप से बदलता है। मैं इसे परीक्षण करने के लिए एक युक्ति लिखने की कोशिश कर रहा हूं: (/spec/jobs/checkpulse_spec.rb) की आवश्यकता होती है "spec_helper" need_relative '../../app/jobs/checkpulse "कारखानेगर्ल.क्रेते (: मशीन, उपयोगकर्ता: उपयोगकर्ता, दिल की धड़कन: समय समाप्त: 5)}" यह मशीन को बदलना चाहिए " अलार्म मोड "चेकपल्स करते हैं। टेपरफ़ॉर्म (मशीन.एक्टिव_अलार्म) की उम्मीद है। be_true end end के लिए यह परीक्षण हर बार विफल रहता है मैंने चेकपल्स मॉड्यूल के अंदर डालकर इसे जांचने के लिए उपयोग किया है और इसमें मॉड्यूल के अंदर अपेक्षित व्यवहार है, लेकिन जब मॉड्यूल से लौटा जाता है, तो मशीन बदल नहीं जाती है। मैंने कोशिश की है, लेकिन यह या त...

postgresql - Postgres : No suitable Driver found for jdbc JAR File -

My eclipse program is working well. However, when I try to compile it in a JAR file, then I get this error: java.sql.SQLException: no suitable driver was found for jdbc: postgresql: //10.0.0.19: 5432 / Fussballverein I added the connector to my Java files and exported them to a jar file, is that correct? This is how my jar file looks: MyModel.class MyModel.java MyControll.class MyControll.java Mpanel mypanel.java Postgrescle-9.3-1101. jdbc3.jar Maryframe When I try to run it from my command prompt, it looks like this: Java -jar Gebauer_Laurenz.jar 10.0.0.19 User name password fussballverein I'm already getting the error here is my code; It would be great if someone could help. public throws auführen () SQLException, ClassNotFoundException {// Connection Objekt connection con = null; Println (server + "+ db +" "+ user +" + pw); Try {//Class.forName("org.postgresql.Driver "); // After death in DriverManager...

Format mySQL timestamp by changing date-month and remove seconds using PHP function? -

मैं mySQL से $ istoriko ['टाइमस्टैम्प'] को गूंजता हूं और मुझे 2014- 04-24 00:10:29 मैं इसे कैसे बदल सकता हूँ 24/04/14 (या 2014) 00:10 धन्यवाद इसे आज़माएं, इसका सरल आप किसी भी तारीख प्रारूप को अब दिनांक फ़ंक्शन में सेट कर सकते हैं प्रतिध्वनि तारीख ("d / m / y", strtotime ($ istoriko ['टाइमस्टैम्प']));

wordpress - activate plugins on custom theme -

I'm new to WordPress and just created my first template. In functions.php I've put the following code, the function I think is that the plugins should call the plugin directory: If (function_exists ('register_sidebar' '', 'Name' = & gt; 'Widgetized Area', 'id' => 'widgetized-area', 'description' => "',' before_widget '=> After_widget '= & gt;' ',' before_title '= & gt; ",' after_title '=>);); } I see all the plugins, and in the widget screen I also see the 'Widgets' screen and it allows me to drag the widget into the work area. The website displays the HTML of the plugin but neither JS and CSS is working. What am I missing? The code you added above in your functions.php is that To register any plugin, register the sidebar, there is no connection to its plugin You can follow the sidebar included in the template: If (...

java - Parallel HTTP requests with Retrofit -

I have an Android app that currently creates volley network requests and downloaded images With NetworkImageView is being used to show I would like to test the capabilities of Retrofit and since I have to run a lot of requests (thousands), I'm concerned about a little parallel execution volley RequestQueue which limits concurrent running requests to four, while others are waiting to execute the requests. In the Retrofit documentation, I have not found any way to handle the number of concurrent requests and I suspect that this information has been left to the developer in this library. Is that correct? If so, is there an Android-oriented implementation / library available? Otherwise, what are the best practices for handling parallel requests? Uses an digitizer for retrieiting queuing requests. Default Executor. NewcachedThreadPool uses which allows for unlimited threads. This usually fits more use cases than you usually have one or two requests at onc...

Go - Idiomatic way to return (potentially shadowed) variables which have been defined as part of a separate multiple variable return -

normal status While typing a function with the named return value, you typically use nude returns (Whether or not you have a different discussion). They can look like something: func add (x, y int) (z int) {z = x + y return} Return is the same problem as return z though with the compressed snippet below ... ( Module, ".md") {module, err: = readConvertMDFile (fileRoot + "htdocs / md /" +) func load module (module-name, fileRoot string) (module [] byte) {if String.HasSuffix (moduleName, ".md" module_name) If mistake! = Zero {log. Printerline (fault)} return module} and {module = [] byte {} return}} (this snippet runs fine, and this is my current solution to the problem) ... The compiler will complain that module is shaded if instead of return module bus Return . The reason for this is that the module was declared with err (second time), which has to be announced because it is still not present in this area. Possible...

How to prevent wordpress from wrapping my javascript in tags -

Image
I have WordPress 3.8.1 site I want to embed this javascript into a script tag in one page at EASTBANKRATE, POLICEANDFIRERATE, WESTBANKRATE, calculateTax, calculateTax_Homestead, calculateTax_NoHomestead. EASTBANKRATE = 148.77; Westbanker = 14.96 6; I do this like this: & lt; p & gt; But when I click on the preview change (or update -> preview changes), this markup translates EASTBANKRATE, POLICEANDFIRERATE, WESTBANKRATE, calculateTax, calculateTax_Homestead, calculateTax_NoHomestead; & lt; p & gt; EASTBANKRATE at: = "text / javascript" & gt; = 148.77; WESTBANKRATE = 149.66; Which definitely gives an error: Is there no way to annotify this javascript as markup? If not, would this JS get the page open without the opening of the wordpress behind it? Is there any way to add? To prevent you from changing the new code from Wpautop filter must be disabled> & lt; P & gt; tag remove_filter ('the_content...

bash - return a value from shell script, into another shell script -

I know how to return an exit code, but I returned the result of the operation done in a shell script function I would like to do this, so I can finally use it in another script or function. Something like var1 = $ (myfunction) function2 var1 where my work is A + B = C I saw in "return", but it will return a code, not a value. I see in different sites, it tells me how to write the function, but I do not think how you actually return the value. In C ++ you will use "variable name", but shell script will not allow this. It says that the variable is not in existence (which is logical, it is a variable created in a function, so when the function is released, then that memory space is given). Global variables can not be used because the function can be in a script and the calling function whose return value is required can vary. myfunction a + b = c Something like this might be: Just reverse the result: $ myfunction () {$ echo ($ 1 + $ 2)); } ...

javascript - JQuery delegated events work like direct events -

I add a dynamic button to my page and I want to make an AJAX request when I click on it. But my code handles the click of every document, what am I doing wrong? & lt; Script type = "text / javascript" & gt; Var $ selButton = $ ("Input [id = = btn_match_]"); $ (Document) .on ("click", $ sel button, function (e) {// executed on every click on the code page and not only on button clicks}); & Lt; / Script & gt; One of my buttons: & lt; Input id = "btn_match_26179" class = "btn btn-primary btn-x" type = "submit" & gt; The selector is considered a string, not a jQuery object. If this is not a string, instead of acting as a selector, the handler will be passed as a event.data . See. Try this: var selector = "input [id = = btn_match_]"; $ (Document) .on ("click", selector, function (e) {// ...});

javascript - Pass an input box value through to a var in the js doc to be used -

Whether the value of an input from a form can be used in a spread in a function. For example: & lt; Input type = "text" id = "userID" name = "userID" placeholder = "enter user id" style = "width: 200px;" / & Gt; & Lt; Input type = "submit" value = "search" /> Then userID will be passed to: var userId = null; I'm looking to use it as a way to input the Flickr API call for the user. $ GetJSON ('http:? //api.flickr.com/services/rest/ method = flickr.photos.search & getSizes & api_key = feb7e93d9a90e9a734787bea9be81440 & user_id =' + userID + '& has_geo = 1 & amp; extras = geo & amp; format = json & jsoncallback =? ', Map images); I was seen around and var userId = document.getElementById ("userID") came to. Value; This does not work though. I have tried: & lt; Form type = "post" onsubmit = "loa...

javascript - How to turn a simple 1-dimensional array into an HTML table using Handlebars.js? -

It seems that it should be simple, but I am having a hell of a time with it. I have an array with some names in it: var foobar = ["John Doe", "Jane Doe", "Mike Do"]; Then I want to create a simple HTML table using the handlabber JS (yes, I want to include the down arrow between each name): & lt ; Table & gt; & Lt; TR & gt; & Lt; Td> John Doe & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; & Amp; Darr; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> Jane Do & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; & Amp; Darr; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> Mike Do & lt; / Td> & Lt; / TR & gt; & Lt; / Table & gt; However, I can not find any way to refer to FOB in my template HDBS. {{#foobar}} does not work. I am readin...

batch file - Poor man's remote job execution in windows 7 using job scheduler -

OK, I know that my title is a bit unclear but let me explain what I did and what I wanted to do To fail to do First of all, security is not my concern at this time. Once I work on it, I will apply an authentication schema to protect my setup. I want my windows at home, a batch file from a Linux server on the client, a batch file (non-VPS-Root user to play the role of FTP / SCP server) and download it Run it as it runs, run it. I setup a non-privileged (read as non root) accounts on my vps I created a public / private key pair Using my key-pair from my windows pc, I could log in to my VPS without the need of password. Using the same key-pair, I was able to download a window from my VPS to a Windows machine. I have a batch file that I have set to run every 3 minutes using the windows internal task scheduler. The batch file does this: scp remote-server: /home/user1/job.bat. Job.bat & gt; Outfile.txt scp outfile.txt user1 @ remote-server: /home/user1/outfile.txt echo ...

bash - Keep the delimiter in the output of cut -

I have a script which, to remove some code from search, cut Uses Path. Something looks like this: PLACE = $ (grep foo flatfile.txt | cut -d '/' -f 1-6) Output this Looks like: machine1: / path / to / where / foo / is machine2: / another / path / to / find / foo I It should look like this: machine1: / path / to / where / foo / is / machine2: / another / path / to / find / foo / This console should be printed with the echo "$ PLACE" at the end of the script or some such output will always have at least 2 rows, but usually more. I tried, which I thought I could think with Echo, but it does not show any output or gives output: grep : '/' Is a directory I am running bash 3.00 on Solaris, if he does any help, I would really like KIS. Despite the deduction of something else at the end of the command, and not with the seed or the unit being with the monkey But, if this is the only way, then be it. Try this: PLACE = $ (grep foo...

Java static keyword usage -

क्यों यह कोड काम नहीं करता? HelloWorld.java: त्रुटि: गैर-स्थिर विधि जोड़ने (int, int) को एक स्थिर संदर्भ से संदर्भित नहीं किया जा सकता System.out.println (जोड़ें (1,2)); मुझे पता है कि मैं ऐड मेथड में स्थिर जोड़ रहा हूं, यह काम करता है, लेकिन हमें स्थिर का उपयोग क्यों करना है? यदि यह कोड सी में था, तो यह काम करता है, ठीक है? यदि आप विधि जोड़ने के लिए स्थिर नहीं जोड़ते हैं, तो अन्य तरीकों से मैं किस प्रकार "परीक्षा" को मेरे मुख्य विधि में जोड़ सकता हूं? सार्वजनिक वर्ग हैलोवाल्ड {सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {System.out.println (जोड़ें (1,2)); } सार्वजनिक int जोड़ (int x, int y) {return x + y; }} आपको जोड़ (int, int) विधि स्थिर सार्वजनिक स्थिर इं जोड़ने (int x, int y) {return x + y; } वैकल्पिक रूप से आप कर सकते हैं सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {हैलोवाल्ड परीक्षण = नया हैलोवाल्ड (); System.out.println (test.add (1, 2)); } इसका कारण यह है कि आप इसे एक स्थिर विधि से कॉल करने का प्रयास कर रहे हैं। स्थैति...

for loop - Bar Making - Python -

I am writing a function that takes a list variable and returns the vertical bars corresponding to each number in the list. I just have a simple problem, in fact, maybe I'm missing something. def vBarMaker (nums): #Helper function output = "" while nums! = 0: nums - = 1 output = = "*" if nums = = 0: return output vBarGraphify def (nums): for numbers in nums: print vBarMaker (number) printed vBarGraphify ([0,1,3,2] ) # ^ This Return # # * # *** # # # # But I want to return it: # * # * * # * * * * Does anyone give me the function Can help in editing, which gives returns. Thanks in advance. Currently you have a single loop that reaches the associated star until the number is reached goes. You should also keep in mind the different places. What I will do, the output is opposite to the current index number of an asterisk for that number. It is to say that if the list passed in the function is [1, 2,3] then on the first iteration, two places and one ...

python - Test if user has entered a word equal to a word in a text file -

Assume that I have a file in it: passcode / Pre> Now, whatever I want to do, there is some code with user input, which should check what the user has entered in the file that is in the same. Is there any way I can do that? As a file I already have such a code: with file ('test.txt') f: s.strip ('\ n') s = f.read ( ) Inp = raw_input () if inp == s: print "provide access" other: print "login denied!" I took your code and finally added the following line: print repr (inp), repr (s) I got the output 'passcode' passcode \ n ' Obviously raw_input () Finally the new line is included, close the tab and it should work.

Push Notification service for android app not published on google play -

We have an Android app, which is not published on Google Play, to download APK only on our own website has been issued. / P> Recently we want to include Google Cloud Services to enable push notifications, and we are thinking that is it possible to do this for the unpublished app? Thanks This is very possible. Either Urban Air Force or ... Ol> Visit your Developer Console and enable Google Cloud Messaging Download Google Play Services Library. Register the device, using the library. After registering, you will receive a unique token for the device. Use that token to send a HTTP request to Google's servers and Google will handle the rest.

Redial multiple phone numbers android -

I am in the middle of creating a custom dialer application. Apps need to dial different phone numbers within 5-10 seconds. Code looks very much, but I need to call several numbers from one array of numbers. I need to turn off a call activity to start another call activity. Private Zero Accelerated Deal (String [] Number) {/ * * Countdown Timer Code * LOOP * * / Uri Number = With Uri.parse ("Tell:" + [i] ); Intention Dial = new intent (int. Action_code, number); startActivity (dial); } Do you have any solutions? Thanks :). You must use the phone to listen to state changes. When the phone call is over, start another dial activity.

c# - How to create separate list for each property in class -

मेरे पास वर्ग से नीचे है, सार्वजनिक वर्ग class1 {सार्वजनिक int prop1 {get; सेट;} सार्वजनिक स्ट्रिंग prop2 {get; सेट;} सार्वजनिक बाल प्रोप 3 {प्राप्त; सेट;}} सार्वजनिक वर्ग class2 {सार्वजनिक int prop1 {get; सेट;} सार्वजनिक सूची & lt; स्ट्रिंग & gt; prop2 {get; सेट;}} अब, वर्ग 1 में प्रत्येक संपत्ति के लिए सूची & lt; class2 & gt; बनाने की आवश्यकता है। क्या आप कृपया मुझे बता सकते हैं, इसे सी # 4.0 में कैसे पूरा किया जाए? धन्यवाद अग्रिम में! आप यह सी # नया "गतिशील" कीवर्ड और एक्सपाडो ओब्जेक्ट कर सकते हैं, लेकिन डायनामिक प्रकार की गतिशील रूप से जेनेरिक सूची बनाने के लिए बहुत मुश्किल है। मुझे लगता है कि यह काम करना चाहिए: गतिशील myDynamicClass = नया ExpandoObject (); फॉरच (टाइपोफ (फू) में विभिन्न प्रोप। गेटप्रॉपर्टीज़ ()) {प्रकार [] प्रकारएआरजीएस = {prop.GetType ()}; Var सूची प्रत्यायन प्रकार = प्रकार (सूची & lt; & gt;)। MakeGenericType (typeArgs); var myList = Activator.CreateInstance (सूची ImplementationType); myDynamicClass [prop.Nam...

php - Summing All Values Between a Number Range -

How can I add all the numbers of numbers using PHP? For example: 1-5 (1 + 2 + 3 + 4 + 5) = 15 Need to use array_sum or array variation? Multiple choices, here is 1. $ start = 1; $ End = 5; $ Sum = 0; For {$ sum = $ i; ($ I = $ start; $ i & lt; = $ end; $ i ++) } $ sum;

Where do I receive print commands in Python -

मेरे पास एक साधारण अजगर कार्यक्रम है: प्रिंट 'हाय' प्रिंट स्टेटमेंट प्राप्त करने के लिए मैं इसे कहां निष्पादित करता हूं? मेरी अज्ञानता माफ करना, मैं सिर्फ अजगर सीख रहा हूँ आप कुछ ही विकल्प हैं। आप इसे किसी फ़ाइल में सहेज सकते हैं फिर कमांड को चलाने के लिए अजगर yourfile.py चलाएं। पायथन स्रोत कोड के लिए विशिष्ट फ़ाइल एक्सटेंशन .py है। आप पायथन इंटरप्रेटर चला सकते हैं यह एक फ़ाइल में इसे सहेजने के बिना पठन कोड को शीघ्रता से परीक्षण करने का एक तरीका है। बस टाइप अजगर और आपके द्वारा अपने अजगर दुभाषिया द्वारा & gt पीछा के संस्करण कह कुछ लाइनें देखेंगे; & gt; & gt; , जो दुभाषिया शीघ्र है। किसी भी अजगर बयान आप यहाँ टाइप तुरंत क्रियान्वित किया जाता है और परिणाम मुद्रित: बुरहान @ सैंडबॉक्स: ~ $ अजगर अजगर 2.7.3 (डिफ़ॉल्ट, 2 जनवरी 2013 16:53:07) [ जीसीसी 4.7.2] लिनक्स 2 पर अधिक जानकारी के लिए "सहायता", "कॉपीराइट", "क्रेडिट" या "लाइसेंस" टाइप करें। & Gt; & gt; & gt; प्रिंट 'हाय' ऊ & g...

php - Included file unaccessible in if/else statement? -

Then this is my code: I am trying to use my password php and for some reason there is no file involved It has been reached in my statement. I get an error: Fatal error: Class 'password hash' /home/carlton/public_html/PHPproject/forms/registersecure.php not found in 33 This is related to a thread that I did not post too long I'll do the first (), but I think that this is a very short thread because I think I have separated the problem. Depending on your response, there is not enough permission in PHP to access the file: please enter it Read more about Please also try: chmod /home/carlton/public_html/PHPproject/includes/PasswordHash.php 755

jquery - Javascript - How do I call the object? -

As you can see I have created three objects, each has a different array. Whitesmate = {option: ["chicken", "turkey"]}, fish = [variant = "options" ["beef", "steak", "kangaroo"]} {Option: ["salmon", "tuna"]}; Then, in HTML I have created a selection area with three similar options. & lt; Choose name = "meat-type" & gt; & Lt; Option value = "redmeat" & gt; Red flesh & lt; / Options & gt; & Lt; Option value = "whitet" & gt; White meat & lt; / Options & gt; & Lt; Option value = "fish" & gt; Fish & lt; / Options & gt; & Lt; / Select & gt; Now, whenever the user selects the field, I want to be able to display the right array in my console. (For example, when red meat is selected, then the console "beef", "steak", "kangaroo" will be logged.) $ ('select [name = m...

c# - With a generic repository for entity framework, how do I query entities which implement a specific interface? -

After I have been using the store pattern with the outline of the unit and have implemented a normal store. However for some type, if I want to set the IsDeleted bool true, then I do not want to remove the record from the database. For this effect, I have made this simple interface: IEntityProtectedDelete.cs Public InterfaceIntityProtectedDelete {Bool isDeleted {get; Set; }} This has been implemented on my organization like this: Queue.cs Public Class Queue: Remove IEntity Protect {Public Queue () {IsDeleted = false; } [Key] Public int queId {get; Set; } [Required] Public string name {get; Set; } [Required] Public Bool Isledged {get; Set; }} Below I am using a part of the generic repository. The delete method works as expected, and when setting the IsDelete property to correct when using the above interface. However, how to correctly query the database, then the unit tool IEntityProtectedDelete . GenericRepository.cs Do the public class Gener...

php - Create multi dimensional array. -

How can I create a database result set in PHP as follows Arre ([0] = & gt; Arre ([ID] = & gt; 1 [name] = & gt; Little Heshinda [is_open] = & gt; 0 [order] = & gt; 0) [1] = & gt; Arre ([ID] = & gt; 2 [name] = & gt; Testkat [is_open] = & gt; 0 [order] = & gt; 0) [2] = & Gt; Array ([id] => 3 [name] => fgf [is_open] => [[order] => 0)) I have the following code, $ arr = array (); $ R = mysql_query ("SELECT * FROM categories where id =". $ Key ""); If (mysql_num_rows ($ r)> 0) {$ row = mysql_fetch_assoc ($ r); $ F = mysql_num_rows ($ r); ($ J = 0; $ j & lt; count ($ f); $ j ++) {$ arr [$ j] = $ line [$ f [$ j] ['field']]; }} $ Test = array (); Array_push ($ test, $ arr); Return $ Test; but this array returns array ([0] => array ([0] => 1 [1] = & Little Helsida [2] => [[3] => 0)) Any help would be greatly appreciated .. You can do this: $ arr = array (); $ R...

c# - How to make a manually created button invisible after it is clicked in Windows Form? -

Manually created a button using the code below, usually with the button I have my visible = false to invisible, which I do in the setInvisible method when I click the button. I can not do this manually with the built-in button, though? myButtonObject start = new myButtonObject (); Public mainstream () {Initial group (); EventHandler My Handler = New Event Handler (Startcall); start.Click + = myHandler; Start.Location = new system.downing.point (200, 500); Start.Size = New System Drawing. Size (101, 101); //start.Text="Start "; This.Controls.Add (start); } Zero start_Click (object sender, System.EventArgs e) {start.Visible = false; SetInvisible (); // sets a set of invisible set buttons; // Set sets another group} Public class myButtonObject: UserControl {// New button Draw. Secure Override Zero OnPaint (PaintEventArgs E) {Graphics Graphics = E. Graphics; Pen myPen = new pen (color black); // Draw the button as a circle graphic. FillEllipse (Brush Goldnode, 0, 0, 10...

Android Layout Cloning -

& lt; RelativeLayout एंड्रॉयड: आईडी = "@ + id / component1" एंड्रॉयड: layout_width = "200dp" एंड्रॉयड: layout_height = "wrap_content" android: layout_marginLeft = "50dp" एंड्रॉइड: layout_marginTop = "50dp" एंड्रॉइड: पृष्ठभूमि = "@ ड्रॉएबल / माय_शैप" & gt; & LT; TextView एंड्रॉयड: आईडी = "@ + id / textView1" एंड्रॉयड: layout_width = "wrap_content" एंड्रॉयड: layout_height = "wrap_content" एंड्रॉयड: पाठ = "नमस्ते" / & gt; & LT; ImageButton एंड्रॉयड: आईडी = "@ + id / imageButton1" एंड्रॉयड: layout_width = "wrap_content" एंड्रॉयड: layout_height = "wrap_content" एंड्रॉयड: layout_alignParentRight = "true" एंड्रॉयड: src = "@ drawable / ic_launcher" / & gt; & LT; RelativeLayout एंड्रॉयड: आईडी = "@ + id / component2" एंड्रॉयड: layout_width = "200dp" एंड्रॉयड: layout_height = "wrap_content...

javascript - getting value from one html page and appending it to the textbox id of the next html page -

I had asked this question before but my problem still has not been solved. Let me explain my problem again. Choose the HTML page with default button, select the merchant, select the product, select the product.in, select a merchant, I have a text box, which he has ID = merchant. After this, clicking on the trader who chooses to go to brand.html and give me a list of merchants. After climbing one of the list items, I am getting the value of this merchant in variable text and now wants to add this value to the Recommend HTML textbox. This is the code that I tried but was not working .. The brand is JS $ ('.i-li-icon li'). Click (function () {var index = $ (this) .index (); var text = $ (this) text (); warning (index is: '+ index +' and 'text' is text); sessionStorage. SetItem ("Selected Merchant", text); window.place = "Recommended" # $ ('# merchant') .append (text);}); This is recommend.js function load () {var selectedMer...

atomic - Reproduce torn reads of decimal in c# -

Seeing is believing can someone reproduce a program that read broken decimal? I tried spinning multiple threads between 1 and 2 changing the same decimal. I could not read any one from 1 or 2 Edit: I have to see that a reader thread does not appear atomic, with a writer thread, so the value should be somewhat different from 1 or 2. Turn-throughcillight test by zero ({decimal share = decimal = 1; Int threadCount = 100; Var thread = new list & lt; Thread & gt; (); {Int threadId = i; for int i = 0; i & lt; threadcount; i ++) Var thread = new thread ((=) gt; {thread.sleep (5000); decimal newvalue = thread id% 2 == 0? 1: 2; bool; thread thread = thread ID% 2 == 0; console "Light" ("Author:" + isWriterThread + "- will set the value" + newValue ", for (int j = 0; j and lt; 1000000; j ++) {if (isWriterThread) sharedDecimal = newValue; decimal decimal = Shared Decimals; if (decimal read! = 1 & amp; & amp; nbsp; decimal red! = 2) co...

jquery - How to add javascript string value to a value in hidden field in ASP -

वेबपेज में मुझे निकटतम उपयोग करना निम्नानुसार था: & lt; script & gt; $ ( '# शीर्षक') पाठ (movie.title)। & Lt; / स्क्रिप्ट & gt; यह काम करता है के साथ कहता है: & lt; h1 id = "title" & gt; & lt; / h1 & gt; हालांकि मैं इसे एस्प छिपे हुए फ़ील्ड जैसे मान में इस्तेमाल करना चाहूंगा उदा। मैं एएसपी और जावास्क्रिप्ट और jquery के लिए नया हूँ ताकि कोई सलाह काफी सराहना की। उपयोग करने का प्रयास करें: $ (" [id $ = 'name'] ")। Val (movie.title);

ios - How to remove characters from an NSString and replace with spaces? -

इस सवाल का पहले से ही एक उत्तर है: मेरे पास एक NSString है: / p> NSString * string1 = @ "http://example.com/this-is-an-example-post" श्रृंखला की एक सीमा को निकालकर मैंने उसे इसे प्रतिस्थापन दिया है: NSString * string2 = @ "यह-एक-उदाहरण-पोस्ट" लेकिन मैं इसे पाने के लिए संघर्ष कर रहा हूं के रूप में: NSString * string3 = @ "यह एक उदाहरण पोस्ट है" कोई भी मदद? बहुत सराहना की। उदाहरण के लिए इस तरह string3 = [string2 स्ट्रिंगबय रीप्लीसिंग ओक्रेरन्सओफ़स्ट्रिंगः @ "-" स्ट्रिंग के साथ: @ ""];

get state before currentstate in flex -

There are flex in my five states and there is a random change between them. How to obtain information about the previous state (active state before the current code in Flex) Add a listener Save state and current state to a variable by changing the status of your object. It may look like the following: & lt; Fx: Script & gt; & Lt ;! [CDATA [Private var previous state: string; Protected function when the creation is completed ($ event: FlexEvent): zero {yourObject.addEventListener (statConnect event.CURRENT_STATE_CHANGING, on ChinaiteState); } Chingstate ($ Event: State Change Event) on Protected Function: Zero {previousState = $ event.oldState; }

install - How to find out JavaFX version -

It should be easy, but I do not know how is there a way to install Java FX version? And I do not mean it through the program System.getProperty ("javafx.runtime.version") , which gives an empty string on my computer, though JavaFX is installed. I want to do something like Java-version on the console but to get the Java FX version. Alternatively it would be enough to know whether Java FX is installed at all or not. I have some clients who can not run my swing / Java Fx app and want to know if JavaFX is installed or not. You can not really do that, you do this with the Java runtime, the difference is that Java is a machine executable that launches JVM. JavaFX is just a set of library classes; It is not really executable in the same sense. It seems that the system properties that you can read on the runtime are placed in the jre / lib / javafx.properties so that if you are running on Windows However, if the system property on the runtime is empty, ...

java - Pressing both mouse buttons not working correctly -

I have to see if I press the left, right or both buttons on my mouse, here is a sample code: package sandbox; Import java.awt.event.MouseEvent; Import java.awt.event.MouseListener; Import javax.swing.JButton; Import javax.swing.JFrame; Import javax.swing.SwingUtilities; Public class sandbox JFrame {public static expands zero main (string [] args) {Sandbox S = new sandbox (); s.setVisible (true); } Public Sandbox () {setDefaultCloseOperation (EXIT_ON_CLOSE); setSize (300, 200); setResizable (wrong); SetTitle ("frame"); SetLayout (zero); Button = New Pocket ("Click Me"); but. Setbound (0, 0, 120, 50); But KaddMouseListener (new Mauslistr () {@Override public void Mausclait (MouseEvent e) {} @ Override pressed public void Mouse (Mausivent e) {if (swing Utiylsksaliftmosbtn (e) | swing Utilijh. Aiaraiarmusbtn (e) ) system. println ( "both"); if (swing Utiylsksaliftmosbtn (e)) Sistmkautkprintlann ( "left"); if (swing Utiylskaisiaritmosbtn (e)) s...

c# - Add item to binded combobox to list -

I have a combo box which is bound to list like this public list & lt; Customer language & gt; Current Customer Customer List {Get (_currentCustomerLanguageList;} set {_currentCustomerLanguageList = value; BsCustomerLanguages.DataSource = Presenter.CustomerLanguageToProxy (value); cbLanguage.DataSource = bsCustomerLanguages.DataSource; cbLanguage.DisplayMember = "LanguageName"; CbLanguage.ValueMember = " ID ";}} I have the + - buttons on the form that allow the addition or removal of items inside the combobox. The problem is: I do not know how the new Cambodia binding source and list to the item without full refresh Of course, when I add, the selected value must be left and no selected Valued Event should be raised. 'bsCustomerLanguages' is a binding source in that case if you set the cbLanguage.DataSource = bsCustomerLanguages ​​ and bsCustomerLanguages ​​add directly to it

How to disable BadValueError (required field) value in Google App Engine during scanning all records? -

I want to scan all records so that it can detect that there are no errors inside the data. How can I disable BadValueError to scan a break due to a lack of required fields? Consider that I can change to StringProperty not necessary and such properties can be tenths in the actual code - hence such solutions are not useful? class A (db.model): x = db.StringProperty (required = true) for example in A.all (): # if some example (example): example .delete () Can I use some functions to read directly datastore.Entity to avoid such problems that do not require verification? The solution I found for this problem was to use a flexible query, by this one query Throwing an exception ignores, you can try it: def resilient_query (query): query_iter = iter (query) while true: next_result = query_iter.next () # some object next_resquestion exceptions, etc. E: next_result.delete () query = resilient_query (Excerpt))

Multiple images in html5 canvas not stacking in the right sequence -

I am adding several PNG transparent images above one html5 canvas to another, but they do not pile in the correct sequence ( I have read in other discussions that this may be an ending problem, but there is no solution. This is my code: function drawCanvas () {var canvas; Var reference; Var imgArray = ['Pictures / IMG1 page', 'Pictures / IMG2 page', 'Pictures / IMG3 page', 'Pictures / IMG4 page', 'Pictures / IMG5 page', 'Pictures / IMG6 png ']; Canvas = document.getElementById ('myCanvas'); Context = canvas.getContext ("2d"); (Var i = 0; i & lt; imgArray.length; i ++) for {var img = new image (); Img.src = imgArray [i]; Var drawTee = function (i, context, canvas) {return function () {console.log (i, 'loaded') context.drawImage (this, 0, 0); }}; Img.onload = drawTee (i, context, canvas); }}; Can anyone help me? The problem is that the sequence of images on the canvas is determined by the order i...

javascript - Uncaught TypeError: Cannot read property 'getElementsByTagName' of null -

I'm trying this but .getElementsByTagName () is used, an error Generated: var tag = document.body.getElementsByTagName ("*"); Uncaught TypeError: Why is this error producing, and how can I fix it? "post-text" itemprop = "text"> document body Will not be assigned unless the body element is created. and element & lt; Script & gt; element element (because you are trying to get all the elements, you want to be in the end of the body element) or it can be kept in a function and it is such a Call from the event that sets fire after the body build (such as window load events).

c# - VS2013 text operation - swap stuff from left and right of operator -

मेरी परियोजना में मेरे पास इस तरह की कार्यक्षमता है: x = this.x; y = यह .y; z = this.z; आदि। किसी अन्य फ़ंक्शन में मुझे निम्नलिखित की आवश्यकता हो सकती है: this.x = x; this.y = y ; this.z = z; दृश्य स्टूडियो के पुराने संस्करण में मैं इन मैचों के आसान निर्माण के लिए यह मैक्रो हासिल कर सकता हूं (मेरा मतलब है कि इनमें से बहुत से हैं I 10-50 फ़ील्ड के बारे में सूची तैयार करने वाली सूची) और वर्तमान संस्करण में मैं अभी भी ऐसा कर सकता हूं, साथ ही पाठ खोजक में जगह ले ली गयी regex के साथ भी किया जा सकता है, हालांकि मैं सोच रहा हूं कि इसके लिए कोई विकल्प वीएस 2013 में या स्वचालित करने का एक तरीका है। यदि आप चीजों को थोड़ा अधिक मैन्युअल रूप से नहीं मानते हैं, तो आप दृश्य स्टूडियो में इसका इस्तेमाल कर सकते हैं। यदि आपके समान-चिह्न संरेखित होते हैं (जैसा कि वे आपके उदाहरण में हैं), तो आप सभी आयकर आयताकार चयन के रूप में ALT- चयन कर सकते हैं, और उन्हें बायें से दाएं और उपाध्यक्ष के विपरीत कट कर सकते हैं। आप कॉलम को कार्यवाही में देख सकते हैं, चयन करते समय बस ALT-key दबाएं।

java - How to install custom Google glass app on phone -

I have created a set up sample for Google Glass on Android device and it works. Then I have tried to install Hello World Glass app on Android device, to create a custom application such as Hello Glass, after the installation of the voice command should respond to "Hello Glass" and the new The card will show "Hello sir or mam! .." but thank you this glass glass Thanks in advance. If you use a glass-specific API, you can not run Glass app on the Android app. So, if you want to take an app that runs on both glass and non-Glass Android phone, you should check to see if your app runs on the glass and apply different codes when needed. . For example, you can code like this: try {class.forName ("com.google.android.glass.timeline.TimelineManager"); Logs. V ("> gt;>", "Timeline Manager Found"); } Grip (Clasnotfooundation e) {log. V (">>>" Timeline Manager Class Notoft "); } {Class.forName ("com....

uml - Flow of data between process to process and database to database -

In the data flow diagram, there may be a flow of data between the database between the databases and between the processes directly in the second process It is possible? I mean that I have two databases and I want to draw a flow at the other level between them, as they are reaching each other, this is also with the process. I'm not sure this is the answer you want, but in the data flow diagram, you You can create a data flow between the processes, but not between the datastores. Here is a link to attract DFD Idea I (since I can not post an image directly) PS: You add a DFD tag instead of uml for this question Want to?

how do i add ext.net dynamical web form control and retrieve its contain value to save in DB.? -

I want to add two text boxes dynamically and want to get those values ​​and display them as messages. Please help me out for example. Display this scenario where I can learn and apply for my real problem. Alternate those examples http://examples.ext.net/#/XRender/Basic/Add_Items/ http://examples.ext.net/#/ XRender / Basic / New_Window / * Those Links, the official website of ext.net Instead of adding a tab or window, simply change them to TextField. U can be dynamically connected to unique IDs for each element, and those components can be accessed via ID

java - Spring WS Endpoint extract SOAP info -

After reading the document on the spring web site, it is still confused about how to remove information from a SOAP request For example, the server sent like a SOAP request: & lt; Soapenv: envelope xmlns: soapenv = "http://www.w3.org/2003/05/soap-envelope" xmlns: user = "http://www.mysite.com/user/schemas" & gt; & Lt; Soapenv: header / & gt; & Lt; soapenv: body & gt; & Lt; User: UserRequest & gt; & Lt ;! - You can enter the following 4 items in any order - & gt; & Lt; User: Key & gt; Key & lt; / User: Keys & gt; & Lt; User: Username & gt; Username & lt; / User: Username & gt; & Lt; User: RequesterName & gt; Reqname & lt; / User: RequesterName & gt; & Lt; User: RequesterPassword & gt; Repw & lt; / User: RequesterPassword & gt; & Lt; / User: UserRequest & gt; & Lt; / soapenv: Body & gt; & Lt; / Soapenv: envelope & gt; On my server s...

xsd - Validating an XML structure against a local XML Schema -

My code is making an XML document (with JDOM 1.1) which I want to validate against an XSD file. However, according to, the schema space property only works with accessible URLs to give to the parser Is there no way to refer to the local XSD file? Is legal against XSD, which is not universally accessible impossible? I do not get it ... First of all, there is a way to specify the schema location feature only The location of the schema, and in many cases, this is not the best way (if you do not believe the document is valid, why do you have to trust that where its schema is?). Most schema vendors can provide an option to provide externally a schema, e.g. On the command line or via API or GUI. Second, the schema space is a URI, so it can be a relative URL, for example "test.xsd" identifies the schema document sitting in the same directory as the source document.

ios - Get all similar values of key of bunch of (NSDictionary)s within an NSMuttableArray -

मेरे पास NSMuttableArray है जैसे ({MedicineAlarmTime = "18:00: 00 "; मेडिसिनडीटाईम =" 24/04/2014 16: 00:09 ";}, {मेडिसिन अलार्मटाईम =" 18:00:00 "; मेडिसिडिटीटाइम =" 24/04/2014 16:00:26 ";}, {मेडिसिन अलार्मटाइम = "1 9 00:00"; मेडिसिडिटटाइम = "24/04/2014 16:00:26";}, {मेडिसिन अलार्मटाईम = "1 9 00:00"; मेडिसिडीटाईम = "24/04/2014 16:00:26 ";}) क्या समान" मेडिसिन अलार्मटाइम "जैसे array1 = ({MedicineAlarmTime =" 18: 00 " ; मेडिसिनडीटाईम = "24/04/2014 16:00:09";}, {मेडिसिन अलार्मटाइम = "18:00:00"; मेडिसिडिटीटाइम = "24/04/2014 16:00:26";}) सरणी = 2 ({ मेडिसिनअलार्मटाइम = "1 9 00:00" मेडिसिडीटाइम = "24/04/2014 16: 00:09";}, {मेडिसिन अलार्मटाईम = "1 9 00:00"; मेडिसिडिटीटाइम = "24/04/2014 16:00:26 ";}) NSMutableDictionary * समूहीकृत अलार्मा = [NSMutableDicti ऑनरी डिक्शनरी]; के लिए (मूल अर्रे में एनएसप्लेयर * अ...

inherit value from another class in android -

I want to keep the value that is entered in the text edited by the user. So I want to use the value entered in that different category. Basically I want users to enter their username in this category. The public class uses Loginpage activity on OnClickListener {EditText Usern, passw, dis; Button ULGIN; String; Override public null at @reate (bundle saved instenestate) {// TODO auto generated method stub super. Connet (Saved Instantstate); setContentView (R.layout.loginpage); User = (Editing Text) SearchVBIID (RID.); Find passw = (edit text) VVBIID (RID.pass); Dis = (EditText) findViewById (R.id.dis); Ulauseine = (button) Find VVBIID (RIDLogin); ulogin.setOnClickListener (this); k = usern.getText () toString (). } @ Override Public Wide Onclick Onclick (see p) {// TODO Auto-Generated Method Stub Switch (P.IGID)} {Case R.Id.Login: K = usern.getText (). ToString (); String passwd = passw.getText (). ToString (); Process cat = new process (this); Cat.open (); String returnpath = cat...

html - How to hide part of image if the image length is too long for mobile devices -

When the image is too long, I am having trouble changing the image again. I have a Lider for my mobile website Most of the images are now in width, so they are mapped properly and my content does not go too far. But when the image is long in height, I want to see a padding in the picture and only the middle part of the image should be visible & lt; div id = "ok" & gt; & Lt; Img src = "img.jpg" & gt; & Lt; / Div & gt; CSS: # OK {width: auto; Height: 400px; Overflow: hidden; } # Oak img {width: 200px; Height: auto; } The above code is an example for an image 200px wide and the height is limited to 400px. If the image is overflow or overseed, then the area is hidden which is overflow.

oracle adf - ADF Access page binding in View Object's Bind Variables -

Image
I have an obligation on the ADF page, which is called eventide. I have a visual object that I am trying to select from the database based on the value of this event ID. I have a visual object with the view criteria, and it uses the "bind variables" defined in the object to select based on the value. I need to make the value of "bound variable" equal to one of the binding of the page, I think I need to do this on the basis of an expression that resolves the page's binding "event id", how do I do this Can i I have tried to make the value of the bound variable equal to the # {bindings.eventID} expression, but when I click on "Test" it is a Groove exception Throws: In similar cases, I'm not using the declarative approach. You can execute a method that queries To The bind variable will execute with the value of . Oracle Database: The following code for the default hr schema that comes with int empID query Is = 123;...

android - Unable to start activity ComponentInfo 4 -

I get an error when using the contact code: How can I fix this? / ** * Created on 24/04/14 at Pool * / Public Square SurfaceViewExample Activity View Extension Expired. OnTouchListener {OurView v; Bitmap ball; Float x, y; @ Override Protected Zero (Bundle Saved InstantState) {Super. Secret (Saved Instantstate); V = new ours (this); V = setOnTouchListener (this); Ball = BitMapFrenchDecod Resource (), ArdraWebball.ball); X = y = 0; SetContentView (v); } Private OurView SetOn Touch Listener (Surface Wise device example pageview) {return tap; } @ Override Protected Zero at Pause () {Super. V.pause (); } @ Override Resume at zero () {super.onResume (); V.resume (); } @ Override Public Boolean On Touch (see We, Motion Event Me) {return false; } The public class runs ourView SurfaceView tool Runnable {thread t = zero; Ground holder holder; Boolean IITOK = is incorrect; Public OurView (Reference Reference) {Super (Reference); Holder = getHolder (); } @ Override Public Wide Run () {While...

How to validate Python bytecode? -

I'm thinking of manipulating some bytecokes in Python (think genetic programming). In the case of a test of the Python source tree that came out, which states: The broken bytecode objects can easily crash the interpreter. is. The question is, how to validate the given tweed byte code that it will not crash the interpreter? Is this also possible? Test source, cc = (lambda fc = (lambda n: [c for c] .__ class __.__bas____ [0] .__ subclasses__ () If c .___name__ == n] [0]): FC ("function") (fc ("code") (0, 0, 0, 0, "kaboom", (), (), () , Defines this module as cc , that if it is called, code> mymod.cc () crash interpreter One very difficult example is creating a new code object with custom bytecode "KABOOM" and then runs it. I accept something Confirms the predefined bytecode, e.g., Both old, without any code (at least I can not get it) but what / how can And what are the limitations. Fully valid bio...

c++ - general tbb issue for calculating fibonacci numbers -

I came across a TBB template as an example of work-based programming for calculating Fibonacci numbers in c ++ I am But when I run it I get the value of 1717986912 which can not happen. Production should be 3. What am I doing wrong? Class Fibatas: Public work {public: const long n; Long long * const amount; Execute Execute :: Virtual Function Work Override: (if n & lt; 0) {return 0; } And {long X, Y; FibTask & amp; A = * new (allocate_child ()) FIbtask (N-1, and X); FibTask & amp; B = * new (allocate_child ()) Fibatac (N -2, & y); // Set one for "Wait for another for two children". Set_ref_count (3); // Start B. Moving eggs (B); // Start a race and wait for all children (A and B). Spawn_and_wait_for_all (a); // sum * sum = x + y; } Return tap; } Long parallelfib (long n) {long amount; FibTask & amp; A = * new (task :: allocated_root ()) FIbtask (N, and Yoga); Job: spawn_root_and_wait (a); Refund Amount; }}; Long main (int argc, char ** argv) {Fibcas...

How can I set index_settings for Elasticsearch in elasticsearch-jdbc-river? -

I am trying to configure index settings using elasticsearch-jdbc-river. So far what do I do: curl -XPUT localhost: 9200 / _river / my_river / _meta? Beautiful = true - data @ index.json And this is my Jason file: {"type": "jdbc", "jdbc": "," "poll": "5s", "scale": 0, "AutoCommit": false, "fetchis": 10, "max_oroz": 0, "max_taries": 3, "max_reires_wight" : "Root", "password": "root", "sql": "10s", "driver": "com.mysql.jdbc.Driver", "url" ":", "" "": "root", "password" OFFERS "," index ":" jdbc: mysql: // mysql-server: 3306 / products_fr "" index ":", "" type ":" offer "," bulk_size ": 30," max_blank_request ": 100, "Index_settings": {...

php - Signup with Paypal -

I am creating a website using laravel and need to integrate PayPal for registration. There are two pages where users enter their information and the last page where they can pay the registration fee with PayPal. The customer gives me a ready button to pay the PayPal when the button is clicked when I open the PayPal website. This is the first time when I use PayPal, I do not know how to finish registration after paying the user You can use a listener like this:

python - Django how to make form fields optional -

How to make the form field optional in the DNS? My model, class students (models.Model): first_name = model. Kharefild (max_long = 30) last_name = models.CharField (max_length = 40) email = Models.EmailField () assuming that you want to create last_name optional, you can use the attribute: class.model: First_name = models.CharField (max_length = 30) last_name = models.CharField (max_length = 40, empty = true) Email = models.EmailField () Note that CharField and TextField , you probably do not want to set blank (as for why to discuss See), but on other field types, you will need to, or you will not be able to save examples where the optional values ​​are omitted.

html - Jquery css image overflow hidden left transition -

I am trying to combine a CSS and Jquery script so that an image appears which is hidden at the beginning and it Show the transition left. I know that I can do this with pure jacquery leaving animate, but for my requirement, I have to use CSS and have to add the class. My html: & lt; Div id = "wapperimg" & gt; & Lt; Img class = "slide" src = "http://lorempixel.com/400/200/sports/1/" /> & Lt; / Div & gt; & Lt; Button ID = "OK" & gt; Ok & lt; / Button & gt; My CSS: #wrapperimg {status: relative; Hidden flurry; Width: 100px; Height: 100 pixels; Limit: 1px solid black; } .slide {status: absolute; Hidden flurry; Left: -100px; Width: 100px; Height: 100 pixels; Infection: 1s; } .shown .slide {transition: 1s; Left: 0; } My Junkies: $ (document) .ready (function () {$ ('# ok') click (function () { $ ("#weeppering .slide"). AddClass ('shown');});}); Do you know wh...

javascript - URL is not showing all files select by user? -

I am working on phonegap where I need to upload files and add all file names to the parameter like: For this, I am trying this: function new_page () {var file3 = document.getElementById ('my_file'); Var data_file = document.getElementById ('file_handle'). Internal HTML; If (file3! = Null) {var file = document.getElementById ('my_file'). InnerHTML; File + = data_file; Window.location.href = '? job_posting.html file = '+ file; } Else {window.location.href = 'job_posting.html'; }} When I upload more than one file it only creates a link with 1 file that I have selected: Like: but it should be I will collect additional files as a JSON string on a URL as an additional array. then use php json_decode

lattice xyplot in R - how to plot multiple observations of same subject -

I have a dataset that looks like the following and I want to use xyplot to ram it in R: id = c ("1", "1", "1", "1", "1", "1", "1", "2", "2", " 2 "," 2 "," 2 "," 2 "," 2 "," 2 "," 2 "," 2 "," 2 "," 2 "," 2 "," 2 ") TIME = c ("0", "0.5", "1", "1.5", "2", "2.5", "3", "0", "0", "0.5", "0.5", "1", " 1 "," 1.5 "," 1.5 "," 1.5 "," 2 "," 2 "," 2.5 "," 2.5 "," 3 "," 3 "), OBS = C (" 0 "," 0.73 "," 0.98 " , "0," "0.01", "0.01", "0.01", "0.01", " VISITNUM = c ("1", "1...

sql - RAISEERROR Date and Time -

I have been running SQL statement for a long time ... catches BEGIN Cache Declar @ErrorMsg = ERROR_MESSAGE (), @ ErrSevirity = Error_Sevirity () RAISEERROR (@ErrorMsg, @ErrSevirity, 1) --do Rollback End Catch I know that the stored procedure failed, how do I get the error message? Sysmessages do not have a time-zone area, can I in some way include it in another table so that there is a date and time of error? Choose from master.dbo.sysmessages > Using the RAISERROR () function inside your catch block does not mean too much, it's something you use in You can. Hold Block to enter TRAK BLock . Once you (your control) is in the Cache Block, you have all the error functions to get detailed information about your error. Just select them work Rearrar function is used in the block. And once you have made an error in the attempt block, ERROR_MESSAGE () will be populated with your custom error message. See below: Try - prior verification IF (some rules) RAISARR (...