Posts

Showing posts from July, 2013

jquery - Disable y-scrolling? -

I have an issue. I have overflow hidden, but still is capable of scrolling with my MU How do I disable it? I have a video as a background. HTML Code: & lt; Video src = "background / background1.mp4" autoplay = "autoplay" loop = "loop" id = "background" & gt; & Lt; / Video & gt; CSS: body {width: 100%; Minimum-width: 720px; Font size: 13.5px; Margin: 0 auto; Font-family: aerial, helvetica, sense-serif; Background size: cover; Background repeat: do not repeat; Background attachment: fixed; Font-size: 100%; Hidden flurry; } #Background {Overflow: Hidden; Width: 100%; Status: Relative; Minimum width: 320px; Minimum height: 180px; } Overflow: Hidden; Works for x-scrolling, and both X and Y scroll-bars are gone, yet I'am is still able to scroll with my mouse wheel. Try putting it in your CSS file: html {Width: 100%; Height: 100%; Hidden flurry; } Edit your body to include: Body {width: 100%; Height: 1...

Xpages send attachment from a document to another -

I have a document that is coming to the scanner, the scanner sends an email to my database and from one view I Access the document and view attachments and topics. Is there a way in which I can use attachments and put it in another document? I have been able to send the subject rich text using session session, but it is not working with attachments. I have a file downloader in the destination document. Which would be the best way to do this? Notes ReachTest Itam's appenditim () method: Create a new note in your new document Create your newly created original notes rich text e-mail Example: var doc originating: notes document =. ..; Var docNew: Notes document = database.creditable document (); DocNew.replaceItemValue ("Form", "Test"); Var Bodies: NotchTestItem = DoctorOrige.Trastemt ("Body"); Var Bodinewin: Notes Rich TestItem = docNew.createRichTextItem ("body"); BodyNew.appendRTItem (bodyOrig); DocNew.save (); ...

javascript - Getting the name of a script that resize images to its container + other features -

I came to a website that I liked for its features. I would like to develop something that will be handled by any WordPress CMS. I would like to know if I can buy plug-ins / scripts that already take everything: Create a grid builder that will define the size of each item Give permission (Width and height) + order item Ability to add a background image inside a block The background image is to increase the proportion of its container size has the ability to use the CSS class to update the layout (if necessary) Add the ability to apply different images on hover + caption + style + text + links, etc. Welcome any link / example / plug-in Thank you For this you are searching for it in Germany: "Egg Laying, Sowing wool to stand by milk "It means more: something like this does not exist. But you can use the hard part to achieve and add some very easy tasks: & lt; Div class = "gridster" & gt; & Lt; Ul & gt; & Lt; Li data-lin...

error reallocating 2d array using realloc in c -

I am getting an error in a huge application, when I try to re-specify the 2d int array. While trying to reduce the problem, I only prepared a small code with a reshuffle error: a.out: malloc.c: 3574: mremap_chunk: objection ((size + Offset) & amp; (mp_.pagesize-1)) == 0 'Failed Aborted. The relevant code: int main () {int ** am = null, size = 0, ans = 0, i; Four ** name = null; While (ans! = 7) {printf ("\ n \ n \ t1. Add a point \ n \ n \ t2.Exit \ n \ n \ t \ tFor your choice:"); Scanf ("% d", & ans); Switch (AN) {Case 1: name = reel (name, (size + 1) * size (four *)); Name [size] = realloc (name [size], 100 * sizeof (four)); Printf ("Enter the name of the point:"); Scanf ("% s", name [size]); Am = realloc (am, (size + 1) * sizeof (int *)); [Size] am = realloc (am [shape], (size +1) * sizeof (int)); `` If (size> 0 & amp; amp; amp; and == faucet) {printf ("Error: Can not allocate memory!"); break; } Fo...

python - Encode/decode C-string literals -

I have a text file that behaves like a C string. For example: some = "some text \ nin two lines \ tand tab"; SomethingElse = "\" quote \ "" with some text; "; Getting things between quotes is not a problem. The problem is that later I am processing this string and it turns out that the slash is exiting. I want to decode these stars, execute them, then encrypt them back into the C-string literal. Then from that raw input some text \\ line wrap \ n and \ "quotation \" : line : : I have found for processing ( string_escape ), what is required for me, but since I'm processing the c-string, it is useless. Tried to find another codec but there is no luck yet.

c# - WPF / local SQL Server CE 4.0 / Underling provider failed on open -

मेरे पास WPF अनुप्रयोग है जो स्थानीय SQL सर्वर संकुचित संस्करण 4.0 डेटाबेस के साथ EF6 का उपयोग कर रहा है। एसक्यूएल सर्वर कॉम्पैक्ट एडिशन के लिए निजी परिनियोजन का उपयोग कर रहा हूँ। आवेदन कार्यस्थानों के 99% पर बिना किसी त्रुटि के काम करता है, लेकिन मैं एक एकल पर एक समस्या का सामना कर रहा हूं। जब मैं एप्लिकेशन लॉन्च करता हूं तो मुझे नीचे त्रुटि के साथ मेसेजबोक प्राप्त होता है: "अंडरलिंग प्रदाता खुले में विफल रहा।" सिस्टम द्वारा त्रुटि (जैसे मेरे पास मेरे संदेश में कोई संदेशबॉक्स नहीं है) जब मैं इकाई फ़्रेमवर्क डेटा संदर्भ को प्रारंभ करने का प्रयास करता हूं मैंने पाया है कि जब मैं अनुप्रयोग "एक प्रशासक के रूप में चलाता हूँ" तब समस्या नहीं होती है एक और बात मैंने देखा है कि जब मैं उस लैपटॉप पर एक व्यवस्थापक के रूप में चला जाता हूं तो लोड करने में लगभग मिनट लगता है। मुझे लगता है कि वातावरण के बीच अंतर है कि नहीं काम कर रहे लैपटॉप पर SQL सर्वर एक्सप्रेस 2012 स्थापित है। क्या आपको लगता है कि मेरे आवेदन पर इसका कोई प्रभाव हो सकता है? कुछ DLL संघर्ष हो सक...

Multiple extensions in one application -

I have added many extensions (same type) to my application, but I can not use them from the host-application because Host - App view only one extension This extension name is the same as the app name I have the next question: is it possible to show and use all the underlying extensions? PS: Sorry for my bad English. I did not try multiple photo editing extensions within an app, but in the case of custom keyboard extensions I need to Uninstall My Hosting App or go to the iOS Simulator / Reset Content and Settings ... menu in the simulator, then I was able to see all of my extensions, But this is the only analogy cut that I will ask I can apply on ...

sql - subquery in oracle 10g -

I have a table in the Oracle 10G database with the following columns sdate sid Event 31 / 10/2013 20:20:20 1a 31/10/2013 20:20:21 1b 31/10/2013 20:20:22 1C 31/10/2013 20:41:04 2A31 / 10/2013 20:41:10 2b 31/10/2013 20:42:20 2C 31/10/2013 20:42:49 2C 31/10/2013 21:20:50 3A 31/10 / 2013 21: 21: 33 3b 31/10/2013 21:23:00 3C 31/10/2013 21:08:20 4b 31/10/2013 21:11:20 4c 31/10/2013 21:17: 20 4C 31/10/2013 22:20:20 5C 31/10/2013 22:22:22 5D sdate is the date of this record, sid is like a session ID, a unique occurrence within the event session Is A, B, C etc. A session should always start with an event of event 'A'. Other events like B, C can repeat. Can someone help me in writing a question which will give me a list of all the SIDs, which begins with any other incident other than 'A', for example sid 4 and 5 The tese sessions begin with B and C. Update: The actual events in my table are brief events in A, B, C, a long string You can use analytical...

c# - EF6: ObjectContext.ExecuteStoreQuery returns empty List -

मेरे पास निम्न स्थिति है: डेटाबेस में: संग्रहीत प्रक्रिया: gp_get_location मेरे प्रोजेक्ट (ईएफ 6) में मेरे पास एक DbContext ऑब्जेक्ट है सार्वजनिक सूची & lt; स्थान & gt; GetLocation (इंट लोकेशन, इंटेग्रेट टॉप = 100) {var prmLocationID = नया एसक्यूएलपीैमेटर ("स्थान_आईडी", एसक्यूएलडीबीटीप। आईएनएसटी) {मूल्य = स्थानआईडी}; Var prmTop = नया SqlParameter ("शीर्ष", SqlDbType.Int) {मूल्य = शीर्ष}; ((IObjectContextAdapter) यह)। ऑब्जेक्ट कॉन्टेक्स। कॉमांडटाईमआउट = 300; Var क्वेरी = ((IObjectContextAdapter))। ओब्जेक्ट कॉन्टेक्स। एक्सेक्यूट स्टोरीकैक्शन & lt; स्थान & gt; (@ "एक्ज़ुट [डीबीओ]। [Gp_get_location] @location_id, @top", prmLocationID, PRMTop); वापसी क्वेरी। टूलिस्ट (); } इस तरह से प्रबंध स्टूडियो में संग्रहीत proc को निष्पादित करना: exec gp_get_location X, 100 - 100 देता है परिणाम निष्पाद gp_get_location Y, 100 - 100 परिणाम देता है संदर्भ फ़ंक्शन कार्यान्वित: GetLocation (एक्स, 100) // रिटर्न 100 परिणाम GetLocatio...

java - When does URL redirect happen? -

I have a URL that redirects to another, which redirects to another, and I want to get an end domain I am trying. I thought that there is a redirection when connecting, but running this code tells me otherwise: public static zero main (string [] args {system.out.println (resolveEndDomain ( "Http: //goo.gl/ELHEjl")); } Private Static String Prospect Endendeman (String Deep Link) {HTTPTo Connection Connection httpNo; Try {httpConnection = (HttpURLConnection) New URL (deep link). OpenConnection (); //httpConnection.getResponseCode (); } Hold (exception e) {e.printStackTrace (); } Return httpConnection.getURL (). GetHost (); } So, if I run it, it will give me just goo.gl . But if I dismiss the line to get the response code, then it runs and gets it from the end domain, and prints www.thomann.de . Even if it does not help using getHeaderFields () , getContent () or similar, but using connect I am not interested in those responses, so how can I do it and solve the r...

Bootstrap 3 responsive col in a row - how to? -

So I have a line inside 2 or 3 different colons. I want it to be on this site: There are 3 images with specially displayed text and when I reduce my browser, each one will be aligned with each other. How do I do this? I tried it like this but it will not work when I will minimize the browser because things will overlap because they are in a line & Lt; Div class = "container-dates-sub" & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "col-md-4" & gt; & Lt; Span class = "day-sub" & gt; 28 & lt; / Span & gt; & Lt; Span class = "month-sub" & gt; 09 & lt; / Span & gt; & Lt; Span class = "year-sub" & gt; 2015 & lt; / Span & gt; & Lt; / Div & gt; & Lt; Div class = "col-md-offset-2 col-md-4" & gt; & Lt; Span class = "day-sub" & gt; 30 & lt; / Span & gt; & Lt; Span class = "month-sub"...

websphere portal - can we consume WSRP portlet on J2EE application? -

How to create a client for portlet in the form of a webservice in WSRP i.e. the portlet is highlighted as a web service and we You can create a client for that service and enjoy it in the J2 EEE application. If your WSR version is 2.0 then service URL will be. With this URL you can create a client but it is not possible to use portlet content with the help of a generated client, because the web service WSDL specification and the WSRP specification are completely different. WSDL is in communication via SOAP where this presentation in WSRP is back. Alternatively, using POC (piece of content URL), we will receive nuclear feed by parsing, we can retrieve the portlet contents.

php - WooCommerce Cart page needs to update live without the Update Cart button -

After changing the quantity of the Wuyisers store, the cart page needs to be updated after I am working on it. Also, there can not currently be an updated cart button by default. Any ideas on how this could happen, possibly with AJAX or any other clue? Any help would be great! Currently the cart of our page is the same and it should be for example. What have I tried so far: Trying to search for update cart method is automatically unable to find what was changing cart subtotals . Also tried to use AJAX to re-print the page without reloading. This was just reloaded the whole page, but the volume was still the same This script we tried: without user clicking the "update cart" button. It is not AJAX, but it is an easy way to complete. Actually, if the user changes the amount of any item, then after the user exits the product-quantity TD, the car It automatically uses the .igigre () jQuery event handler to submit the form. Just use this jQuery code: ...

html - Stop 2 floating DIVS from collapsing while inside another -

It can be really simple but I can not wrap my head around it. css #nav_bar {max-width: 1000px; Height: 41px; Margin: 0 auto; Background color: yellow; } # Left {float: left; Minimum-width: 200px; Height: 41px; Background color: red; } #right (float: right; minimum-width: 500px; height: 41px; background color: black;} HTML & lt I will explain it in colors, in fact I want the red box to float the left and right box so that the float can be floated inside the yellow box. Even when I shorten the browser window everything collapses and the black box goes down to red. (Outside the yellow color). I know it looks very basic, but I should not fall even this, I will be happy if it does not move at all and the browser scrolls horizontally evenly As it normally becomes too small for window content You must have #nav_bar enough minimum width to accommodate two small elements: #nav_bar {... min-width: 700px; }

c# - Sharp SVN -- Merge not happening even with Merge Complete Status -

I am trying to merge the copy of the work and between a branch. In my case, we have 3 branches, 3 of them have the same solution, but there are parallel branches, so if anything changes in one branch, then it needs to be updated manually in other branches. For this scenario, I was trying to automate this process and took part in the intense SVN API. Mergers were initially getting better, but later it is showing "full merge" but nothing has actually been merged. Has anyone encountered this scenario before? I am using the code given below for the merge: SvnMergeArgs args = new SvnMergeArgs (); // add events. Args.Notify + = new event handler & lt; SvnNotifyEventArgs & gt; (Merge_Notify); Args.SvnError + = new event handler & lt; SvnErrorEventArgs & gt; (Merge_Error); Args.Cancel + = new event handler & lt; SvnCancelEventArgs & gt; (Merge_Cancel); Args.Conflict + = New EventHeadler & lt; SvnConflictEventArgs & gt; (Merge_Confilct); Ar...

javascript - How to call an action from PhantomJS, and do I have enough information already -

Consider a webpage that makes extensive use of JavaScript to display notifications. & lt; Li class = "phobar blubber-action blah foo" data-a = "afu" data-b = "bar" & gt; & Lt; / Li & gt; I am new to JavaScript, but I have identified the following in the JS source, which I consider to be relevant: events: {"This The code is nested in any other function: define ("some / path / whatever / see some functions", ["backbone", "jquery", "template .. / Templates / whatever HBS "," ./ LayerFunctionView "," utils "," timemanager "," modal manager "], function (a, b, c, d, e, f, g) {return a.view.extend (Click on {events: {"click .foobar-action" R: "somefunction"}, some function: function (a) {var c = b (a.currentTarget), e = cdita ("family"); g. pen (new d ({date: this dataet, collision: this "Anything...

ImageMagick create scaled thumbnail - command line -

I'm trying to get an image for me to convert image (command line Linux): User Upload Image I can convert this image to jpg Next step Eventually I have to add effects to the user controls without losing the ratio Now However Whatever I have to do, it takes an image of any size and increases it to 320 x 320, which makes it a black background - or ultimately a background of choice Good! Thanks for any advice / help - it's impossible to try to know what I need! Great examples under Convert --Finance JPEG: Size = 320x320 source_file.jpg \ -Theme '320x320 & gt;' \ -Background Black - Gravity Center - North 320x320 outfile.gif

Are there any XML Parsers for Ruby that fully support XPath 2.0? -

I need to see if the node exists inside a particular XML document or not. If the node does not exist, then I would like to use another value with XPath 1.0 included in it using the concat with XPath 2.0, I could get it to work with it If: (Boolean (preferred by path) node) then the path-to-favorite-node and default-to-other-node us This requires the use of XPath 2.0 which excludes nocogiri. Any help would be greatly appreciated.

node.js - Storing only necessary data in Sails Model -

I'm new to Pal and I'm facing a small problem with the model. I have defined a user model as follows: module.exports = {attributes: {firstName: {type: ' String '}, lastName: {type:' string '},, password: {type:' string '}, password salt: {type:' string '}, projects: {collection:' projectmember ', via:' user Id'}}}; I have another model called a plan whose user is in the form of a foreign key: module.exports = {planId: {Type: 'string'}, User id: {Model: 'user'}}; Now store all user data. Either way, I can restrict the planning model to keep only some personal information such as first name, last name, email, and project members rather than collecting other personal information. Like password, password salt etc? Thanks in advance The plan is not collecting data from the user, it only A reference to the user data found in the user model is stored.

php - wordpress losing the session on page refresh -

I am trying to develop a plugin for WordPress and I have a small problem with the session. I have created my login page for my plugin and when the user enters his username / password and presses the login button, then the AJAX request sends data to a function so that it can check whether the user details are correct or not. The AJAX caller function is stored in my index.php of my plugin. Using $ _SESSION in the function that Ajax is calling, I can print the variable that I want, which is set in another file. Then if the data is correct then the AJAX page reloads. When the page has been reloaded, then the session will not exist any more. Does anyone know how I can solve this problem? I implemented a plug-in on a localized server that was working fine, but when I was uploading the project to a subdomain on a server, it stopped working. AJAX code Success: function (data) {console.log (data); If (data! = '') {Var obj = $ .parseJSON (data); If (obj.status == "OK")...

mysql - PHP SQL query id from table with multiple values in rows -

I am assuming a value in which many values ​​need to be queried from the rows, which have a certain value. If "id" is equal to 999, then I use the SQL code below to get the values ​​of the column "group_id". In the "Xx_groupmap" table, ID 999 has been shown three times with different values, below is my table. table xx_groupmap ------------------- Id | Group_id ------------------- 999 | 2 999 7 99 9 8 code $ Query = "SELECT group_id to xx_groupmap WHERE id = '999'"; $ Db- & gt; SetQuery ($ query); $ Result = $ db- & gt; Load Object List (); So when I want to return three values ​​of ID 99 9, I use this code resonate $ t-> Group_id; But it only outputs a number. How can I create an array with three values ​​from id 999? Foreign currency, $ t is always updated, Only get $ t in an array. $ id = array (); Foreign Currency ($ result $ $) {$ id [] = $ t- & gt; Group_id; } Var_dump ($ ID);

html5 - How can i define the variable w inside the javascript code? -

मेरे पास यह कोड है: var w; अगर (window.eventListener) w.addEventListener ('लोड', startSlideShow, गलत); Else w.addEventListener ('onload', startSlideShow); पहले वहाँ कोई var नहीं था; इसलिए जब मैं पृष्ठ पर ब्राउज करता हूं और मैंने देखा है तो मैंने एक संदेश को लाल रंग में देखा था: अनक्यूट रेफरेंस: त्रुटि पंक्ति 181 पर परिभाषित नहीं है अब मैंने लाइन को जोड़ा डब्ल्यू; मैंने फिर से elemnt का निरीक्षण किया है और अब मैं लाल रंग में देख रहा हूँ: अनक्यूट टाइप एरर: अव्यवस्थित की 'addEventListener' संपत्ति नहीं पढ़ा सकता है इसलिए मुझे लगता है कि बस var w; सही तरीके से नहीं है तो मैं कैसे चर वाई परिभाषित करते हैं? var w = some_value_which_needs_to_be_an_object_with_an_addEventListener_method; चूंकि आप लोड इवेंट का उपयोग कर रहे हैं, जो कि एक छवि, एक आइफ्रेम या मुख्य विंडो वस्तु हो सकती है।

php - PDO exceptions being affected by ATTR_EMULATE_PREPARES with PostgreSQL -

I have more than the number of Params to'm trying to throw exception PDO when bound number of variable query. I preffer to use the native preparation statement If I prepare emulated ( PDO :: ATTR_EMULATE_PREPARES = & gt; The true ) Exception works fine, I tested using this code: $ Pdo-> Set Attribution (PDO :: ATTR_ERRMODE, PDO :: ERRMODE_EXCEPTION); $ Sql ​​= 'SELECT id my_table WHERE doc =: doc'; {$ Ps = $ Pdo-> Try ($ sql, array (PDO :: ATTR_EMULATE_PREPARES = & true;);); $ Result = $ Ps- & gt; Execute (array: (': Doctor' =>; '1234', ': name' = & gt; 'miles')); } Hold (PDO Exception $ E) {New option ('Question failed:'. $ E- & gt; GET message ()); } Throws: Fatal error: Exception with the message "Ignore exceptions' Query Failed: SQLSTATE [HY093]: Invalid parameter number of bound number variable does not match the number of tokens' but if I PDO :: ATTR_EMULATE_PREPARES ...

css - Using flex to center and stretch background -

Image
How do I focus this smiley on horizontally and vertically at the top of the image while 50% of its size container? Like: .test {display: flex; } .test .smile {background-image: url (https://rawgit.com/anonymous/9f37047667b06af42c3d/raw/65a00b0f38b05bb6c96fa827993dbae31fe391b3/test.svg); Repeat Background: No Repetition; Justification: center; Alignment-material: center; Flex-direction: column; Height: 50%; Width: 50%; } & lt; Div class = "test" & gt; & Lt; A & gt; & Lt; Img src = "http://lorempixel.com/400/400" & gt; & Lt; Span class = "smile" & gt; & Lt; / Span & gt; & Lt; / A & gt; & Lt; / Div & gt; Container height set But I'm only able to work Flexbox . Since your aligned image is set as a background image, there is no easy way to set the width and height. If it was an image, you would be able to easily widen 50% and the height will take care of yourself. .test {...

Wordpress redirects URL though it shouldn't -

When I'm using standard installation, but when I try to enable multizite, then everything If the WordPress works fine with installation, the URL is redirected. I insert in the browser: localhost / wordpress / wp-admin , but go to localhost / wordpress1 / wp-admin Tried, P> This is true: http: //localhost/wordpress1/wp-login.php?direct_to = http% 3A% 2F% 2Flocalhost% 2Fwordpress% 2Fwp- Administrator% 2F and Rihth = 1 And I get just 404 errors. I changed my wp-config.php file some time ago. And then I have changed those lines: define ('WP_SITEURL', 'http: // localhost / wordpress'); Define ('WP_HOME', 'http: // localhost / wordpress'); Define to ('WP_SITEURL', 'http: // localhost / wordpress1'); Define ('WP_HOME', 'http: // localhost / wordpress1'); But I have changed them to default, so whenever I try to enable multizite, how does my browser still redirect me in WordPress 1 instead of Wor...

HTTP Status 304 when loading SVG in IE9 -

I get an HTTP status 304 when SEO is loading in the webpage using my IEP. SVG has never been loaded before, so they should not be in the cache. I have read many topics and till now I have tried negligible with IE 9 options and I have also read that the problem of adding random string to your HTTP request Can solve. For example, "string = randomstring" Although I'm not sure how to do this because the request img Triggered tag When I open the URL to SRG, it shows fine. Can I try something else?

javascript - Check title of multiple pages in Selenium -

I am currently using WebDriver.js to run some automated tests on the BrowserStack My goal is to take all the href into a given device, open them and see the title of the page where the link is pointing at. To do this I am doing the following: for (var i = 0; i & lt; hrefs.length; i ++) {var href = hrefs [i], Site_name = sites_names [i]; Driver.get (href); Driver.getTitle () Then (function (title) {assert.equal (title, site_name);}); } My problem is that both get and getTitle are both asynchronous methods and so when I getTitle The page has already been changed and thus the claim is failing. What is the best pattern / solution for these types of meetings? If I am reading my question correctly, your claims are failing because of this page Before the completion of the browser is completely full? I think you need a "Waiting" logic in the form of your getTitle call var webdriver = require ('selenium-webdriver'); Var Driver = New WebDrive. Buil...

How can I suppress the date when using pandoc to convert md to pdf? -

I would like to create a simple PDF file with a title and a markdown file with the author but no date. I can not figure out how to suppress the date without editing an intermediate tech file. --- Title: Test Dock Author: My Name --- # Some Titles Here Text Here The date always appears in the PDF when you try the command pandoc test.md -o test.pdf order. I have tried setting the date: yaml block for all types of spaces, spaces and other combinations, but it does not understand the way it is empty Thank you. Uses Pandok. To create a PDF, by default it uses the Latex template, which you can print with pandoc -D latex . In the old pandok version, this template contains: $ if (date) $ \ date {$ date $} $ endif $ Issue Because for some reason, if you leave the \ date {} command, then latex prints the date. Either upgrade your pandok version or your template manually only \ date {$ date $} or instead of context instead of Context Modify to use: PANDOK-S-...

powershell - Set Monitoring Level to Verbose in an Azure Web Role using Powershel -

I have created some custom display counters in our web application posted in an exorbitant web roll. In the dashboard, the values ​​of that display counter To be able to see, I have to go to the portal, monitor level must be set to verbos, and add new metrics to the dashboard. The problem is that we are building infrastructure using PowerShell, and every time we rebuild the infrastructure, we lose these settings. Can I set monitor level and metrics (and possibly alerts) through PowerShell? / P> Thank you very much, It seems that you can not set the monitoring level And metrics via PowerShell or REST API Only to make alerts what you think is allowed to do through REST: Thanks.

xslt - How to select a node and its siblings until the same node from the start occurs -

यह शायद मुश्किल सवाल है। मेरे पास यह दस्तावेज़ है: & lt; html & gt; & Lt; h1 & gt; TITLE1 & lt; / h1 & gt; & Lt; p & gt; सामग्री & lt; / p & gt; & LT; ul & gt; & Lt; li & gt; आइटम & lt; / li & gt; & Lt; / ul & gt; & Lt; h1 & gt; TITLE2 & lt; / h1 & gt; & Lt; p & gt; सामग्री & lt; / p & gt; & Lt; p & gt; एक अन्य सामग्री & lt; / p & gt; & Lt; h1 & gt; title3 & lt; / h1 & gt; & LT; ol & gt; & Lt; li & gt; & lt; p & gt; पाठ & lt; / p & gt; & lt; / li & gt; & Lt; / ol & gt; & Lt; / html & gt; यह उदाहरण दिखाता है कि मेरे पास कुछ html है जहां "अनुभाग" सुर्खियों में विभाजित हैं I यह शीर्षक है, फिर तत्वों के विभिन्न मिश्रण और फिर फिर से शीर्षक। मैं इन वर्गों को div से XSLT 2 का उपयोग करके लिपटे जाना चाहता हूं। इसलिए, मैं & lt; h1 & gt; समूह चुनने के लिए शीर्षक मूल रूप ...

ios - Access UINavigationController from classmethod -

मेरे पास एक दृश्य नियंत्रक नामक ऑडियो विजुअल नियंत्रक है। उसमें, मुझे यह विधि है: - (IBAction) स्टॉपएक्शन: (आईडी) प्रेषक {[self.audioClass stop]; } मेरे पास NSObject कक्षा ऑडियोक्लास है। उसमें, मेरे पास ये विधियां हैं: - (शून्य) रोक {if (! Recorder.recording) {[खिलाड़ी रोक]; Player.currentTime = 0; [स्वयं। रिकॉर्ड्स ओरपॉज़बटन सेट सक्षम किया गया है: हाँ]; [स्वयं। रोक बटन सेट सक्षम: नहीं]; [आत्म चेतावनी संदेश]; } और {[रिकॉर्डर रोक]; एवाडियो सत्र * ऑडियो सत्र = [एविडियो सशन साझा इंस्तांस]; [ऑडियो सत्र सेट सक्रिय: नहीं त्रुटि: शून्य]; [आत्म चेतावनी संदेश]; }} - (शून्य) अलर्ट मेसेज {UIAlertView * stopAlert = [[UIAlertView alloc] initWithTitle: @ "पूर्ण!" संदेश: @ "क्या आप इसे सहेजना चाहते हैं?" प्रतिनिधि: स्वयं रद्द करेंट्यूटन शीर्षक: @ "कैनकल" अन्य बटनटित: @ "सहेजें", शून्य]; [स्टॉप अलर्ट शो]; } - (शून्य) alertView: (UIAlertView *) alertView clickedButtonAtIndex: (NSInteger) buttonIndex {if (buttonIndex == 0) {// यह है रद्द बटन} ...

ios - adding a custom back button now causes crash when going to RootViewController -

I am using a standard navigation controller in my app, but recently I had to make such changes, which only It should be done only when the user presses the back button on the navigation bar. So to catch it, I'm trying to create a custom back button to capture my selector. Now the NAV bar is already a back button, so basically it is basically trying to overwrite / change it. . I'm not doing anything special, just set it to allocate it and navigation items UIBarButtonItem * backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle: @ "back" style: UIBarButtonItemStylePlain target : Self-action: @selector (backButtonClicked)]; [Self. Navigation Itam Settlefatt Barbarton Eatam: Backburbetonium]; The problem is after a few times back (it's somewhat deep in the screen navigation), when I'm backing up on the root interpreter, I get an exception. I am guessing because IM is to add a back button when there is already a back button present and somehow navig...

javascript - AngularJS UI-calendar holding reference to old events -

I am using FullCalendar (angular-UI-Calendar) in an AngularJS application. I am passing an event using the Event Source array: $ scope.eventSources = [$ scope.events]; With $ scope.events being generated and updated by the Administrator. Whenever I update $ scope.events , then my trouble starts catching full calor in the context of the older versions. Index.html: & lt; Div ui-calendar = "uiConfig" ng-model = "event source" calendar = "mycalendar" & gt; My updated events function looks like this: public update events (new events) {// remove old events $ scope.events.splice ( 0, $ scope .events.length); // Add new events using push for push (var i = 0; i & lt; newEvents.length; i ++) {$ scope.events.push (new events [i]); Unfortunately, the above work does not get rid of the old events unless I make a clear call to refresh events from EventSources $ scope.myCalendar.fullCalendar ('refetchEvents'); I got a simil...

c# - Best method for centralised common code across MVC web application? -

I rewriting classic ASP web app using ASP.NET MVC 5. Currently included in common code files that are required for me to replicate in my new application. I have done a lot of research and believe that there is a way to go through static methods. Use a static method for utilities that only use local data or input parameters (in addition to objects) I plan to use the example methods for utilities I am in need of those others to initialize objects etc. My question is: Setting On In InProc with IIS, are the steady ways themselves included or can they be unknowingly referred to by other users? This app will be installed on a single server, there is no collection of any web form or server etc. I have also mentioned expansion methods, but Microsoft recommends using them. After all, is there a better way to change the normal code, in which the files are in addition to static methods? Thanks for reading. Separation of the architecture debate (the lack of data access to uti...

java - How to listen for mouse clicks on table header of JTable? -

JTable के टेबल हेडर पर माउस क्लिक कैसे सुनें यदि मुझे यह पसंद है getTableHeader ()। AddMouseListener (नया माउस एडाप्टर () {@Override सार्वजनिक शून्य माउस चूना (माउस ईवेंट ई) {if (e.getButton () == MouseEvent.BUTTON1 & amp; & Amp; e.getClickCount () == 2) {// फायर ओपन एक्शनपररफ़ेड (); ओपन एक्शन कैसकैड। एक्शनपररफ़ेड (नल);}}}); मैं नहीं जान सकता कि कौन सा स्तंभ हैंडलर में किया गया था। "मैं यह नहीं जान सकता कि जब हेन्डलर में कॉलम पर क्लिक किया गया था।" इसके बारे में क्या? एचटीएमएल>

java - How to make filerdear to read input file path from filechooser -

I do I file reader is happening, which reads a file path normally source made a Failcior , But I do not know how to add filepath to the file selector to add this file application. Code for FileReader below = string string builder =); {Try {brakaiara = new buffed reader (new file reader ("c: \ path.xxx")); While ((Lainkemera = Brakarakredlain ())! = NULL ({peas category Matekrkamra = Wargikrnkemerakmacr (Lainkemera); matcher Mdmetrkemera = Wargikrnsititametkemera Kmacr (Rekhakemara); the Code select file: Jefail choose a selector = new Jefailclosr (); Chooser.setCurrentDirectory (new java.io.File ( ".")); chooser.setDialogTitle ( "choosertitle" ); chooser.setFileSelectionMode (JFileChooser.FILES_ONLY); chooser.setAcceptAllFileFilterUsed (false); if (chooser.showOpenDialog (null) == JFileChooser.APPROVE_OPTION) {System.out.println ( "getSel ectedFile (): "+ chooser.getSelectedFile ());} Else {System.out.println (" no choice ...

Properly convert an array to string in 8086 assembly -

I have an array INPUT 10 DUP (?) something After the operation, I have to print this array to mov ah, 9 finally put $? What is 0DH and 0h after a string? Prior: Prompt 'This is a string', 0h, 0h, '$' You have an empty array or at least one undetermined content. You have to fill it with something to be able to print it. To start with , you can try input 10 dup (?) instead of 'input db test', '$ " . This will put the word "test" in the memory space labeled "Input" after "$". Then you will need to print whatever you put in the app: mov dx, offset input # wants the BIOS "input" location # Point at (movable with your "test" string) mov ah, 9 # wants BIOS call 9 (a string prints by $ a) int 21h # run BIOS call Once you have your work, you can worry about how you can fill "input" from another source, such as the user Ut (BIOS calls 1h or 0ah be helpful). Adding a $ c...

selenium - How can I use seleium test case in groovy? -

How can I use the Salim Test case groovy? Such as cloning on links Test case & lt; Html & gt; ... & lt; Body & gt; & Lt; Table & gt; & Lt; TR & gt; & Lt; TD & gt; Open & lt; / TD & gt; & Lt; TD & gt; Https: //url.web: 8010 / // Setup credentials Def string [] Credential = New string [2] Credentials [0] = "User name" Credential [1] = "password" def cred = [(JMXConnector.CREDENTIALS): Credential] // Setup = URL with JMX connection credentials DRR service: 'Service: JMX: RMI: /// JNDI / RMI: // URL : 8010 / Jmxrmi 'def service = JmxFactory.connect (new JmxUrl (serverUrl), cred) .MBeanServerConnection and click on the selenium script How to wait Groovy is essentially down, then a groovetest case will make you exactly like JUnit3 test. Sample Test Grove Sequence Enhances {void test_FirstTest ()) (Web Driver Driver = New Firefox Driver () driver.get (some URL) ... ..}} If you want, yo...

java - How to split R,G and B channel each to double array and process it with Android Bitmap -

I Android and new with Java, and still evolving image watermarking application with Android DWT - DCT - Sveedi method I am doing I want to process R, G, B channels separately in a double type array. This is my code: // Using the intent, obtain the image from the album and pass the path to the variable string picture, cursor cursor = getContentResolver (). Query (photoUri, empty, null, null, void); Cursor.moveToFirst (); Int index column = cursor.gate column index (mediastore.images image column.data); PicturePath = cursor.getString (index column); Bitmapfile Option opt = new bitmap feature. Option (); Opt.inDither = false; Opt.inScaled = false; OptInDensity = 0; OptInJustDecodeBounds = False; Opt.inPurgeable = false; OptInSampleSize = 1; OptInScreenDensity = 0; Opt.inTargetDensity = 0; SourceHostBitmap = Bitmapfinder Esedaphile (painting); After googling for some time, I found that after the decoded image, I put the value for intArray like this: integer intArray = new brick...

version - Can't put to work angularjs 1.3.1 -

I'm starting with angularjs and I have a really basic issue with version 1.3.1 I have followed a tutorial with the following code: & Lt; P & gt; {{Author.company}} & lt; / P & gt; & Lt; / Div & gt; & Lt; Script & gt; Function Microprocessor ($ scope) {$ scope.author = {'name': 'some names', 'company': 'some company'}} & lt; / Script & gt; & Lt; / Body & gt; & Lt; / Html & gt; And I'm getting the following results: {{author.name}} {{author.company}} It seems that the angular has not been properly started. Give your app a name: And then start this and your controller properly: var app = angular. Module ('app', []); App.controller ('MyController', MyController); You can also copy your script to & lt; Head & gt; in the section, so that {author. Name} does not flash on the screen before the controller starts.

html - My responsive images are overlapping my header. -

Hey I've created a JSfield to show you the problem My text is overlapping by my responsive images I want to That they sit above the text and do not do this. This is my CSS for images and problems: .page-header .logo img {status: complete; Limit: 2px solid RGBA (0, 0, 0, .3)! Important; Top: 45%; Left: 35.5%; Width: 30%; Height: 30%; } .page-header h1 {margin: 30px 50px 10px; } .text-centre {text-align: center; } .page-header h1 {margin: 30px 50px 10px; } H1 {margin: 0 30px; Font-size: 54px; Font-weight: 300; Color: # 555; }. Page header image {width: 100%; Height: auto; }. Page Header {Status: Relative; Margin: -50px-50px35px; Padding: 0 35px; Border bottom: 1px solid # e6e6e6; } Honestly, your code is a mess I'm not sure what you can achieve Trying to do it, but I will try to explain what I can do. Your logo has full position, which allows it to stay on top of the slider, but because it is% for its location and size, it is difficult to prevent it from g...

ruby on rails - `block (2 levels) in package_helper': undefined method `join' for nil:NilClass -

I am trying to host my first app using ec2 and rubber . Hat is running while rubber is running: create_staging I got this error: Rubber / Cuisine / Rubber / Setup. RB: 635: `package_heller 'in block (level 2): ​​Undefined method is` included' for zero: NilClass (NoMethodError) The error is internal to the gem, but I'm not sure I Have done something to do this. Previously I had a problem with AMI rubber.yml in image_type: c1.medium image_id: ami-90c574f8 was provided as default, but something was not working with it, so I went to the recommended website and found: image_type: t2.micro However, when I didn 't ask you to use the hostname [example]: / Code> confused me with the default The domain foo has been received (I immediately realized my mistake) and now I have foo.foo.com everywhere I have it sent to foo.com to etc / host and .ssh / known_hosts but has failed yet. The same bug was there and I saw your problem on the ...

java - How "==" operator compare references? mean internal working of "==" operator -

"==" या जावा में समानता ऑपरेटर जावा प्रोग्रामिंग भाषा द्वारा प्रदान की जाने वाली एक द्विआधारी ऑपरेटर है और प्रिमिटिव और ऑब्जेक्ट की तुलना करने के लिए प्रयोग किया जाता है । "==" मेमोरी संदर्भ के आधार पर दो वस्तुओं की तुलना करता है, मेरा प्रश्न है कि कैसे "==" ऑपरेटर जावा में काम करता है वस्तुओं की तुलना ? यहाँ हम केवल चिंतित हैं कि संदर्भ ऑब्जेक्ट को संदर्भित कर रहे हैं या नहीं। हम बराबर () विधि के बारे में बात नहीं कर रहे हैं। अच्छा, यह वास्तव में बहुत सरल है और सी कोड का इस्तेमाल करके सचित्र किया जा सकता है। सी में, एक मूल्य तक पहुंचने के कई तरीके हैं। * का उपयोग करके सूचक इंगित करता है, & amp; एक मेमोरी पता इंगित करता है, और मूल्य के उन डिफ़ॉल्ट के नहीं उदाहरण के लिए: int * myValue; // एक पूर्णांक मान के लिए एक सूचक। अब, जावा यह आपके से छुपाता है, लेकिन यह इस तथ्य को नहीं बदलता है कि ऐसा ही होता है। ऑब्जेक्ट ऑब्जेक्ट; // एक वस्तु के लिए एक सूचक == ऐसा काम करता है क्योंकि संकलक ऑपरेटरों के वास्तविक मान लेगा; नहीं ...

parsing - Parse and replace text with PHP -

I have a string like this: "N- {id size = '4'} / {date format = 'm - why '} ". Now I need it: Parsing this string to get the id and date tag (string can only be one or both of these); Read the SIZE and FORMAT values; this case is 4 and ME;); Instead of the string with this N-0030/112014: where 30 is the ID value (it is an integer in any case), but I need 2 zeros because the size of the value is 4 and the date 112014 (November 2014 is in MI format, the format value can change). How can I do this?

wpf - DataTrigger Binding to a ToggleButton within another namespace -

I try to reach a togglebutton which is a dockpanel trigger within a different user control. Style Datatrigger. Here it is said that when I have both the Toggleton and Docapenel namespace, then it is: & Lt; Style.Triggers & gt; & Lt; Data Trigger Binding = "{Binding Ischic, Element Name = DescriptionBugBlutton}" Value = "False" & gt; & Lt; Setter Property = "UIElement.Visibility" Value = "Collapsed" /> & Lt; / DataTrigger & gt; & Lt; /Style.Triggers> & Lt; / Style & gt; & Lt; /DockPanel.Style> & Lt; TextBox DocPanel.Doc = "Top" Text = "..." /> & Lt; / DockPanel & gt; But now when I move Toggleton to another file (other namespace) it does not work anymore. ElementName (as I think) works only for elements of the same file, so how can I manage the bindings for my togglebutton's iShack in another file? Is there any suggestions? FYI, the word for ...

android - Appcompat v21 Toolbar elevation pre-lollipop -

First of all, I know that this question has been asked before but it has not been answered earlier. I hope someone can give me an answer. In my application, I use the toolbar from Appcompat_v7 (API 21). This is my code: & lt; Android.support.v7.widget.Toolbar style = "@ style / darkActionbarStyle" Android: id = "@ + id / toolBar" Android: layout_width = "match_perrent" Android: layout_heh = "@ dimen / actionbar_height" /> And this is the Toolbar style I use: The problem is, the upgrade pre-lollipop does not work. So my question is: Is there a shadow under the toolbar on the pre-lollipop device? This works very well for me: & lt; Android.support.v7.widget.CardView xmlns: card_view = "http://schemas.android.com/ apk / res-auto" Android: layout_width = "match_parent" Android: layout_height = "wrap_content" Android: background = "@ Color / primary "card_view: card height =...

javascript - ng-animate not triggering animations -

I have an angi-animate louid and deployed on my angular JS site (in the inspector I am angular- animate.js Folders, so I know its loading. What do I want to do, my header is animated on page load, so I've added the following to my project template.html & lt; header id = "header" ng-animate = "'animate'"> style.css .animate-enter {-bbkit-circle 1s linear all; / * chrome * / transition: 1s linear all; opacity: 0;}. Unregistered-enter.animate-enter-active {opacity: 1;} when I load from the home link and load "template.html", then there is no animation, is there something missing ?? According to Angel's documentation: Automatically supporting animation of the animation: ngRepeat, ngInclude, NGIF, NG switches, NGShow , Ngheed, eniwyue and ng class You need to use these instructions in your header tag.

r - How to output reactive data -

I'm using shiny and want to output some data. This is the code that I am for loading data and selecting the variable data.feature & lt; - Reactive ({# filename & lt; - paste0 ("dataall_ ', input $ date," new.RData ") file name & lt; - paste0 (" dataall_new.RData ") load (filename) feature.test [ Input $ variable,]}) Then use the following code to download the data output $ downloadDatar & lt; - DownloadHandler (file name = paste ('data_summary.RData'), content = function (file) {save (data.feature, file = file)}}}}) But when I open the saved file, and enter the data. Feature I found: responsive ({filename & lt; - paste0 ("dataall_new.RData") load (filename) feature.test [input $ variable]}) Is there a way to look inside the data? BTW, I've tried the data. To save the feature () function and found object 'data.feature ()' not found error Problem solved: just use different fun...

uitableview - iOS Master-Detail, how to use different detailViewControllers in iPad -

I have a master-detection iOS app, with the storyboard built from the standard XCode template. I've found that most items need to display a view with a browser, and a setting (using FXForms) forms when the user clicks on the "Settings" item. In a way it does this in the iPhone, but one can not get an iPad in the iPad. I create another view controller in the iPhone Storyboard and make another Segue connection from the master to the new view controller. Then I do the following in didSelectRowAtIndexPath (if index.path.section == 0 and indexPath.row == 2) // settings [self performing SegueWithIdentifier : @ "Show Settings" From: Self]; Other [Self Performance SegueWithIdentifier: @ "showDetail" sender: Self]; When I click on settings, the settings appear in the view. Navigation works even further behind. However, in the iPad, the ViewController extension is always there, on the right side of SplitViewController, how can I modify the story...

r - How to plot multiple curves, same data frame, one curve for each unique value in column 1? -

इस सवाल का पहले से ही एक उत्तर है: 8 जवाब तो मेरे पास एक डेटा फ्रेम ऐसा कुछ दिखता है कॉल 1 कॉल 2 कॉल 3 ------------------ foo x11 y11 फू x12 y12 फू एक्स 13 y13 बार x21 y21 बार एक्स 22 Y22 बार x23 y23 baz x31 y31 baz x32 y32 baz x33 y33 मैं कॉलम 1 में प्रत्येक अनन्य मान के लिए एक वक्र साजिश करना चाहता हूं, और उन्हें उसी भूखंड पर ओवरले करना चाहिये, जहां प्रत्येक वक्र पर अंक (संख्यात्मक) (x, y) द्वारा कॉलम 2 और 3 में निर्देशांक निर्दिष्ट होते हैं। मुझे नहीं पता कि मूल्य पहले से क्या हैं, और उनके पास संख्यात्मक लेबल नहीं हैं मैं यह कैसे कर सकता हूं? (विश्वास करें या नहीं, मुझे इंटरनेट पर कहीं भी इस प्रश्न का उत्तर नहीं मिल रहा है) धन्यवाद! यहां दो संभावनाएं हैं, एक जीजीप्लोट 2 और आधार वाला एक: set.seed (1234) ) Df & lt; - data.frame (fac = gl (3, 3), x = प्रतिनिधि (1: 3, 3), y = rnorm (9)) # ggplot की आवश्यकता है (ggplot2) ggplot (df, aes (x = X, y = y, col = fac)) + geom_line () # बेस dfwide & lt; - reshape (df, टाइमवायर = 'एफएसी', आईडीवर = ...

php - Can't insert datetime to MySql -

This is strange when I get a date time: $ date = date ("Ymd H: i : S "); and try putting it into the database, it will insert null . The column I inserted is a datetime. It does not matter which column I change the data, it will still include zero. I hope someone can help me! Because column in your query instead of a routine $ sql = "... datefield = '$ date' ...."; do $ sql = "... datefield = TIMESTAMP ('$ date') ...."; Obviously .... represents your SQL at that point.

php - MySQL: count rows versus save number of rows in a table -

I got a little performance question .. There are three tables in my DB: users, between them I want to show the choice for each article on the article and a table user's username (surname preferred) on an index site for relationships. Currently I want to add the number of likes to my articles table Save and add 1 plus or minus if it changes Is this a better way to count the rows for each article? With every refresh of the index site, DB should have xx rows counting xx articles. Thank you for your help! There are two possible approaches: 1 - You run the calculation query of each time So your result is automatically updated (this is a problem for the display? I do not think this should be ... especially if you have an index on the Users_articles table on the Article ID field.) 2 - You can use the trigger to update your field on the article table, every time when users_articles are in the rhythm Anyone can remove, update, or join (it is really difficult for some re...

PHP MySQL - foreach loop with if to display subset list within key list -

I'm trying to display the records of locations, with a list of rooms within each unique record. I have two tables, a place_view table and a place_view table. Using a slow example, I am struggling to populate each site with those rooms which are contained within. I am able to revoke the rooms in the room, but I am struggling to limit the room to be displayed only with my unique guardian site. . There is something simple that I do not see, I just know this // Site W place ROOMS ARRAY test 2 $ selCity = $ _GET ['theOption']; // per comment below $ $ _POST to modify $ _GET $ result5 = mysql_query ("select * from lookup_venue_room interiors include lookup_venue_room.venue_name on lookup_venue = lookup_venue.venue_name where lookup_venue.name = '$ selCity' and lookup_venue.venue_name = Lookup_venue_room.venue_name ") or die ('error'. Mysql_error ()); $ RoomNames = array (); $ PlaceNames = array (); While ($ line2 = mysql_fetch_array ($ result5)) {...

SSL Multilevel Subdomain Wildcard -

मैंने * .example.com के लिए वाइल्डकार्ड प्रमाणपत्र खरीदा। अब, मुझे * .subdomain.example.com को सुरक्षित करना होगा। क्या मेरे वाइल्डकार्ड-प्रमाण पत्र के लिए उप-प्रमाणपत्र बनाना संभव है? यदि ऐसा है, तो मैं यह कैसे कर सकता हूं? नहीं, यह है संभव नहीं। नाम के अंदर एक वाइल्डकार्ड केवल एक लेबल को दर्शाता है और वाइल्डकार्ड केवल बाएं सबसे ऊपर हो सकता है इस प्रकार कोई *। * Example.org , www। Example.org संभव है और * example.org मेल नहीं करेगा example.org और www.subdomain.example.org , केवल subdomain.example। Org । लेकिन आपके पास एक ही प्रमाण पत्र के अंदर कई वाइल्डकार्ड नाम हो सकते हैं, तो आपके पास *। Example.org और *। सबडोमेन हो सकता है। Example.org एक ही प्रमाणपत्र के अंदर।

printf - C Compiler ignores scanf -

इस सवाल का पहले से ही एक उत्तर है: 7 जवाब मुझे इस कोड के साथ समस्या है : printf ("अपना गणित चुनें: \ n '+' अतिरिक्त \ n '-' घटाव \ n '*' गुणन \ n '/' विभाजन \ n"); Char do_math; Scanf ("% c", & amp; do_math); Printf ("प्रकार 1 सेंट नंबर:"); समस्या यह है, कि जब तक मैं "do_math" टाइप नहीं करता हूँ, तब तक यह कार्यक्रम प्रतीक्षा नहीं करता है, लेकिन यह पहली प्रिंटफ़ के बाद ठीक प्रकार "टाइप 1 सेंट नंबर" प्रदर्शित करता है। कोई भी विचार? जिस तरह से आपका कंपाइलर गलत तरीके से गलत होगा यदि आप जानबूझकर परिभाषित scanf ( ) एक ऐसा-कुछ मैक्रो के रूप में अपने कंपाइलर को दोष मत दो! संभवतया पिछले scanf () प्रोग्राम में कॉल करें जो इनपुट बफर में कैरिएज़ रिटर्न को छोड़ दिया। आप do_math के मूल्य को छपाई करके इस परिकल्पना की पुष्टि कर सकते हैं। कोशिश करें scanf ("% c", & amp; do_math); ( scanf () से रिटर्न मूल्य पर ध्यान देना भी एक अच्छा विचार है।) ( % c से पहले) / P...

sqlite3 - SQL - Updating a column based on values from another query -

Still new to SQL My goal is to find the last stamp event and update the last session column per user. I created a query that is finding the last stamp for every user in the database. I want to update property_last_session_date based on property_user_id I am currently running SQLite3 and all 3 columns defined as Varchar (255) Here is my code that I am trying to run. Update Tb1 set tb1.property_last_session_date = tt1.property_timestamp tableEvents Join Tb1 (select tb2.property_user_id, from table (tables2tproperty_timestamp) to tb2.property_user_id by TB2 group) on TT1 Tb1.property_user_id = tt1.property_user_id Thanks for the help! After update tb1 set tb1.property_last_session_date = (to (tb2.property_user_id, max (tb2. Property_timestamp) Select the property_timestamp as tt1.property_timestamp Select Table Aventus TB2 Group by TB 2.property_user_id) TT1 WHERE tb1.property_user_id = tt1.property_user_id); This is called a correlated subquery, you can select ...

iphone - Swift Remove a given value from an array -

मेरे पास एक सरल सरणी है var चश्मा: [स्ट्रिंग] = [बटन 1, बटन (बटन 2, बटन 3, बटन 4) कैसे मैं अपने गुम में एक निश्चित मान (प्रकार बटन 3) पा सकता है और इसलिए रद्द कर सकता हूँ? आप अनुक्रमणिका को पुनः प्राप्त करने के लिए find () वैश्विक फ़ंक्शन का उपयोग कर सकते हैं: var ऐनक: [स्ट्रिंग ] = ["बटन 1", "बटन 2", "बटन 3", "बटन 4"] सूचकांक = खोजने दें (चश्मा, "बटन 3") और फिर, एक बार सत्यापित हुआ कि तत्व मौजूद है ( ढूंढें एक विकल्प देता है), इसे हटा दें: यदि अनुक्रमणिका = अनुक्रमणिका {specs.removeAtIndex (index)}

java - jpql left join fetch not returning results for like -

Text after "itemprop =" text "> In a app using a Spring MVC Hibernate and MySQL, I've written the following query method to return a list of names with patients To: @SuppressWarnings ("uncheck") public collection & lt; Person & gt; FindPersonByLastName (string ln) throws DataAccessException {query query = this.em.createQuery ("DISTINCT person joining rimPerson person to pers.names n.m. ou nm.family choose to leave from like: LNM"); Query.setParameter ("LN", LN); Return query.getResultList (); } This is used to produce the following hibernate SQL: Select specific person0_.hppid as hibernate: hppid1_340_0_, names1_.HJID HJID1_89_1_, as as person0_2_.classCode_HJID classCod2_339_0_, administ2_341_0_ as person0_1_.administrativeGenderCode_HJID, birthTim3_341_0_, DELIMITE2_89_1_ as names1_.DELIMITER_, FAMILY3_89_1_ as names1_.FAMILY, named5_89_1_ as names1_.named_entity_hppid, SUFFIX4_89_1_ as names1_.SUFFIX, name9_340_...