Posts

Showing posts from March, 2012

node.js - Redirect logged-in users to https in Express? -

I am using a username / password strategy to authenticate users on my website. I have ensured that the user should be logged on to HTTPS, and I have ensured that the session cookie is sent only on HTTPS: app.use (express.session ( {//. Cookie: {secure: true}})); But now, if someone enters (over HTTPS) and then returns to the website on HTTP, it seems that they are not logged in because their browser cookie Does not send. I want to redirect logged-in users to HTTPS. I think I need to issue two cookies: a session description (marked safe: true ), and that only "are you logged in" (Marked secure: incorrect ) If I see another cookie on HTTP, then I can redirect to HTTPS, and a secure cookie will be sent. Presto: The logged-in user is redirected to HTTPS. Question: How can I do this in Express? a strict-transport-security . app. (Function (rik, riz, next) {if (req.secure ()) {res} This will automatically rewrite the HTTP HTTPS to your browser. .header (...

c++ - calling the correct virtual method using member function pointer -

In the example below, where I tried to minimize the problem, there are 4 squares A, B, C, D. , which make up a succession hierarchy When the program starts, the object is created from class D and test D class. This method calls the C class caller method. This method attempts to use the function to call the function pointer to call the correct f method. In this case it should call the f method related to the D class, but it calls the one connected to the B class. How come? square A {public: virtual zero (F) = 0; }; Class B: Public A {Public: Virtual Zero F () {cout & lt; & Lt; "In B" & lt; & Lt; Andal;}}; Class C: Public B {Public: Virtual Zero F () {B :: F (); Cout & lt; & Lt; "In Sea" & lt; & Lt; Endl; } Virtual Zero Collar () {Zero (A: * CB) () = Faucet; CB = & amp; A :: F; (This-> CB =); }}; Class D: Public C {Public: Virtual Zero (F) (C: F (); Cout & lt; & Lt; "In D" & lt;...

Strange results when using Scala collections -

I have some tests with the results that I can not quite explain. Reduce the list of first test filters, maps and 4 elements: {val counter = new AtomicInteger (0) val l = list (1, 2, 3) , 4) val filtered = l.filter {I = & gt; Counter.incrementAndGet () true} val maps = filtered.map {i = & gt; Counter.incrementAndGet () i * 2} val less = Map.Redos {(a, b) = & gt; Counter.incrementAndGet () a + b} println ("count" + counter. Gate + "and the result is" decreased ") (20 == decreases) Insert (11 == counter.get)} I hope the counter increases 11 times: once for each element during filtering, once for mapping each element and three times to add 4 elements. / P> The result of the wildcard varies: {val counter = new AtomicInteger (0) val l = list filtered (1, 2, 3, 4) val = l .filter {counter.incrementAndGet () _> 0} Ell map = filtered.map {counter.incrementAndGet} _ * 2} val less = map. Rados {(a, b) => Counter.incrementAndGet () a + ...

sql - How to Sum a series of rows in MYSQL from one Table, matching the info from another to get the result -

का चयन करें तालिका 2। *, (चयन से (qtde) तालिका 1 से तालिका 1.cnes = table2.cnes और table1 .procedimento = table2.procedimento और table1.mes = table2.mes और table1.ano = table2.ano ग्रुप द्वारा cnes, procedimento, ano, mes) तालिका 2 से एसएएमए यह कोड काम करता है मेरे पास दो टेबल हैं। तालिका 1 में कॉलम हैं: सीएनईएस, प्रोसिडेमेटो, एमईएस, एएनओ, क्यूटीडीई इसमें इस तरह की जानकारी हो सकती है (और मैं यह तथ्य नहीं बदल सकता, मुझे अन्य सॉफ्टवेयर से जानकारी मिलती है) + ------ + ------- ------- + ----- + ----- + ------ + | सीएनएस | PROCEDIMENTO | एमईएस | एएनओ | | क्यूडीडीई | + ------ + -------------- + ----- + ----- + ------ + | सी 1 | P1 | एम 1 | ए 1 | 12 | | सी 1 | P1 | एम 1 | ए 1 | 3 | | सी 1 | P1 | एम 1 | ए 1 | 5 | | सी 1 | पी 2 | एम 1 | ए 1 | 4 | | सी 1 | पी 2 | एम 1 | ए 1 | 4 | | सी 1 | पी 2 | एम 1 | ए 1 | 3 | | सी 1 | पी 3 | एम 1 | ए 1 | 4 | | सी 2 | पी 2 | एम 1 | ए 1 | 5 | | सी 2 | पी 2 | एम 1 | ए 1 | 4 | | सी 2 | P1 | एम 1 | ए 1 | 3 | + ------ + -------------- + ----- + -...

C++ If loop inside a for loop. Limits -

I have this code. for (int j = 0; j and lt; = n; j ++) {xnew2 = j * (y + r2) / n; Ynew2 = PA ((((Y + R2) * (Y + R2) - (XNU2 * Xnew2), 0.5); The court's & lt; & Lt; "\ N (" I want to display all the values, but I also want to make a limit on the displayed values ​​to ensure that does not exceed ynew2 Any radius under 310 or -310 is 482.7mm, which is currently running. How can I do this? I tried to put a if inside the loop, but it does not work and whatever I tried gave me only one value. Any help? Try it out: for (int j = 0; J & lt; = N + J ++) {Xnew2 = j * (Y + R2) / N; Ynew2 = PA ((((Y + R2) * (Y + R2) - (XNU2 * Xnew2), 0.5); If (stomach (Ynew2)> = 310) cout & lt; & Lt; "\ N (" & lt; & lt; Xnew2 We use the abs function to get the full value of the Ynew2 variable, and compare it to 310 . If it is low SidNote: You should avoid using \ n and std :: endl (or just endl if you have a announcement ...

ios - GPUImageHistogramFilter for a still image giving zero data -

is very similar, except I still want to create a histogram for the image. What I'm doing below, and it's giving histogram with all 0 data. There is some trick to getting this work done for GPUImageFilter * filters = [[GPUImageHistogramFilter alloc] initWithHistogramType: kGPUImageHistogramRGB]; GPUImagePicture * Basic = [[[GPUImagePicture alloc] initWithImage: image] autorelease]; GPUImageGammaFilter * gammaFilter = [[GPUImageGammaFilter alloc] init]; [Basic addTarget: GammaFilter]; [GammaFilterAditag: Filters]; GPUImageHistogramGenerator * Histogram Graph = [[GPUImageHistogramGenerator alloc] init]; [Histogram Graph Force Processing Etsis: CGSizeMake (256.0, 330.0)]; [Filter addTarget: histogram graph]; GPUImageAlphaBlendFilter * blendFilter = [[GPUImageAlphaBlendFilter alloc] init]; BlendFilter.mix = 0.75; [Mix filter force processing atas: CGSizeMake (256.0, 330.0)]; [Original addTarget: blendFilter]; [Histogram graph addTarget: blendFilter]; [Mix filter add-target:...

Highcharts - prevent large marker from overflowing axes - my bubbles are escaping =( -

Image
This picture should say all this. I have been trying to do is trying to implement a bubble chart with Haikarrts (changed basically marker size based on some metric is a scatter plot) Sadly, avoid charts me some bubbles, axis Trying to spew and mess things up and try hard, some way to stop it? Obviously I can manipulate the range of axes, but I want to hide the overflow part of the bubble. Also, it is not an option if X-axis is required to start from 0 (for example). Image: Overflow (highchurch): No overflow (chart director). This is what I need: I recommend trying to use v3.0 beta release which should solve your problem. For example, please see: $ ('# container'). Uchccharts ({chart: {type: 'bubble', plotBorderWidth: 1, zoomType: 'Xyx, [6 9, 1], [0, 93, 505], [57, 2, 90] [80, 76, 22] , [11, 74, 96], [88] [42, 38, 500], [39, 89], [57, 62, 98], [4, 16, 16], [46, 10, 11] ], [22, 87, 89], [57, 91], 82], [45, 15, 98]]}]});

hyperlink - jQuery Collapsible Plugin: How to toggle Open all/Close all -

Instead of two links "open all" and "close all" Wish toggle comes with jquery.collapsible.js API toggle Method: The available methods are available from these plug-ins: CSS-close-class is specified when closed Toggle - Toggle Connectable State Open - Opening An Open Close - Collapse one - "Plugin methods" - - Demo Copying the style found on the page: Function Toggle () {$ ('.page_collapsible') Open ('toggle'); } $ ('# Toggle'). Click (function (event) {event.preventDefault (); toggle ();});

c# - how to resolve a proxy class in Castle Windsor -

I have a WCF service that I am trying to use Castle Windsor. This is used to look like registration: container.Register (Component.For & LT; IBatchDataService & gt; () .AsWcfClient (WCFEndpoint .FromConfiguration ( "Internal.IBatchDataService") ) .LifestyeTransient ()) I have now created a proxy that remains in the process. It exposes the same interface (IBDData service) and takes the context of the WCF service as a constructor logic. I resolve it can to establish the Windsor have to be solved in order to use the proxy class to another class but proxy class WCF service I have right now: container Krjistr (Componentkfor & lt; Ibtcdtsservis & gt; () Kimplimentedbi & lt; Batcdtsservisekliant & gt; ()); The new proxy class should resolve. Try this: ... container.Register (Component.For & LT; IBatchDataService & gt; () AsWcfClient (WCFEndpoint.FromConfiguration ( "Internal.IBatchDataService")) LifestyeTransient () N...

github - git ignore on one branch but not on another -

There is a repository that is not on my gitub. I had cloned it, so now I have a copy of it in my Gitub account and it is a copy of that repo on my computer. I have created a branch which has its own directory and all the files that I am committed to that branch, it is called apple when I switch back to the master branch, then I get the information in the situation that the directory and all that The files that I was committed to in apple showed up in the situation. So now I have hundred or so files, every time I switch to master I see. My question is how can I create it so that when I masted those files which I have not got attention to the branch of apple? I am sure that I can modify Guitnor in the master, but it will change the project. thanks edit: Commenters have said that if the files were made in another branch, when I switch the branches and it Right, then they should not show them. After working with everyone, what I was searching for here, what I found was that, w...

Nested List with PHP and MySQL -

I have to use PHP and MySQL to create a nested or multi-level list. For example: John 555 555-5555 For example: P> 666 666-6666 Christine 777 777-7777 Amy 888 888-8888 999 999 99 99 222 222-2222 & lt ;? Php $ result = mysqli_query ($ dbc, "Select fname, Customer to Phone, Phone, Customer_phone WHERE Customer. Id = customer_phone.customer_id and phone.id = customer_phone.phone_id"); While ($ line = mysqli_fetch_array ($ result)) {echo $ line ['fname']; Echo " "; Echo ['phone'] per line; Echo " "; }? & Gt; View orders by and only for the first time when this name comes, its Print the name. Also, learn how to properly connect using "on" section. On the customer's phone, the user connected to the consumer related to the consumer_phone & lt ;? Php $ result = mysqli_query ($ dbc, "SELECT fname"; Join the phone from the customer .customer_id customer_phone by phone.id = ...

php - Using ? and : operators compared to { and } -

इस सवाल का पहले से ही एक उत्तर है: 54 जवाब मैंने कई स्थितियों में देखा है स्टैक ओवरफ्लो पर, मैं लोगों को उन उदाहरणों का उपयोग कर देखता हूं जो: $ Var = isset ($ _ सत्र ['कुंजी'])? $ _SESSION ['कुंजी']: शून्य; वास्तविक संरचना और प्रतिनिधित्व क्या है? क्या कोई निष्पादन सुधार सर्वर एक साधारण अगर और else स्टेटमेंट की तुलना में इन ऑपरेटरों का उपयोग करने के साथ-साथ है? या यह आम तौर पर व्यक्तिगत प्रोग्रामिंग प्राथमिकता के नीचे है? यह सिर्फ छोटा कोड बनाने के लिए है यह समतुल्य है: यदि (कुछ कंडिशन) // do जर सत्य है तो / अन्यथा या आपके कोड के लिए ... यदि ($ _SESSION ['कुंजी']) $ Var = $ _SESSION ['कुंजी']; और $ var = नल;

css - asp.net website to mobile/tablet -

I have an asp.net website, contains database calls etc. What's the most to take Good way is an existing ASP.NET website and it looks good in mobile and tablet devices? I have done some research but there are so many options like low framemaker dot com, jakmori mobile etc. I have used the previously used MVC, but some people use MVC + jquerymobile No magic will be appreciated. There is no bullet that will change your website immediately on mobile. In fact, without knowing the characteristics of your website it would be difficult to recommend a good fitness for your situation because as you mention MVC, Jacquemobile etc, such equipment will be used in one or the other case. With this question as you have created it, you will get personal opinion and with the opinion we are millions ... here is mine: I will not recommend making a specific website like mobile. Websites.com but look at the responsive design where your website and the underlying data strokes are the sam...

c++ - Image Not Being Found -

When I'm trying to display an image in SFML 2.0, it can never find the image. I am using Visual Studio Express C ++ 2010. Here's my code. #include "stdafx.h" using namespace std; Int main () {// Main Window SF :: Reader Window Window (SF :: Video (800, 600), "SFML Window"); // SF :: Load a sprite to display texture texture; If (! Texture.loadFromFile ("image.png")) {cout & lt; & Lt; "File image panda could not be found" & lt; & Lt; Endl; System ("pause"); } Sf :: Sprite Phantom (texture); // Create a graphical text to display // Load a music to play // Start the game loop (window.isOpen ()) {// Process Event SF :: Event Event; While (window.pollEvent (event)) // Close the window: exit if (event.type == sf :: event :: shutdown) window.close (); } // Clear screen window. clear (); // sprite window.draw draw (phantom); // Draw string // Update window window display (); } Return EXIT_SUCCESS; } But this wor...

html - Why is my javascript code not running? canvas and javascript events -

My Javascript code is not running, but HTML is dragging the canvas ..... I add an event listener Trying on the Canvas HTML element, I click on the element which should give me a warning. Ive tried it on Firefox and Google Chrome. & lt; Script language = "javascript" type = "text / javascript" & gt; Warning ("yo"); Canvas.addEventListener ('click', function () {}, false); Var elem = document.getElementById ("checkersq"), elemLeft = elem.offsetLeft, elemTop = elem.offsetTop, reference = elem.getContext ('2d'), element = []; Elem.addEventListener ('click', function (event) {var x = event.pageX - elemLeft, y = event.pageY - elemTop; elements.for each (function (element) {if (y> element.top & Amp;; Y & lt; element.top + element.height and x> element.left and x & lt; element.left + element.width) {warning ('an element clicked' );}}}) ; }, false); Elements.push ({color: '# 05EFFF...

String append with format in android -

Anyone help me please do not know how to add string as a format to Android: string key = ""; Attach ("% d-% d-% d", 0, 1, 2)); Please give me an example. Thanks in advance. Use a stringbinder or stringbuffer, but with sufficient initial capacity to avoid allocation again. The default capacity is 16, so once you get more than that, then the data must be copied to a new large space. Use not append. int integer = 5; Stringbuilder S = new string builder (100); S.append ("something"); S.append (integer); S.append ("more text");

r - Convert markdown to Rd, or define custom markdown conversion rules? -

I am trying to write a documentation for an R package in Markdown, and it has changed it to an RD file. . I think there is another way to see that I need a framework that recognizes different marktains and allows me to specify how this should be provided, such as: ` ** text ** is converted to \ Bold {text} Markdown lists by \ itemize {...} and so on are given. Is there anything that will allow me to do this? R pander package in R (wrapping around Pandok) in R, looks promising, but I'm not sure that I can specify conversion rules (for example it's \ texttt Converts backtaking by using I \ code ), and it creates a complete standalone document instead of just changing my input snippet. The markdown package for R appears simply markdown - & gt; Html It seems that possibly may be supported for custom presentations, but I'm not sure how to write one (It seems that I have to type c code?) I get back to something like this: Convert Mar...

ruby - Splitting array and get desired elements -

If I have this array: ["1", "2", "3, one", "4, b"] How can I get this array from it? ["1", "2", "3", "4"] It should also work ... Array = ["1", "2", "3, a", "4, b"] i in 0 .. array.length () - 1 if array [i] .include? (",") Ab = array [i] .split (",") array [i] = ab [0] end-end print array # ["1", "2", "3", "4"]

classpath - Mahout Java compilation issue -

I am reading Mehout In Action and I am working in chapter 2. $ javac RecommenderIntro .java RecommenderIntro.java thread: Error: package org.apache.mahout.cf.taste.impl.model.file Import Organization does not exist. Org.apache.mahout.cf.taste.impl.model.file *; ^ RecommenderIntro.java:3: Error: package org.apache.mahout.cf.taste.impl.neighborhood does not exist import org.apache.mahout.cf.taste.impl.neighborhood. *; ^ RecommenderIntro.java:4: Error: package org.apache.mahout.cf.taste.impl.recommender Import Association org.apache.mahout.cf.taste.impl.recommender does not exist. *; I have installed Mahout via yum: $ sudo yum install mahout ... Downloading packages: mahout-0.7 + 12 -1.cdh4.2.0 P0.9.el6.noarch.rpm | 94 MB 05:17 Running rpm_check_debug Running Transaction Transaction Transaction Running Transaction Updating: MaHout -0.7 + 12-1 CDH 4.2.0.p0.9 L6.Narp 1/2 Cleanup: Mhout -0.7 + 8-1 cdh 4 .1.2.p0.12.el6.noarch 2/2 Verification: Mahavat-07 + 12-1 cd 4.2.0.p0.9. 66....

what is the difference between assigning one object to another object and returning object and assigning it to another object in javaScript? -

इसलिए यदि हम दो ऑब्जेक्ट बनाते हैं var dog = {var नाम: "dog" , मेकसाउंड: फ़ंक्शन () {अलर्ट ("वाह"); }} Var cate = {var नाम: "केट", मेकसाउंड: फ़ंक्शन () {चेतावनी ("म्याऊ"); }} केट = कुत्ता; अब दोनों केट और कुत्ते एक ही ऑब्जेक्ट को इंगित करें। और अगर हम इसे इस तरह करते हैं cate = object.create (कुत्ता); दोनों के बीच अंतर क्या है केट और dog एक ही वस्तु को अब इंगित करता है? object.create निर्दिष्ट प्रोटोटाइप ऑब्जेक्ट के साथ एक नया ऑब्जेक्ट बनाता है और गुण। मानों के साथ नहीं! जबकि cate = dog; कुत्ते ।

ios - How to detect ellipsis in a UILabel? -

मैं Objective C पर प्रोग्रामिंग कर रहा हूँ। मेरे पास UITableView के साथ UILabel 's है UILabel में एलीपिसिस कैसे पता लगा सकता है? पहले हम पाठ की चौड़ाई प्राप्त कर सकते हैं जो लेबल में प्रदान किया जाएगा। फिर हम उस चौड़ाई को लेबल की चौड़ाई से तुलना कर सकते हैं। यदि उस चौड़ाई से अधिक हो तो स्ट्रिंग को अन्यथा छोटा नहीं किया जाता है। UPDATE यदि पंक्तियां होती हैं तो लाइनों की संख्या गिनती है और lablewidth * numofLines UILabel * lblAppTitle = (UILabel *) [self.view viewWithTag: 777]; CGSize stringSize = [lblAppTitle.text sizeWithFont: lblAppTitle.font]; // गणना पंक्तियों की संख्या [lblAppTitle sizeToFit]; इंट न्यूलाइंस = (इंट) (lblAppTitle.frame.size.height / lblAppTitle.font.leading); यदि (stringSize.width & gt; (lblAppTitle.frame.size.width) * numlines) एनएसएलॉग (@ "कटौती हुई स्ट्रिंग"); अन्य NSLog (@ "स्ट्रिंग को कम नहीं किया"); आशा है कि यह आपकी सहायता करता है।

sql - Backup stored procedure for full, differential and log backup -

I have written a simple stored procedure to support full, differential and LOG backups. This is my stored procedure: Order Process Backup DB (@base location as Varchar (1024), @ Backup Type varchar (32)) @Debanem varchar (255) = db_name () Announce @phrankname Varchar ( 256) Announce @DateTimeDate = GateTit () Set Type @ Backup = UPPER (@ Backup Type) @philname = @DNA + '_' + Right ('00 '+ cast (in the form of month (date) varchar (2)), 2) + +' _ '+ cast (in the form of the year (@date) varchar (4) '_' + True ('00' + cast (in the form of day (date varchar (2)), 2) + Varchar (2)), 2) + '_' + right ('00 '+ cast ('_' + Wright ('00' + Cast (Date of Date (H.H., Date @) varchar (2)), 2) + '_' + Writ ('00' + Cast (as dated (date, date, date) varchar (2)), 2) + '_' + right ('000' + cast (dated date) (MS, @ date) varchar (3 ), 3) + '_' + UPPER (back) Type "Type" Backup ...

php - how to apply inner css in codeigniter controller single statement -

Hello guys, I know that we can apply to look at CSS, but in some cases I have to show the availability of the company or not to use Ajax. Which shows the position directly from the controller & amp; Right now, I want to apply on CSS that my code is like the above and the name of 'company name' is my name and html input tag. Controller: function get_companyname () {if (strlen ($ _POST ['company name']) = 5) {$ query = $ this- & gt; Company_model- & gt; Verification_com page name ($ _ POST ['companyname']); If ($ query & gt; 0) {echo "not available"; // I want to apply CSS here} and {resonate "available"; // I want to apply CSS here}}} Ajax code: $ ('# company name'). Keyboard (function ()) {var companyname = $ (this) .val (); If (companyname.length & gt; = 5) {$ ('# Companyname_status') Text ('Search ....'); If (company name! = '') {$ .post ('test', {companyname: companyname}, func...

Android: Listview Item with Radio Button? -

I have a list view and an associated line view (xml) for that, there are 5 questions in the list and each question is 4 Options are therefore line view xml has defined 4 unique radio buttons (for option) in the text view (for question) and radio group, so as an option there is a single component with option 4 option The list is repeated 5 times. My problem is that how can the particular radio button selected for all 5 questions and its related options on any one event such as: submit button linked to serious problem, thank you public zero on radia button (see view) {// Is the button now checked? Boolean check = ((radio button) view). the inspection (); // Check which radio button was clicked on the switch (see .gateID) {Case RID. Radiobutton 1: If checked (checked) // radio button 1 is selected. break; Case R.id.radiobutton2: If (check) // radio button 2 is selected. break; Case R.id.radiobutton3: If (check) // radio button 3 has been selected. break; Case R.id.radiobutton4:...

c - Dynamic Allocation Two dimensional array of fixed-length strings -

Image
एक प्रोग्राम में, मुझे इनपुट से स्कैन करना होगा scanf ("% s ", currWord); शब्दों की एक गैर-परिभाषित संख्या, जो लाइनों की एक परिभाषित संख्या में आती है। मैं शब्दों को दो आयामी सरणी में डालना चाहता हूं । स्ट्रिंग्स की लंबाई तय की गई है [MAX_WORD_LEN + 1] मेरा विचार है: int पंक्ति = 10 // 10 int int प्रारंभ करने के लिए प्रत्येक पंक्ति में col = 5 // 5 शब्द int i शुरू करने के लिए; टाइपेडफ चार शब्द [MAX_WORD_LEN + 1]; // 11char लंबाई स्ट्रिंग शब्द ** मैट्रिक्स के नए प्रकार; // 2 आयामी सरणी (पॉइंटर्स) जिसमें कोई स्मृति मैट्रिक्स = मॉलोक नहीं है (पंक्ति * आकार (शब्द *)); // (* = i; i & lt; पंक्ति; i ++) के लिए शब्द * (शब्द संकेतक) आकार की पंक्ति संख्या आवंटित करें {मैट्रिक्स [i] = मॉलोक (कॉल * आकार (शब्द)); // प्रत्येक पंक्ति के लिए शब्दों की संख्या आवंटित करें} इसलिए, मुझे पता नहीं है कि यह सही है। मुझे कुछ मदद और सुझावों के लिए खुशी होगी .. संपादित करें: इनपुट से शब्द प्राप्त करते समय मुझे मेमोरी (प्रत्येक पंक्ति में पंक्तियों और शब्दों की संख्या)...

ios - Custom logo and button not appear in UINavigationBar -

I have a UINavigarionController and I want to add custom background and logo and add the left button in the navigation bar I can add background But my logo and button do not appear, would you please help me, thank you in advance! Your code worked and I am receiving logos and buttons, but with a change UIButton * button = [UIButton buttonWithType: UIButtonTypeCustom]; [Set button image: [UIImage imageNamed: @ "menu.png"] forState: UIControlStateNormal]; // [button addTarget: self-acting: control event for @Selector: UIControlEventTouchUpInside]; [Button Set Frame: CGRactMake (0, 0, 25, 25)]; UIBarButtonItem * rightButton = [[UIBarButtonItem alloc] initWithCustomView: button]; Self.navigationItem.rightBarButtonItem = rightButton; UIImageView * Navigation Image = [[UIImageView alloc] initWithFrame: CGRectMake (0, 0, 120, 30)]; Navigation Image. Dimension = [UIImage imageNamed: @ "menu.png"]; UIImageView * workaroundImageView = [[UIImageView alloc] initWithF...

Symfony Load Twig Template For Email -

I found an error in the Symphony jogging template during load. Do I need to include it: Use Sensio \ Bundle \ FrameworkExtraBundle \ Configuration \ Template; Unable to find the template "CrudBundle: email.html.twig" [unacceptable] Unable to find the template "CrudBundle: email.html.twig" [Twig_Error_Loader] This is folder structure. src / Btn / CrudBundle / command / SystemCommand.php : Classroom Location src / Btn / CrudBundle / resources / views / email Html.twig : Template Location class SystemCommand Expands Containerware Commands {protected function configure () {$ this - & gt; Setnam ('cron: email: send') - & gt; Setdition ('verifies accounts'); } Secure function executed (InputInterface $ input, output interface $ output) {$ output-> Drafting ("This is a test"); $ Message = \ swift_message :: newInstance () - & gt; SetSubject ('Hello Email') - & gt; Setfram (exampleample@s...

Refactoring into partials in Rails -

पेज 1 में, मैं कोड A + B + C का उपयोग करता हूं पेज 2 में, मैं कोड बी + सी इसलिए जब मैं आंशिक बना देता हूं, तो मुझे इसके बारे में कोई अंदाज़ा नहीं है कि इस से कैसे निपटें। उदाहरण के लिए, एक पोस्ट-टिप्पणी प्रणाली में। मैं 2 अलग-अलग पृष्ठों में @ टिप्पणी दिखाने चाहता हूं टिप्पणी सूचकांक पृष्ठ में, हम इसे पोस्ट करने के लिए दिखाते हैं। और पोस्ट शो पेज में, हमें केवल टिप्पणी की सामग्री दिखानी है (चूंकि टिप्पणी को फिर से दिखाने की कोई आवश्यकता नहीं है) # टिप्पणी इंडेक्स पेज & lt;% @comments प्रत्येक करें | टिप्पणी | & Gt%; & Lt;% = comment.post% & gt; & Lt;% = comment.author% & gt; & Lt;% = comment.content% & gt; & Lt;% end% & gt; .. # पेज दिखाएँ पृष्ठ & lt;% @ comments.each करें | टिप्पणी | & Gt%; & Lt;% = comment.author% & gt; & Lt;% = comment.content% & gt; & Lt;% end% & gt; तो, मैं कोड का पुन: उपयोग करने के लिए आंशिक कैसे बनाऊं? शायद यह पसंद है? लेकिन यह ऐसा करने का और अधिक शानदार तरीका है? # ...

lemonstand in subdirectory nginx -

मैं उपनिर्देशिका www.mysite.com/shop/ के तहत Lemonstand चल रहा हूं I लीमनस्टैंड के लिए स्थान नियम: # झेंग्झौ स्थान / दुकान {root /home/sites/mysite.com/public_html/shop/; सूचकांक index.php; शामिल हैं fastcgi_params; Fastcgi_split_path_info ^ (। + \। Php) (/.+) $; Fastcgi_param SCRIPT_FILENAME $ document_root / index.php; Fastcgi_param SCRIPT_NAME index.php; Fastcgi_param QUERY_STRING यूआरएल = $ यूरी और $ आर्ग्स; Fastcgi_pass 127.0.0.1:9000; Fastcgi_index index.php; Fastcgi_buffer_ आकार 32k; फास्टकसी_बफ़र्स 4 32 कश्मीर; Fastcgi_busy_buffers_size 64k; } मैं mysite.com/shop पर पृष्ठ का उपयोग कर सकता हूं। दुकान के सभी यूआरएल चाहिए इस तरह होंगे: mysite.com/shop/category/freight mysite.com/shop/ उत्पाद / कुत्ते-खिलौना वास्तव में पृष्ठ पर वे इस तरह संरचित होते हैं: mysite.com/category/freight mysite.com/products / कुत्ते-खिलौना और अजीब बात यह है, भले ही मैं ब्राउज़र को सही यूआरएल में चिपकूं, यह केवल कभी दिखाता है मेरा बेस / शॉप / पेज , जैसे कि अन्य पृष्ठ मौजूद नह...

javascript - Standard way to pass jQuery references to callbacks or plugins -

What is the recommended way to pass cached jQuery references, e.g. To work as a callback, $ domContainer in var $ domContainer = $ ('# container'); The function is defined before and outside of the $ (document), .ready () ? Example: & lt; Script src = "/ plugins.js" & gt; & Lt; / Script & gt; Function line action (event) {// How do I get a reference here in this external file of reusable tasks? // How can I use $ domTable and $ domFilters / I can use $ (event.target) and go back to dom // back to $ domTable, but $ domTable is not defined in external file , Although there is no reference in the local realm of cached // $ (document) .ready (); // Similarly, $ domTable can be accessed via event.delegateTarget //, however, how can I pass $ domFilters and other wars? } In the main script & lt; Script src = "/ scripts.js" & gt; & Lt; / Script & gt; Standard document ready $ (document) .ready (function...

factory girl - Rails association.create and association.create! returns nil -

I'm just throwing it out because I can not really understand it when I call for example User.articles.create! {Title: 'blah'} Zero is returned but the object is formed. I have not seen anything like this before and wondered what else has anyone else? I have tried Rail 3.2.13 and 3.2.12 and they both do the same thing. Edit Create and create both in active records! Ends in this method which is to return the record or throw exceptions. High Definition> def create_record (attributes, options, raise = false, & amp; block) ActiveRecord :: Increase RecordNotSaved, "You can not call until the parents are saved" End if attributes.is_a? (Array) attributes.collect {| Attr | Create_record (atr, options, review, end block)} and transaction edit-to-target (build_record (options). Record | Yield (record) if block_guwing? Insert_record (record, correct, extend) End End End End If I'm not wrong Duplicate the real thing that you are working throug...

sametime - Reading A File While It is writed by another process -

I have an application that uses the C: // root folder. Pictures in this folder are pictures by these pictures are taught by Images are coming from a Linux machine via FTP, a Linux machine is in Windows which is used to open the C: // root of FTP Uses. IMAGE_1.jpg Save IMAGE_1.jpg To show in the picture box, the C # windows form is read by the app. Images are coming every 10 seconds from a Linux machine Windows shows these images in a thread Occasionally, Linux or Windows skips the exception. Because one of them has tried to show the image to show (windows), trying to save the other image (Linux) Therefore, I have to understand that, if Image_1.jpg Do not try to show the image in win form, used by Linux machine. In your Win form application, open the file to read, and Share the file with other processes so that they can read / write the file. Use to do this. If you use the bus or the file will not be shared. By sharing, you should keep the FTP side of things...

asp.net mvc - Table not removed in EDMX after deleting in SQL -

Working with MVC 4VS 2012 and EF5 I had a database and POCO TT classes automatically generated. This is followed in order to move POCO into different projects. Now I edit my datatype (string or allow entry) or SQL Server. I came and am updating my model (admx). Thanks I do not think you do not remember anything. I'm unsure about the logic used by the designer, it adds more to the experience than I have not seen much update. I just want to delete the table and add it again as the least painful route. This will remove custom mapping, so this is not ideal if your organizations are very different from your tables.

ibmsbt - Error while getting acess token from IBM Connections -

I'm able to get the authorization token, but there is an error in access token, now I'm doing 1. Get the code: https: // {host} / oauth2 / endpoint / connectionsProvider / authorize? Response_type = code and client_id = sample_application and redirect_uri = http: // {host} I got something back like this: http: // {host} /? Code = XMQPNpxCxkRCfixMFbWiTQVD4PcM11 2. Try to use the use token: POST method: https: // {host} / oauth2 / endpoint / connectionsProvider / token? Grant_type = authorization_code and redirect_uri = http: // {host} and client_id = Sample_Application and Client_screw = PIEAHOQ6Ads 0VR9FKTMSNGQFUUGDL2IJHS 38k A7TGGD2NN3RCSL2BEI With payload data: code = XMQPNpxCxkRCfixMFbWiTQVD4PcM11 In the second step only I get the error - WillSTEL The problem was solved that the title we were sending was MediaTap. Appliance_JSON, but the token and point API mediatype APILICADAARAAMAADODD is expected, hence the work of Oath Flow was changed by c...

ios - NSJSONSerialization data in a different format -

I submit the data to where I currently am using Parse.com as a backend to your application, I am The data is a list of video game consoles. I was able to make an output about it, but instead of JSON data, the output is a big NSMutableArray This is my viewDidLoad:. - (zero) viewDidLoad {[Super Viewedload]; NSURL * url = [NSURL URLWithString: @ "https://api.parse.com/1/classes/Consoles"]; NSMutableURL request * request = [NSMutableURL request request withURL: url]; [Request URL: url]; [Set http system: @ "gET"]; [Request Set Value: @ "APPLICATION_ID" HTTP header field: @ "X-parse-application-id"]; [Request Set Value: @ "REST_API_KEY" for HTTP headerfile: @ "X-Pars-Rest-API-Key"]; NSError * error; ID listOfConsoles = [NSJSONSerialization JSONObjectWithData: [NSURLConnection sendSynchronousRequest: Request ReturningResponse zero error: Zero] Options: NSJSONReadingMutableContainers error: & amp; Error]; NSLog (@ ...

vb.net - command line arguments works in visual studio but not from command line for a WindowsForm project in Visual Basic -

I have a small program in visual origin. It inserts a file and uploads the file to an FTP server, the program works well on itself. My problem is that I think it is does not appear as a separate wanted to treat me if it is takes arguments from the command line or no logic, no and if the load does not form codes are command-line arguments work properly when the scene killed the basic (project properties - & gt ;. debug - & gt; starting place - & gt but when I Execute the program with this line from CMD: pogram.exe C: \ users \ user \ File.txt The form shows and no argument reveals The key factor for the dispatch Module1.vb: .. Module Module1 declared function AttachConsole Lib "kernel32" (ByVal dwProcessId Int32) as Boolean declared function FreeConsole Lib "kernel32.dll" (as Boolean sub main (in)) dim cmdArgs string (in) = as GetCommandLineArgs () Form2kloadData () so cmdArgs.Length = 0 then 'not ARGS MODE mainWindow.commandLineMode...

entity framework - How I Keep My Database Content -

I am creating an ASP.NET MVC project with the first model of the unit framework code. Suppose that this project has been done. If I change the model code the next day, the first initializer will drop and create the database. This is a problem that pleases my thousands of records, how do I keep a database record? I can not keep the seed method with thousands of records The keyword is "database migration", and their description example First for the code

Javascript toggle button with Jquery Mobile -

Please know how to work this toggle button according to code below. It works only after the first click and then the button does not have a value Hope this works Is: ($ (this) .attr ('value') == 'top up') {$ (this) .val ('stop'); $ (this) .prev ('.ui-btn-inner') ('.Ui-btn-text') .html ('stop'); $ (this). Button Marcup ({theme: "c"});} and $ (This) .val ('stop') ; $ (This) .prev ('.uiui-btn-inner'). Children ('.ui-btn-text') .html ('stop'); $ (this). Button Markak ({Theme: "B "});}});

bitbucket - Using git submodules with ssh authentication on Openshift -

मैंने अपने openshift रिपो पर एक सबलोड (एक बिटबकेट रेपो) बनाया है। मेरा वर्तमान .gitmodules कॉन्फ़िगरेशन: [submodule "php"] पथ = php url = git@bitbucket.org: sgtcarneiro / repo.git समस्या यह है कि जब मैं इस कोड को मेरे ओपनएस्टिफ्ट ऐप में डालूँ, तो मुझे अनुलिपि त्रुटि मिलती है: रिमोट: होस्ट की कुंजी सत्यापन विफल रिमोट: घातक: रिमोट एंड अनपेक्षित रूप से रिमोट काट दिया गया: 'git@bitbucket.org: sgtcarneiro / repo.git' का क्लोन पाइपलाइन पथ 'php' में विफल यह तब से होने की उम्मीद है जब से मैं ओपेन्सिफ्ट सर्वर से पब्लिक की बिटबकेट पर कहीं भी उल्लेख नहीं किया सार्वजनिक कुंजी को खोजने / संपादित करने के लिए मैंने पहले से ही अपना .ssh / जांचने की कोशिश की है लेकिन मुझे उस तक पहुंचने की कोई अनुमति नहीं है। पुनश्च: एक वैकल्पिक हल के रूप में मैं HTTPS सबमिशन पर उपयोगकर्ता और पासवर्ड के साथ प्रमाणीकरण और ठीक काम कर रहा है। आपको अनुमति नहीं होगी उपयोगकर्ता की होम डाइरेक्टरी, लेकिन आप $ OPENSHIFT_DATA_DIR (जैसे, ~ / app-root / data /) के तहत अपनी सभी ...

How to prettily format GPS data in java/android? -

I'm getting GPS data 2 as double - a double for longitude, another double for the latte. I form them as strings form. (MGps.getLatitude (), position. FORMAT_MINUTES); Although I want to tell it on Google Maps, as they say, 17 (here is the symbol for degree) 55 (here is the symbol for minutes) 23 (here Symbol is second) How do I do this? You have got Java implementation to do that conversion. // decimal latitude or longitude in two latitudes or longitude. 87.728056 String decodedMS (double coros) {String output, degree, minute, second; // modulus gets coordinated by one (MOD 1) coordinate. // In other words, after all decimal numbers, all the numbers are met. Mod = 87.728056% 1 == 0.728056 // // Get the integer part of further coordinates. In other words, the whole number of parts Eg eg IntPart = 87 Double Mod = Sync% 1; Int intPart = (int) coordination; // degree set for the value of intPart //e.g = "87" degree = String.valueOf (intPart); // N...

django - What is causing the following template error 'Invalid block tag: 'blocktrans', expected 'elif', 'else' or 'endif'? -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब निम्न टेम्प्लेट क्या कर रहा है त्रुटि? टेम्पलेट में /var/www/userreg/tagging/templates/registration/login.html, त्रुटि 153 लाइन पर त्रुटि अवैध ब्लॉक टैग: 'blocktrans', उम्मीद 'elif', 'else 'या' एंडीफ '143: 144: 145: & lt; टीडी & gt; 146: 147: & lt; / td & gt; 148: & lt; / tr & gt; 14 9: & lt; / table & gt; 150: & lt; / td & gt; 151: & lt; td शैली = "टेक्स्ट-संरेखन: केंद्र;" & gt; 152: {% if socialaccount.providers%} 153: & lt; p & gt; {% Site_name के साथ% block_trans_name_ site_name}} कृपया {% endblocktrans%} 154: 155 के माध्यम से अपने मौजूदा खातों के साथ साइन इन करें: & lt; div class = "socialaccount_ballot" & gt; 156: 157: & lt; ul class = "socialaccount_providers" & gt; 158: {% "सामाजिक खाते / स्निपेट / प्रदाता_ सूची.html"%} 15 9: & lt; / ul & gt; 160: 161: & lt; div वर्ग...

iphone - How to make some view not to rotate? -

I have some thoughts controller I need to leave one and rotate its subview. Is this possible? Do not I want to change it? Can I apply this to add visual controllers like this one to another? Parents do not react to rotation and the child responds? See my answer to this question: It is very much the same question, either my attitude will work in theory.

javascript - Bootmetro menu template -

Image
Then I used a firebug to inspect part of the CSS that was applied to a drop down menu . You can see here that a: hover: active is responsible for hover over the color. In this case boot subway has set it in blue color: Firebug shows that the CSS line The bootstrap.css on the responsible 2842 line was: .dropdown-menu li> A: Hover, .dropdown-menu li & gt; A: Focus, .dropdown-submenu: hover & gt; A {color: #ffffff; Text-decoration: None; Background color: # 0081c2; Double-repeat: repeat-x; Background image: Linear-gradient (bottom, # 0088 cc, # 0077b3); } However when changes the background-color: # 0081c2 if it is something different then it remains the same at the time of testing. Firebug shows that if I change the background color then it changes using firebug, but still it is not being applied when I manually apply it to the CSS file. I tried to change all the settings to see if anything would apply and nothing happens: .dropdown-menu li & gt; ...

javascript - How can I call back a function? -

I'm a little new on jquery codeverse. I would like to know how to call back the function CSZ after changing the size of a document. Here's my current setup: $ (document) .ready (function CSZ () {| CODE |}); Then later, I want to call back the code with this function: $ (window) .resize (CSZ); It seems that this is a very simple concept which is not working for me. You can then refer to it for both the callback: function CSZ () {// content} $ (document) .ready (CSZ); $ (Window) .resize (CSZ); Currently, CSZ is an identifier CSZ will only be within the scope of this function inside this function Who recognizes. By changing your example to follow, you > a function instead. This will then be available anywhere within that area where it appears (and scope of its descendants).

markerclusterer - Clicking on marker cluster wants to open spider with exact same location markers by default -

I was trying to apply MarkerCluster (MS) with overlapping marker cluster (OMS). Everything seems to work well However, I am looking to modify the way OMS works so that I can click on that cluster which has 2 digits below When I click with 2 points on a cluster, with the exact same geographical location, it opens a marker and when I click on that marker it opens the spider with 2 markers. When I click on the cluster, make a spider with 2 markers, still not enough work to spend a lot of time. I have already tried several solutions, like 1. When I'm adding the marker to the OMS (Om.Adm marker), I can track and click on the basis of Google Map's zoom_evited event, but due to this we add it to markers, the firing of it Click do not shoot event ..... 2 I see an event splitfish, so I tried to trigger that event with the marker object (Om .. transger ('SpiderFai ', Marker);) But nothing is working ... Here I am also adding the code snippet: MC = New marker clus...

wpf - Genrating Views (UserControls) using ContentControl -

I have a UserControl (MainView) that needs to display itself in other UserControl based on some condition, This will display AView or BView (they both appear in the same place in the MainView). I am using ViewModel's first approach, so the visual templates are generated by: Public category AVView: UserControl {} Public Class LiveView: UserControl {} Public Class AviModel: View MODELBase {} Public Class BVM Model: From the point of use of resource, there is a difference between these two approaches: 1) With a content control & lt; Content control content = "{some binding some models}" /> personal viewloadbase _ somewellmodel; Set up Public ViewModelBase SomeViewModel {get_someViewModel;} {if (! ReferenceEquals (_someViewModel, value)) {_someViewModel = value; RaisePropertyChange (SomeViewModel); }}} In this way, I can set the ViewWind (AViewModel or BViewModel) to some ViewModel, and select appropriate view to display data templates. 2) Control the ...

ios - How do I Implement printInteractionControllerParentViewController: with a popover? -

for implementation I am doing printInteractionControllerParentViewController : as UIPrintInteractionControllerDelegate Popover showing the print options necessary to customize which is this part, popover (portrait) appears in the size of the whole height of the iPad, before shrinking down in normal size. How to get advice on popover for a more sensible way would be helpful Here's my implementation: - ( UIViewController *) printInteractionControllerParentViewController :. (UIPrintInteractionController *) printInteractionController {UINavigationController * navigationController = [[UINavigationController alloc init]]; Popover = [[UIPopoverController alloc] initWithContentViewController: Navigation Controller]; [PopOverSetPopwerbackgroundWeeklass: [customputerbackgroundviewview class]]; [Popovers presentPopoverFromRect: _printButton.frame Keeping in mind: self.view permissionArrowDirections: UIPopoverArrowDirectionAny animated: Yes]; [Popover.contentViewController.viewSe...

How to make a extension/script/program that will refresh a browser until a certain phrase/keyword is found or is not found? -

Is there a program / extension that I can use with browsers that will refresh a webpage and a certain phrase or Search the text and then stop or can not be found when the phrase is closed. For example, I have created a site in which a rand iMaser was used through the word "one," "two," and "three". This program will refresh the page, unless the word "three" is found, if I set it to search for that word, and then stop it after it is found. OR This program will refresh the page until the word "three" is found, if I set it to search for that word, and then turn it off Not stopped after it is closed. I know that we can use curls and grep to do this, but the page has not been loaded on webbrowser. This is not what I want. See if there is a solution that we can also load on the browser If such a thing is not present, then how to write such a program, but any thoughts? Which tool to use it? You can write an extension very ...

perl - Net::Telnet, trying to read a output -

I am trying to read this output from my output, how to use print and wait, I do not Successfully This output is .... zSH> V52-interface-group 1 v52-interface-group 1 Get the name-id: --------------------- & gt; {CTAA-024} Local-Interface-ID: ---------- & gt; {1024} Local-Pro-version: ---------- & gt; {2} prov-variant- Request: -------- & gt; {Norequest} Admin-Status: ---------------- & gt; {Inservice} pstn-layer-3-start-address: - & gt; {1} isdn-env-func-start-address: - & gt; {1} Port alignment-request: ------ & gt; {Norequest} National-PSTN-Area: -------- & gt; {Brazil} Switch-Vendor: --------------- & gt; {Nortel} Protocol-specific: --------------- & gt; {Edition2} startup check-link-id: ------- & gt; {False} startup-unblock-user-port: - & gt; {False} link-osus-timer: -------------- & gt; {2500} link-is-timer: --------------- & gt; {200} There are 16 elements in v52-link [A] ll, [n] one, display a [b], or [q] ui...

python - How to ensure sqlite db connections get closed during debugging? -

I'm working on some code that connects to a SQLite database, in the debugging process, the code said, in the problems I am running where I have blocked the open connection to the database because some errors prevented from implementing closed orders. Because DB and C are defined within a function, I can not find those objects from the command line and can not stop they are like orphaned connections or some things, but as long as I can not close my interactive console And in any case, they prevent me from doing anything else from the database. Here is something that looks like: def some () db = sqlite3.connect ('mydatabase') C = db.cursor () Here are some different things These errors may occur, thus preventing the execution of db.commit () c.close () db.close () The last closing work in the "end" block Has attempted to leave an attempt / clearance with, but when I debugging it prevents exceptions from getting back into the interactive output, and things ...

How to change git ssh user for a remote push temporarily? -

Is it possible for the SIS user to temporarily replace "GIT push remote master" without .git / config or " Git remote ", or using the entire remote URL? [Root @ host gitrepo] # git pushusotheruser @ remote master # This does not work, but it would be great [root @ host gitrepo] # USER = Other user GIT Remote Master # still asks for password password Have you tried to use the entire remote URL? git push ssh: // and you will be asked to provide a password

unresolved externals SAP NetWeaver RFC SDK 7.1 client example Visual Studio 2010 -

"postprint" itemprop = "text"> I am also trying to compile companyClient.c in a Visual Studio 2010 project right from I lib, but sapnwrfc.lib I still many unresolved outer joins: error 1 error LNK2019: unresolved external symbol _RfcCloseConnection @ 8 function referred _errorHandling C: \ Users \ Attila \ Desktop \ SAP_NWR_RFC \ SAP_NWR_RFC \ CompanyClient Obj SAP_NWR_RFC error 2 error LNK2019: Unsolved exterior symbol _rls_main C4: _Uls__main C: \ Users \ Attila \ Desktop \ SAP_NWR_RFC \ SAP_NWR_RFC \ companyClient.obj SAP_NWR_RFC error 3 error LNK2019: Unresolved external symbol _RfcDestroyFunction _ 8 function referenced in _nlsui_main C _RfcSAPUCToUTF8 : \ Users \ Attila \ Desktop \ SAP_NWR_RFC \ SAP_NWR_RFC \ companyClient.obj SAP_NWR_RFC Error 4 Error LNK2019: External symbol _RfcGetString @ 5 error outlined in function _nlsui_main C: \ Users \ Attila \ Desktop \ SAP_NWR_RFC \ SAP_NWR_RFC \ companyClient.obj SAP_NWR_RFC Error 5 LNK 2019: Narmo Lved ...

vb.net - How to get table dynamic in EntityFramework 5 -

I am switching from LINQ to SQL EntityFramework 5. From LINQ to SQL I have used this function, to get the table just by its type (VB-code): dim type like type = myObject.GetType () Dim Reference MyEntities = New MyEntities () query = context.GetTable (type) .AsQueryable () Now I'm searching for the same method in EF5 I got a reply on SO, but my reference Do not have a method called CreateObjectSet . Is there a difference between EF4 and EF5, or am I forgetting something? Based on the answer I found that I can use instead of set CreateObjectSet : GetTable (T as class) (T as unit) as dynamically returns dbContext.Set (T) (I ) Termination function

jsf - h:selectManyCheckbox loses values when navigating -

Text after " My problem is that: selectManyCheckbo loses values ​​when navigating, here's my code below: & lt; H: selectManyCheckbox id = "selectGroupsBox" value = "{userCreationWizardBean.selectedGroupsId}" layout = "page direction" & gt; & Lt; F: selectItems var = "group" value = "# {userCreationWizardBean.terminalsGroups}" itemLabel = "# {terminalsGroup.groupName}" itemValue = "# {terminalsGroup.id}" itemDisabled = "# {Group.defaultGroup}" & gt; ; & Lt; / F: selectItems & gt; & Lt; P: ajax event = "change" update = ": form-top-wizard: numBase" process = "selectGroupsBox" listener = "# {userCreationWizardBean.selectedGroupListner}" & gt; & Lt; / P: ajax & gt; & Lt; / H: selectManyCheckbox & gt; If I go back and forth using my navigation pad, then the checkbox loses value: & lt; Div id = "...