Posts

Showing posts from July, 2015

ios - How to stop push button -

This question is already an answer here 5 answers I I'm a newbie for iOS program and I need your help. When I click on the button, my code checks to have a condition, if the condition is correct, I want to use the next to go to UIViewController readyForSegue with data, but if the condition is , I do not want that VC next to to use and want to stay on current VC . How can I do this? When I click on my button, it is possible to block access to the code directly in the next VC IBAction ? I try to code on a push button - (IBAction) Lancerity: (ID) sender {... Other answers should work, but they ignore the whole issue of segues in a way: if you should There is no need to manually action on buttons for things, instead you should override - (bool) shouldPerformSegueWithIdentifier:. (NSString *) Identifier this: (ID) This selector To do this, you need to give your segue one (NSString *) identifier this: (id) this {if ([ Identifier isEqualToStr...

ruby - Rails flash.now within after_action -

The code speaks for itself on it. This works ... Classes some controllers & lt; ApplicationController DEF Index Flash. Now [: Warning] = 'Some have got bored!' End and and this is not ( flash is empty) ... class SomeController --Eytmprop = "text"> At the end of your index action rails, you new refer to the page, as if you have not specified anything different, after the index page is rendered, after_action is executed, it adds a callback after the index action is completed Will be said. Therefore, test_flash has no effect because it is too late and the index page has already been provided. Edit: If you want to call test_flash before rendering, you can override the Render method and do something like this: def render * args test_flash super end

mysql - Parameter warning php -

इस सवाल का पहले से ही एक उत्तर है: $ name1 = $ _POST [ 'name1']; $ Lname = $ _POST ['lname']; $ Uname = $ _POST ['uname']; $ Email1 = $ email1; $ ईमेल 2 = $ ईमेल 2; $ Pass1 = $ pass1; $ Pass2 = $ pass2; $ पास 1 = एमडी 5 ($ पास 1); $ Sql ​​= "का चयन करें * उपयोगकर्ताओं से जहां uname = $ uname"; यदि (mysql_num_rows ($ sql) & gt; 0) {गूंज "क्षमा करें, वह उपयोगकर्ता पहले से मौजूद है"; बाहर जाएं(); } चेतावनी: mysql_num_rows () पैरामीटर 1 को संसाधन होने की उम्मीद है, /nas/students/unix/public_html/dsa1/register.php में लाइन 27 पर दिया गया है निश्चित रूप से: int mysql_num_rows (संसाधन $ परिणाम) पुनर्प्राप्त करता है एक परिणाम सेट से पंक्तियों की संख्या। यह कमांड केवल SELECT या SHOW जैसे एक बयान के लिए मान्य है जो कि वास्तविक परिणाम सेट को वापस लाती है। एक संसाधन एक एसक्यूएल क्वेरी से कुछ अलग है इस मामले में एक संसाधन है जो PHP MySQL लाइब्रेरी एक कथन के संदर्भ में चारों ओर से गुजरता है जो पहले से ही चल रहा है। आपको ...

CUDA: How should I handle cases where the number of threads cannot be represented as a dimGrid*dimBlock? -

Suppose that my input has seven data points on which some are calculated and returned the result back to an output array Goes 7. Size declares the block dimension, there are 4 results in grid size of 2, which is to run the kernel with the invalid thread id (using pt_id = blockIdx.x * blockDim.x + threadID.x) Goes to Attention 7 and fails due to invalid memory access (since I base the thread ID But I am using some of my things). I could add the code to my kernel which specifically connects the thread ID to a max_thread_id parameter and if thread_id> max_thread_ id does nothing, I wonder if rubbing is a great way to handle input arrays . The function of a size that is not greater than the dimension of the block, is. The solution I use the most is to assume that the size of your input data is N and you want to configure your launch with the block size equal to BLOCK_SIZE Are there. In this case, your launch configuration can look like this: kernel_function & lt; ...

python 2.7 - TypeError: unsupported operand type(s) for %: 'long' and 'str' -

इस कोड के साथ: current_time = time.localtime () time_now = time.strftime ('% H:% M:% S', current_time) cursor.execute ("SUBSCRIPTION_DETAILS से * चुनें * अलर्ट_time = '% s'")% time_now मुझे त्रुटि मिलती है: % के लिए असमर्थित ऑपरेंप प्रकार (s): long and str प्रकार of अलर्ट_टाइम Varchar है आपने अपना % खो दिया है आप अब कर रहे हैं: कर्सर.असेक्यूट ("[स्निप]")% time_now इसलिए आप time_now cursor.execute के परिणाम पर आप स्ट्रिंग के साथ % का उपयोग कर सकते हैं, जैसे: कर्सर। एक्सक्यूट ("[स्निप]"% time_now) लेकिन ऐसा मत करो, आपको उपयोग करना चाहिए: कर्सर। Execute ("चुनें SUBSCRIPTION_DETAILS से * जहां Alert_time =% s", (टीआई ध्यान दें कि हम यहां % ऑपरेटर का उपयोग करने के बजाय दूसरे पैरामीटर के रूप में समय-समय गुजरते हैं। यह सुनिश्चित करता है कि एसक्यूएल इंजेक्शन के हमलों को रोकने के लिए क्वेरी ठीक से साफ कर दी गई है। दूसरा असल में एक ट्यूपल है यह सुनिश्चित करने के लिए , अनुगामी (कुछ...

Is it semantically appropriate to have a header column in HTML? -

I have a table of information, but instead of the typical table where the headings are at the top: Foo. Fornord | | Fiji | Buzz ---- | ------- | ------- | ----------------- 42 | Yes. No | Mr 13 Yes. Flags | Colon mustard 1 | Plum | No | Ms. Red Color I'll put it down: Foo | 42 | 13. 1st Fornord | Yes. Yes. Plum Fizzy | No | Flags | No buzz. Sir | Colonel mustard | Ms. Scarlet Obviously this is permitted by doing something & lt; Table & gt; & Lt; Tr & gt; & Lt; Th & gt; Top 1 & lt; / Th & gt; & Lt; Td> Data 1 & lt; / Td> & Lt; / Tr & gt; & Lt; Tr & gt; & Lt; Th & gt; Heading 2 & lt; / Th & gt; & Lt; Td> Data 2 & lt; / Td> & Lt; / Tr & gt; & Lt; / Table & gt; So I am planning to do it in some way, but I want to see if it is in any kind of brakes or something else in the sense. What is the right way to do this? There is nothing wrong with doing this, to mak...

C - Buffer size reduced after being passed to another function -

I am working on an assignment in C and when I found an error, I started something, understand Not come * Hostname), int port) {// to store in buffer variable char * msg = "Hi, I'm a message"; // Stellen (msg) == 17 uint16_t sender_id = hayton (1); // size (sender_id) == 2 uint16_t packet_size = htons (sizeof (packet_size) + sizeof (sender_id) + strlen (msg)); // size (packet_size) == 2 // buffer four buff [100]; // Copy everything Memc (& amp; Buff, & Sender_ID, Size (Sender_ID)); Memcpy (& amp; buf + sizeof (sender_id), & amp; packet_size, sizeof (packet_size)); Memcpy (& amp; buf + sizeof (sender_id) + sizeof (packet_size), & amp; msg, strlen (msg)); Printf ("l1_connect - sizeof (buf):% d \ n", (integer) size (buf)); // == 21 // buffer to another function int bytes_sent = l1_send (1, buf, sizeof (buf)); Return bytes_sent; } At the end of this function, buffer size is 21. After passing it to another function, it is c...

php getting data from XML file -

I am making a soap call and get data in XML. Return to XML is a markup, from which I do not know how to run. Only give me all the & lt; Web_get_debiteuren & gt; Required. I thought php to use SimpleXMLElement (). But I am not able to do something like this: $ xml = new simple assemment ($ result); Echo $ xml- & gt; soap; I get the results from XML results for & lt; Web_get_debiteuren & gt; How can I get a part? See XML below: & lt ;? XML version = "1.0" encoding = "window-1250"? & Gt; & Lt; Soap: Envelope xmlns: Soap = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: xsd = "http : //www.w3.org/2001/XMLSchema "& gt; & Lt; Soaps: Body & gt; & Lt; Getdatawithoptionsresponse xmlns = "vault: officer prof.te. services" & gt; & Lt; Getdatawithoptionsresult & gt; & Lt; AfasGetConnector & gt...

lua - Corona SDK Easing outBounce -

I am having difficulty with Corona's change with ease. Here's my code: Transition time = 120 transition (New dot, {time = transition time, y = newDot.destination_y, transition = easing.outBounce}) Unfortunately, it does not really bounce at all. It seems I'm not sure if I'm doing something wrong or if there is a smooth transition before performing something easier. Any help would be appreciated! Thank you! I'm pretty sure that the transit API has never worked properly. What I always do, in this way make 2 transitions with a slight delay: transition.to (newDot, {time = 80, y = newDot.destination_y - 50}) infection. Just working in just a few ways, just change the numbers according to your choice (new dot, {delay = 80, time = 40, y = newDot.destination_y}) Hopefully That it helps.

c# - How to add a reference to Bing Maps in a Windows 8 mobile application? -

I am trying to add a Bing Maps reference to my project but I can not find any reference when searching in context Manage in Visual Studio 2013 I have installed SDK in the Extensions and Updates window but still can not find any reference to do this. Can anyone tell me that this is a separate process for adding a tablet app vs. Bing Maps to a mobile app? , As I have heard from other sources that this is but no guidance can be found for this. Do not I miss a step in adding maps to this project? To clarify, I have set up the build on x86 and created a map key that was added to the project. In the Windows Phone 8 primary map provider is Nokia if you Bing Map , then add context to C: \ Program Files (x86) \ Microsoft SDK \ Windows Phone \ v8.0 \ Library \ Microsoft.Phone.Controls.Maps

cocoa touch - How to make a fluid layout in iOS? -

Image
What is the correct way to create a fluid layout in iOS, in the sense that the hidden elements do not take place anymore? I have a table view in each cell, which has a customized detail-type view with a row with headline, subtitle and some additional information: Additional information Three pairs of icons And a label can be a price. The layout of all ideas inside the cell is done using autolayouts with missing or ambiguous obstacles. What would I want to achieve, when that value is 0, then the icon and label are not displayed and if I just set the setHidden: method If I use, the width of the hidden part is not changed, so that's just white space, but no ideas have gone. Example: It should look like this: I have tried to follow the approach with creating a lack of layout for four frames that should be set to zero: the width of the heart-shaped icon, the width of the labeled value, both of them White space between the middle and the white space betwee...

php - How implement 'include' into printf? -

I use this type of work in projects: (" Block / myCompanyCommentsListBlock.php "); I need something somethig like this: $ str = sprintf (" % s Gt; ", Include (" block / myCompanyCommentsListBlock.php ")); How can this be done? :) Any link would be useful :) Use of output buffering to prevent its content from being sent Browse Browser Then use to capture its output in a variable. ob_start (); Include ("blocks / myCompanyCommentsListBlock.php"); $ Content = ob_get_clean (); $ Str = sprintf (" % s ", $ content);

functional programming - Search in a list with argument -

I am trying to implement a function that has given an argument and a list, before adding that argument Find the element in a list like this: #lang scheme (define pairs (opposition 1 2) (opposition 2 3) (opposition 2 4) (opposition) 3 1)) (Opposition 2 5) (Opposition 4 4))); It only tries to get the first element, I need to run every pair on the pair (lambda (lst arg) (if (equal? ​​(Car (first list) 2); The effort given below is for each element Enqueue, because it does not separate pairs (defined (RG) (lambda (x) 2)) (map (lambda (e) ( this idea is simple, I have There are elements of the pair and a given number I need to see that the couple's first taut And (they are in the list) starts with that number thanks in advance In the racket, implementing in the context of map is easy. Just do this: (search-pair lst arg) (map (lambda (e) (if Alternatively, you can do this with "hand", basically the ("abre?" (Car e) arg) "ok" "no...

objective c - How to extend search with SearchBar -

I want to search it with an array through stars. So I use a search bar here my code is: (items in NSString * string) {NSRange nameRange = [string rangeOfString: text options: NSCaseInsensitiveSearch]; If (nameRange.location! = NSNotFound) {[Filtered items array object: string]; }} This works very well, but the problem is that when I write it exactly the same way (the case gets insensitivity except the string). But I have to find out that the strings are not consistent with 100%. For example, when I search for 'Ralle Turner', then it should also get a string with 'Raleigh / Ralph Turner'. Thank you for helping people! You need to split the search string into words, and then to search for a word, each Repeat through the word. You can use this string inside your loop for (NSString * string in items) {NSArray * words = [text componentsSeparatedByString: @ ""] ; For (words in NSString *) {NSRange nameRange = [string borderoffstring: word optio...

Fine-Uploader ASP.NET Web Forms Server Side GET instead of POST -

I have a previous implementation of the fine-uploader 4.1 that works with the ASP.NET web form. Server-side processing, which was initially designed to work with the initial request for the server, was initially designed to obtain initial mail. However, I have a new project using 4.3, but the initial request is sent to server-side as GET. I think where I will not determine or determine that I want to use the OK-uploader instead of a POST, for which I believe the server is signed to get the signed signature. Initial contact. I have compared both projects, have switched between 4.1 and 4.3 for my life, I can not understand that what a post is for sending the project to the first-minute uploader, but the other Sending a GET for The client side code is almost exactly the same, the options for the properly uploader are the same for both projects. Is this a web.config httpHandler function setting? I have changed them, but still they are sent to GET instead of a post. The ...

php - WooCommerce - list cart item names outside of the product page -

I am trying to create a simple bulleted list of items which have already been added to the cart, which Later a gravity form field will be passed even so far I have come with: I have added two items to the cart, and the result has been received: 747579165776fe1ba349237464ae0eed f06a642b52d91adfa0168b737bd60db9 However, I'm trying to get the title of products instead of the key. You will need to: & lt; Php global $ woocommerce; $ Items = $ woocommerce- & gt; Cart- & gt; Get_cart (); Forex Currency ($ item $ item = & gt; $ values) {? & Gt; By & lt;? // print_r ($ item); ? & Gt; By & lt;? $ _product = $ value ['data'] - & gt; Post; ? & Gt; By & lt;? Echo $ _product- & gt; Post_chirtle; ? & Gt; & Lt ;? Php}? & Gt; You can use for any post value, post_title, post_date, id etc. // print_r ($ item) cancel; And see what I mean. Apart from this, you can change some fraction with other data: $ _pr...

javascript - VS2013: Publish minified bundle created on files outside of the project -

I use Visual Studio 2013 and .NET 4.5 for a MVC project. I'm learning to use AngularJS through several videos on Pluralsight and one of them runs through the process of using Grunt to clean out the output directory, then javascript files from ngmin Use Minimum to Protect My process is using gruntfile.js to clean and run ngmin against javascript files in my solution, then put them in a directory called ap_built. It is executed through a batch file in the pre-build for the project, and then I include it through a scriptbundle with the directory pointing to the app_build directory. My intention is to use bundling features of .NET 4.5 to integrate everything else and to integrate javascript after omitting all files through whisper. I specify the path to the minimum-protected files with the following: bundles. Add (new scriptbundle ("~ / bundle / miss white"). Directory ("~ / App_built /", "* .js", is true)); If I run it on my local machine,...

java - Returning object from treeset -

I have class A name, age, school, I class I group B and I use trees as a collection Because each name will be uni. Finally, I have a main square to do some work. To add, remove, and see my code is okay. However, I would like to ask if searching for a specific school in plantation and With all the things that school It is possible to go back? If so, how can I do this? Thanks for the help The easiest to recap on your map entries And for each stored school you'll be watching with the school.

php - Symfony Doctrine QueryBuilder -

I try to change this query to Query Builder: SELECT * Include invitation from landingpage_sign` as landingpages_content.id as CID LandingPage_ct_centent_id = content.Id is where the content. Enabled = 1and landingpage_site Landing page_id =? ORDER BY LandingPage_sign.order` This is my QueryBuilder code: $ queryBuilder - & gt; Select ('*, Landing Page _ content as CID') - & gt; ('LandingPage_saint', 'LandingPage_saint') - & gt; Bayangon ('LandingPage_site content_id', 'content .id', tap) - & gt; Where ('content.enabled = 1') - & gt; And ('Landingpages_content.landingpage_id =: id') - & gt; Setpalmator ('id', $ id) - & gt; Orderbank ('landingpage_sign'. Command '', 'asc'); this return invalidErmentation exception: query builder can not be included. you are wrong leftJoin the method is wrong in this way Do something: $ querybuilder - & gt; (...

java - how to make sure a String input is not a number? -

मैं एक do..while लूप का उपयोग कर रहा हूँ और मेरे समय में (IntOne! = IntTwo & amp; रंगऑन! = 0 & amp; रंग दो! = 0); समस्या यह है कि मुझे निम्न त्रुटि मिल रही है "असंगत ऑपरेंड प्रकार स्ट्रिंग और इंट" मुझे पता है कि मेरा रंग एक और रंग दो तार हैं और मैं यह कहने का प्रयास कर रहा हूं कि वे एक पूर्णांक के बराबर नहीं हैं। मुझे लगता है कि यह है कास्टिंग और सामान के साथ कुछ करना है लेकिन मैं इसके लिए नया हूँ और कृपया मदद की ज़रूरत है! आपको पार्स करना चाहिए आपके स्ट्रिंग से इंट: पूर्णांक.परसेआईंट (रंगऑन) तो आपका कोड ऐसा दिखेगा: जबकि (intone! = IntTwo & amp; Integer.parseInt (colorOne)! = 0 & amp; amp; Integer.parseInt (colorTwo)! = 0);

.NET remoting issue when .net framework versions are different in client and server -

Image
We have a net remoting service that was created using Framework version 1.1. One of the service calls backs the ActiveReports.Document (Reporting Components) object. I can consume the service from a client using the .Net Framework 1.1, but when I use .Net Framework 2.0 or 4.0 or 4.5 When I try to consume the client, I receive a serialization exception with the message - "Member Name System can not be found Globalization.TextInfo." Below are two comparison of client applications. I can say This problem is in order to sort complex objects between the client and the server when the versions of the framework are different, but it is not certain which options are available to correct it. Upgrading remoting service is not an option at this point This talk about patches for the serialization issue but it applies to Win2k3 server Our server is already running Win2k8 R2 Any hint?

css - Why do I need *, *:after {...} instead of just * {...}? -

Can anyone explain why the universal selector does not apply to it? A relevant part of the standard would be great, but there would be logic behind it too. Edit : I can see that my question is a bad word; I'm sorry. I mean that * {color: green; } A document makes all the text in green very much, but does not apply to it, #mypar: after {content: "newly-added content"; } . I know that this content is not present in the original dome ... but it seems that * {color: green; } instead of having to type *, *: after {color: green; } . I have also edited the title of my question for clarity. Edit 2 : This is bad ... OK, I tried to provide a simple example and did not help. After reading my question came note that the author's use *, *: before, *: after {-moz-box-sizing: border-box; -WebKit-box-size: border-box; Box-size: border-box; } instead of * {-moz-box-sizing: border-box; -WebKit-box-size: border-box; Box-size: border-box; } universal sele...

php - automated meta description generation based on another defined variable -

On every page of your website, I have a variable defined as " description " I do And it can be either long or short, and I also want to use it for meta description . I was seeing that I defined the additional length in my variable description variable, so it would fit properly in the meta description. I can not say that I understand enough to develop a solution. What am I trying to do, for example: I have to reduce the last word of $ description after 190 characters, and have to suffix the last word with "...". Do the following: "Article is published on the Android website, it also likes you. Morbi ..." and above To find a way to create an echo: & lt ;? Php echo $ description truncated); ? & Gt; You want to use the function. Document example: & lt ;? Php echo mb_strimwidth ($ description, 0, 190, "..."); ? & Gt;

cmd - Batch to run a MSI package multiple times sucessfully -

Text after " I have written a single.msi package several times to run in the following code, but it only runs successfully once and Next lets "repair" or "uninstall" options next time. I need to solve this and run it several times. I have read that I need a writer to change (.mst) this type of action to be successfully performed but unsure how to do it, as soon as possible need your valuable suggestion is. Please note that "OID_VALUE" & amp; "LOGGING_SERVICE_URI_VALUE" are values ​​that I need to pass for the .msi package to run setLocal enableDELAYedexpansion off @echo:. Menu ECHO Select the ECHO environment that you are running batch echo. Echo 1. UAT Echo 2. Production Echo 3. Extra echo option / C 123 / N / M "Select the option:" If error level 3 leaves error level 2 geto PROD if error level 1 Gato UAT: UAT set URI = https: //log.acdmuat.appleclouds.com/LoggingService/GOTO LOGGINGURI: PROD set URI = https: //log....

regex - Delete lines before and after a match within a specified tags in SED -

Tags & lt; The tag needs to be removed before and after a matching pattern & Lt; AttributeValues ​​& gt; & Lt; AttrNames & lt; Item value = "MyContact_c" /> & Lt; / AttrNames & gt; & Lt; / AttributeValues ​​& gt; & Lt; / MDS: insert & gt; Using sed -i -n / / MyContact_c / {s /.*/; x; d;}; x; p ; $ {X; P;} '$ file removes only the row before and after the mailing pattern, to remove all the contents within the MDS: Add tags ... No hint Will be useful. this is not sed , but there is a File > using the snippet posted as the file content for the file : kitsune: ~ $ printf '% s \ n' 'Set ic 1; / = "MyContact_c" / & lt; |? & Lt; Mds: insert? +; / & Lt; \ / Mds: insert & gt; / - d% p '| Ex -s $ file Output: & lt; Mds: insert & gt; & Lt; / MDS: insert & gt; After removing the first instance of this section, it will print the residue of ...

java - How come Log4J double the size of log file? -

itemprop = "text"> And slf4j-log4j12 set up the following log4j.appender.ROL = org.apache.log4j.RollingFileAppender log4j.appender.ROL.Encoding = Unicode log4j.appender. In ROL File = e: \\ I_Told_Ya.log log4j.appender.ROL.MaxFileSize = 100000 log4j.appender.ROL.MaxBackupIndex = 10 log4j.appender.ROL.layout = org.apache.log4j.PatternLayout log4j.appender.ROL.layout. When I set MaxFileSize = 10000000 Every log file increases as long as 19,488kb when I set MaxFileSize = 10000000 set MaxFileSize = 10 MB Log4J Always double the log size with my settings What is happening now? Each log file increases as long as 20,000kb These are my dependencies & lt; Dependency & gt; & Lt; Group & gt; Log4j & lt; / Group & gt; & Lt; ArtifactId & gt; Log4j & lt; / ArtifactId> & Lt; Version & gt; 1.2.17 & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & g...

android - BroadCast Services and Notification's in Status Bar -

Edit: Since I get an answer, since then I am going to ask my questions in a different way. I think by putting an alarm manager due to two problems, which call the broadcasted receiver by its pending instant, the app will be shown first when the app opens. On the other hand, if the app stops, notifications can not be made after calling in main proceedings (or as they are a broadcast, they should be run in any way !!!!) If so, the question is that I Where else can I put it? I am going to develop a TODO list in my application as a feature. I would like to inform the user, even though the app is not operational, so I am using broad-cast services where the service has been called down through my main activity: Public Zero NOtifyMe (ArrayList & lt; String & gt; mArrayList) {Alarm Manager AlarmMong = (Alarm Manager) getSystemService (ALARM_SERVICE); // --- Get the current date and time --- Calendar Calendar = Calendar.Just Instance (); Calendar.ed (calendar SECOND, 20); Int...

osx - looking for more info on EIO error returned by readdir_r () on Mac OS X -

On Mac OS X 10.6.8, some code that calls readdir_r () ever -At one gets the I / O error returned by 5 (EIO) I have seen it only a few times, always on external USB drive Every time I have seen it, if I send the CD in the original direction and do a ls then I see all the files. And, if I run the C program again that looks at the error, then it will be fine. On some platforms, when an error occurs like an EIO, you can say anything that gives you more detailed error information (for example, MPE / Hperrmsg on IX, which reaches the error stack per process). Is something similar to OS X? I think that I am assuming that the error false i = readdir_r (dirp, & amp;; stiff, & amp; ; Dire_ptr); Save_errno = errno; If (i) {if (i == EACCES) ... and (my_perror (save_errno, "readdir_r failed:"); espout4 ("readdir_r% s returned; errno =% s, dire_ptr =% s; parent =% s \ N ", num64 (i), num64 (save_errno), fmt_p (dire_ptr), parent_dir); espout1 (" (erro...

plsql - PL/SQL Update Trigger (Beginner) -

I have two tables Table 1 contains a short film summary, the table 2 contains the entire film bio. I would like to make one on the updated trigger which happens when I update the table 1. Basically I want to update the first 30 characters in the Table 1 movie summary, while the whole movie is in Bio Updated Table 2. Any ideas how will I start this work? It has been a while since working with PL / SQL, but I try to do something like this: Create or update the replacement _movie_bio Update 2 table for every row before updating table 2 Movie_bio =: new.movie_bio where movie_id =: new.movie_id end; Then you will update Table 1 with the first 30 characters and then it will automatically update the 2 more tabs. Update Table 1 SET movie_smurry = SUBSTR ("Movie_smurry", 0, 30) where movie_id = movie_id

c# - Why do I get @firstname and @lastname in my SQL table? -

I have the following code in my ASP.NET project and I still can not understand that saving my SQL Server table Why would any values ​​of values ​​be named instead of parameters help would be appreciated. [WebMethod] Public Static Zero InsertMethod (String First Name, String Last Name) {SqlConnection con = new SqlConnection (@ "Data Source = Kimberly / SQLSERVER02; Initial Catalog = Chalegh; User ID = * **; password = *** "); SqlCommand CMD = New SQL Commands ("Enter in Test Table Values ​​('Firstname', '@ Lastname')", Con); SqlParameter paramFirstName = New SqlParameter (); ParamFirstName.ParameterName = "@FirstName"; ParamFirstName.Value = firstname; Cmd.Parameters.Add (paramFirstName); SqlParameter paramLastName = New SqlParameter (); ParamLastName.ParameterName = "@lastname"; ParamLastName.Value = lastname; Cmd.Parameters.Add (paramLastName); Con.Open (); Cmd.ExecuteNonQuery (); Remove quotation marks and use the meth...

ios - Organizing Objective-C code into submodules? Cocoapods? -

We are working on a small SDK. Inside the workspace we have all the code in a single project, we want to reuse it to create separate subdomains, which can be reused later. Let us think about some of the things such as SystemWill / FlightPath for analytics, logging, user feedback, etc. about our SDK. Ideally, we have a GIT repo with analytics separate and a simple API that can use SDK, they will apply for the same components, for this unit testing, version management, etc. that's good. We tried to use cocopodes, but the problem we got is that a static library can not be linked to another static library, or at least one easy / automated way to do this ( If we are wrong, please correct us). We can still try to use the code (header and implementation file) in the same workpace to use the cocopodes and then there is a script to copy them of any type of correct project For and link them (this is done again like git submodules) Is there anything to help between static librarie...

javascript - Displaying Prime Numbers Using document.write() -

I have an assignment for school that I think write a script which is 1 And between 999, the Prime Minister prints the numbers in a table, which has 10 columns. To create tables, document elements and a> document to create counter variables. Use the written () statement so that it can create 10 columns. Counter> variable should start with the starting value of 0 and every time your> code recognizes a prime number and prints it in a table cell, then it should be increased. Once the counter variable> value of 10 (i.e. 10 cells have been added to the existing row), print> to start a new line and reset the variable to 0. I can not detect where my error or errors with the table row and counter are, besides, I might have written the document in the wrong place. Currently, the table only displays vertically What do I have here: & lt; Script & gt; Function Primary Buzz (num) {document.write ('& lt; Table & gt;'); If (num & lt; 2) return ...

ios - How to determine if NSLayoutConstraint is horizontal or vertical? -

It seems that this should be a simple task, but if a NSLayoutConstraint is a horizontal or vertical The obstacle? The only way to try to make this difference is by [constraint description]; Calling and then the resulting string "V:" or "H:" I want to find this information, because of I have around 2 similar restrictions which are prototype storyboard UITableViewCell , the only difference is that supervision is horizontal Describes the distance, and the second vertical. Any suggestion would be very helpful! Edit: I accepted the reply of Grimozoar because its interpretation is a great answer and the way I am working to parse the details, @ kongtomorrow I also want to give credit, answered me here! Thanks for the help! Here is the real code that I used to find the hindrance: NSArray * constraints = [bubble constraints]; (If ([[obstacle first item]], then e-mail: message labels] and [[barrier is second int.] Is aqual: bubble] and amp; a...

javascript - Submitting HTML and CSS coordinates and values with jQuery on a user submit -

I am working on a web app where users drag and drop on an image. Ideally, I want to use my to be able to save my image with overlays text. To do this, I plan to use PIL (Python Imaging Library) to recreate the photo in backend. I am making Submit to an HTML Form I want to send the values ​​of the coordinates of the four corners of an image. , Coordinates of any overlays text, with their hex color and font size. Is it possible to capture all this with jQuery or JavaScript? In this JS Fraudle, the text is dragable, say that the user transmits the text on the image. To recreate the image (with the text that the user was dragged) I would need the coordinator where the text was drawn. Is x coordinates of xy for an HTML element possible with jQuery? & lt; Div id = "draggable" class = "ui-widget-content" & gt; & Lt; P & gt; Drag me around & lt; / P & gt; & Lt; / Div & gt; & Lt; Img src = "http://imgur.com/JS1HXFw.jpg...

How to get DOM element by using mouse pointing position in dart script? -

How to obtain a DOM element using a mouse pointing position in a dart script? Is there a library for darts? document is a method what you should do, but I think That it is not useful in practice. Often times you have some elements that you want to find by the mouse, or you need all the elements under a point, not just the top The most is one. Find an element, but you have to be careful because one element is not always the case where it claims that the CSS conversion can throw things in a special way. Here's the basic idea: Akshay & lt; Element & gt; GetElementsAt (Element Container, Point P) = & gt; Container.Calendar. There ((c) => contains point (c. Offset, p)); Point in the bowl (rectangle, point-p) = & gt; R. Left & lt; = P. X & amp; R. Write & gt; = P.X & amp; Amp; R.top

css - Expand Responsive Elements Outside of Grid System? -

I am building a responsive website using Foundation 5. Everything is going smoothly, but there is an issue which I am doing, the PSD designer sent me a large scale of 12 column grids, which is great though, there are some elements of the design that are left or far out of the grid Spread till Apart from this, two elements on one side will be located on one side, but each element will have 7 grid spaces. Although it looks great in Photoshop, but with a responsive grid it is proving challenging for coding. Does anyone have the idea of ​​how to settle it? I use two different approaches to close this type of layout: Use negative margins to draw left / right. For example, if your element pulls out of the edge by 25px of the grid, then you will use it: .element {margin-left: -25px} As long as you are using a liquid grid, the elements will flow to fill the elements. This is the easiest way and most commonly used in the implementation of bootstrap, so I do not know that t...

php - Make pagination work -

Hi I am trying to render Laravel endorsement through Ajax I am getting the data in JSON format Ajax code function pinlist () {$ .ajax ({url: 'pinlist', type: 'post', datatype: 'JSON', success: function (data) {$ ('#pincode-tablebobs') .html (data .tb); $ ('datatabs_pagnet') .html (data.paginate);}}); } Administrator public function getPinCodeList () {$ pincode = pincode :: whereRaw (not like "pin_delete 1" ") - & gt; Pagination (2); $ Tie = ""; $ I = 1; Foreach ($ pincode-> getCollection () - & gt; all () as the $ PINDATA) {$ tbody. = "& Lt; tr & gt; & lt; td & gt; $ I. "& Lt; / td> & lt; td & gt; . $ PinData- & gt; Pin Code. "& Lt; / td> & lt; td & gt; $ PinData- & gt; Pin_postoffice "& Lt; / td> & lt; td & gt; $ PinData- & gt; Pin_distique_id "& Lt; / td> gt; & lt; td & gt; $ Pin...

xmpp - python sleekxmpp ping error -

When I run a ping example, I get this attributererror : information TLS information conversation Use of SSL version: 1 INFO set for node: animal @ home-server / 50182ab4 information CERT: up to the end of the certificate: 1635 days, 15: 10: 17.248035 information & lt ; Waiting for / stream: stream & gt; Server Error Error Occurrence Event Operator: & lt; The bound method is PingTest.start's & lt; __ Main __. PingTest object at 0x12cded0 & gt; & Gt; Traceback (most recent call final): File "/usr/local/lib/python2.7/dist-packages/sleekxmpp/xmlstream/xmlstream.py", line 1659, _event_runner func (* Args) file "sleekxmpp_ping. Py ", line 67, initially RTT = self ['xep_0199']. Ping (auto.exchange, timeout = 10) file "/usr/local/lib/python2.7/dist-packages/sleekxmpp/plugins/base.py", line 304, __getattr__ return object in .__ getattribute __ (self, Key) Attribute: No attribute 'Ping' traceback (most recent call ...

java - Unclosed Parenthesis exception on CREATE in spring-data-neo4j -

मैं स्प्रिंग डेटा Neo4j संस्करण 2.3.3 चला रहा हूं। org.springframework.dao.InvalidDataAccessResourceUsageException:: जब मैं निष्पादित करने के लिए कोशिश एक मेरी GraphRepository , मैं निम्न अपवाद हो रही है के माध्यम से बयान बनाएँ त्रुटि को क्रियान्वित करने बयान .. (: बिंदु {id: 10}) - [: अगला] - & gt; (: बिंदु {आईडी: 11} ) - [: NEXT] - & gt; (: बिंदु {आईडी: 12}) - [: NEXT] - & gt; (पी: बिंदु {आईडी: 13}) "^ ... केवल उसी चीज़ को छुपाता है जो इसे नीचे मुद्रित करता है, और ^ सही स्थान पर दिखाई देता है जैसा कि आप देख सकते हैं कि क्या आप मेरी क्वेरी को देखते हैं, कोई अनछुद्ध कोष्ठक नहीं है यहाँ क्या चल रहा है? संपादित करें: परीक्षण उद्देश्यों के लिए, मैंने इस कथन को कम करने की कोशिश की: बनाएं (: पंक्ति {id: 1}) , और मुझे एक ही परिणाम मिलता है। संपादित करें: मैंने 3.0.0 संस्करण का उपयोग करने के लिए अपने पॉम को नवीनीकृत करने की कोशिश की, और अब निम्नलिखित अपवाद प्राप्त हो रहा है: नाम 'नियंत्रक' से बीन बनाने में त्रुटि: ऑटोवाइल्ड निर्भरता की इ...

asp.net - Need to load an appropriate master page for an error page -

We have implemented two master pages, parent master page (without menu) and child master page (with menu) . Whenever an error occurs on any website, we redirect the request to the error page. Some of our website pages have been configured from the original master page and the rest is with the child's master page. The error page is a normal page where we want to identify the requester page and this is a master page, so the same master page can be configured in depth on the error page. There is a method specified on the MSDN blog about accessing members on the master page (), but I did not try to apply it due to the following query. Should I define a query string "color" parameter? Do I have to change the request URL? I can not convert it to our website's error page because the error page is the internal page itself. Please advise. I read the comments after the post, and it seems that the posts are not working specificly. Please give clarification. In a...

java - Adding data to jTable from Database (via Netbeans) no errors, but table disappears -

Debugging data is somehow retrieved completely and result models actually get column names, and for rows Although data was compiled in netbeans after the search and ran, the table disappeared, no data column names were also shown. Here's the code: Private zero search () {string [] [] rowData = new string [0] [4]; String [] column = {"appointment", "FNGEG", "label", "registration", "make", "model", "engine", "year", "mileage", "type", "date" Time"}; ResultsModel = New DefaultTel Model (Line Data, Column); Addition (new JScrollPane (jTable1)); JTable1 = new JTable (resultModel); JTable1.setAutoCreateRowSorter (true); {Model_Customer [] Appointment = Controller_Advertisement Client. Try Customer (SearchText.gettext ()); ResultModel.setRowCount (0); (Int i = 0; I & Lt; Appointment; Length; I ++) ResultsModel.InstoRo (i, New Object [] [Appointment [i] .GateID (),...

javascript - how and where to insert a callback function -

In my web app, in some form, I have a button that can click to find the username Corporate Directory Once they get the name, they click on the results and the population is populated on the name and other directory data form. At least, I would like to do it. My question is how to use the callback function properly so that my data lookup can be brought back, where I can parse it for the correct fields From the page I have the following functions: $ ("LookupNameBTN"). Button ({icon: {primary: "ui-icon-gear"} "). Button (click on function (event) {var btn = $ (this) .attr (" data "); mainApp.lookup (function (Obb) {if (btn == "request" $ {"input [name = requested name]"). Val (obj.cil);}; // if request (BTN == "customer") {$ ("Input [Name = clientName] "). Val (Obj.cil);}; // client}); // lookup}); // click mainApp.lookup () dialog Opens the box and loads the server files. mainApp.lookup = function...

html - CSS filter inherit issue: Solution without pseudo element for dynamic sized divs? -

I have been trying to solve the following issue for a while, but the solution was not able to work. What do I want to achieve: Resting status: A background image and a semi transparent Hover phase: Saturating the image, changing the color of the overlay Obviously we are diving in the problem of getting the CSS filter. I have to add a technical restriction, which has made it impossible for me so far: Background image can not be applied to pseudo elements such as : before . Reason for that reason: This final application has inline injection with php. À La: & lt; Div class = "background-image" & lt ;? Php ...? & Gt; " Current problem: The overlay is being messed up, because parents are being embraced. As I mentioned, I have tried different perspectives, always ending a similar problem. / Div> Here is a solution that can work for you: As you said, this issue is a grayscale filter. .pos By moving it into the t-preview div,...

sql - Using a WITH inside of a RECURSIVE WITH in PostgreSQL -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर 2 उत्तर PostgreSQL में, एक के साथ किसी अन्य के द्वारा उपयोग किया जा सकता है, उदाहरण के लिए: साथ num as ( मूल्य (50)), संख्या 2 के रूप में (संख्या का चयन स्तंभ 1 * 2 एएम से मूल्य) num2 से मूल्य का चयन करें; और फिर स्थिर उपयोग हैं, जो ऐसा किया जा सकता है: साथ अनुरुप टी (एन) के रूप में (मूल्य (1) यूनियन सभी का चयन करें N + 1 से जहां टी & amp; 100; SELECT sum (n) FROM t; लेकिन अभी तक, मुझे पिछले के साथ उपयोग करने के लिए एक अनुष्ठान के लिए कोई रास्ता नहीं मिला है। मुझे लगता है कि यह कुछ ऐसा होना चाहिए: साथ संख्या के रूप में (मूल्य (50)), num2 AS (SELECT column1 * 2 AS से num के मान), RECURVIVE t (n) AS (मूल्य (1) यूनियन सभी का चयन करें n + 1 से जहां टी & lt; (SELECT * FROM num2)) से चुनें राशि (एन); लेकिन यह काम नहीं करता है तो क्या ऐसा करने का एक तरीका है? यदि हां, तो कैसे? के साथ आरंभ करें । आप अभी भी रिकर्सिव भाग से पहले "नियमित" सीटीई में निचोड़ कर सकते हैं: के साथ अनिश्चित संख्या क...

javascript - Is it possible to invoke a function by clicking a part of string? -

$ ("# chk_select"). Html ("Sorry, no such product, click here to create one"); The above row is displayed and when the user clicks on "click here", then call me slideUp (); Javascript is required to perform an action like . Is this possible? He ran Wrap a string inside an element, such as: $ ("# chk_select"). Html ("Sorry no such product. & Lt; span id = 'link' & gt; Click here & lt; / span & gt; Create one)"; and then type a click handler $ ("# link"). Click (function () {slideUp ();}); Or you can $ ("#link"). ("Click", function () {

oauth 2.0 - Valid Google OAuth2 token unparseable? -

I have a valid OAuth2 token that Google accepts, but GoogleIdTokenVerifier can not even parse it. ya29.1.AADtN_XcjzHgauKetBvrbgHImGFg1pjiHRQAKHyTGLJJZTTPMQJ5p-xAKtk955_4r6MdnTe3HZ08 (No worries, it has already ended). This is on Android accountManager has been used. Blocked GateAutocrine (account, "oauth2: https: //www.googleapis.com/auth/userinfo.email", is true); When I //www.googleapis.com/oauth2/v1/tokeninfo? Calling on Access_token = ... I get a sensible result {"issued_to": "34951113407.apps.googleusercontent.com", "Audience": "34951113407. Apps.googleusercontent.com "," scope ":" https://www.googleapis.com /auth/userinfo.email "," expires_in ": 3175," email ":" me@gmail.com "," verified_email " : True, "access_type": "offline"} Therefore it must be a valid token. But when I call new GoogleIdTokenVerifier (new UrlFetchTranspo...

date - Android Calendar : Get day of next week -

इस सवाल का पहले से ही एक उत्तर है: 10 उत्तर मेरे पास यह तरीका है जो पार्स करता है एक दिन और समय, समस्या मुझे अगले सप्ताह के दिन प्राप्त करने की आवश्यकता है। उदाहरण: मेरे पास इस दिन और समय सोमवार, 10:00 अपराह्न और वर्तमान समय सोमवार, 11:00 अपराह्न , जब मैं यह पार्सटाइम ("एम", "10:00 पीएम") पार्स करता हूं यह वर्तमान समय की वजह से मुझे पिछली तारीख देता है। मैं अगले हफ्ते सोमवार, 10:00 अपराह्न सार्वजनिक स्थिर कैलेंडर parseTime (स्ट्रिंग दिन, स्ट्रिंग टाइम) {स्ट्रिंग [] sepa_time_ampm = time.split (""); स्ट्रिंग [] sepa_time_hr_mn = sepa_time_ampm [0] .split (":"); कैलेंडर कैलेंडर = Calendar.getInstance (); अगर (! संख्यात्मक (दिन)) {calendar.set (कैलेंडर। DAY_OF_WEEK, पार्सडे (दिन)); } अगर (पूर्णांक। पीआरआईआईआईएनटी (सेपा_टाइम_एचआर_एमएन [0]) == 12) सेपा_टाइम_अर्ज_एमएन [0] = "00"; कैलेंडर.सेट (कैलेंडर.एचओआरए, पूर्णांक.परसेइंन्ट (सेपा_टाइम_आर्ह_एमएन [0])); कैलेंडर.सेट (कैलेंडर.एमआईएनयूटीई, पूर्णांक। पीआरआईआईआईएनट...

.net - Background Worker is not Working With Oracle Connection -

I have a strange problem that I want to get from Oracle (online DB) and update and update MySQL database which is the offline database. That's if a failure starts mysql database function. I have to update main records from Myacle to Oracle so that if the offline database starts in the game, then it will have all the relevant synchronized data in it. I have written the code with the background worker class so that I can keep it in a different thread please follow the code code Oracle Using DataAccess.Client; Using the system; Using System.Collections.Generic; Using System.ComponentModel; Using System.Linq; Using System.Text; Using System.Threading; Using System.Windows; Using System.Windows.Controls; Using System.Windows.Data; Using System.Windows.Documents; Using System.Windows.Input; System.Windows.Media; System.Windows.Media Using imaging; Using System.Windows.Shapes; Using System.Data.EntityClient; Using System.Data; Nameshal Hospital System {/// & lt; Summary & g...

javascript - Using a function while keeping "this" -

मेरे पास वर्तमान में एक फ़ंक्शन सेट है: $ ('। Color' ) .each (फ़ंक्शन () {$ (यह) .val ('सामान');}); जैसा कि आप देख सकते हैं, प्रत्येक .color फ़ंक्शन के लिए, मैं चयनित "कलर वस्तु" का "सामान" के लिए वैल सेट कर रहा हूं। हालांकि, मैं केवल जब माउस ने क्लिक किया है तो $ this का मान सेट करना चाहते हैं उदाहरण के लिए: $ ('। Color')। प्रत्येक (फ़ंक्शन () {$ (विंडो) .mouseup (function () {$ (this) .val ('stuff'); });}); हालांकि, यह .color पर मूल्य रखने के बजाय यह को विंडो बदल देगा (या इसलिए मुझे लगता है कि जब तक मैं गलत नहीं होता।) मैं अभी भी $ (this) का उपयोग कैसे कर सकता हूँ, जबकि वही मूल्य रखते हुए जैसे कि इसके ऊपर कोई अन्य कार्य नहीं था? मुझे लगता है कि आप पंजीकरण वाले ईवेंट के साथ एक सामान्य वर्ग । आपको इसे पुनरावृति करने की ज़रूरत नहीं है, बस निम्नलिखित स्निपेट का उपयोग करें। कोशिश करो, $ ('। Color')। Mouseup (function () {$ ( यह) .val ('सामान');}); मुझे लगता है कि आप ऐसा कुछ ढू...

ios - CocoaPods not creating Pods.xcconfig on pod install -

कोकोपोड्स अब pod install पर pod install फ़ाइल नहीं बना रही है मेरी परियोजना के लिए फ़ाइल प्रोजेक्ट कार्यक्षेत्र के भीतर लाल फ़ॉन्ट में दिखाई देती है और पॉड / निर्देशिका में नहीं है। मेरा Podfile इस प्रकार दिखता है: मंच: ios, '7.0' लक्ष्य "ProjectName" # टीम बनाई गई फली - निजी स्पेस रेपो पॉड 'प्रोजेक्ट इमेज ऑब्जेक्ट', '0.1.0' पॉड '+ छवि + बंडल + नाम' में रखी गई और संस्करणबद्ध है। '0.1.0' # टीम फोर्केड पॉड्स - निजी स्पेस रेपो पॉड 'मैजिक रेकार्ड', '2.2.1-पीएन' पॉड 'कीचैन इटैमवापर', '0.1.0' पॉड 'डीसीआरएंडस्विच', '0.1.0' पॉड 'JBSignatureController', '0.1.0' pod 'MBProgressHUD', '0.5.1-pn' pod 'PKRevealController', '1.1.0-pn' pod 'SMCalloutView', '2.0' पॉड 'SVPullToRefresh', '0.4.2 -पीएन 'पॉड' टाइम्स स्क्वायर ',' 1.1.0-पीएन 'पॉड' XMLReader ',' 0.1.0 '# तीसरे पक्ष के प...