Posts

Showing posts from September, 2014

Can I run all SoapUI mock services in a workspace from the command line? -

I have a simplified workspace with 15 projects, each with different interfaces and fake services. I want to deploy these fake services somewhere else so that other developers can check against them. All simulated services can be run in a single project , but a GUI like an the entire workspace can help GUI to run without headhead Is there any way to repeat this behavior without GUI? Due to the number of services involved in this, I did not want to include everything in one uber-project. I used the wargenerator tool to create a separate web application for each project. Also considered to be used, but it seems like Overkill should definitely be a way to host all fake services in a single web app, like a GUI? I think that you will find that the CLI examiner as well as the Mayen plugin do not have a workspace in their form as one of them. So what you want is not in existence. However, I think that in order to use all your scripting language, all * - soapui-project.xml file...

angularjs - Set custom id in ng-options -

I am using Kazun to create a selection using ng-options, and all working from zero I'm going to want to set it to the angular auto-populate value instead. $ scope.form.stage = [[Optional: 1 ID: 23 Description: UD Visual Inspection - Optional), {Optional: 0 ID: 12 Description: Flash}] My Instructions: & lt; Select name = 'test_stage' ng-model = 'Form.selectedStage' ng-change = 'abc (form)' ng-options = 'form.stage for item in item.esage' & gt; HTML provided : & lt; Choose name = "test_stage" id = "test_form_stage" tabindex = "2" ng -model = "form.Selected stag" ng-change = "ABC (form)" ng-option = "description form in item.stage" NG-Blur = "Fetch teststation (form)" class = "ng-valid ng -dirty" & gt; Option value = "0" & ​​gt; UD Visual Inspection - Optional & lt; / Option & gt; & Lt; Option value = "1...

java - IndexOutOfBoundsException: Index: 15, Size: 19 -

After Then I was combed through some logs from our webserver on the second day (looking for something else) Strange caught my Eye java.lang.IndexOutOfBoundsException: Index: 15, Size: 19 java.util.ArrayList.get at java.util.ArrayList.rangeCheck (unknown source) (unknown source) It seemed impossible for me I have looked for source code and blown it out of my mind private void RangeCheck (integer index) {if (index> = size) new indexOutOfBoundsException throw (outOfBoundsMsg (index)); } Based on the message that I should never have received. Unfortunately, I do not know whether the content was actually at this time (it is said by code that is used for many things) and I am unable to reproduce it. I do not even know where I will start. Question: Should this be able to happen? Is it messy in Java? Or just a freak accident. I know that this topic may be closed. I believe what happened to me, there was more information about it, but I am not. ArrayList is not ...

excel - Function Output in Different Cell [RESOLVED] -

I am trying to write a function in a cell, and then use that cell's address as a reference point Trying to do, I want to change the value of the cell on Sheet 2 Basically, I am trying to generate two different outputs on each separate sheet on each output. Here's what I've done so far: version application as function test (). Collar Worksheet Seals (Application.Collar.Row, Application.Color.Colume) .ro application. Collar Worksheet call (application caller.rows, application.color.column). Column sheet 2. Seals (A + 1, B + 1). Value = 8 & Function Its goal is to type "= test ()" in cell A1 on Sheet1, and A1 will be equal to zero, while cell B2 on Sheet 2 Will be similar. I have heard rumors that the UDF in Excel will not be allowed to affect the change in any other cell which was written on it, other than that, but I really do not want to believe in the rumor! You combine (UDF) and an event macro You can get your goal together. UDF A1 and...

angularjs - Bind function result to angular repeat -

I have an example of a service in my $ scope and its result is through In the Walking Controller $ scope.svc = MyService; In the template: & Lt; Button ng-click = "svc.remove ($ index)" & gt; X & lt; / Button & gt; & Lt; / Td> & Lt; / TR & gt; It is easy, thus I can directly point to the methods of service without folded wrap to ng-click . But Does it not reduce the work of angular engine if it is connected to array ? I find time is detected call, each $ scope The change was triggered 2 times it may not be too much but that ng- Repeat Is there any strange damage to this kind of use? No, there should be no real display effect. Due to data-binding, most resources of repetition are required. But data binding is also done when you use the array directly, no matter whether it is included directly or returned by the function or not. Only overhead function should be the call and the return of the array, but it is n...

ios - Can a custom keyboard extension identify a user of my companion application in any way? -

Whether a custom keyboard app extension can have a specific user identity, which is based on settings / credentials / identity mechanism Partner application or otherwise? "Identifying a specific user" means I mean that in the context of my own application / service / brand, not personal / phone data on my device. Or is it always a stable keyboard, which is always unable to determine the user / phone use it? I think you should be able in your collaborative app, NSUserDefaults Put whatever identifier you want into, and leave the keyboard in its view in the deodel of your UIInputViewController subclass. Let me know that he works.

Python pandas: select 2nd smallest value in groupby -

मेरे पास निम्न जैसा एक डेटाफ्रेम है: आयात करें pandas as pd import numpy as एनपी डीएफ = पीडी। डेटाफ़्रेम ({'आईडी': [1,2,2,2,3,3,], 'तारीख': सरणी (['2000-01-01', '2002-01-01', '2010-01-01', '2003-01-01', '2004-01-01', '2008-01-01'], dtype = 'datetime64 [D]')}) मैं प्रत्येक आईडी समूह में 2 सबसे आरंभिक दिन प्राप्त करने की कोशिश कर रहा हूं। इसलिए मैंने निम्नलिखित मजेदार कैसीनो को लिखा है: def f (x): if len (x) == 1: वापसी x [0] और: x.sort () वापसी x [1] और फिर मैंने लिखा: df.groupby ('आईडी')। Date.apply (लैम्ब्डा x: f (x)) परिणाम एक त्रुटि है। क्या आप यह काम करने का एक रास्ता खोज सकते हैं? इसकी आवश्यकता है 0.14.1। और बहुत कुशल होगा, खासकर यदि आपके पास बड़े समूह हों (जैसा कि उन्हें पूरी तरह से सॉर्ट करने की आवश्यकता नहीं है)। में [32]: df.groupby ('ID') ['date ']। Nnsmallest (2) आउट [32]: आईडी 1 0 0 2000-01-01 2 1 2002-01-01 3 2003-01-01 3 4 2004-01-01 5 2008-01-01...

sql - How do I insert rows from another table and update at the same time? -

टेबल ए: ए | बी | सी | संस्करण 1 | 2 | 3 | 1 2 | 3 | 2 | 2 | 3 | 2 | 2 | 3 | 2 | 2 | 3 | 2 | 3 | 2 | 3 | 4 | 5 | 7 | 7 | 8 | 9 | 10 | ... हर पंक्ति उतना ही है जितना कि संस्करण के अलावा 1 की वृद्धि हुई है। मान लीजिए कि मैं पंक्तियों की तालिका ए से प्रतिलिपि बनाना चाहता हूं जहां संस्करण = 1 मैं इसे कैसे करूँ? के लिए "कॉपी करना" तालिका बी में प्रविष्ट करें (ए, बी, सी, वर्जन) मूल्य (चयन * से तालिका में जहां टेबल table.Version = 1);

javascript - How to disable all options from all menu that have the same value jQuery -

I have a form where I have multiple drop down menus on the same page. All these menus have the same class name (i.e.clientMenu). The only options in the menu are the exact options (i.e. blue, yellow, white, black and green). If I have 10 menus, then if the user selects "blue" on any menu then "blue" should be disabled from the other 9 menu, therefore, "blue" has only one menu Can be selected in. This is what I have tried, but it is not working. When I say that it is not working, I mean that it is not disabling any option. How can I make this code work? Thanks a bunch in advance ($ ('.clientMenu')). (Function () ($ {"clientMenu" option). Each (function () {if ($ (this) .val () == $ (".clientmenu") .val ()) $ (this). 'Disabled', true); and $ (this) .prop ('incompetent', wrong);});}); Edit I have made JSFDial to make things easier function setOptionsDisabled ($ parent, val, disabled) {$ pare...

html - li:after in horizontal navigation bar keeps putting its content on a new line -

I have some stupid CSS problem, the way I want it to be I am working. The problem is that it somehow keeps an arrow under anchor text. This is an example html: & lt; Ul id = "navi" & gt; & Lt; Li & gt; & Lt; A href = "" & gt; ABC & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "" & gt; DEFT & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "" & gt; Too & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; More stylesheet: #navi {list-style: none; Padding: 0.5 AM; } #NV Li {Float: left; Display: Inline; List-style-type: none; } #New Lee A {display: block; Font weight: normal; Font size: 13px; Color: # 222; Padding: 0.2 m 1em; Text-decoration: None; } # NVI li A: Hover, # NVI li A: Active {background: # 5ea0ff; White color; Text-decoration: None; } #navi li a.selected {background: # 444; White color;...

c# - Need to control order of method expectation based on the expectation of a property being set -

I have the following example that I hope the way I do not expect. public abstract class example {public essence string Foo (); Public listing & lt; String & gt; Bar () {pre-system (); Var list = new list & lt; String & gt; (); Var stack = new stack & lt; String & gt; (); Foreach (different items in start) {stack.Push (item); } While (Stack. Any) {SomeThing = stack.Pop (); Var f = Foo (); List.Add (f); } Postmath (); Return list; } Public abstract zero pre-method (); Public essence zero postmeth (); Public abstract IEnumerable & lt; String & gt; Stuff {get; } Setting the public essence string someThing { get; }} [Test class] public class ExampleTest {personal example Example; Private Mock Repository Mock; [Test Initiative] Public Zero Initial Test () {Mock = New Mok Repository (); Example = Mock Ritzitri GeneratePartialMock & lt; Example & gt; (); } [TestMethod] Public Zero Barts () {usage (mocks.Ordered ()) {example.Expect (e => E. Prem...

Loop through a dictionary in swift -

I'm trying to replicate the loop in Objective-C but an 'object' is not found ' A member with the name 'Generator type': For (in the NSString * file [dict objectForKey: @ "files"]) {NSString * content = [[Source StringBapensing Path Companent: @ "Content "] String = source.stringByAppendingPathComponent (" content ") Dict.objectForKey ("files") for .stringByAppendingPathComponent (file)} I have tried defining a holder variable. Can anyone see what I am doing, please? This is not a loop through a dictionary. It's a looping, though one dictionary key is the array stored in one of the key. For example, if an array of your strings was in the form of the key of your dictionary. if arr arr = "[files"] [string] {for fil e in arr {}} If you only select dictionary If you want to loop through, then it is possible in Swift, and this can be done: for (key, value) in dict {println ("key - \ ( ...

javascript - Files loaded using $scriptjs or any other asynchronously loader -

Say I have an fingerprint app that uses lazy load controller files (via $ scriptjs) and all the dependencies when the user navigates on one path. . There are 3 routes in the app: A, B, C If the user has root A, B and A, then there are files to be loaded twice in memory or are the smart enough to cache the browser files and retrieve them? The browser will cache external JavaScript files, if so, if a user has loaded a script The browser should recognize that it has been cached and should not be called again If you are using Firefox then you can see it by using the firebug extension. In the Net tab of Firebug, you can see the javascript file that is being loaded for the page. Once they are cached, you will see the name of the file in light gray. That means they are cached.

Django Database Module -

I am developing a system that requires connecting to the remote MySQL database on the fly to do a particular task. To accomplish this, I'm thinking of using the MySQL-db module in Python. Since the remote database is not part of the system, I do not like to add it to the system core database settings (database settings UP). Using the MySQL-db module, is there a better way to accomplish this? Is there a built in the Django module that I can use? To work inside Virtualenv, you must "/ P> install PIP MySQL-Python == 1.2.5

javascript - Regular Expression to match pairs of forward slashes, but not escaped or between subsequent http:// -

Image
I am trying to create a regular expression that is a coupled forward slash (like / something / ), but leave saved pairs (like \ / something \ / ) and the subsequent URLs (like http://something.com and stuff like http://somethingelse.org Leave anything) ). Then, in the following example, only the word "jumping" will be matched, and nothing will be matched: jumped on quick brown fox / lazy dogs Looking for help / ways to find nearby methods of dogs / website / because he / she was sick from / above them. Unfortunately, both http://routesaroundlazydogs.com/ and https://maps.lazydogs.com/stuff/things/findmap.aspx were both down the day they were watching. Work in JavaScript (i.e. no back-post) (^ | \ s +) / ([A-Z0- 9a-z] +) / \ S +

php - Why is this not selecting only records with a date older than 7 days? -

I am trying to filter for the row with the value of '1' in the active column and where the last phloemmail_date date The column is 7 days or more than the current date. Many sites are being searched on the Internet, this is the query that I have come up with but for some reason it is not filtering properly (query is less than 7 days from the current time Is selecting record over time). Why this might be so, but any thoughts will be very much appreciated and appreciated. Thanks so much in advance! e_sales_prospects from SELECT * where activate = '1' and the last fallowmail_date & gt; (I You want the lines that are older to be seven days, in that case you want the rows small , then in my opinion it should be lastfollowupemail_date & Lt; DATE_SUB (NOW (), INTERVAL 7 DAY)

java - Trying to use JavaMail -

So I'm trying to create a server where I can change the sender's email to whatever I want. I have tried to sign up for a free SMTP server, but I'm not sure what I'm allowed to do. If this does not work then can someone take me in SMTP server which allows me to do this? Package Mailer 2; Import java.util.Date; Import java.util.Properties; Import javax.mail.Authenticator; Import javax.mail.Message.RecipientType; Import javax.mail.MessagingException; Import javax.mail.Multipart; Import javax.mail.PasswordAuthentication; Import javax.mail.Session; Import javax.mail.Transport; Import javax.mail.internet.AddressException; Import javax.mail.internet.InternetAddress; Import javax.mail.internet.MimeBodyPart; Import javax.mail.internet.MimeMessage; Import javax.mail.internet.MimeMultipart; Public class mailer 2 {public static zero main (string [] args) address exception, messaging upshot {property prop = new property (attribute); Prop.put ("mail.smtp.host", ...

mysql - Multiply for Hours by Rate -

I have data stored in the database as follows. hour rate 02:37: 37 8.00 I wrote a question like the following (Hour * rate) as payment from user_hours; I'm getting the result as "16" which is not right. How do I get the right results? Thanks, Raj SELECT (SUBSTRING (hours, 1,2) + SUBSTRING (hours, 4,2) / 60+ SUBSTRING (hours, 7,2) / 3600) * Payment from user_hours as a rate;

windows - How to make a batch file that detects when a program closes and then restarts the application? -

Is there any way that I can open myself a program when it stops? I runs this program; And it gets a pop up; This program closes when you press OK. I know that I can start an executable with a batch, but when I close the program, how do I run it on my own? I am able to start the program with this code: @echo off start "" c: \ program files (x86) \ Winstep \ WinstepXtreme.exe " But I want to launch this batch file when WinstepXtreme.exe ends. Update: OK, the suggested code works but is unable to make its active PC unable to do anything, CMD is also the option to stay on the window but I decide that. There are two files in my process list: Nextstart.exe and Workshelf.exe, if there is a code command where you can type, then it is not certain if the "workshelf.exe" doe exists, start workshelf.exe? If not present then "% ProgramFiles (x86)%" "???" ----------> [SOLUTION] & lt; ---------- @echo off : "Edit Text...

javascript - Protractor tests inconsistently passing / failing for AngularJS app -

My opponent e2e tests are passing incompatible and are unsuccessful. It seems that this may be due to asynchronous JavaScript, as discussed here: However, here it is reported that the protractor test Automatically performs indexed / synchronized: My test script: Description ('login', work () {var ptor ; BeforeEach (function () {browser.get ('https://127.0.0.1:8443'); ptor = protractor.getInstance (); element (by.id ('splash')) Click (); Browser .inersynchronization = true; // & lt; - sp In order to proceed with the flash screen)); ('With correct email and password', function () {first (each function () {element (By.id ('email')) SendKeys ('admin@email.com'); element (by.id ( 'Password')). SendKeys ('adminpassword'); element (by.id ('loginbutton') () () ();)) Click ();}) after (each function () {ptor.findElement (By.id ('logout')). Then (function (elem) {elem.click ();});}); ('Warnin...

c - Moving from create_proc_read_entry to proc_create and using seq_files -

मैं proc_create create_proc_read_entry से स्थानांतरित करने की कोशिश कर रहा / कोड>। मैं नए कार्यान्वयन में शोध कर रहा हूं जो seq_files का उपयोग करता है। इससे पहले कि मैं एक copy_from_user को कर्नेल स्पेस में एक सूचक को पास करने के लिए / proc फाइल सिस्टम का उपयोग कर रहा था इस संरचना में उसमें जानकारी (और अन्य डेटा) है जिसका उपयोग मैं यह निर्धारित करने के लिए करता हूं कि फ़ंक्शन को आगे क्या कहा जाता है मैं नए कार्यान्वयन के साथ संघर्ष कर रहा हूँ विशेष रूप से मैं उस पॉइंट को संरचना के लिए कैसे प्राप्त कर सकता हूं जिसे यूजर स्पेस से पारित किया जाता है। मेरे शोध से seq_files कार्यान्वयन सूचक सामग्री से निपटने के बिना संरचनाओं के माध्यम से आसानी से पुनरारंभ करने के लिए seq फ़ाइलों का उपयोग करता है। struct sCmd_t {u32 लंबाई; यू 8 प्रकार; इंट नंबर; U16 आदेश; यू 8 संस्करण; } SCmd_t ctrl_file = create_proc_read_entry ("ctrl", 0666, PROC_FILE, read_proc_ctrl, NULL); Ctrl_file- & gt; write_proc = write_proc_ctrl; स्थैतिक इं write_proc_ctrl (स्ट्रेट फ़ाइल * filp, const...

core data - Document-Based App with Swift -

Can someone ask me to fix Apple Template in Xcode 6 for a document-based app with Swift I have tried with core data and without it (prefer), instead of the regular Xibs instead of the storyboard, "[document] type here [document] outside of the box template] is not in any NSDocumentClass. It is very disappointing when They leave a new language with such templates Which do not work. I can not post screenshots of this because NDA, Lake And for the things that have changed, these steps have been taken: Inside the xodod, click on your application in the explorer pane Your application under the target Click the info tab on the top toolbar Expand document type Name - Document type (your choice) Class - MyApp.MyDoc & lt; --- Extension - mydoc (your choice) icon - Your icon image file Identifier - For documents type, some unique identifiers, usually use com.companyname.extension Role - Editor (your choice) Mime type - None (if you are...

node.js - Express req.body undefined, routes after bodyParser doesn't work -

I do not know there are so many flaws and problems for basic tasks in programming. This is my code, it does not matter that I refuse to work on how many unique positional changes I make. var express = require ('express'); Var path = requirement ('path'); Var favicon = is required ('static-favicon'); Var Loger = Required ('Morgan'); Var requires cookieParser = ('cookie-parser'); Var bodyParser = is required ('body-parser'); Var app = express (); Var store = is required ('./pac / store'); App.use (favicon ()); App.use (logger ('god')); App.use (bodyParser.json ()); App.use (bodyParser.urlencoded ()); App.use (cookieParser ()); App.use (Required ('stylus'). Middleware (path.joined (__deirnam, 'public')); App Use (express.static (path.join (__derename, 'public')); // View engine setup app.set ('views', path.join (__dirname, 'views')); App.set ('visual engine', 'z')...

How To Change Background Opacity of Charts inside Google Sheets? -

मैं Google शीट्स में पारदर्शीता या Google चार्ट्स की अस्पष्टता निर्धारित करना चाहता हूँ (बस माइक्रोसॉफ्ट एक्सेल में - छवि सेट करें पाठ के पीछे तो पाठ अभी भी पठनीय है) हालांकि ऐसा लगता है कि फ़ंक्शन काम नहीं कर रहा है। मेरे दस्तावेज़ का उदाहरण। मैंने ऐप स्क्रिप्ट setBackgroundColor (cssValue) के साथ #ffffff के साथ भी कोशिश की है लेकिन नहीं किसी भी समाधान की सराहना की जाएगी। में प्रलेखन, एक मौजूदा चार्ट को संशोधित करने का एक उदाहरण है: var sheet = SpreadsheetApp.getActiveSheet (); Var श्रेणी = शीट.गेटरेन्ज ("ए 2: बी 8") var चार्ट = sheet.getCharts () [0]; Chart = chart.modify () .addRange (श्रेणी) .setOption ('title', 'updated!') .setOption ('animation.duration', 500) .setPosition (2,2,0,0) .build () ; sheet.updateChart (चार्ट); इससे पहले कि आप चार्ट को बदल सकें, आपको इसे संदर्भ प्राप्त करने की आवश्यकता है। आपकी शीट में केवल एक चार्ट है, इसलिए यह सूचकांक होना चाहिए: var chart = sheet.getCharts () [0]; फ़ंक्शन को ट...

java - Add Database to Android Application -

I'm new to Android app development and programming. To be accurate, I'm experiencing 1 day in this domain! I have programmed a user registration page for my Android app. I do not know how to save credentials entered by a user in a database. I know more about creating a database in SQL that we can use SQLlite in Android app development. Where should we write the SQL code and where should it be avoided and how can we add that app to the Android app? I have main activity. Is it the right place to start creating Java file databases? I'm sorry, I'm really dumb in this matter. Please advise. check it out. Such a small data should be stored in shared preferences. , as you are new to technology, try to solve the problem before asking such questions. Google is your tool.

How to Increase Transaction per second(TPS) in cassandra by using DataStax java Driver -

सेटअप: 2 नोड Cassandra 2.0 समस्या I भार संतुलन के लिए डेटास्टैक्स जावा चालक का उपयोग कर रहा हूँ। मैं और जेएमटर द्वारा 50000+ धागा भार उत्पन्न करना बहुत कम टीपीएस प्राप्त करना। लगभग 1700 टीपीएस के पास मैंने किसी भी प्रदर्शन संबंधी पैरामीटर को नहीं बदला है cassandra.yaml में कोई भी सुझाव दे सकता है कि संतोषजनक टीपीएस प्राप्त करने के लिए मुझे किस पैरामीटर का उपयोग करना चाहिए। मैं झुंड ज्यादातर लोगों को कैसांद्रा के साथ 10000+ टीपीएस मिल रही है। अग्रिम धन्यवाद टीपीएस से आप प्रति सेकंड या सिर्फ ऑपरेशन प्रति सेकंड लिगथवेट ट्रांजैक्शन का मतलब है। यदि यह ऑपरेशन प्रति सेकंड है पता लगाएँ कि आपकी मशीन पर आपकी डिस्क की संख्या में आपके नेटवर्क बैंडविड्थ स्पीड की क्या संभावना है प्रश्नों को चलाने और रन टाइम में यह पता चलता है कि बाधा क्या है, बाधाओं को समझने के लिए कॉममेट हैं * नेटवर्क: dstat 2 सीपीयू + डिस्क: iostat -c -xc 3 सीपीयू कोर: mpstat -P ALL 1 memeory: मुक्त - जीसी: जेस्टैट -जीसी पीड 2 इस बाधा को याद रखना सर्वर पर या आपके क्लाइंट साइड पर हो...

node.js - What is the definition for "native" in Nodejs? -

Recently, I learned the phrase "basic module", I do not know what the original means in programming. As far as I know, if a module compiled from C / C ++, this is the original, am I right on this? Can you tell me more about this? Yes, you are right for more detailed information about Aidian you can find at the official doctor :

php - Sql_Srv returns just the first row -

जबकि ($ tab = $ sMssql- & gt; fetchAssoc ("SELECT * FROM [टैब]")) { गूंज "& lt; पूर्व & gt;"; var_dump ($ टैब); गूंज "& lt; / pre & gt;"; } यह कोड केवल और फिर से पहली पंक्ति देता है ... लेकिन मुझे सभी पंक्तियों के अंदर एक सरणी चाहिए। fetchAssoc कोड: सार्वजनिक फ़ंक्शन fetchAssoc ($ mQuery) {वापसी sqlsrv_fetch_array (sqlsrv_query ($ this- & gt; mSqlConnection, $ mQuery), SQLSRV_FETCH_ASSOC); } फ़ंक्शन fetchAssoc () में, sqlsrv_fetch_array () को केवल एक बार कहा जाता है। आपके कोड में आपके पास क्वेरी निष्पादन के लिए लूप है जो गलत है। फिर से दोबारा लूप करते हुए और fetchAssoc () के अंदर लूप डालते हैं। जैसे: $ mQuery = $ sMssql- & gt; fetchAssoc ("SELECT * FROM [टैब]") ; $ परिणाम = sqlsrv_query ($ this- & gt; mSqlConnection, $ mQuery); जबकि ($ टैब = sqlsrv_fetch_array ($ परिणाम, SQLSRV_FETCH_ASSOC)) {गूंजती "पूर्व

sql - MYSQL Update find foreign key that match a condition and replace them foreign key that matches a different condition -

मेरे पास एक टेबल है TAB_A id | COUNTRY_ID | वैल 1 | 1 | Val_x 2 | 1 | Val_y 3 | 1 | Val_z 4 | 2 | Val_x 5 | 2 | Val_y 6 | 2 | val_z TAB_A जहां Ta_A.VAL = 'val_x' और Table_A.COUNTRY_ID = Table_B.COUNTRY_ID से आईडी Tab_B.id_tab_A वर्तमान में स्टोर किया जाता है। उदाहरण के लिए TAB_B (1,1,1) का प्रतिनिधित्व TABLE_B (id = 1) = & gt; TABLE_A (1,1, वैल_एक्स) ओल्ड TAB_B आईडी | COUNTRY_ID | Id_tab_A 1 | 1 | 1 2 | 2 | 4 मैं प्रतिस्थापित करना चाहते हैं सभी TAB_B.id_val_A ऐसी है कि: अगर TAB_B.id_val_A TAB_A.VAL = 'val_x' के लिए आईडी के बराबर है यह TAB_A.VAL = 'val_x' के लिए आईडी बनता है और पाठ्यक्रम COUNTRY_ID को भी बराबर होना चाहिए NEW TAB_B आईडी | COUNTRY_ID | Id_tab_A 1 | 1 | 2 2 | 2 | 5 मैं 2 प्रश्नों का उपयोग नहीं कर सकता क्योंकि COUNTRY_ID निश्चित नहीं हैं (एक ही अन्य मामले में 3,4,5 आदि हो सकते हैं): अद्यतन TAB_B टीबी, TAB_A टा सेट tb.id_tab_A = (ta.id टा से का चयन करें जहां ta.COUNTRY_ID = 1 और tb.VAL = 'val_y') जहां ta....

Python - short syntax and list comprehension and iterations -

I'm a big fan of understanding Python's list and I think it's really easy to read from running regularly . I am writing a constructor which has an alternative code that can be used to set ** kwargs square etters, and I understand it as a list I want to write, but it seems there is no list which does not actually do anything to consider: class book (object): attrs = ('id', 'title ',' Authors', ...) def __init __ (self, * args, ** kwargs): [orator (self, atri, etter) If kwargs.get (attr)] however the syntax looks good, I think it is bad coding because you have [none , None, no one ...] , they are just sitting there and yes I know it is collected after the constructor is run, but I Still do not like it. If I have read someone's code, then I will be uncompressed. Is there a better way to do such a recursive list as clear as a list but do not make useless objects Edit: To use loop class book (object): Attrs = ('id',...

java - Excuting an operation automatically in database -

I have a form with resources, when one click is done, the blocked button at the end of the form, Along with DB updates the "blocked" in the form of a blocked timing and the present time then it waits for approval .... I need that the blocked position has not been changed to "Approved" within 10 days of blocked tiling Is it okay for it to be "approved" At the same time, when 10 now I have 2 options: 1) Is it possible to write DB trigger for this, if so how? How the trigger will be called 2) I am using struts2 so how can we write an action that is called on login / server startup and checks status and takes appropriate action . Please suggest. Write the code to trigger the debrez. Corn tab -> Unix, window scheduler - & gt; Windows.

validation - Is a valid xml node name? -

I read millions of questions about the rules of naming the XML node. But none of them answers the simple question: Can the node name begin with the colon? Example: & lt ;: nodename & gt; Internal text & lt; /: Nodename & gt; This can be associated with blank namespace (global namespace). But are not sure whether this is valid, and what is the likely use of such a name. No real use of the PS code, or to use ideas, just the purpose of curiosity and self-education PS 2. Some research links: This one: It says - Namesh place [xml name] in xml recommendation The meaning specifies the colon character named I, therefore, the authors should not use the colon in the XML names except namespace purposes, but the XML processor should accept the colon as a name. There is still no response ... This is XML 1.0 and XML 1.1 is well-formed according to the specifications, but not according to the namespace specification Most people (and software) need to m...

swing - Java removing and adding back MouseListener later -

मेरे पास 4 JLabel s है पहले क्लिक पर: मैंने पृष्ठभूमि रंग को लाल और हटा दिया JLabel 's MouseListener है कि मैंने क्लिक किया है। दूसरे क्लिक पर: मैं पृष्ठभूमि का रंग हरे रंग में बदलता हूं, लेकिन JLabel जो मैंने पहले क्लिक किया था उसे लाल से हरे रंग में नहीं बदलना चाहिए क्योंकि मैंने पहले ही MouseListener को हटा दिया था। तीसरे क्लिक पर: मैं MouseListener को JLabel MouseListener में वापस जोड़ना चाहता हूं, जिसे पहले क्लिक में हटा दिया गया है और पृष्ठभूमि का रंग काला करने के लिए बदलना है I लेकिन यकीन है कि कैसे मैं वापस जोड़ सकते हैं नहीं। मैं addMouseListener मेरी addbackMouseListener (JLabel लेबल) में विधि का उपयोग करने की कोशिश की, लेकिन यह है कि मैं में पारित नहीं हो सकता लगता है "इस" पैरामीटर में और मैं नहीं जानता कि addMouseListener के पैरामीटर में क्या पारित करने के लिए। सार्वजनिक शून्य addbackMouseListener (JLabel लेबल) {ला bel.addMouseListener (this); & Lt; - इस में नहीं जा सकता, मैं क्या कर सकता हूं? } कोड: ...

c# - How to know if a website is correctly working or not? -

You have completed yet to develop a WebAPI. Now, one client is making the application for the same. To do this, I had created a WPF client application, for which the user needs to enter the original URI of the service. This is, http: // localhost: 65620 / virtual directoryname (not just the original url to the full URL) Now, How to check if the URL is correct or is not using the client application? 1 Edit: HTTP client can be used : But I'm asking about validating the original URL alone. Any ideas how to do that? (If I enter the original address in the browser, then it shows the contents of the directory. Then I think the installation is correct (at this time I'm not calling any webpage). Edit 2: URL is correct or not : I have to ensure that the service is properly installed in the IIS and it is up And any C lient that is already running can reach its statutes. Then you have a web API that can not be modified, and the client application will ...

xcode6 - How to add a image in background in my view in swift? -

I am trying to add an image background to my view, the controller of my SWIFT app, but the color is not available with the color. Are there other forms for it or is it necessary to add it to an image? I am trying to create it with this code: imageName = "image.png" give self.view background color = UIColor.colorWithPatternImage (UIImage (Named: imageName)) Thanks! view.backgroundColor = UIColor (pattern image: UIImage (name: imageName)) / html>

c# - Sent JSON parameter is null in WCF Service method -

I want to update a list of confirmations from a server and I use AJAX using jQuery. The problem is that I send data (seen in Fidel's) but the service does not get that list. The parameters of the web method are a string and a list, the token is OK, but the list is empty Ajax call:. $ ajax ({url :. "http: // localhost: 8000 / teamplay / externalclientrestservice.? SVC / UpdateConfirmationListforAttender accessToken =" + accessToken, type: "POST", contentType: " application / json ", datatype:" json ", processData: false, data: '{" accessToken ":' + JSON.stringify (accessToken) + '," list ":' + JSON.stringify (confirmationList) + '}' }) to (function (ReceivedList) {alert ( "a ?? nderungen wurden erfolgreich übernommen"); return receivedList;}) failed (.. function () {alert ( "Attvis It Caf Gegangen. span spotters Irnet Warchesn.") ;}); WebMethod: [OperationContr...

git - mac bundle install for jekyll error occurs -

This event when I install bundle on Mac Gems :: Extensions: : Builder: Error: Mani Failed to Create Country Extension Building Nozzie using the /usr/local/Cellar/ruby/2.1.2_2/bin/ruby-r/siteconf20140725-85993-z0wc6r.rb extconf.rb packaging library ----- libiconv is unavailable. For help setting up dependencies, visit http://nokogiri.org/tutorials/installing_nokogiri.html. ----- *** extconf.rb Failed *** Could not make Makefile due to some reason, perhaps lacking necessary libraries and / You may need configuration options. Provided configuration options: with - opt-dir -with-opt-include - without-opt-in = $ { Opt -dir} / include --with-opt-lib -without-opt-lib = $ {opt-dir} / lib - with-make-handling - without-make-go -srcdir = --curdir --ruby = / usr / local / cellar / ruby ​​/ 2.1.2_2 / bin / ruby ​​--help --clean --use-system-library-enable-static -disable-static -with - Include Zlib-dir --without-zlib-dir --with-zlib- - without-zlib- include = $ {zlib-dir} / include --...

What is SRU in solaris? How to find the SRU number? -

मैंने pkg list पूरे कमांड का इस्तेमाल किया है, और मुझे version column इस प्रकार है: 0.5.11-0.175.1.0.0.24.2 । इस से एसआरयू कैसे खोजा जा सकता है? क्या हम एक विशेष रूप से डाउनग्रेड / अपग्रेड कर सकते हैं एसआरयू? यदि आप 'pkg info whole' चलाते हैं तो यह मानव पठनीय प्रारूप में एसआरयू नाम भी दिखाएगा (यदि आपने समर्थन रेपो से स्थापित किया है - अन्यथा यह रिलीज की जानकारी दिखाता है) 0.175.1.0.0.24.2 में चौथा अंक एसआरयू नंबर है ऊपर दिए गए उदाहरण में यह आधार सोलारिस 11.1 रिलीज है - कोई एसआरयू अभी तक स्थापित नहीं हुआ है। यदि किसी एसआरयू को ऊपर स्थापित किया गया था, तो आपको 0.5.11-0.175.1.21.4.1 (उर्फ ऑरेकल सोलारिस 11.1 एसआरयू 21.4.1) जैसे संस्करण मिलेगा आप आसानी से एक एसआरयू पर अपग्रेड कर सकते हैं लेकिन आप डाउनग्रेड नहीं कर सकते हैं जब तक आपके पास एक पुराने बूट एन्वायरनमेंट (बीई) नहीं है जिस पर आप चाहते हैं SRU को अपग्रेड करना है।

html - Drop Down menu disappears when mouse hover -

I have created a test page for my site dropdown menu Here whenever I hover the mouse over it disappears. I have seen and tried various solutions mentioned in the forum, but no one does help in fixing it. Please help, I want to solve it. Try changing / * Display dropdown on hover * / Nav # nav-main ul li: hover +. Hidden. Hidden: hover {display: block; } / * Display the dropdown on the hover / nav # nav-main ul li: Hover UL {display: block; }

javascript - Why old prototype properties are still available after replacing the original prototype object -

I know that prototype properties are dynamic in nature and only those references have been passed by the object. Whenever you change them, show the change result at runtime, but in the case of redefining the prototype object, the object created before redefining the prototype still indicates the old prototype object. Take this example for example: var person = function (firstName, lastName) {this.firstName = firstName; This.lastName = lastName; } Person.prototype.getFullName = function () {return this.firstName + "" + this.lastName; } Var Student = New Person ("Ankur", "Agarwal"); Student.getFullName () // Returns "Ankur Agarwal" Person.prototype.getFullName = function () {return "I am changing"; } Student.getFullName () // Returns "I'm changing" I understand even the scenario. But if I redefine the prototype again, then the student does not point to the new prototype. It still indicates the old prototype stud...

ios - UILocalNofication firing at specific time all week except 1 day -

I have local notifications in my app to get firing time from DatePicker and I have specific time (which I can take from UIPickerView ) And want to do LocalNotification to set fire on all weekends except Saturdays. EDIT UIDAT picture * picker = [[UIDaptaker Elok] Init]; [Picker settag: kDatePickerTag]; For (Int i = 0; I I still have this code, but now I have to set the firing time and I do not know how merge between my picker.date gives me TIME and weedDay Which gives me DAY. Do I have any idea if both have the same NSDate object? If you want to leave on Saturday, you must set a notification for each other for another 6 days , And repeat it again. NSCalendar * gregorianCalendar = [[NSCalendar alloc] initWithCalendarIdentifier: NSGregorianCalendar]; (Intuit I = 0; I & lt; 7; i ++) {NSDAT * ScheduleData = [First Scheduled DateBending TimeInternval: (i * 24.0f * 3600.0f)]; NSDateComponents * componentsForEachDay = [Gregorian calendar component: NSWeekdayCalendarU...

Bootstrap 3 navbar-right not collapsing at tablet width? -

I have a basic Bootstrap 3 navbar with a nine-right dropdown, but when I get it from the big desktop to the tablet size Do I fall down in the fall, it jumps under the main menu? I think this is to change the media query section, but I'm not sure why I need to change. Can anyone help? > Replacing collapsed mobile navbar breakpoints When the viewport is compressed compared to @ grid-float-breakpoint, its vertical mobile view has dropped in, and its horizontal non-web site is low At low @ grid-float-breakpoint width -Mobile view. Adjust this variable in lower sources when Navbar falls / spreads. The default value is 768 pixels (smallest "small" or "tablet" screen). See So if you want to collapse the navigation bar on the big screen, whatever is appropriate to the value of the @grid-float-breakpoint, Maybe 900 px or less @ screen-MD-min will have to be changed.

Sitecore - Restrict item by Data Template Type on a Field -

I would like to restrict the data types of those items, which a user can select on the field. I can do it with the inclusion of tree nodes in the source of the field, but it seems a little open for abuse - says that if a developer accidentally takes an item of the wrong type under this node then the system falls down I'm probably worried about this, but in other CMS I have the ability to restrict the type of item that the user can choose. What is the best way to go about this. for field types traelist or multilist You can set additional parameters such as IncludeTemplatesForSelection , DataSource = / sitecore / content / home / employees with parameters of the source field You can. ; TemplateForce Selection = Employee Here is a post explained and here is another name.

c# - Resize width on upload and keep the height ratio proportional -

I am using the following system drawing code to resize the images on the upload. The problem is that the landscape or picture diagrams get distorted, because the santum drawing is making them class. Is it possible to resize only the width and keep the height proportional? And how? Thanks http posted file imagefile = upload images.posted file; System.Drawing.Image ri = System.Drawing.Image.FromStream (imageFile.InputStream); Ri = resizebitmap ((bitmap) ri, 200, 200); Private bitmap resizebitmap (bitmap b, int nwd, inthe anhete) {bitmap result = new bitmap (nwd, hight); Using (Graphics G = Graphics.frames ((System.Drawing.Image) result) g.DrawImage (b, 0, 0, nWidth, nHeight); Return result; } If you want to do, then a new bitmap is 200 pixels wide and made Has increased in proportion to the height ratio, you can do this: calculate the private static integerHighthought (int olderview, int olderhite, int nudity) {If (oldwyths Or would you like to create a 200x200 bitmap ...

javascript - simple if statement with if -

I am trying to add a word to a string if it is not there and I have a string with a Changed the array to (A) and used push to add new word but the new word is being added (an.length - 1) bar. How can I fix this? var ime = "Open it now" var a = ime.split ('') var ene = "itt" (var i = 0; i You should use indexOf and string insertion ime = ime.indexOf (ene) === -1? Ime + '' + ene: ime

eclipse - Invalid Key hash with Facebook Android SDK -

I am trying to use Facebook Android SDK to develop a simple app with the Facebook login button. But I'm having trouble with the main margins. I've created both a debug key and a release key: Debug key: keytool -exportcert -alias androiddebugkey -keystore ~ ​​/ .android / debug Keystore | Openssl sha1-binary | Openssl base64 Release key: keytool -exportcert -alias & lt; RELEASE_KEY_ALIAS & gt; -Kistore & lt; RELEASE_KEY_PATH & gt; | Openssl sha1-binary | Openssl base64 And then I have copied this major hash in the Facebook Developers page. When I export the APK and copy it to the device it works well, but when I try to install the app from Eclipse (as an Android application / run as debug) this work does not do. It seems that the app is using a key key hash that I made with the keyboard. Anyone know how to solve this problem? Try to get the hashik from here Public static void Show HSK (Reference Reference) {Try {PackageInfo info = contex...

jquery - Accordion inside iframe -

I have a scenario where my IFrame is dynamically loaded by the onclick function. I'm trying to use AdWords in the Iframe but accordion () function is not working. Below is my jquery code $ (function () {$ ("#accordion"). Accordion ();}); Is there a solution? Iframe code: & lt;% @ page language = "java" contentType = "text / html; charset = ISO-885 9-1" page encoding = "ISO-8859-1"%> & Lt;% @ taglib prefix = "c" yur = "http://java.sun.com/jsp/jstl/core"% & gt; & Lt ;! DOCTYPE HTML PUBLIC "- // W3C // DTD HTML 4.01 Transcription // N" "http://www.w3.org/TR/html4/loose.dtd"> & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = ISO-885 9-1" & gt; & Lt; Script & gt; $ (Function () {$ ("#Erdian") .Ardian ();}); & Lt; / Script & gt; & Lt; / He...

algorithm - iterating through array of nested objects with javascript/lodash -

I have an array of objects representing the nested navigation list. [{Name: 'one', link: 'blah / blah', pages: [[name: 'a' link: 'blah / blah', pages: []}, {Name: 'A B' link: 'Blah / Blah', Page: []}, {Name: 'A' link: Faucet, Page: [{Name: 'A CI' link: 'Blah / Blah', Page: []}]}]}] The first level of objects can be a link and a page in which the nested object will have a link or a page. I can not accept the limit of nesting depth. I need an object for each state in which its name, its link if it exists and all of its parents include my current solution does not account for more than 3 levels of nesting and for each layer Adding support is laborious. I need to be able to search the array as a result of that object, it makes a difference for the solution. I need a Javascript solution, but also (and would like to) use the work contained in the junk library var arrPages = [{name: "post-text...

c++ - Why is it impossible to get a pointer to a protected method of the base class? -

इस सवाल का पहले से ही एक उत्तर है: 6 जवाब वर्ग ए { सार्वजनिक: ए () {ऑटो टीएमपी = & amp; ए :: एफू;} संरक्षित: शून्य foo () {}}; वर्ग बी: सार्वजनिक ए {सार्वजनिक: बी () {ऑटो टीएमपी = & amp; ए :: एफू;}}; कक्षा ए कोई समस्या नहीं संकलित करता है क्लास बी एक संकलन त्रुटि उत्पन्न करती है: 'ए :: एफू': वर्ग 'ए' में घोषित संरक्षित सदस्य तक नहीं पहुंच सकता है ऐसा क्यों है, तर्क क्या है? क्या इसमें कोई रास्ता नहीं है (यदि मुझे कॉलबैक, std :: function आदि के लिए उस सूचक की आवश्यकता है?) यदि आप a :: foo पर कोई संकेतक लेने में सक्षम थे, तो आप इसका उपयोग किसी भी वस्तु पर foo करने के लिए कर सकते हैं प्रकार ए या प्रकार सी से व्युत्पन्न ए : वर्ग बी: सार्वजनिक ए {सार्वजनिक: रहित एक्सएक्स (ए ए) {ऑटो टीएमपी = & amp; ए :: एफू; । एक * tmp (); } // अवैध} इसके बजाय, B :: foo पर एक सूचक लें; यह ठीक है क्योंकि आप इसे केवल B , अपने खुद के वर्ग की वस्तुओं पर उपयोग कर सकते हैं।

java - Custom listview search works successfully but doesnt show new results on pressing backspace in the edittext -

I am using a custom adapter for a list. There is a search bar in it. Code: txtsearcher.addTextChangedListener (New TextWater () {@Override is testwired on public Zero (parameter, s, int int, int count) {StoreDetails .this.cdadp.getFilter () filter (s.toString ());} @ Override public lesson before text (varies), intersection, int start, int count, int after) {// TODO automatically generated method Stub} @TextChanged @ edited override public zero too auto-generated mass stub}}); Adapter class: public custom details adapter (activity reference, arreist & lt; store_data> store_list, double current_litidity, double current_line) {this .context = context; Details_inflate = LayoutInflater.from (reference); This.store_list = store_list; This.current_latitude = current_latitude; This.current_longitude = current_longitude; Temp_list = store_list; } Public Category filter_ here {// ArrayList & lt; String & gt; Name = New Array's & lt; String & gt; (); // ...

php - Using password as part of encryption key in Mobile - Server communication -

I am currently working on a mobile app that has a web service developed in PHP. One thing we want to ensure is that the user data is safe in every way possible After careful evaluation, we have decided to use all the things related to encryption. This is in addition to the HTTPS connection. The current process is of the following type (login example): The library on iOS uses a key to encrypt the password before sending it to the server. The server then stores it's encrypted password on the database. While re-ethnoboting, the app sends back the password (again encrypted with the steady key) and the server decrypts it (this means the server also has an encryption key), login Confirms and sends back the login key (encrypted with the same static key) to the client. The request for each request depends on the encrypted login and username for authentication of the validity of the username and login session. I believe the above system is inaccurate due to the STATIC encr...