Posts

objective c - In iOS where should objects be created if not in view controller -

I have a class (which receives data from NSNotificationCenter, processes it and sends it back to the NSNation Center ) That I start my app just once. I could have done it with a visual controller, but it seems weird because they are not related, so where are you right to create an object, which are not directly related to the UI, But living in the life of the application Should? You should keep things for which app delegate The app running in the H / M file must be alive for the entire life cycle.

How can I create a fixed size Gtk.TextView in Gtk+3? -

I have a GTKteviewview in which a GTK is fixed and I have set its width and height and rap mode. My problem is that I need to avoid expanding TextView, when the user joins more text than fit in the set size, in that case I have to stop the user from writing. Any help? If you have a line entry, instead of text, use textentry rather than textview Text entry You can set the maximum length of the textant. For the development of UI using Glade. Apart from this, if your UI change is based on the configuration file from the server, then it is also a solution, all windows are in the window, show / hide the widgets based on the config file from the server.

jquery - Is there a good way to deal with unobtrusive validation's seemingly asynchronous behavior? -

Image
I have a short verification code run when I submit a form. Contradictory recognition has been established for my form. ("{strict} use"; $ ("# feedbackForm"). Submit (function () {var t = $ (This) .serialize (); var val = $ (this) .validate (); console.log (val.errorList.length); return false;});}) (); When I hit a breakpoint in Chrome, I see the following behavior: You can see from the console that when the code was originally executed, it recognized 0 errors in the error list of verification, but when I got a breakpoint If I stop execution through, it recognizes 4 errors of verification error list is also with After the first time, is calculated correctly at the right number of runtime errors. How is this possible? How can I get the exact number of errors runtime? Edit 1: I can not reproduce this problem on jsfiddle, so something else should be run. Edit 2: I should also keep in mind that the setTimeout () within the submitler Using...

asp.net mvc 4 - Can't get ViewContext.RouteData.Values["Controller"] to work for me -

I'm doing something wrong, I know so much :) I'm trying to display a simple breadcrumb on one page I am I have it in a scene: @if (view context.RootData value ["action"]. Toaster () == "index") {& lt; Li & gt; // This "Mater" @ View Contex RootData displays value ["Controller"] & lt; / Li & gt; } Other {& lt; Li & gt; // It shows a hyperlink "Mater", //, but Href "MyApp / Matter / Matter" & lt; A href = "@ ViewContext.RouteData.Values ​​[" Controller "]. ToString ()" & gt; @ViewContax Root data Value ["controller"] & lt; / A & gt; & Lt; / Li & gt; } In the above scenario, I have my root C file set to be "MyApp / Matter" which corresponds to an "index" verb on "MeterController". When clicking on the link you are brought to "my app / mater / mater" which does not work. How can I work it out?...

sql - Truncate a table while preserving the auto increment ID in SQLite -

I have a SQLite database with many different tables I have one of these tables Delete data table data AUTO_INCREMENT = {value from first query} Is there a small / better method? Unless you have created your table from AUTOINCREMENT to the primary key set, Starting with 1 Please read more about AUTOINCREMENT in SQLite from here:

Get paypal user information after sale creation -

I am integrating PayPal in a shopping cart and want to get the user's shipping information after paying. I know that there was a way to use this old API, but it seems that the API has changed when the developer was started. Paypal.com. I do not know which URL I have to use to get information about extended donors. So far, I am sending the user to paypal and when the user comes back, I have a payer ID and a token. From the previous call, I have an execution link, but there is no details link. Do I need to force the user to enter shipping information before reaching PayPal? If that's the case, it just seems confusing that PayPal shows shipping information from my system and not mine. How can I get once from paying the shipping amount to the payer of the payment? Most traders use paypal instant payment notifications (ipn) to get payment details, including shipping address. Are there. It allows you to receive real-time information instead of pinging us instead of paying. Be...

javascript - CKEditor appears gray in internet explorer -

I visited many websites to find a solution. My editor works in almost every browser Internet Explorer. Space (Textera) is not visible to change the content in Internet Explorer, the rest editor is visible. Does anyone know the solution? I did not find it on the internet. Updating the editor is probably a solution, but it took me some time to configure it together with Ckfinders, so I'm afraid that cecfinders are not working after an update. The editor had worked a few months ago, but I did not work on the website for a few months. & lt; Textarea id = "textarea" name = 'text' class = 'editor' & gt; & Lt; / Textarea & gt; To show my editor. & lt; Script & gt; $ (Document) .ready (function () {$ ('textarea.editor'). Ckeditor (function () {/ * callback code * /}, {language: 'nl', ui collar: '# e9eaee', toolbar Startup Expanded: Incorrect, Toolbar: [[Name: [Tool: Item: ['Maximize', '...