Posts

Showing posts from April, 2014

IMAP: Discourage client from trying to create mailbox -

I am implementing an IMAP server, working on shared messages with other systems and needing business The reason users are not allowed to create or create is to remove messages or mailboxes via the IMAP server. However, in our production environment, we often see the following three orders very often 15 Example "Draft" 16 Status "Draft" 17 "Make Draft" For all three we reply with a NO response, but when the user next logs in, we see the same order continue Is being done. Is there any way to discourage the customer from issuing these commands? We have only one folder, INBOX . In principle , no ("Some of the Operation Server infringes on irreversible and can not be successful anytime") should fill the message, although I suspect that some clients respond to this type of feedback

php - CodIgniter - Setup db(create tables etc) for existing project -

I have a completely completely existing codeigniter project. I have created a MySQL db locally and have created database.php Has changed the name of DBN in Now how to set up this DB by creating the table etc. according to the code. I thought that DB / tables will be created automatically, but when I open the page, he said that the 'ci_sessions' table has not been created. For example: in Ruby on Rail, when we have the code, we can rake DB: migrate Who can create all the tables I want this feature In Django, we can do python manage.py syncdb which will create all the tables . In Java, I will have a SQL file, I will execute the file through the DB command which will generate the DB table. Any of the above codinggenters? If the CI project is completely complete, you can export your database and make it server Which you will use ... php code by creating a database or table that you can see or

c++ - Does stack unwinding really require locks? -

I am converting my code with mutrace and taking the following interesting / worrisome results: Mute X # 1260690 (0x0x7f87bc8eea40) is previously referenced by: /usr/lib/mutrace/libmutrace.so(pthread_mutex_lock+0x49) [0x7f87be0b76b9] /lib/x86_64-linux-gnu/libgcc_s.so.1(_Unwind_Find_FDE + 0x26) [0x7f87bc6eb0e6] mutrace: Showing 10 Most Compatibility Mutes: Mutes # Locked Cunt Cunt. Tot.Time [MS] avg.Time [ms] max.Time [MS] flag 1260690 19066789 150 9 831 109753 3600.883 0.000 0.226 M -..--. _Unwind_Find_FDE has to deal with stack unilining. My application is multi-threaded with very strict latency requirements and so I want to finish it as easily as possible. Can a compiler or environmental settings be used to get rid of this function call without having to rewrite my code? We use exceptions for part of the flow control (probably inadvertently), but there will be a major refactoring job to fix this. G ++ (Ubuntu 4.8.2-19 Buntu 1) 4.8.2 Stop using exceptions if you

matlab - How to obtain the number of discontinuities -

Image
It seems that a Sotho function (or any other periodic function with anomaly). I want to get the number of discontent for the limit stated in that ceremony. For example, looking at the shape at I should get a scalar result of 2 because only two displays have been made in that range. Does anyone know how to do this? Cheers, Fellip. This is always a question that you think of as dissatisfaction, Threshold is required after you yourSignal (variable name of your data) occ = sum (abs (diff (your signal)) gt; Threshold can be used for something like the following

Calculate Time Diff between different column and row [MYSQL] -

Image
A user is trying to calculate time difference in logout / logout, to do this, Required: 2 Login - 1 Logout, I do not even know how to properly understand, so I will tell the results of the table here:> you do this Can you join the table with yourself? Not. This query renders the table that you've posted: SELECT t.login, t.logout, TIMEDIFF (MIN (t2.login), T. Logout) my_table Join T LEFT my_table T2 ON Logout & lt; T2.Login GROUP by t.Logout MIN (T. Login) The next login after t.Logout is

angularjs - Validation on text on alphabets enter -

Anyone uses AngulerJS authentication on the text box, so only enter the characters. Based on what you want: letters and spaces: < / P> ng-pattern = "/ ^ [a-zA-z \ s] * $ /" Letters are not spaces: ng-pattern = "/ ^ [a-zA-Z] * $ /"

sql server - Why in Partition 'SWITCH' statement source & target must reside in the same filegroup? -

I understand that to switch between partitions, both of the partitions need to be in the same file group. But I can not find a suitable location The source and target table should share the same file group. The Source and Target Table Alternate Table ... The SWITCH statement should be in the same file group, and their high-value columns should be stored in the same file group. Any relevant indexed, indexed partition, or indexed view partition should remain in the same file group. However, the file group may be different from related tables or other related indexes. In the implementation of one of my partitions: I place my archival table in the same file group, switch, then move the data to a different file group Exclude the clustered index and recreate it. I have a lot of cost! I think the old data can be moved to a different table (for example for analysis purposes) while in a separate file group (separate drive). But due to this restriction I have been mentioned as

css - font-size gets smaller on orientation change -

I am trying to design a responsive design. font-size OK seeming If any link is becoming less with the push or re-orientation but changes to load the page. This is also. Ctrl + not fixing with Zoom I loaded this way @ font-face {font-family: 'easy'; Src: url ('fonts / Easy'); src: url format ( "embedded OpenType '), url (" / fonts / Easykwoff ") format (" WOFF "), url (" / fonts / easy (' fonts / Easy.eot #iefix? ') . Ttf ') format (' truetype '), url (' / fonts / Easy.svg # arbat ') format ( "SVG"); Font weight: normal; Font-style: normal;} @media only screen and (min-width: 320px) and (max-width: 479px) and (orientation: portrait) {{Kcontainer position: relative; Width: 100%; Margin: 0 auto; Height: 480px; Padding: 0; Hidden flurry; }. Container. Columns {float: left; Display: Inline; Margin-left: 0; Margin-right: 12%; } .o {margin-bottom: -10px; }. Container .ight.column {width: 3

Java Strings via SWIG in Android NDK have strange characters in place of null bytes -

I am using SWIG to generate the interface to a CD which I have compiled as an Android NDK library . My C code NDK library uses a structure, MY_STRUCT consists of four * elements that pass data in these two directions and the SWIG generated JNI works properly, i.e. I can read the wire in the C code Required and reads results in Java code. However, I have a problem in it that if I pass the null bytes in the Java string then "\ 300 \ 200" Example, if I make a string in Java as follows I: MY_STRUCT myStruct = new MY_STRUCT (); Byte [] myBytes = new byte [21]; String Maestring = New String (Maybits); MyStruct.setName (myString); Then the field named after myStruct is set to 21 faucet bytes, and it is visible in Java debugger, but string as shown in the NDK C debugger The NDK has passed the library code as follows: "300 300 200 200 200 200 200 200 \ 300 \ 200 \ 300 \ 200 \ 300 \ 200 \ 300 \ 200 \ 300 \ 200 \ 300 \ 200 \ 300 \ 200 \ 300 \ 200 \ 300 \ 200 \ 300

R reprojecting map to lat/long -

I used the mapproj package to change the late / long set of map projection (in this example in lagrend). cord & lt; -data.frame (x, y) Lagrange and lieutenant-mproject (chord $ x, chord US $, projection = "lagrej") # some # clustering #here #here are cluster centers, but in the form of loggerase projection How to do it in R? I have read the package documentation and I do not believe the author has planned to set up a plot set. Intends to use beyond. The 'standard' way to work with geospatial data in R is through the set of objects sp is the way to change the SP objects spTransform < / Em> both objects and methods can be found in the sp package. If you are not familiar with GIS and R, then there are many tutorials available, it is believed that this can be a fast learning phase. An example of changing the 'Long Late' data for other estimates is detailed in:

javascript - Get InnerHTML of element that isnt inside another tag -

इसलिए यदि मेरे पास & lt; div id = "out" & gt; नमस्कार & lt; div id = "अंदर" & gt; क्वर्टीइओप & lt; / div & gt; & Lt; / div & gt; मैं अंदर या किसी भी अन्य एचटीएमएल टैग से कुछ भी शामिल किए बिना बाहर की आंतरिक एचटीएमएल कैसे प्राप्त करूं? (मूलतः "नमस्ते" कैसे प्राप्त करें) 1 एक दिलचस्प विकल्प: यह एक गंभीर उत्तर नहीं है, और यह डरिन मॉरिस पर आधारित है अत्यधिक विनाशकारी उत्तर पर थोड़ा कम विनाशकारी है: // तत्व क्लोन क्लोन = $ । ( "#outside") क्लोन (); // सभी बच्चों को निकालें (टेक्स्ट नोड्स छोड़ देता है) $ clone.children ()। निकालें (); चेतावनी ($ clone.text ()); फिर से मैं यह कहने के विकल्प के रूप में अनुशंसा नहीं करेगा 2 मेरा गंभीर जवाब: $ ('# बाहर') [0]। FirstChild.nodeValue लेकिन कौन जानता है ... यह तकनीक किसी बिंदु पर किसी के लिए उपयोगी हो सकती है :)

javascript - Creating a new DOM element from an HTML string using built-in DOM methods or prototype -

I am trying to dynamically create an element using an HTML string. Prototype and DOM here: // html string var s = '& lt; Li & gt; Text & lt; / li & gt; Using both is a simple example; // DOM var el1 = document.createElement (s); // prototype var l2 = new element (s); . $ ('MyList') appendChild (EL1); . $ ('MyList') appendChild (el2); Both views include empty lists in the list. I know that to use the prototype's element as a constructor, a tag name and an optional attribute parameter are required, but I can think of it in an HTML string as well. However, "You can also specify all the attributes inside the element method by using an HTML string for method arguments." ... so I am not sure what the problem is. And yes, I know that I can do this easily in jquery, unfortunately we are not using jquery, am I really ignoring something here? It should be clear, but links to that MSDN article are related to an IE feature onl

matlab - Multiply tensor with vector -

A = ones (4,4,4); B = [1,2,3,4]; I want to multiply this way with A, ans (:,:, 1) == ones (4,4) * B (1); ans (:,:, 2) == ones (4,4) * b (2); etc. I think you are looking for: A = ones (4,4,4); B = 1: 4; C = Schiedidium (B, -1); Bsxfun (@bar, A, C) Shiftdim ensures that the vector is placed in the correct dimension. Then bsxfun ensures that the vector is expanded to match the matrix, after which they can be properly multiplied. If you struggle to understand this function, then you should allow this result as a loop on the institutions of b .

c# - Parser Error Message: Could not load type 'ObamPortal.Web.MvcApplication' -

स्रोत त्रुटि: ***** रेखा 1: & lt ;% @ एपीआई कोडबहिंन्द = "ग्लोबल.एएसएक्ससीएस" इनहेरिट्स = "ओबामपोर्टल। वेब। एमवैक ऍप्लिकेशना" भाषा = "सी #"% & gt; ***** स्रोत फ़ाइल: / वैश्विक । एएसएक्स लाइन: 1 मुझे ये त्रुटि मिलती है जब मैं विजुअल स्टूडियो 2012 का उपयोग कर एक एएसपी.नेट एमवीसी 4.0 आवेदन को डिबग करने की कोशिश कर रहा हूं। मैंने जो कुछ सिफारिशें देखी हैं वह पहले से ही तैनात अनुप्रयोगों के लिए थीं। ध्यान दें, मैं विंडोज 7 का इस्तेमाल ओएस के रूप में कर रहा हूँ। मैं इसे कैसे ठीक कर सकता हूं? मेरा वैश्विक .asax.cs है: ObamPortals.Core.Domain.Moduleules का उपयोग कर; ObamPortal.Web.Moduleules का उपयोग कर; नाम स्थान ObamPortal.Web {// नोट: IIS6 या IIS7 क्लासिक मोड को सक्षम करने के निर्देशों के लिए, // जाएँ go.microsoft.com/?LinkId=9394801 सार्वजनिक वर्ग MvcApplication: System.Web.HttpApplication {सार्वजनिक ओवरराइड शून्य Init () {} संरक्षित शून्य अनुप्रयोग_स्टार्ट () {}}} निम्न चरणों का पालन करें (कोई भी) < 3) एक साफ निर्माण 3

Table with many columns ios swift -

Image
In my app I need a table with multiple columns (I'm using Swift) I search Google I do, but I can not find anything that can be useful. Objective: c: < P> Can you give me a doc, tutorial or something, which can help me create a table like this? I think about the web-view, but what about the original iOS? How to do this? Thank you! I also need such a table and please check this awesome post Do: In addition to this, you can go straight to your source code from here: was implemented in obj-c, which they have recently moved faster. They are using UICollectionView because you can view details from the post.

ftp - Set folder and file permissions without SSH -

My hosting provider refuses access to my shared hosting plan via SSH. The problem is that I have all the folders I want to set the permissions of 755 and all files to 644 but I do not know how to apply changes in all files and folders via FTP connection. My guess is to use a cron job, but do not know how to do this Please advise Have you tried using shell_exec via PHP? If the shell_exec function is enabled in your web hosting, then first check one option may seek an option in your FTP client.

c# - Trying to parse a RESTful api response -

I have a problem, and I can not find a clue on how Google solved it. I am trying to parse the reaction of a Resist-API service. [{"account_id": "5401585", "history": "8496786 9 | 2 | 03/30/2012, 84972342 | 2 | 03 \ / 30 \ / 2012, 85312563 | 2 | 04/02/2 012,85314831 | 2 | 04/02/20128518547 | 02/04/02/201285435388 | 2 | 04/03 / 2012,100244102 | 2 | 09 \ / 09 \ / 2012,100 245865 | 2 | 09 \ / 09 \ / 2012,100249440 | 2 | 09 \ / 2012 | 100251434 | 2 | 09 \ / 2012 \ "/> > I do not think my response as a list says my model. Basically, I want every line added to "," to a list. My code looks like this: Public Class MatchHistoryParser {Get the public route object () ({Var webClient = New System.Net.WebClient ()) Experiment {string URL2 = @ "API URL"; Var json = webClient.DownloadString (URL2); Root Object Match = Jason Convert. Directoryal Object & lt; Root object & gt; (JSN); Return match; }}} Public class

javascript - preventing audio from playing then allowing after end with jquery function -

I am working on a simple audio player for a site. I just want to play it and stop the capabilities. I am working on it so that it can play, so set it so that the selector will try to play Kent overlap. After this is over, I want to re-select the selector. It does not seem like this to do so, maybe I do not understand where the bind and unbind should be kept. function play magic () {var audio element = document. Secrete element ('audio'); Var audio alarmsrc = $ (this) .attr ('data-audio-src'); AudioElement.setAttribute ('src', audioElementSrc); $ .Get (); AudioElement.addEventListener ("loadeddata", function () {audioElement.play ();}, true); $ ('. Pause'). Click (function () {audioElement.pause ();}); AudioElement.addEventListener ("Game", function () {$ ('. Play'). Unbind ('click');}); AudioAlement.Advent Allisoner ("Ended", function () {$ ('. Play'). Bind ('click');}); } $ (Function (

javascript - Execute change method on select hidden -

I have a list (menu) with value ?????? When a user clicks to execute the click function that hides the value of a selector it works fine, but does not display the information to display the correct option by selecting itself. & lt; Ul & gt; & Lt; Li class = 'active-sub' & gt; & Lt; A href = '#' & gt; & Lt; Span & gt; SELECCIONE & lt; / Span & gt; & Lt; / A & gt; & Lt; Ul & gt; & Lt; Li class = 'is-sub' & gt; & Lt; An id = "S0001" href = '#' & gt; & Lt; Span & gt; Auto Nouveau & lt; / Span & gt; & Lt; / A & gt; & Lt; / li & gt; & Lt; Li class = 'is-sub' & gt; & Lt; An ID = "S0002" href = '#' & gt; & Lt; Span & gt; Product 2 & lt; / Span & gt; & Lt; / A & gt; & Lt; / li & gt; & Lt; / Ul & gt; & lt; Script & gt; $ ("# S0001") click (f

Bootstrap adding margins to left and right automatically -

How do you remove margins and padding on the body when you use bootstrap? I want my elements to fit the edges of the screen but the bootstrap is focusing on them. Can you try to use the Container-Fluid Class? & lt; Div class = "container-fluid" & gt; ... & lt; / Div & gt; See document here - & gt;

c - Creating a linked list with different structure types -

I am defining a linked list where the structure (the first one) has a different type of others, this first node always is present. type1 - & gt; Type2_1 - & gt; Type 2_2 - & gt; Type2_3-> Etc I should be able to rearrange the type 2 elements. For example, I might have: type 1 - & gt; Type2_3 - & gt; Type2_1 - & gt; Type 2_2 - & gt; Etc. The way I am trying to do this defines a double-linked list. Each Type2 element can be type1 next type, last and, if needed, Type1. If Type2 element is next to Type1, its indicator is set to tap on the previous Type2. typedef struct type 2 {struct type2 * next; Struct type 2 * previous; Int isNextToType1; } Type 2; Is there a better way to do this? typed type of type 2 {... straight typed 2 * previous; // This is the first element to tap for type 2 * next; // This is the tap for the last element} Type2; Typedef structure Type1 {... struct type2 * list; // if the list is empty it can be taped} Ty

multithreading - How to print accelerometer values every X seconds in Android -

I want to print the accelerometer value every 3 seconds This is my code so far Override public @SensorChanged @ SenseorChanged {// TODO auto generated method stub if (event.sensor.getType () == sensor.Tep_ACCLARMAMM} {X = one * x + (1 - A) * event. Values ​​[0]; Y = one * y + (1 - a) * event.values ​​[1]; Z = one * z + (1 - A) * event.values ​​[2]; New handler () Post Delayed (New Runnabel) {@Override public void run () {printValue ();}}, 3000); }} Production is delayed only when Outlook is launched, what is my fault and how to solve it? You need to remove your handler from onSensorChanged () It will run continuously Now you will only have to execute if you have any changes in your sensor reading. In addition, you need to add a call to run again to run again, otherwise it will only be executed once. // External sensor (outside of converted), maybe new handler (on) in-activity of your activity Postdilid (New Runnabal) ({Override Public Wide Run)} {printValue (); New

uitabbarcontroller - Set the background color of UITabBarItem -

Is there an easy way to set the background color of a personalized UITabBarItem? In my scenario, I would like to use a different image for each of my 2 times of the items, and then I would like to set the background of my 2 times objects in a different background color - each red and green tell. I'm not setting the background color of the entire tabbar. You have to set the selected and unselected image. [self.tabBarItem setFinishedSelectedImage: [UIImage imageNamed: @ "img"] with the fullest image: [UIImage imageNamed: @ "img"]];

c++ - Polymorphism and shared_ptr member -

परीक्षण बहुरूपता & amp; आभासी कार्य और amp; shared_ptr, मैं निम्न न्यूनतम उदाहरण द्वारा वर्णित स्थिति को समझने की कोशिश कर रहा हूं। class B {सार्वजनिक: // वर्ग बी वर्चुअल शून्य से परिभाषित कोई विधि () {// एक बर्गर बनाएं}; }; वर्ग सी: सार्वजनिक बी {सार्वजनिक: // परिभाषा वर्ग सी शून्य someBMethod () {// एक पिज्जा बनाओ}; }; वर्ग ए {सार्वजनिक: ए (बी एंड ए बी): सदस्य (मानक :: मेक-शेरेड & lt; बी & gt; (एएबीबी)) {}; std :: shared_ptr & lt; p & gt; सदस्य; }; अब, मुख्य में हम हो सकते हैं int main () {सी SomeC; ए ए ए (एसीसी); A.Member- & gt; someBMethod (); // someBMethod को बी से निष्पादित किया जा रहा है। }; जब तक मैं अपने वास्तविक कोड से कुछ गलती को न्यूनतम उदाहरण में शामिल नहीं करता, मुझे लगता है कि SomeC को B , या कम से कम someBimethod से बी को अंतिम पंक्ति में बुलाया जा रहा है प्रश्न: सदस्य को इस तरह से प्रारंभ करने का सही तरीका क्या होना चाहिए कि विधि someBMethod से सी कहलाता है? मुझे लगता है कि someC एक B में कटा हुआ हो

mysql - mysqldump with --where clause is not working -

mysqldump -t -u रूट-पी mytestdb mytable --where = '2014-09%' जैसे दिनांक समय ' / Code> यह वही है जो मैं करता हूं और यह देता है: mysqldump: तालिका नहीं मिल सका: "पसंद" < P> मैं सभी पंक्तियों को वापस करने की कोशिश कर रहा हूं जहां कॉलम datetime है <2014> जैसा कि 2014-09 जिसका अर्थ है "सभी सितंबर पंक्तियां"। आपको उद्धरणों का उपयोग करने की आवश्यकता हो सकती है: mysqldump -t -u root -p mytestdb mytable - where = "तिथि समय जैसी '2014-09%' '

angularjs - Filtering over two objects -

मेरे पास कोणीय में दो ऑब्जेक्ट हैं $ scope.data_1 = {"a": 5, "बी": 6, "सी": 7, 'डी': 1}; $ scope.data_2 = {"a": 6, "b": 3, "c": 2, 'd': 10}; मैं एक ऑब्जेक्ट के भीतर मूल्यों की तुलना करने के बारे में स्पष्ट हूं .. .filter ('getmax', function () {return function (data) {रिटर्न Math.max.apply (गणित, ऑब्जेक्ट। कुंजी (डेटा) .मैप (फ़ंक्शन (कुंजी) {रिटर्न डेटा [कुंजी]}))}} }) लेकिन मैं प्रत्येक कुंजी के लिए अधिक मूल्य को उजागर करने के लिए दो वस्तुओं की तुलना कैसे कर सकता हूं? & lt; div ng-repeat = "data_1 में आइटम" & gt; & Lt; p & gt; {{आइटम}} & lt; / p & gt; & Lt; / div & gt; & lt; div ng-repeat = "डेटा_2 में आइटम" & gt; & Lt; p & gt; {{आइटम}} & lt; / p & gt; & Lt; / div & gt; परिणाम 5, 6 , 7 , 1 और 6 , 3,2, 10 कैसे इस तरह के कुछ, या कुछ भिन्नता के बारे में । & lt; div ng-repeat = &quo

neo4j - Recommendation Engine: Cosine Similarity vs Measuring %difference between each vector component -

Let's say I have a database of users who evaluate different products on a scale of 1-5, our recommendation engine users Recommends products that are very similar on the basis of other users' preferences. My first method was to use cosine parity to find similar users, and user evaluation was to be used as vector components only. The main problem with this approach is that it only measures the vector angles and does not take into account the rating scale or magnitude. My question is: Can someone explain (Users) to measure percentage difference between vector components Why is there a better cosine similarity to identify user similarity? For example, why not do this: n = 5 wire one = (1,4,4) B = (2,3,4) similarity (A, B) = 1 - ((| 1-2 | / 5) + (| 4-3 | / 5) + (| 4-4 | / 5)) / 3 = .86667 Instead of cosine similarity: a = (1,4,4) = B (2 , 3,4) Cosciemiracy (A, B) = (1 * 2) + (4 * 3) + (4 * 4) / sqrt ((1 ^ 2) + (4 ^ 2) + (4 ^ 2)) * SQLT ((2 ^ 2) + (3 ^ 2) +

objective c - Cocoa touch Framework with Unit tests -

with Objective-C in Xcode 6: When I make a Cocoa Touch Framework, the project is already a unit The test is the goal. Believing that I have a low grade and unit testing case in my framework: Interface MyClass: NSObject - (NSString *) Greetings; @end @implementation MyClass - (NSString *) Greetings {Return @ "Hello"; } @ And // test class # import & lt; UIKit / UIKit.h & gt; #important & lt; Xcastest / Xctest.h & gt; #import "MyClass.h" @ Interface MacCellel Tests: XctestCase @end @implementation MyClassTests - (empty) Test Greetings {Myclass * myClass = [[Myclass Light] init]; XCTAssertTrue ([[myClass Greetings] is EqualToString: @ "Hello"]); } @end When I try to run the test, I get: Undefined symbols for architecture x86_64: "_OBJC_CLASS _ $ _ MyClass ", Referenced from: objc in class-referee at MyClassTests.o Why is not the goal of the examination searching for my classes? I do not know what is wrong; I think t

java - Action Performed Jbutton and Keylistener UP -

I need a pocket button which is the scrollbar function for my Jepail because the scrollbar is small JebTown and JSrollbar are just two different things. You may have a button that changes the viewport of your app on every click - but you will not click and you can do this with the scrollbar like 'Slides' if your scrollbar is too small, you can see the theme of Java Keep an eye on the engine. With themes you can feel like your scrollbar look and app.

cypher - Neo4j - referring to ID() inside curly brackets -

I have a question about the Neo4j cipher language, it is possible to have a WHERE-clause in it like: WHERE (a) - [: r] - & gt; But, such a code 1234 actually refers to id () and not "id" property? Only when you started the identifier for : b . matte (a) match (b) where id (b) = 1234 and b: b virus (a) - [: r] - & gt; (B) But then you can make a normal match MATCH (A) - [: r] - & gt; (B) WHERE ID (B) = 1234 and B: B // Check for label: b If you already have an ID, then it may be irrelevant

angularjs - Angular directive for validation using two models -

After the "text" itemprop = "text"> using the new $ authenticator objection on ngModel, I in addition to an input data area in the input field in addition Validate the directivity works great in a checkbox if the checkbox (un) is checked before the user input, but if the user is input and then clicks on the checkbox, there is no verification Is not. Is there a way to trigger the verification box, either the checkbox or input field changes? The code looks like this: app.directive ('denyMultiples', function () {return required: 'ngModel', scope: {denyMultipleCheck: '='}, Link: function (scope, element, attrs, ngModel) {ngModel $ validators.multiples = function (value). {{Value = value.split (',') (Array.isArray (value)! );} Return value.length & lt; 2 || scope.denyMultipleCheck;};}};}); // HTML & lt; Input name = "item" deny-multiples deny-multiples-check = "query.deny_multiples_check" ng-model

ember.js - Multiple nested routes using RESTAdapter -

Image
I am trying to create an amber application using the REAtadapter which goes beyond one step of a normal step Which I have found away I could not work for some reason, and was hoping someone could help me. GET / folders = & gt; Get a list of all folders / folder / folder_id = & gt; List all items in the folder with given ID, GET / folders / folder_id / items / item_id = & gt; Item with ID given in the folder with given ID The results of nested templates are in three adjacent columns: folders, items and items (left to right). Item Folders is a list of items related to the selected folders in the column, and item items in the item item column are selected items. Thank you very much for your help, and amber long! you foldersFolderRoute to FolderIndexRoute Need to change the name I recommend using the Amber Chrome extension to visualize your route more easily, here it is shown about your current app:

ios - XCode 5 - Make image tappable like a button -

In XCode 5, how could I do this so that when I deny a UIImage something? Like a button, but I do not want to use a button. I need to have an image. I'm making a game and I do not know how to do it any more, please help. There is no such thing as a loose image, so image some Ensure that it displays it to ensure that some user interaction is enabled next to something (this can be an image view) then attach a UITapGestureRecognizer to it.

South with django 1.7 -

I am using the demo 1.7 for my application. With migrating, I got many problems every time I try to change the field name in the model which is a foreign key, it breaks. To decide only, go to the database and fix it, and they will run migrate followed by syncdb . How do I solve them because my application is getting bigger, and I will spend more time resolving database errors soon because my schema conversion is not supported for South Dzego 1.7 and it has its own migration which is not powerful? (I'm not sure, just a start) The Django 1.7 is based on the migration framework south. If you are upgrading, you should read this: From Docs: Upgrading from the South If you already have a pre- The current migration is South, then the upgrade process is quite simple to use django.db.migrations: Ensure that all installations are fully updated with their migration. Remove 'South' from INSTALLED_APPS Delete all your (numbered) migration files, but do not have direct

How to put date ticks on x axis in Matlab? -

I have a text file containing two columns, the date in the first column (yyyy-mm in this format) and the second column An integer text file is a matrix of 2 * 144 in this way: 1996-06 23 1996-07 53 1996-08 12 1996-09 21 ... I read the second column of the file by ImportsData and I do some operations on the second column but in the end they still remain 144. I can plot random numbers on the X axis, but I can not plot dates as X axis I need a vector of the same size, but I want to stay for only 12 years from 1996 to 2007. Yes, not all months on X-axis I am new to MATLAB and I would appreciate any advice. Here is the full version of my code and error and I know that I need a matrix of 1 * 144 Date: The best part is that to import your date vector properly on the first date. You get a time vector length compared to your data. To do this, you give more control to textscan ( importdata ). Import your data by importing your data, by looking at the code you provided in

xpages - Domino Designer sometimes showing no design elements -

Image
I am using IBM Domino Designer 9.0.1. I have a locally installed server, and I have an ODP project connected to the NSF. Recently I completely forgot the NSF elements to open the Domino Designer (take a look at the picture). The preferences / normal / workspace is set to 'Automatically refresh' and is automatically turned off. I have tried: Refreh (no effect), build (no effect), sync (progress bar is filled with 'Updating File menu based on Navigator Filter' but there is no progress. ) The only thing that seems to be working is to reorganize the ODP in a new NSF. Does anyone have something similar? Can I Restore Only Domino Designer? Because, you know, it's just a load of fun! I found another. You have not been mentioned that if processing indication (bottom right of the green circle and status bar) did not show anything in the background

vmware - How to detect unresponsive Virtual machine? -

I have windows virtual machine running on windows host server machine. I am using virtual machine vmrun utility from batch script. I would like to stop this VM if it is hanging or stopped responding. I can stop VM using the vmrun stop -hard command. But how do I know / know that VM is unresponsive or has hanged from batch script? You can make a thread for ping or telnet VM machine If you are not getting any response for ping or telnet in the predetermined time interval for monitoring, then you can restart the machine.

JPA - Override bean validation in joined-strategy inheritance -

I have three JPA entities: A, B and C. Is it possible to override the Bean Validation barrier in subclasses? For example, I would like to get a @not tap in a field and get a non-obligation in the same area for C. I was thinking of doing this using the Bean Validation group, but I do not know how to define B with another group and with C, the second group should be valid. Code to clarify the problem: @Entity @Inheritance (strategy = inheritance type. Jind) ... public abstract class A {... @ column (Name = "field") private integer field; ...} @Entity Public Class B expanded in a {... // @ NotNull field ...} @Antity LocalCc in a {... // @ Null field in ...} I think I came to a solution to read this second question about conditional bean verification I am .. It has not been tested yet, but I think it could work. The solution code: @Entity @Inheritance (strategy = InheritanceType.JOINED) ... Public abstract class A {... @ column (name = "FIELD ")

apache - Use htaccess to remove any sub directories in URL -

I run an expression engine site, regardless of any subdirectory sub directory names typed in the address bar, an article page Will load. For example, all these addresses: http://hellothere.example.com/health/mental/depression http://cats.example.com/health / Psychic / depression http://dogs.example.com/health/mental/depression http://www.batman.example.com/health/mental/depression http: //www.1.2.3.4.5.6.example. com / health / mental / depression will load example.com/health/mental/depression Obviously, it is less than ideal Since SEO, I have a potentially unlimited number of duplicate URLs. I'm trying to figure out how to use htaccess to strip anything before example.com and replace it with just www. Any help would be appreciated! You can not do it with htaccess, so how to do this is to set up a wildcard DNS record so that all Requests (* .example.com) all be directed to the same server. View

How do I get my UEFI EDK2 based BIOS to automatically load a driver located in its own firmware volume? -

I am using UEFI EDK2 to create a BIOS. I have modified the FDF to move a driver (both UEFI and legacy version) by the main firmware volume in a separate firmware volume (FV) that I have to hold the driver strictly made. Before the driver was taken from the main FV, I will see the legacy of the sign-on during the post. However, since I have transferred the driver to the new FV, I am no longer seeing the heritage sign-on. This legacy Orom appears to be no longer being loaded. It seems that EDK2 "automatically" loads only some FVS and then dispatch your drivers but I can not figure out how These special FVS are identified in EDK2. I have searched the EDK2 code for several hours trying to find out where / how to start the FV HOB but I can not find this code. My guess is that I need to add a GUID of new fund value to some list or data structure, but I'm actually guessing at this point. Any hints given will be highly appreciated. I found a place in the BIOS

javascript - Dojo and binding native select with WidgetList -

I'm trying to prepare the original selection list of data-bounds with dojo, I do not want to see the dojo widget Just plain selection, however, I am struggling to do this work The following code "works" (this binds three elements in the array), note that I have options in the span tag Is wrapped up, which will definitely render blank selection by any thought Can it to get, probably a completely different approach? Code: & lt ;! DOCTYPE html & gt; & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Top & gt; & Lt; Title & gt; & Lt; / Title & gt; & Lt; Script src = "/ script / dojo-release -1.9.3 / dojo / dojo.js" data-dojo-config = "parse download: 0, async: 1" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Function (parser, stateful, statefull array) {model = (dojo / parser "," dojo / stateful "," dojo

php - Creating attribute in domdocument -

मुझे इस प्रकार का एक्सएमएल बनाना है: - & lt;? Xml संस्करण = "1.0" एन्कोडिंग = "यूटीएफ -8"? & Gt; & lt; urlset xmlns = "http://www.sitemaps.org/schemas/sitemap/0.9" & gt; & LT; यूआरएल & gt; & Lt; loc & gt; http: //www.example.com/< / loc & gt; & LT; lastmod & gt; 2005-01-01 & lt; / lastmod & gt; & LT; changefreq & gt; मासिक & lt; / changefreq & gt; & LT; प्राथमिकता & gt; 0.8 & lt; / प्राथमिकता & gt; & Lt; / यूआरएल & gt; & LT; यूआरएल & gt; & Lt; loc & gt; http: //www.example.com/catalog आइटम = 12 & amp; amp; desc = vacation_hawaii & lt; / loc & gt; & LT; changefreq & gt; साप्ताहिक & lt; / changefreq & gt; & Lt; / यूआरएल & gt; & Lt; / urlset & gt; जिसके लिए मैंने यह कोड लिखा है, $ dom = new domDocument ('1.0', 'utf-8'); $ dom- & gt; formatOutput = true; $ रूट एलेमेंट = $ dom

RavenDb GenerateDocumentKey -

I need to create an ID for the hair object of my document. What is the current syntax for creating document key? session.Advanced.Conventions.GenerateDocumentKey (document) is no longer anymore I have found that the _document session. Advanced. Documentstress Insert GenerateDocumentKey method but its signature is weird: I'm fine with the default key generation algorithm I just want to pass an object and want to get an ID. Foo is changed to Foos / , which goes back again so that every time the server is not consulted, specify the ID on the client side Can be done. If you want actually this behavior, then you can try using your own HiLoKeyGenerator, but have you considered something simple? I do not know what your model is, but if the child is fully owned by the document (which should be in the same document) then you have a very easy choice: Simply use the index within the archive Keep an int nextchild thingId property on the document and every time you add a

java - Updating Calendar.SECOND in while loop -

My aim is to run a program in Java that lists the code at a certain time every day. I know about Timer Tasks and Timer utilities but one of the reasons for not using them is that most of my code is run under loop, the condition is that the thread is still alive . Some announcements: Fixed Ent Horror; Fixed int minute; Stable intexcode; The beginning of my time loop: while (this.threadAlive) {System.out.println ("Start thread"); TheHour = thetime.get (calendars.HOUR_OF_DAY); TheMinute = theTime.get (Calendar. MNUTE); TheSecond = theTime.get (calendar. SECOND); System.out.println ("second:" + second); // ... // ... // try {if (theHour == 12 & amp; amp; amp; amp; & amp; amp; & amp; amp; amp; amp; Amp; amp; amp; amp; amp; & amp; (second & gt; = 0; second & lt; 10)) {System.out.println ("in the loop"); If (super.connectToDevice ()) // // Send the data command to //out.println(COMMAND_GP; System.out.println ("Midnigh

r - How to output geom_raster() to a raster image? -

Image
I am doing quantitative image analysis, and looking at results ggplot2. In the original image there is a datapoint in output for each pixel. geom_raster () Imagines my data in R well. But it would be good for a raster image , in this way, I flipped through several derived images using a light image viewer (e.g., feh ) I can, and pixels will have to be raised altogether. Is there an easy way to output pixels, and only pixels in an image file? No legend, no ax, nothing but pixels let me have columns for data.frame in the line and call And the desired output resolution is also known. Here's a way: Library (ggplot2) library ( Reshape2) # to melt (...) n & lt; - 100 sets.seed (1) #productive example img & lt; - Matrix (rnorm (n ^ 2,30,3), nc = n) gg & lt; - Melt (data. Frames (x = 1: n, img), id = "x") ggplot (gg) + geom_raster (aes (x = x, y = variable, fill = value)) + scale_x_continuous (extension = c (0,0)) + # Extra space (fill = FA

C++ vector subsctript out of range -

abc.txt नामक फ़ाइल में, मेरे पास पाठ का इनपुट है: नमूना पाठ नमूना पाठ नमूना पाठ नमूना पाठ नमूना पाठ सबसे पहले मैंने फ़ाइल से पाठ को पढ़ने के लिए चर (नामित पाठ) बनाया है। फिर प्रोग्राम abc.txt फ़ाइल पढ़ता है। मैंने नामित वेक्टर बनाया: Arr.Sent फाइल से प्रत्येक पंक्ति को बचाने के लिए abc.txt। लूप के बाद प्रोग्राम समाप्त होने पर फ़ाइल abc.txt बंद करें तब प्रोग्राम को वेक्टर अर्रेस्ट से स्क्रेंन तक सभी वाक्यों को आउट करना होगा। मुझे इस तरह की समस्या है: प्रोग्राम के बाद, संदेश के साथ चेतावनी दिखाई देती है: वेक्टर सबस्क्रिप्ट को सीमा से बाहर। मुझे नहीं पता क्यों .. # शामिल है & lt; iostream & gt; # से & lt में शामिल हैं, स्ट्रिंग & gt; # से & lt में शामिल हैं, fstream & gt; # से & lt में शामिल हैं, वेक्टर & gt; नेमस्पेस एसटीडी का उपयोग करना; Void function () {string text; // चर फ़ाइल से पाठ बचाने के लिए ifstream myfile ("abc.txt"); // फ़ाइल से पढ़ने abc.txt वेक्टर & lt; string & gt; ArrSent; अगर (myfile.is_open ()) {// cout &

c# - How to add Click event handler to TextBlock on Window phones -

Image
I am writing an application for C # on Windows Phone, I am creating a TextBlock in my page using xaml How do I add an event handler in xaml I tried attribute as the use of 'click', but this is not a valid feature for text block. Thank you. It is tapped event (the simplest was almost perfect). Just a tip for you: The property explorer is on the right hand side of the window. If you click the event icon in the upper right, you will receive a list of all the events that display the control. Double click inside one of the fields located next to the text and Visual Studio will create an event for you and will place handler in the code behind the file.

javascript - Why is the first If 'is Not' statement not working? -

I see that except for the first option ("choose one") to see something else, Trying to leave left Logic: Is it true that the price is not "selected"? If so, return the truth (submit form). I believe that the argument I need to check is whether the price is not the first option. My code seems right, but I think I "!" Operator properly I have tried these versions "If val is no string, but they do not work. if (val! == 'select') Example of code below & form onsubmit = "Valid valid menu ()" & gt; & lt; Select ID = "dropdown" & gt; Option value = "Select" & gt; select one ... & lt; / option & gt; & lt; option value = "1" & gt; test1 & lt; / option & gt; lt; option value = "2" & gt; test 2 & lt; / option & gt; option value = "3"> test3 & lt; / option & gt; & lt; / select & gt; & lt; input Type =

Process SQL Queries in Input Files with Python -

UPDATE मैंने कुछ नया कोड लागू किया है और अब एक नया समस्या: inffile में infile के लिए: इन्फिल्स = argfile.readlines () के रूप में खुले (इनपुटफाइल, 'आर') के साथ query_dir = '/ path / to / sql' sql_commands = []: प्रिंट ("इन्फीलः {0}"। प्रारूप (इन्फिल)) कोशिश: infile = os.path.join (query_dir, infile) .replace ('\ n', '') क्वेरी = [sqlfile.strip () sqlfile के लिए क्वेरी में क्वेरी के लिए ई: प्रिंट ("IOError: {0}"। प्रारूप (ई) के रूप में IOError को छोड़कर (इन्फ्यूयल, 'आर')): sql_commands.append (query) प्रिंट ("sql कमांड: {0} ".format (sql_commands)) अब अंत में, जब प्रिंट स्टेटमेंट SQL आज्ञा देता है, फ़ाइल की सामग्री मौजूद है, लेकिन एक प्रारूप में जो मेरे लिए काम नहीं कर रहा है उदाहरण के लिए, ऐसा लगता है: sql कमांड: ['- टिप्पणी', '', 'कॉलम 1, स्तंभ 2,', चुनें। । । 'एक्स पी' से, । ।] मुझे एसक्यूएल क्वेरी प्राप्त करना है जो फ़ाइल में है जो कमांड द्वारा चलाने के लिए इनपुट फ़ा

python 2.7 - How to extract a value in a nested json source? -

I'm trying to get the temperature from a JSN source. It is nested and I can not understand how a nested value is obtained from a JSN file or URL. Even my codes have come so far: #! / Usr / bin / python import urllib2 import json f = urllib2.urlopen ('http://api.openweathermap.org/data/2.5/find?q=London&units=metric') json_string = f.read () parsed_json = Json.loads (json_string) temp = parsed_json ['list'] Print "The current temperature is:% s"% (temp) f.close () Now I can find all Value only once but do not have a special value (temporarily in my case) I like to get value without U'temp: if possible. u'temp ' How does Python Unicode Represents the objects that the JS string is parsed in Python. What are you looking for? print temp [0] ['main'] ['temp'] I do not know the structure of the API that you are calling, therefore it Can make quite a few assumptions, but it will give you raw temperatures.

ruby on rails - How do I DRY up this view? -

मेरे पास एक ऐसा दृश्य है जिसमें दोहराए तर्क बहुत हैं & lt; li & gt; & lt; a href = "#" & gt; ग्रेट दादा दादी & lt; / a & gt; मुझे कोई संदेह नहीं है कि यह कैसे सूखा। ; & LT; ul & gt; & Lt; li & gt; & lt;% if relative.humanize == "महान दादा" || relative.humanize == "महान दादी"% & gt; & Lt;% = link_to image_tag (membership.user.avatar.url आकार: "48x48",: वर्ग = & gt; "आईएमजी-सर्कल"), पारिवारिक_थ्री_थथ (सदस्यता.उपदेशक.फैमिली_ट्री)% & gt; & Lt;% = link_to membership.user.name, family_tree_path (membership.user.family_tree)% & gt; & lt;% else% & gt; कोई भी अभी तक जोड़ा नहीं है, उन्हें & lt;% = link_to 'here', "#", class: 'btn invite popupbox', 'data-popup' = & gt; 'Invite_friend'% & gt; & Lt;% end% & gt; & Lt; / li & gt; & Lt; / ul & gt; & Lt; / li & gt; & Lt; li & g

Is it possible to declare a main method as a string in Java? -

इस सवाल का पहले से ही एक उत्तर है: < / P> 28 जवाब मैं घोषणा करने की कोशिश कर रहा हूँ किसी पाठ फ़ाइल में आउटपुट कोड को प्रिंट करने के लिए स्ट्रिंग के रूप में मुख्य विधि। मैंने ऐसा कुछ करने की कोशिश की: स्ट्रिंग टेक्स्टआउटपुट 1 = ((मुख्य)); और स्ट्रिंग टेक्स्टआउटपुट 1 = (मुख्य ()) लेकिन यह काम नहीं करता है। यदि आप एक स्ट्रिंग या किसी अन्य जावा डेटा प्रकार के रूप में एक मुख्य विधि को घोषित करने का एक तरीका जानते हैं तो कृपया मदद करें। ऐसा नहीं है कि आप किसी पाठ फ़ाइल में आउटपुट कैसे प्रिंट करते हैं। आपके पास दो (बुनियादी) विकल्प हैं: आप stdin को System.out.println () जैसी फ़ंक्शन का उपयोग कर सकते हैं और एक आउटपुट ( java yourfile में पाइप करें) & Gt; foo.txt ), या आप फ़ाइल से सीधे फाइल में लिखने के लिए फ़ाइल संचालन का उपयोग कर सकते हैं। मैं पढ़ने की सिफारिश करेगा।

Assignment operators in R: '=' and '<-' -

Assignment operators' = 'and' & lt; - What's the difference between R? I know that operators are slightly different because this example shows x could not be found but is this the only difference? When you use them to set a logic value in the function call, the difference is obvious is. For example: average (x = 1:10) x ## Error: object 'x' not found In this situation, X function, so this user is not present in the workspace. middle (x <- 1:10) x ## [1] 1 2 3 4 5 6 7 8 9 10 this condition In, the user is declared x in the workspace, so that you can use it after the function call is complete. For assignment '& lt; - To use ' , there is a general priority among the community (other than the signature of the function) for older versions of S-Plus (very) for compatibility Note that spaces are clear to such situations Helps like x To type in most RIDE, type '& lt; To make it easier, the keyboard s

php - Do i have to escape input using mysqli_real_escape_string even though i check it using is_numeric to prevent sql injection -

I am using $ _GET ['id'] to get the ID And see it DB I think if I use the is_numeric function to check the string, then it is numeric or not, then I use the mysqli_real_escape_string I>. But recently it was found. It was found whether the given variable is numeric or not. Numeric strings include optional sign, any number of digits, optional decimal part, and optional exponential part. Thus + 0123.45e6 is a valid numeric value. There is also permission for hexadecimal (such as 0xf4c3b00c), binary (eg 0b 10101111001), October (eg 0777) signaling, but without any indication, decimal and exponential part referee: The question is Do I have to avoid input using mysqli_real_escape_string, though I check it using is_numeric to prevent SQL injection ? As the input will only have numerical value eg. 555, 222,456, 879 Although I can not think of a specific way of attacking your example, I can not think in a way! "=" This is not possible ". If

extjs - Sencha Touch how to set selected item in selectfield -

I'm using Touch 2.3.1. How to select an item in a selectfield? There is no way to support this. I do not want to set the invoice to a placeholder in select grounds. I tried it Google but there is nothing about it. Obviously it supports it. Value Ext.field.Select's is the value of the selected item, therefore, you can either set the initial value or at any time by value Config from the setValue method.

utf 8 - using utf-8 in javascript file -

I have the external javascript file in â ?? Trying to use ° $ (' but I can not save all the characters correctly within the document's existing encoding document: Or an encoding that supports special characters in this document. What should I do? You should change the file Put in the TFT-8, and then try to paste it in the letters after being saved and saved. Your file can be one of several formats, depending on your editor, Using a text-editor like Notepad, it is going to disturb you from things that are not happy with ASCII.

objective c - How to save record if internet connection unavailable? (or how to save via CKOperation) -

What is the correct way to save records in my app database, when an Internet connection or LTE / 3G? To modify and delete records too? Any answer will be appreciated! From: From: "Because it provides minimal offline caching support, dependent on the presence of cloudkit network Alternatively a valid iCloud account " In short, CloudKit is a connected API, if you want some offline cache, you have to provide it yourself (and later remember to do actual network operation keep).

Show Value Only If Not Empty - PHP -

I have found a form where some fields are optional I then display these areas. I am trying to show only one value from my database if there is a value. Otherwise, do not show anything. If there is a value, it needs to be displayed - & lt; div class = 'category' style = 'font-size: 20px; Background color: f2f2f2 '; ". $ Line ['project_category']" & lt; / Div & gt; Do I 'if (strlen ($ prjcat)> 0)'? Thank you! If you are checking a if statement that the value is empty : if (empty ($ line ['project_category'])) {echo "

android - Mediarecorder infolister getting 895 -

I am using MediaRecorder to record user sound in my application and all the time I can test with the actual device I am working and it is working properly. But in some devices it shows a warning. What is the MediaRecorder's OnInfoListener giving me 895. I am using the code recorder = new MediaRecorder (); Recorder.setAudioSource (MediaRecorder.AudioSource.MIC); Recorder.setOutputFormat (MediaRecorder.OutputFormat.MPEG_4); Recorder.setAudioEncoder (MediaRecorder.AudioEncoder.AMR_NB); recorder.setOutputFile (getAudioRecordFileName ()); Recorder.setOnInfoListener (infoListener); and OnInfoListener Private MediaRecorder.OnInfoListener infoListener = New MediaRecorder.OnInfoListener () {@Override Information on Public Zero (MediaRecorder mr, int what, Int extra) {toast. Make Text (Receivective), "Warning:" + What + "," + Extra, Toast. LNNGHIHORAR) Show (); }}; Here's the problem, what kind of error is it? I ran into the same problem my device

java - Spring @RequestMapping deserializer -

यह है कि मेरे पास क्या है: SomeController.java @Controller @RequestMapping (मान = "/ एफू", उत्पादन = मीडियाटाइप। एपीआईएलआईसीएनजी_एनएनयूआरएन) सार्वजनिक वर्ग कुछ कंट्रोलर {@RequestMapping (value = "/ bar", method = RequestMethod.POST) सार्वजनिक @ResponseBody ResponseEntity & lt; संसाधन के & lt; बाज & gt; & gt; CreateCampaign (@RevestBody Foobar foobar) {...}} अब, मुझे foobar के लिए एक कस्टम JsonDeserialiser का उपयोग करने की आवश्यकता है, लेकिन केवल इस विशेष समापन बिंदु के लिए, प्रत्येक अन्य समापन बिंदु के पास फ़ोबार के रूप में इसके @RequestBody को डिफ़ॉल्ट का उपयोग करना चाहिए यह कैसे प्राप्त किया जा सकता है? मैं बातें करने से एक अन्य तरीका कल्पना नहीं कर सकता द्वारा हाथ । एक सादा स्ट्रिंग के रूप में अपना अनुरोध निकाय प्राप्त करें और इसके साथ कस्टम जेसनडेसेराइलाइज़र को कॉल करें: सार्वजनिक @ रिस्पॉन्सबॉडी रिस्पांस एंटीटीटी & lt; संसाधन & lt; बाज़ & gt; & gt; createCampaign (@RequestBody स्ट्रिंग बॉडी) {// do

How to replace HTML class when scroll with jquery -

& lt; & lt; हैडर & gt; & lt; nav class = "navbar navbar- डिफॉल्ट टॉप-पोस्टियन navbar-up" भूमिका = "नेविगेशन" & gt; & Lt; div वर्ग = "कंटेनर-द्रव" & gt; & Lt;! - ब्रांड और टॉगल को बेहतर मोबाइल डिस्प्ले के लिए समूहबद्ध किया जाता है - & gt; & Lt; div class = "navbar-header" & gt; & lt; बटन प्रकार = "बटन" वर्ग = "नेविबार-टॉगल ढह गई" डेटा-टॉगल = "पतन" डेटा-लक्ष्य = "# बीएस-उदाहरण-नेविबार-पतन-1" & gt; & Lt; span class = "sr-only" & gt; टॉगल नेविगेशन & lt; / span & gt; & Lt; span class = "icon-bar" & gt; & lt; / span & gt; & Lt; span class = "icon-bar" & gt; & lt; / span & gt; & Lt; span class = "icon-bar" & gt; & lt; / span & gt; & Lt; / बटन & gt; & Lt; एक क्लास = "नेवबार-ब्रांड" href = "#" & gt; & lt; आईएमजी src =

java - Is Tomcat 5.5.x version compatible with windows 2012 server OS? -

We are working on the Tomcat 5.5.20 on the Windows 2003 R2x64 bit server OS. We are now upgrading our Windows OS from 2003 to 2012. I know whether Tomato 5.5.x version is compatible with Windows Server 2012 OS. If so, which version is compatible and how do we move forward with it. In addition JDK & amp; Jere version working with Windows Server 2012 We are currently using jdk1.5.0_08 and jre1.5.0_08 thanks in advance Sachin Jain The question should be, jre1.5.0_08 Windows Server 2012 is compatible with the OS, because this program is used to run Tomcat? Windows Server 2012 for 1.5 is not listed by Oracle therefore it is not "officially" supported. List of Windows Server 2012 for 1.6 published by Oracle. The minimum version of Stephen is to use a Tomcat that you should use in Windows Server 2012 so Tomcat is 7. Of course, there is not a list of Windows Server 2012 for 1.4 published by Oracle - the reason I mentioned is that the JRE is used by many other ins

java - The API package 'memcache' or call 'FlushAll()' was not found -

I'm testing some code locally using Google Apps Engine SDK 1.9.12. I have added the servlet listener to initialize the memcache with 2 namespaces I I Method contextDestroyed (ServletContextEvent SCE) Memcache entries included in the code to clear. MemcacheServiceFactory.getMemcacheService () clearAll (); It really throws the following exception in the server is down: Warning: Exception com.google.apphosting.api.ApiProxy $ CallNotFoundException: API package 'Memcache' or call 'flush' () 'was not found. com.google.apphosting.api.ApiProxy $ 1.Get (ApiProxy.java:179) com.google.apphosting.api.ApiProxy $ 1.Get (ApiProxy.java:177) on com.google.appengine.api.utils on (FutureWrapper.get on com.google.appengine.api.memcache.MemcacheServiceImpl.quietGet (MemcacheServiceImpl.java:26) on Com.google.appengine.api.memcache.MemcacheServiceImpl.clearAll FutureWrapper.java:88) all (MemcacheServiceImpl .java: 170) org.mortbay.jetty com.valeo.general.listeners.Base