Posts

Showing posts from May, 2010

c# - How do I pinvoke to GetWindowLongPtr and SetWindowLongPtr on 32-bit platforms? -

I want to apologize and, and I'm looking at the information about them. Some sources say that, on 32-bit platforms, GetWindowLongPtr is just a preprocessor macro that calls GetWindowLong, and for example user32.dll the GetWindowLongPtr does not exist as a user's login : There is a static method, which checks IntPtr.Size and then with either set either SetWindowLong or SetWindowLongPtr, "Legacy OSes do not support SetWindowLongPtr" "Legacy OS "means no explanation for what it means. GetWindowLongPtr on a state "32 bit system is just a Mac that indicates GetWindowLong". These sources indicate that * PTR entry points are not just in the user 32.dll version, which says, with 32-bit Windows 7. But I do not get any indication of this in accordance with the MSDN documentation MSDN, plain and simple, instead of Setwondo Long. And according to the requirements section, it appears that SetWindowLongPtr is from user32.dll since Windows 2000 (b...

datagrid - Flex AdavcedDatagrid Sorting is case-sensitive -

itemprop = "text"> I have several datagridges changing the column. The text function of the datagrid for the text field is making the case vulnerable. e.g. The list below will look like apple strawberry auto auto must be with apples, but Capital A is counted separately because all Capital letters come after letters. I have got a lot of information about setting up a CASEINSENSITIVE flag, but I can not know where it is to be done. Could you please help? The best solution would be that I can override the default behavior to be insensitive to all my datagread and compare all my work.

javascript - sIFR 3 showing on my Home Pge but not on any other pages -

I've integrated sIFR3 and show it completely with me, but not on any other pages. I have never changed the name of anything. Here is my CIFR-config.js: sIFR.replace (Helventica, {Selector: 'H3', Wmode: "Transparent", CSS: '. SIFR-root {color: #ffffff; font-size: 18px; margin: 0; padding: 0;} '}); SIFR.replace (Hollvantika, {Selector: 'H2', Wimode: "Transparent", CSS: '.sIFR- Root {Color: # 5b2e13; font-size: 31px; margin: 0; padding: 0;}'} ); OK I have found it in my sifr-config.js I P> var helvetica = {src: 'wp-content / themes / default / sifr3 / helveticathin.swf'}; Then it works perfectly in the home page because it is still the right path, but as soon as I go to another page it will not appear anymore because the font.swf The URL path is continuous so I have been given the full URL for this.

continuous integration - Hudson context url -

How can I change the Hudson context URL and access it in some way instead? I am using the Hudson standalone and running as a service on the Fidoola virtual machine. The standalone version uses Hudson's embedded container. You can find some Hudson-specific config notes, but I think (section :) is the best place. Edit: The actual solution can be found at: Java-Ger Hudson .war - prefix = / Hudson

sql server - Is it possible to specify the data source during execution of an SSRS report via the web service? -

I have only one server that hosts our production and development database SQL Server 2008 with SQL Server Reporting Services ( No R2) is running. I am deploying a VS 2008 Reporting Services Project on the server to provide reports. All reports use a single shared data source, which currently indicates the production database. Somewhere else the background service creates PDF reports via the SSRS web service interface. My question is, has been given to this environment, is it possible that it is possible to programmatically change the data source used during the web service Is either a report using Dev or Production database? I do not want to modify the definition of shared data sources or reports, I want to be able to set the name of the database before running the report and I can not see how this is possible. I can see that the only "simple" solution is to establish another report server instance, which seems like overkill for what I want, as long as I'm...

jquery - Display dropdown list with options in multiple columns -

Is there a way to display an HTML dropdown list with options in many columns? I do not want multiple columns with a single line of data, I should have 3 rows of selectable options Is this possibly possible through .NET or jQuery? There is no way to do this with plain vanilla form fields, you must use javascript Make your own form input type or whatever.

language agnostic - Best practices for avoiding hardcoded values IRL -

In principle, the hardcoded values ​​in source code should not be beyond 0, 1 and empty string. In practice, I find it very difficult to avoid all hardcoded values ​​at very rigorous delivery, And I feel a little guilty. How can you avoid the hard work values ​​over time of tight delivery? The assumption behind the question seems to be invalid. For most software, configuration files are very difficult to replace that source code, for widely-installed software, this can easily be a hundred times more difficult to factor: There may be many files hanging on user installation which you have little knowledge and no control. Librarian functional or algorithm in numeric software is not different from verbatim: it is just source code; it is the responsibility of any software that can be useful to correct those values. Angered that they should be able to maintain at least: well-named and organized. It is configurable that it is the last ditch agreement you can be forced if yo...

perl - How do I find a comment with PPI and then insert code before it? -

I am trying to find the comment # VERSION in a Perl source file. I want to insert the version before comment (or no place). Can anyone tell me the right way to do this? First Use Strictly; Use warnings; Package My :: Package; # Version ... after harden; Use warnings; Package My :: Package; Our $ VERSION = 0.1; # VERSION ... Finally retaining the result # VERSION is optional I actually have a how to find the # version There is some idea but a serialized PPI doctor has a regex that does not seem right, and is using the find_first on the second comment, but if it is not the first then I am not sure what to do Renewed code seems close to this correct solution because it only comments Sees. But I'm not sure how to use or actually how to create a new variable #! Use / usr / bin / env perl 5.012; Strict use; Use warnings; Use PPI; My $ PPI = PPI :: Document-> New ('test.pm'); My $ comments = $ ppi- & gt; Search ('ppi :: token :: comment...

How to flush the socket using boost -

I am implementing a server that sends XML to promote the client. The problem I am facing is that the buffer is not sent immediately and deposits at one point sends the whole thing, it creates a problem on my client side, when it parses the XML, in it Can be an incomplete XML tag (incomplete message). Whenever there is a need to send a message, is there any way to take out the socket? Below is the server's writing code. void ClientConnection :: handle_write (const boost :: system :: error_code & error) {if (! Error) {m_push_message_queue.pop_front (); If (! M_push_message_queue.empty () & amp; amp;! M_Disynticated) {boost :: asio :: async_write (m_socket, boost :: asio :: buffer (m_push_message_queue.front () .data (), m_push_message_queue.front () Length ()), Promotion :: Bind (& amp; Client Connection :: handle_write, this, boost :: asio :: placeholders :: error)); }} And {std :: err & lt; & Lt; "Error in exiting message ... \ n"; M_disconnecte...

CodeIgniter image manip. script mixing up file names -

This is a CodeIgniter application that uses its Image Manipulation Library. $ photos has an array of relative photo paths. This script should resize the original and also create a medium (_m) and small (_s) size. When I only send a photo to the script, everything works great. When I send each other, things get worse - the first image works fine, but then: - The original second image is not changed at all ( It should be changed to more than 800 wide / high size) > "Original" second image size (800x800) is named as a small image with the first image file name . foreach ($ photos $ photos) {$ config ['image_library'] = 'GD2'; $ Config ['source_image'] = $ photo; $ Config ['maintain_ratio'] = true; $ Photoparates = pathfinfo ($ photo); // Change the size of the original $ config ['width'] = 800; $ Config ['height'] = 800; $ This- & gt; Image_lib- & gt; Start ($ config); $ This- & gt; Image_lib- ...

c# - Copy constructor versus Clone() -

In C #, what is the preferred way of copy copy functionality to a class? Can a copy constructor be implemented, or instead of ICloneable and can implement the clone () method? Comment : I've written "deep" within the brackets because I thought it was irrelevant. Obviously, disagree with others, so I asked. You The reason for this is that when Microsoft designed the net structure, they never specified that the clon () method on iclible is a deeper Or should be a shallow clone, thus the interface is meaningfully broken because your caller does not know that the call will clone the deep or shallow object. ) Interfaces with methods. You can define two interfaces, to support a single parameter, to maintain strongly typed cloning and the ability to have a typed cloning without typing weak, when you use different types of clonal objects Working with the collection: Public Interface IDeepCloneable {Object DeepClone (); } Public Interface...

iphone - Checking for empty text box -

I have a button and when it has been clicked / tapped, I have to check that there is a value in the text box. If a value is not present then I need a warning button to pop up, the button loads a second view controller which displays the waypoint on a Google map, if no option is in the text box, the Google Map View Controller will notify the waypoints There are problems loading, because it will not know how to request objects from the database. > I am playing with the code given below: - mapButton {if (route.text == NULL) // if (route.text == [NSNull null]) // if ([route.text is aqual: [nsnn tap]]) {mapViewController .sharedMapID = mapID; [Self-current model view controller: animated mapview controller: yes]; } And {UIAlertView * alert = [[UIAlertView alloc] initWithTitle: Zero Message: @ "Please choose a route!" Representative: self cancel buttonTitle: @ "OK" other button titles: zero]; [Alerts show]; [Warning issued]; } First of all, it is not that ...

c# - How can I force TransactionScope to use the same connection across Database calls? -

गुड मॉर्निंग ऑल, मेरे पास निम्न के जैसा कोड है कोशिश {उपयोग (var tx = नया लेन-देन ()) {var Xupdated = someDao.DoSomeUpdateQuery (); // यह दाओ एमएस डेटा का उपयोग करता है ApplicationBlock var Yupdated = someDao.DoSomeOtherUpdateQuery (); // यह दाओ एमएस डेटा एप्लीकेशनब्लॉक का भी उपयोग करता है अगर (एक्सप्डेटेड और amp; Yupdated) {tx.Complete (); }}} पकड़ (अपवाद पूर्व) {DoSomethingWithTheException (); } दाओ विधियों में इस तरह से कोड है try {var db = DatabaseFactory.CreateDatabase (); Var cmd = db.GetStoredProcCommand (someSP); Var retVal = db.ExecuteNonQuery (सीएमडी); वापसी (रेटवल & gt; 0); } पकड़ (SqlException पूर्व) {CustomException कस्टम = नया CustomException (ex.Message, ex); कस्टम फेंकें; } समस्या यहाँ है जब 'Yupdated' झूठी वापसी करता है, मुझे 'DoSomeUpdateQuery ()' वापस रोल किया जाना चाहिए। दुर्भाग्य से, 'DoSomeUpdateQuery ()' परिवर्तन प्रतिबद्ध हैं मैं यह कैसे उपाय कर सकता हूँ? मैंने एक ब्रेकपॉइंट डाल दिया और टीएक्स। पूर्ण () कभी नहीं कहा...

ruby - How to write Rake task to import data to Rails app? -

Target: A CRAN function (or other scheduled) to update the database with night export Event) data from existing system The existing data in all data is created / updated / deleted, the website does not directly integrate with this system, therefore the Rail app needs to reflect updates in data export. I have a file of .txt 5000 "ABC Manufacturing": "2222" "A134": "Another Product": "ABC Manufacturing": "ABC Manufacturing" "Entry 1": "Entry 2": "FOBr World": "2447" ... All prices are enclosed in double quotation marks ( " ) that are different from the colon ( : ) : id : unique ID vs Buyer_name : Any letter seller_id : unique vendor ID; numerical Seller's information is normalized in the current system Is not it the best practices here? Is it okay to remove products and sellers from the tables and rewrite the new data on every cycle?...

asp.net mvc 2 - Where can I find some MVC User Administration Helpers for AD Users? -

So I have an MVC 2 app that uses Active Directory membership provider authentication works like a charm! Forget password (A very secret link or email something else?) Disable conditionally existing users (dependent on roles). I am just looking for some very basic functionality and I can either help any MVC helpers of this or any legitimate NET libraries There is a problem to help. We would be happy to buy something to do this, but I have not seen anything that feels good to me! Do anyone have any suggestions? Certainly many other people have yet to face it ... ActiveDirectoryMembershipProvider is very limited on its capabilities. ()

iphone - __IPHONE_OS_VERSION_MIN_REQUIRED please explain -

I am developing an app that I would like to deploy for iPhone 3.0, iPhone 4.0, and which can run on the iPad Are simulation mode. I'm developing with XCode 3.2.3 and I have video for playback. I want to use MPMoviePlayerViewController> = 3.2 and MPMoviePlayerController for & lt ; . 3.2 If I use Class mplayerControllerClass = NSClassFromString (@ "MPMoviePlayerViewController"); If (! MplayerControllerClass = Zero) {MPMoviePlayerViewController * moviePlayerViewController = [[MPMoviePlayerViewController alloc] initWithContentURL: movieUrl]; ...} Will an iPhone handle a square with OS 3.0 which he does not know? Is it good to insert code inside code? > __ IPHONE_OS_VERSION_MIN_REQUIRED & gt; 30200 ifelse block? Like this: class mplayerControllerClass = NSClassFromString (@ "MPMPViewer Viewer"); If (mplayerControllerClass = Zero!) {__IPHONE_OS_VERSION_MIN_REQUIRED & gt #if; = 30200 MPMoviePlayerViewController * moviePlayerView...

sql - Select a nullable bit with a default value -

I need to select a null qualified bit column in one view, but whenever the value is null, FALSE Use the default value. (For other reasons, I can not even add a default value to the source table.) This is what I am doing. CAST (case when bit_column IS is in the form of 0 bit bitmile and bit) bit_column, ... But I am thinking that there is a better / more efficient way to do this. Isnull function. isnull (bit_column, 0)

How to start an Objective-C program in Xcode -

Objective - What is the command line utility in Xcode to start the C program? Search the app: /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal

utf 8 - Zend Search Lucene and Accented Characters -

I'm trying to find a way out of this scenario in Zend_Search_Lucene: We Say we have a user and his name is Ika (note special character). If I am searching for the Ichi index (without the special derivative of me), then I hope that returning to the result. Is there something special to do when doing sequencing or searching? I have read the solution on generalizing data before indexing rather than all the special characters with normalized characters, but I do not want to go that route. function normal ($ string) {$ A = 'ÀÁÂÃÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ ßßáâÛäååååÛÛîîîîîîÛÛ õõõõõûûûûþÿŔŕ'; $ B = 'AAAAAAAAAAAIIdNUUUUUUUUUUUUUUSAAAAAAAAAEIEINDNUUUUUUUBRR'; $ String = utf8_decode ($ string); $ String = strtr ($ string, utf8_decode ($ a), $ b); $ String = Stroglager ($ string); Return utf8_encode ($ string); } $ PassToIndexer = General ("Ica"); Try to use these functions when creating an index, store the actual value without indexing =) hope ...

animation - How do I animate drawing a line in Javascript -

I want to convert the image of a simple line from one point to one html element to another. The animation should be slightly slow (maybe one second to reach the second point, but it is also customizable). I've been searching for the last few hours and still have to find a single JavaScript library that does this for you. Anyone got or know anything for this? Thanks, View JavaScript Library There are some examples in this Hope this Helps

soap - Drupal and netForum: Creating a User -

I am trying to create a user in a web form from a Drupal webform. Using a webform hook, I call two functions for users to get an email address and first and last name, and when a user submits original webforms, they create a netform account. However, when I suppress submissions, and the error from 'Watchdog Netform' could not be 'Head Head' Have I done something wrong in my implementation? I'm getting a timeout. function inclind_form_webform_submission_insert ($ node, $ Submissions) {// email address $ form_fields = $ node- & gt; Webform ['components']; Forex Currency ($ form_fields $ key = & gt; $ value) {$ arguments = array (); $ Reaction = ''; If ($ value ['type'] == 'email') {$ arguments = array ('emailToMatch' => $ deposit-> Data [$ key] ['value'] [0]); $ Response = netforum_xweb_request ('WEBWebUserFindUsersByEmail', $ argument, NULL); If (! Isset ($ response) || $ response- ...

session - security issue: php login/logout script + back button -

I am using a login script that stores session value $ _ Session ['Login' '] =' Yes' On logout, when the user enters the correct user / password, this session value is set to an empty space. However users can back up and log back in for some time. I also tried $ _SESSION = array (); And session_destroy (); But with the same result. Does they actually log back in, or do they reload pages only Cache? If it's only a cache, they will not be able to see the page that was not before, and they will not be able to see new data on your site. If they are actually logging back in, then your login code is bad on each page on the login page and login page.

ios - UIDatePicker select Month and Year -

I need UIDatePicker to select only months and years. I examined the class reference documents. It looks like UIDatePicker is a UIView . I thought UIPickerView can be a sub-view and if I can hold it I can hide the component. But not It was not possible Do I have to make my own custom picker? any idea? Yes, you probably want to make your own picker, you need it or anything sub-class Not even though; Just use a normal UIPickerView and return the appropriate value from your UIPickerViewDelegate / UIPickerViewDataSource methods.

iphone - Subclass of NSObject as target in addEventListener statement -

When setting the method of a button call or adding an event listener to the objective-c, The goal determines although I have NSObject named call , which is a sub-section different than the main file. In this subclass, a zero called METHOD_NAME , which should be executed. The first question is that there will be METHOD_NAME in zero + (zero) METHOD_NAME or - (zero) subdivision. Next how do I set the goal of using the addEventListener subclass of NSObject and call the method inside it? Do i target: [call square]; Or would I like to make an example of the subclass of NSObject (call) and then pass it? "call" and "METHOD_NAME" a good name for class and method Are not there. Try to follow the objective-conventions. Since you are "nononso", you can make some calls to your class such as NNEventListener and method buttonTapped , for example. The first question: It really does not matter that both class methods (+) and example m...

Scala multiple assignment to existing variable -

I can do something def: Long] = ... val (a, b) = f () What about the variable already exists? I am running a set of data above the filter and I do not want to chain them (long names and such). This is what I tried, but it complains of hope; Instead of on the last line: var a = ... initialization for this data var b = ... some other init (a, b) = g (a, b) / / Error: Expected ';' But got '=' Is there any way to avoid intermediary tubal? As Alex said, there is no short answer. What is happening with your code is this: When a and b are already bound in the current scope, (a, b) "Take the values ​​of A and B and prepare a tuple from them." Therefore, (a, b) = ... (new tubal 2 (a, b)) = ... which is not explicitly What you want (besides this is being unnecessary). The syntax you want (the ability to assign multiple variables at once) is simply not in existence. You can not assign same value to the already existing variabl...

php - General utility to remove/strip all comments from source code in various languages? -

I am looking for a command line tool that removes all the comments from the input file and returns the sorted output. It would be good if it supports popular programming languages ​​like C, C ++, Python, PHP, Javascript, HTML, CSS, etc. It should be syntax-aware as opposed to the Regxp-based, the pattern in later sources has to be captured, code strings are also there any such device? I have full knowledge that comments are helpful information and often leave them because they are a good idea. It's just that my focus is on different use cases. , a free Pearl script can do this. Remove comments from source code How can you tell that the clock correctly recognizes the comments? One way to convince yourself is to make the CLOC correct, use your - strip-comments option to remove comments and blank rows from files, then compare the origin of the snatch-down files. This supports it.

how to detect touch event in table cells for iphone -

I tried to do this to detect touch events for table cells - (zero) touches: (NSASE *) touches the event: (UIEvent *) event {// & lt; My content & gt; [Super touches brinjal: left with event: incident]; } but its functionality is not in the I table table, there is an IUIimage view and I want to change the imaged based on the tamp so that my touch event is not working for that cell If you want to detect a touch on UITableViewCell, then you can actually detect touch events Not required in your UITableViewController subclass, you must implement the following delegate method Finance needs to: - (minus) Talikadrishy: (UITableView *) had tableView SelectionRowAtIndexPath: (NSIndexPath *) indexPath; You can then modify the image of the table cell for the selected index path.

php - PDO: Call to a member function fetch() on a non-object? -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर मैं सिर्फ PDO कोशिश कर रहा हूँ और मुझे यह त्रुटि मिलती है, घातक त्रुटि: किसी गैर-ऑब्जेक्ट पर सदस्य फ़ंक्शन फ़ेच () को कॉल करें, लेकिन क्या यह $ the-> db ऑब्जेक्ट पर पहले से ही नहीं है? class shoutbox {निजी $ db; फ़ंक्शन __construct ($ dbname, $ username, $ password, $ host = "localhost") {# db conections {$ this- & gt; db = new PDO ("mysql: host ="। $ Hostname। "; Dbname =" $ Dbname, $ username, $ password); } पकड़ (PDOException $ ई) {गूंज $ e- & gt; getMessage (); }} Function getShouts () {$ sql_shouts = $ this- & gt; db- & gt; क्वेरी ('सेलेक्ट शॉइड, संदेश, टेलिफ़ोर्ड, आईपैड्रेस, समय से WHERE pmuserid == 0'); वापसी $ sql_shouts- & gt; फ़ेच करें (PDO :: FETCH_OBJ); }} विशेष रूप से "वापसी मान" खंड के लिए दस्तावेज पर ध्यानपूर्वक देखें: पीडीओ :: क्वेरी () PDOStatement ऑब्जेक्ट देता है, या असफलता पर FALSE। महत्वपूर्ण बिट "असफलता पर गलत" है...

LDAP vs SQL database for user authentication/user data storage -

I am starting to use kPPHP for the first time with the hockey project. It seems that KPHP supports LDAP easily enough as well as any DB. If the project is okay, then I am planning to use this site to the general public, which means that there will probably be a lot of users (very relative, I think, I will be stunned in thousands). It grows up, so I can think of running a business with it. I am aware of the use of LDAP and I am aware of using SQL (specifically MySQL) to track user data. Before starting, I should be with an "easy" SQL or more hierarchical LDAP structure. I should consider some things: Unauthenticated users will not be able to use the site Each user will be able to show access to parts of their profile / data Depending on the type of user, you have different users "Under your care," such as account management In order to manage individual accounts rather than accounts rather than Ment, this will be the people and information they share...

iphone - Formatting tips for Objective-C nested blocks -

I do not mean to start the holy war formatting code here, but I am thinking that someone has any advice That's the best form of nested blocks in Objective-C. Here's some code I wrote: [UIView animateWithDuration: 1.0 Animation: ^ {self.alpha = 0.5; } Closing: ^ (BOOL Finish) {[UIView Anime with Clutter: 1.0 Animation: ^ {winView.alpha = 1.0; } Closing: ^ (BOOL Finish) {winView.alpha = 0.0; }]; }]; I give it a lot of Xcode format, and this is not terrible but I am scared for a few to six months, I will stumble to fix some bugs on it, and myself I want to punch on the face How is it possible for anyone with nested blocks? Here the real issue takes many block arguments, which make it ugly or difficult. I have not written any actual code that it needs to use yet, but one possibility is that } and ]; Separate in this way: [UIView antivirus: 1.0 animation: ^ {shelf.php = 0.5; } Closing: ^ (BOOL Finish) {[UIView Anime with Clutter: 1.0 Animation: ^ {winView.alp...

Excel VBA if "x", then select rows and paste to another sheet -

I am trying to develop a fundamental accounting spreadsheet for a work project. I'm not sure how to add attachments here, so I will try to explain it best. Every day, I manually enter data in a sheet with multiple columns, examples of some of my column headings are: tax invoice number , customer , details , and date . Ranging from A3 to Y3 to the range covering the range covering A3: Y1135 to set me up Need is a front page report for others to easily read data, but who also allows me to populate: either current month results or previous month results or Year-by-date results , whatever I choose, I know that many men Al ways, but I hope to give some feedback over this people! Do anyone have any ideas? There is no need for VBA to merge data into a pivot table (hide the sheet) Use and use the GetPivotData function to pull the exact fields if you need more customization ... The GetPivotData function will allow the viewer to filter out the external cells ... ...

c++ - What's the meaning of * and & when applied to variable names? -

सी ++ में, इनके बीच का अंतर क्या है: शून्य फ़ंक्शन (मायटाइप & amp;;); // घोषणा // ... MyType * ptr; समारोह (* ptr); // कंपाइलर त्रुटि फ़ंक (पीटीआर) नहीं देते; // कंपाइलर त्रुटि देता है मैंने सोचा & amp; मेमोरी एड्रेस का प्रतिनिधित्व करता है तो // इस स्टेटमेंट को सही होना चाहिए क्योंकि पीटीआर केवल एक पॉइंटर / या कुछ असली वर् का पता है। एकरी उपसर्ग ऑपरेटर & amp; , जब ऑब्जेक्ट पर लागू होता है, वस्तु का पता उत्पन्न करता है: & obj । प्रकार संशोधक & amp; , जब घोषित किए जाने वाले एक चर पर लागू किया जाता है, तो चर प्रकार को संदर्भ प्रकार : int & amp; यह भी * पर लागू होता है: जब एक संकेतक को एकरी उपसर्ग ऑपरेटर के रूप में लागू किया जाता है, तो यह dereference सूचक: ऑब्जेक्ट को निर्दिष्ट करते हुए: * ptr । जब प्रकार संशोधक के रूप में उपयोग किया जाता है सूचक : int * । इसी तरह से, जो घोषित किया जा रहा है वह चर प्रकार को संशोधित करने वाला प्रकार संशोधक [] लागू होता है सरणी के लिए, जबकि द्विआधारी इन्फिक्स ऑपरेटर []...

actionscript - Why use Flex instead of HTML/AJAX/PHP frameworks? -

I have experience using some Carnation Framework in Flex / Action Script. At that time I had no previous experience of Action Script / Flex and I took some good 3 months to start with developing an application seriously. At that time also, I was confused in developing an app based on Flash, which would not be viewable on all PC browsers (without updating the Flash), just leave the iPhone / iPad. But I want to see how Flex can be used, so the challenge has been taken. But now I wonder why I should start complaining about Flex, when I have jquery / ajax, different Fast FF frameworks (which I am comfortable in contrast to Action Script / Flex). How do I decide, then I should explain to my clients that the website in Flex is much better than those built in HTML / PHP etc. . Can anyone put some light on it? Regards You should ask yourself if you need to use Flex Why are you developing a game? A 3D graphics app on the Web? Can not really be achieved with HTML? If not, ther...

How to delete all user roles in Kohana 3 -

I'm using the ORM AUTH module and it's hard to understand how to do it. I have tried this matter: $ user = ORM :: factory ('user', $ id); $ User-> roles-> delete_all (); and error error exception [fatal error]: Call undefined method Database_Query_Builder_Delete :: join () However $ user-> ; Roles - & gt; Find_all (); gives me exactly what I need. Instead of removing roles from the database, what you want to do, the relationships between the user model and the roles model Remove it You can use. foreach ($ user- & gt; roles- & gt; find_all ($) as role) {$ user- & gt; Remove ('roles', $ roles); }

c# - linq to sql ToList() method value -

When a database does not return the returned rows, I will always find a list item of calculation = 0. Will there be any such case where list = zero? The list will never be null LINQ operation is fluent, therefore a list After returning, it can break the chain of operations.

maven 2 - what's wrong with my profiles.xml? -

यह मेरे profiles.xml के लिए mvn का एक हिस्सा है: & lt; profilesXml & gt; & LT; प्रोफाइल & gt; & LT; प्रोफ़ाइल & gt; & LT; आईडी & gt; उत्पादन & lt; / आईडी & gt; & LT; निर्माण & gt; & LT; प्लगइन्स & gt; .. & lt; / plugins & gt; & Lt; / निर्माण & gt; & Lt; / प्रोफाइल & gt; & Lt; / प्रोफाइल & gt; & Lt; / profilesXml & gt; यह वही है जो mvn कहते हैं: द्वारा किया गया: org.codehaus.plexus.util.xml.pull.XmlPullParserException : अपरिचित टैग: 'बिल्ड' (स्थिति: START_TAG देखा गया ... & lt; / id & gt; \ n & lt; बिल्ड & gt; ... @ 32: 20) यहां क्या गलत है? & lt; build / निर्दिष्ट नहीं कर सकते हैं अनुभाग में बाहरी प्रोफ़ाइल , आपको केवल & lt; गुण एवं & gt; , & lt; प्लगिन रिप्लेरीज & gt; को निर्दिष्ट करने की अनुमति है, और & lt; खजाने & gt; । से: बाह्य फाइलों में प्रोफाइल बाहरी फाइलों में निर्दिष्ट प्रोफाइल (अर्थात में set...

many to many - jpa deleting manytomany links -

I have a table of events and I want to group them, it's easy easy / / This cascade group still removes the joining table, but type the product table @ManyToMany (targetEntity = Product.class, fetch = FetchType.EAGER, cascade = {CascadeType.PERSIST, CascadeType., Redress. (Name = "Lcw_group_product", joinColumns = {@JoinColumn (name = "group_id", referenced column name = "id")}, inverseJoinColumns = {@JoinColumn (name = "product_id", referenced column name = "id")}) @ElementForeignKey (updateAction = ForeignKeyAction.CASCADE) Public A set of getProducts () {return product;} These annotations work when I want to completely remove the group, but when I want to update the group to remove some links, then Apart from the incidents, I can not find any way to do this, I am currently doing the deleted details of the link table but it is not reflected in the parent unit Just to clarify Areas that ElementForeignKey a OpenJPA annot...

javascript - can I use document.getElementById(someid).onclick for tag a -

I'm trying to call a JavaScript function onclock. I have written something like I am trying to call the readPage function but is not working? If I click on the tag then it works , But as I have written above, it is not working. Why? Nothing is wrong, but when you load the dome before The easiest thing to do is to run the code in the window. Load it like this: window.onload = function (). GetElementById ('read'). Onclick = readpage;}

javascript pass var to php -

Is it possible to pass the content of the var cause to action = report? Confirm function redirection (url) {var msg = "Are you sure?"; Var reason = prompt ("cause"); If (Confirm (msg)) {location.href = url; }} More links You can pass it as a query string: Location.href = url + '& amp; Cause = 'cause; Later in PHP, you can get it from $ _ GET : $ _ GET ['cause '];

compact framework - Querying GPS location (only long. & lat.) from WM6 phone using .NET CF -

I'm looking for a much easier solution to recover GPS data from WM6 cell phones. I'm not looking for a GPS wrapper library (Google only seems to be GPS LIBs ...) I just appreciate the one piece code which actually does this: GPS launches, long and late, retrieve the end GPS Do nothing else. I think that with the .NET compact framework I would need to use P / Inserts. Any thoughts? thanks a lot. You say that you are not looking for a GPS wrapper library, but you want to ask GPS The easiest way to do this is by using the GPS Intermediate Library, which is a stream interface driver. To call it with managed code, some type of wrapper is required, which makes P / Azez calls. Whether you write it or you are using one already available, it is up to you, but you are using a rapper. To open just GPS, get the position and turn it off one set of three calls :, and, even after calling GPS OnDevice, you really should know that when the GPS Is started, you should also know when i...

rdbms - What is Locking in MySQL and when would you use it? -

What is locking in MySQL (or any RDBMS) and when will you use it? An ordinary man's statement with an example would be very good! We have a joint bank account with the remainder of $ 200 I put my card into the machine, checks the machine that I have a balance of $ 200 In the meantime, you go to the bank and ask for $ 50, teller your account Brings and confirms that you have money. I request a refund of $ 200, the machine means that my money gets $ 200 from me and my balance is set to $ 0 Taylor will pay your money Calculates and gives you $ 50, the system updates the balance in the account in the form of $ 150 ($ 200 - $ 50 withdrawal) So now our account has $ 250 in cash and $ 150 remaining. The advantage of $ 200 The problem is that if you handle that transaction in the same way, then we will lose the concurrency and the performance will be lost, so the different transaction isolation level , Which is used on the basis of scenario, for example you may not c...

tex - LaTeX - Lots of sections (with no content) running of the edge of the page? -

Image
मेरे पास एक लेटेक्स दस्तावेज़ है जैसे: \ documentclass {article} \ start { दस्तावेज़} \ section {1} \ section {2} \ section {3} \ section {4} \ section {5} \ section {6} \ section {7} \ section {8} \ section {9} \ section { 10} \ section {11} \ section {12} \ section {13} \ section {14} \ section {15} \ section {16} \ section {17} \ section {18} \ section {19} \ section { 20} \ section {21} \ section {22} \ section {23} \ section {24} \ section {25} \ section {26} \ section {27} \ section {28} \ section {29} \ section { 30} \ end {document} बहुत सारे अनुभाग शीर्षकों, लेकिन इसमें कोई पाठ नहीं है: जैसा कि आप देख सकते हैं कि यह एक पृष्ठ पर सभी अनुभाग शीर्षकों को रखता है, और इसे 2 पृष्ठों में नहीं तोड़ देगा। 26 से ऊपर सब कुछ पृष्ठ के अंत में गायब हो गया है। क्या लेटेक्स को कई पन्नों में इन वर्गों को विभाजित करने के लिए कोई रास्ता नहीं है? मैं आसानी से शरीर की वास्तविक सामग्री को बदल नहीं सकता, क्योंकि यह स्वतः प्रेरित है। मैं हालांकि प्रस्तावना बदल सकता हूँ। क्या ऐसा करने ...

php - password sent via post secure? -

संभव डुप्लिकेट: मान लीजिए मेरे पास php में लॉगिन पृष्ठ है जहां उपयोगकर्ता को अपना नाम और पासवर्ड दर्ज करना आवश्यक है फार्म विधि इस मामले में पोस्ट है। अब कोई (मेरे दोस्त) ने मुझे बताया कि सूचना (उपयोगकर्ता नाम और पासवर्ड) जो सर्वर में भेजी है और भेजी जाती है, उसे सिर्फ परिणामी पृष्ठ के हेडर को प्राप्त करके उत्पन्न इसलिए आपको शीर्षलेख को एन्क्रिप्ट करना चाहिए और यही कारण है कि HTTPS का उपयोग किया जाता है। यह मुझे समझ नहीं आया क्योंकि मैंने सोचा था कि सूचना (उपयोगकर्ता नाम और पासवर्ड) को पोस्ट विधि के माध्यम से भेजा गया है पूरी तरह से सुरक्षित हैं और केवल हेडर हैकिंग द्वारा उपयोगकर्ता के नाम और पासवर्ड तक पहुंच नहीं हो सकती। क्या मेरा दोस्त सही है? यदि कोई भी इस तरह के सामान को किसी ऐसे व्यक्ति के लिए करने का कोई तरीका नहीं है जिसके पास कोड तक पहुंच नहीं है? मैं HTTPS के माध्यम से अपनी निजी जानकारी कैसे भेज सकता हूं (पेज को पीएचपी में कोडित किया जा सकता है)? संपादित करें: डेटा के माध्यम से प्राप्त करें विधि हेडर के जरिए भेजी जाती है सही? क्या डेटा के माध्यम से ...

c# - Sanity Check: Salt and hashed passwords -

I had an idea about hashed passwords and salt values, because I'm new to hansing and encryption, so I thought I'll post it to you. Will it be more secure to generate a unique salt for each user account, then store the salt and hashed values ​​in the database? Or, whenever I've saved a password, keep a single salt value securely stored and reused? For example, a user will use the password: "secret" My code will generate a salt value: "d1d0e3d4b3d1ed1598a4e77bb614750a2a175e" the results obtained to hash: The palm results and salt will then be stored in the database in the user profile, when their account was created. Then, every time the users are logged on A new salt is generated, the password and salt are reunited and stored in the database. Any thoughts? Like I said, this is a prudent investigation on my mind. Collecting a unique salt per user is a good idea in my opinion to regenerate the salt / hash combination The time the...

jQuery: hiding table row in IE 8 closes the browser? -

तो, मैं कोड के टुकड़े को देख रहा हूं: var row = $ ( । deletebutton) .parent () माता-पिता (); Var indexLabel = $ (पंक्ति) .फ़ीन्ड ("#" + indexLableId); Var rowIndex = $ (indexLabel) .val (); $ (पंक्ति) .remove (); अगर मैं पिछली लाइन को $ (पंक्ति) में बदलता हूं। IE8 बंद हो जाता है क्या देता है? अपडेट: यह अब बहुत दिलचस्प है अगर मैं पहली पंक्ति पर क्लिक करता हूं तो केवल IE क्रैश हो, किसी अन्य पंक्ति पर यह संगतता दृश्य पर स्विच करता है। यह तब भी होता है जब मैं ऐसा करता हूं पंक्ति [0] .style.display = "none"; इसलिए यह jQuery की समस्या बिल्कुल भी नहीं है। कोड मेरा नहीं है और न ही स्क्रीन इसलिए मुझे एक बार फिर देखना होगा कि क्या हो रहा है। अपडेट 2: ठीक है, मुझे लगता है कि मुझे पता है कि क्या हो रहा है। जो कोई भी इस बकवास को कोडित करता है वह प्रत्येक पंक्ति में बच्चों के तत्वों के लिए समान आईडी का प्रयोग करता है। जहां डिलीटबूटन सेट है, क्या है यह? मुझे लगता है कि आपको पंक्ति बी / सी के आसपास $ () की आवश्यकता है। माता-पिता पहले से ही एक jQuery...

Which will serve a budding programmer better: A classic book in scheme or a modern language like python? -

I'm really interested in becoming a serious programmer, people who admire hacker chops, as a corporate drone Is opposed to those who can not fulfill Fizbz too. At the moment, I am dubbed in some languages, most of my experience is in Pearl and Shell, and I am slightly covered in Ruby. However, I can not help, but I think that although I know pieces of bits and languages, I do not know how program is. I actually learn to learn a huge language that can give me a job (though I want to do it soon), and how I work through the design program or interpretation of the structure and computer I am considering using PLT scheme (now called racket) to do, basically, the scheme is one of the classics, because I have always heard that they should be able to give people high quality Ta, usable, how to write readable code teach. However, MIT Ython plans for one in SICP P Therefore, I ask the sage advice of many experienced programmers about the following: What plans (and do those b...

Filter out SSIS errors -

The way SSIS generates errors, it is a bit weird, error details include too many unnecessary data such as "executed pipeline Has been stopped ... "," Error is fatal. "," User requested shutdown ... "and ... This is not very user-friendly for the end user. So I was wondering if there is no way where we can only log / send specific errors? In my case where I upload the data from the CSV file to the data conversion error in the SQL table, SSIS sends me an error log of 20 lines and I need to remove all the unnecessary stuff. any suggestion? Since SSIS produces a huge amount since standard logging, then you rely on using Report in SSRs that filter some of the data If you know that you do not care about messages containing specific phrases, you can press them with no statement in their query. Alternatively, you can set up a process to purify records from the sysdtslog table if you certainly know that you do not want them in your database anymore, there ...

python - Module "mymodule" does not define a "MyBackend" authentication backend -

I am trying to use custom authentication backend for a Django project. The LDAP found in my backend article is based on the backend. When I try to log in, I get a flipping error: "Challenge.backends" configured on Improperly / admin / module "LDAPBackend "Authentication does not define backend My project is called a" challenge ", a subdirectory," backend ", in which __init __. Py and LDAPBackend.py . My settings.py is configured to use this backend in this way: author_backands = ('challenge.backends .LDAPBackend ',' django.contrib.auth.backends.ModelBackend ',) I import the module myself using python manage.py shell Enabled and then by challenge Import Backends LDAPBackend . No longer sure what to check now because everything appears at the right place. You are importing it incorrectly, you are importing a module instead of a class. This is the reason that the shell allows you to import it, but D...

asp.net mvc - Razor wishlist - what would you like to be implemented? -

The Razor View Engine looks promising, so I thought it was contributing with ideas and compiling the wish list list of razor features. It would be good if development is in the preview stage only. URD: What are you missing today in the release of SPARC, WebForm or RAR and do you want to apply in a razor? UPD: Why stop this question ??? What is wrong with creating a feedback loop for razors developers to use this media? Let me close the line breaks in an instruction HTML output. @ linebreak of and lectimum; Span & gt; Three spans & lt; / Span & gt; & Lt; Span & gt; Will be provided & lt; / Span & gt; & Lt; Span & gt; All in one line & lt; / Span & gt; @ Line Break should do the above product & lt; Span & gt; Three spans & lt; / Span & gt; & Lt; Span & gt; Will be provided & lt; / Span & gt; & Lt; Span & gt; All in one line & lt; / Span & gt;

.net - VSTO Outlook: Creating a dynamic custom context menu for a mail item determined by subject line -

By inspection of the contents of this item is possible to add a mail item different items in the custom context menu? The subject line contains "Important", for example, only add items. seems to work. void Application_ItemContextMenuDisplay (Office.CommandBar CommandBar, Outlook.Selection selection) {foreach (choose Outlook.MailItem m) {if (m.Subject.Contains ( "important")) {DeliveryFailureButton ( Commandbar, selection); break; }}} Void DeliveryFailureButton (Office.CommandBar CommandBar, Outlook.Selection selection) {Office.CommandBarButton btn = CommandBar.Controls.Add (Office.MsoControlType.msoControlButton, missing, missing, missing, really) as Office.CommandBarButton; BTN Caption = "move to important messages"; Btnkklik + = (Ofiskkmmandbarbutton stalls, ref bool Kansldefaolt) = & gt; {String msg = "CRM Records \ r \ n"; The foreach (Outlook.MailItem election item) {(Outlook.MailItem item) if {var mitem = Outlook.MailItem...

sorting - C# Sort List Based on Another List -

I have a class that has multiple lists & lt;> exists in it basically a list A table stored as & lt;> does not include the same type in each column. Each list has the same length (the same number of elements). For example: I have 3 lists & lt;> objects; A list, two lists, and three lists. // The syntax is not the correct list & lt; DateTime & gt; A = new list ... {4/12/2010, 4/9/2006, 4/13/2008}; & Lt; Double & gt; Two = new list ... {24.5, 56.2, 47.4}; & Lt; String & gt; Three = new list ... {"b", "k", "z"}; I want to be able to sort the most recent list from the oldest: a = {4/9/2006, 4/13/2008, 4/12/2010}; So to do this, I took element 0 to the end. Then I want to sort the list of two and three types; So when I sort a list, I want data in this index in other lists so that how a list can be solved. I'm afraid that I have to surcharge to the iCompairer anyway, but I feel that I have not...

r - Matlab test of independence -

For 1,000,000 comments, I had seen a discrete event, X, 3 times for the control group and 10 times for the test group. itemprop = "text" I have to prepare a Chihu Square Test of Independence. How would you do this in R: m R function returns CHI-squared = 2.7692, df = 1, p-value = 0.0961. Should I use the Matlab function to do this or should I? This is my own implementation that I use: Function [hNull pValue X2] = Chasquestest (O, Alpha)% # Christmas Pearson's Chi-Square Examination Freedom #% # @ Ultimate O Two Similar Events (Attributes)% # # Importance Level% for the Ultimate Alpha Testing # @ Circulation Hunnel H = 1: Null hypothesis approved (independent)% # hNull = 0: null hypothesis rejected (dependent)% # @ Return Pivotal Examination P-value (% #) Problems of survival) frequencies observed under HN ull)% # @ Returns X2 Square Value for% #% #: observed frequency% #E: expected frequency% #DOOF: degree of independence [RC] = Size (O); Dof = (r-1) ...

drupal - Exposed forms distributed vertically rather than horizontally -

I created a view that uses the highlighted filter to search the user. The problem is that each form appears one after the other and I want to make them stand - i.e. - [search] - - - [search] How can I use the admin panel or CSS? For any help, it will be appriciated In CSS: .views-exposed-form .views - Explode-widget {float: none; }

xaml - WPF Boing demo needs life support -

Remember Amiga Boing Demo? I was reading the 25th anniversary of the Amiga article and they mentioned it. I brought some memories back to memory I remember that to collect the demo together with WPF (at that time called Avalon) I got some goals and got it. However, it has become very old in the form of XML markup and when I started VS If I try to build in 2010 (CLR 4.0 client profiles are targeted again) then the code is increasing with errors behind. Is there any WPF guru in this that can enable and prepare it in this decade? It would be a long way for me to understand the WPF / XAML stack Thanks! Edit: I'm just recently using the updated version. Edit in 2: It has got to compile and show the blue background, but not the bouncing checker ball. The problem is that I can not find the modern equivalent: & lt; X: Include x: content = "{ball}" /> gt; I created this content for .NET 4.0. The solution is available thanks to the advice. It was interes...

iphone - How can I append text to the bottom of my MFMailComposeViewController? -

I would like to add the "sent" text below the message if ([MFMailComposeViewController CanSendMail]) {MFMailComposeViewController * Controller = [[MFMailComposeViewController alloc] init]; Controller.mailComposeDelegate = self; [Controller setSubject: [NSString stringWithFormat: @ "a message from:% @", self.profileName]]; [Controller setMessageBody: [NSString stringWithFormat: @ "% @", self.cellBody] is HTML: no]; [Self current model view controller: animated controller: yes]; [Controller release]; } And {UIAlertView * alertView; AlertView = [[UIAlertView alloc] initWithTitle: @ "Email Not Enabled" Message: @ "E-mail is not supported on this device" Rep: Automatically cancelTutton title: @ "OK" other buttontitles: zero]; [Show warning view]; [Release Release]; } " / Code> and & lt; Br> Use the line break or try using setMessageBody string in \ n The message "Sent from".

python - How i get the current language in django? -

How do I obtain the current language in a model or admin in the current thread? Special jobs are of interest django.utils.translation.get_language () See the current thread which gives the language used.

c# - Accessing other listbox item controls and properties on button click -

I'm currently compiling an XML file in a list box in C # WPF I added controls within the circle. As follows: & gt; Datamapplet X: Key = "Singlettachlelet" & gt; & Lt; Grid height = "30" width = "425" margin = "3,3,0,3" & gt; & Lt; Button Content = "{Binding XPath = NR}" width = "30" style = "{DynamicResource CUEStyle_Button_Inhoudknopje}" template = "{DynamicResource CUEStyle_singlecueknopnummer}" height = "auto" HorizontalAlignment = "left" background = "# FFABCCED "Foreground =" white "IsEnabled =" False "/> & Lt; TextBlock x: name = "name" margin = "54,0,114.667,0" width = "auto" vertical alignment = "center" font system = "16" foreground = "gray" text = "{binding XPath = name}" /> ; & Lt; Button x: Name = "Playbutton" width = ...

Form POST returns 302 from within Joomla, works great outside -

I have a form that submits the shopping cart to Google Checkout. This form works very well on its own. , But when I put it in Joomla (using a material-type of wrapper), Google Checkout throws 302, and the form page is reloaded. After writing it, I decided to see what happens steadily outside Joomla, it took a 302, but Google Checkout loads If I go directly to the request URL listed in the resource inspector (using Chrome for this), I get an error: Oh! We were unable to take action on your request. This happens both on the Joomla form and standing alone. However, both forms receive the response headers, a location URL that goes to Google Checkout, and actually loads the appropriate data. How do any ideas work inside Joomla? Or what can I do wrong? I do not have to understand this thing very well that I can explain myself very well, so if you have a clear question then I would be happy to provide more information as possible In. The issue was actually that the for...

python - Dynamically Created Top Articles List in Django? -

I'm creating a Django Power site for my newsletter site at least clear and achieving this site The task of common sense is the best way to create a "header" list for the sidebar of the page. The first thing that came to mind is that it is a database column of any kind that is updated with every view It is done (based on what?) It seems that (for my tendency) Haas Yaspd database intensive and impractical and thus I think I want to find another solution. Thanks all. I will give a try (along with the Django-Salehi) though configuring it as a cache and using it It is not so easy to do, it enables you to work as counters while enlarging the queue and in the background, it can also be combined with the cache technique - the incremental increment in the cache defines the counter and periodic tasks which Every time and again Lane will reset the counter and write them in the database. I remember - I found once the AJAX JS call provides a good way to increase the ...

hibernate - How to retry a lock wait timeout using java persistence? -

जावा का उपयोग करते समय मुझे "पुनः प्रयास करने योग्य" अपवाद (जैसे कुछ लॉक प्रतीक्षा समयबाह्य की तरह) का पुनः प्रयास करने के लिए सही तरीके से कुछ स्पष्टीकरण की आवश्यकता है I हठ। उदाहरण के लिए, स्यूडोकोड की तरह: EntityTransaction tx = em.getTransaction (); tx.begin (); (वस्तुओं का एक समूह) {em.persist (ऑब्जेक्ट); } Tx.commit (); मुझे कभी-कभी em.persist कॉल पर एक अपवाद मिलता है अगर डीबी में ताला है क्या मैं कोशिश करूँगा / पकड़े और फिर से कोशिश करूँगा (कुछ गिनती के साथ, जाहिर है)? या क्या मुझे पूरे tx.begin / commit को लपेट करना है और उस thx यह मानते हुए कि लॉक टाइमआउट डेटाबेस डेडलॉक के लिए एक वैकल्पिक हल के रूप में नहीं हैं, एक सरल समाधान सिर्फ आपके अनुरोधों पर अधिक समय-समय का उपयोग करना होगा। सेकंड कोड का उपयोग करने के बजाय और सी समय के लिए पुन: प्रयास करने के बजाय, समय समाप्ति को N * (C + 1) सेकंड के लिए सेट करें। (यदि आप लॉक टाइमआउट को डेडलॉक के लिए एक वैकल्पिक हल के रूप में उपयोग कर रहे हैं, तो आपको एक बड़ी समस्या है। आप डेडलॉक के मूल कारण को ठीक करने...

sql - Update/Increment multiple MySQL columns in one query -

मेरे पास यह क्वेरी है, जो काम करती है ... UPDATE `contacts` SET` Call_to` = `calls_to` + 1 जहां 'contact_no` =' 0412345678 '; मैं जो भी करना चाहता हूं लागत क्षेत्र में एक मूल्य जोड़ता है। मेरी समझ से, ऐसा करने का तरीका होगा ... UPDATE `संपर्क` सेट` कॉल_का` = `कॉल_ टू` + 1,` लागत_को` = `लागत_ टू` + 0.25 जहां` contact_no` = '0412345678'; जाहिर है, जैसा कि मैं यहां पोस्ट कर रहा हूं, यह अपेक्षा करता है कि यह काम नहीं कर रहा है। - अद्यतन - अनुरोध के रूप में, टेबल संरचना .. आईडी int (255) auto_increment contact_owner varchar (255) contact_no varchar (11) contact_name varchar (255) calls_to int (255) txts_to int (255) time_talked_to int (255) cost_to दशमलव (65,2) जांचें कि क्या cost_to के लिए डेटाटाइप int है या नहीं। इसके अलावा कॉलम अपडेट करें यदि यह मान शून्य है। UPDATE `contacts` SET` call_to` = `calls_to` + 1, `cost_to` =` cost_to` + 0.25 जहां `contact_no` = '0412345678' और कॉल_ से शून्य नहीं है और cost_to शून्य नहीं है;

iphone - how to traverse in the plist -

How do I go to plist to get a price list? My wrist looks like this: arrays array number number number array ... So in code, I first Something has started from: NSString * imagePlist = [[NSBundle main bundle] pathForResource: @ "Imageinfo" type: @ "plist"]; NSArray * imageArray = [[NSArray alloc] initWithContentsOfFile: imagePlist]; I do not know what's next ??? Give advice. Thank you Now you have NSArray ... ObjectAtIndex: Use or: For: (NSArray * Image in SecondLevelArray) {... do something with second level arrays ...} and for NSDictionary , objectForKey: or (id key in dict) {...} or whatever you want. NSNumber : [number intValue] or float or two or whatever you need.