Posts

Showing posts from March, 2013

iphone - NSXMLParser initWithContentsOfURL timeout -

How can I set a timeout when I am parsing a feed using initWithContentsOfURL? Sometimes our feeds return an empty response and then it will only try to parse the feed forever. I want to integrate 30 seconds, so look at UAL-ul-view and then try to feed and re-insert. NSURL * feedURL = [[NSURL alloc] initWithString: URL]; NSXMLPers * Parser = [[NSX Parser Allok] Init with content of URL: feed URL]; [Parser set deliaget: self]; [Parser's sethold process namespace: no]; [Parser setshall reportnamePassprint: no]; [Parsets setSoldRSOLVXACATTTS: No]; [Parser pars]; The first method: A delayed selector Perhaps the easiest way to do this is to use the method of NSBox. You can define some method parsingDidTimeout as such: - (zero) parsingditetimeout {if (self.parsingDidComplete == NO) {[self.parser abortParsing]; // Create your error and display it here // Try to reload and parse it again ...}} For this, you should assign a parser to an instance variable ( Self.parser )

grails - groovy XmlSlurper not parse my xml file -

I have an XML, and I can not parse the file with xmlslurper Here is a copy of my XML file : & lt; Entrezgene-Set & gt; & Lt; Entrezgene & gt; & Lt; Entrezgene_summary & gt; This gene is the plasma glycoprotein of the unknown function of the encoded protein. Some immunoglobulin supergene family member shows the sequence similarity to the variable areas of protein. [Provided by RefSeq] & lt; / Entrezgene_summary & gt; & Lt; / Entrezgene & gt; & Lt; / Entrezgene set & gt; Just call me & lt; Entrezgene_summary & gt; to /eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi? " Def qs = [] qs & lt; & Lt; "DB = Gene" QS & LT; & Lt; "Id = 1" qs & lt; & Lt; "Retmode = xml" def url = new URL (base + qs.join ( "& amp;") def connection = url.openConnection () Diif result = [] if (connection.responseCode == 200) {def xml = Connection.content.t

PHP MySQL fails whenever WHERE statement is present -

I am trying to do a simple query in a small SECL table, but when I insert the clause I suddenly added an invalid query error (a while (mysql_fetch_array) {} without work). The MYSQL console returns a 1064 (syntax) error, however, I checked the MySQL documentation and I'm using the appropriate syntax as much as possible. & lt ;? Php $ ind = rand (1,3); $ Bid = null; $ = Null sign; $ Afil = Null; $ Con = mysql_connect (localhost, root, ********); // Database mysql_select_db ("phone_site", $ con); // Select the table $ query = "SELECT * FROM quotes WHERE index = $ IND"; // Get a line for that index $ data = mysql_query ($ query); // Print Out Print ("& lt; p id = \" quote \ "& gt;". $ Data ['quote']. "& Lt; / p & gt;"); Print ("& lt; p id = \" ename \ "& gt;" $ data ['sign']. "& Lt; / p & gt;"); Print ("& lt; p id = \" afill \ "

javascript - Should setting `checkbox.checked = false` not clear the HTML attribute too? -

यह मेरा HTML है: & lt; input id = "test" type = "चेकबॉक्स "चेक =" "& gt; यहां एक फायरबग अंश है: & gt; & gt; & gt; परीक्षण & lt; इनपुट आईडी = "परीक्षण" प्रकार = "चेकबॉक्स" चेक = "" & gt; & Gt; & gt; & gt; Test.checked = false झूठी & gt; & gt; & gt; परीक्षण & lt; इनपुट आईडी = "परीक्षण" प्रकार = "चेकबॉक्स" चेक = "" & gt; उम ... क्या मुझे कुछ याद आ रहा है, या क्या आखिरी पंक्ति निम्नलिखित नहीं पढ़ी चाहिए? & lt; इनपुट आईडी = "परीक्षण" प्रकार = "चेकबॉक्स" & gt; UI-wise, चेकबॉक्स वास्तव में अनचेक होता है जब मैं checked = false लाइन निष्पादित करता हूं। फिर भी, अगर कुछ वैध स्पष्टीकरण है यदि यह चेक = गलत मूल्य विशेषता का इनपुट प्रकार = "टेक्स्ट" और चेक किया गया या चयनित इनपुट प्रकार = "चेकबॉक्स" , रेडियो और विकल्प के गुणों के गुण फ़ील्ड के प्रारंभिक मान के

c# - Get ID of the newly inserted record, using SqlDataAdapter -

बीजीआरएक्स.बीजीआरएक्सडीटाटेबल _बीआरएक्सडेटा = नया बीजीआरईएक्स.बीजीआरएक्सडीटाटेबल (); बीजीआरएक्स.बीजीआरएक्सआरओ बीजीआरएक्सआरओ = _बीआरएक्सडीटाटेबलन्यूबीजीआरएक्सआरओ (); BgRexRow.BGRes_TITLE = "abc"; BgRexRow.BGRes_VERSION = 123; _bRexDataTable.AddBGREXRow (bgRexRow); Int rewEffected = एडाप्टर। अद्यतन (_bRexDataTable); डेटाबेस में रिकॉर्ड सम्मिलित करने के लिए ऊपर का उपयोग करते हुए बीड करें, पूर्ण काम करता है। अब मुझे नये डाले गए रिकार्ड के आईडी (प्राथमिक कुंजी) की आवश्यकता है जो ऑटो उत्पन्न होता है, जो कि एडाप्टर। अपडेट (_bRexDataTable) से लौटाए जाने वाले प्रभावित पंक्तियों के बजाय; ऐसा लगता है कि मुझे SCOPE_IDENTITY () फ़ंक्शन की आवश्यकता है, लेकिन मुझे यकीन नहीं है कि इसे डिजाइनर में कहां शामिल करना है क्योंकि डिज़ाइनर वास्तविक प्रविष्टि क्वेरी में जोड़ा गया सिंटैक्स के साथ खुश नहीं है। यह sqlserver प्रबंधन कंसोल में ठीक है, हालांकि DECLARE @ROWI_D int सम्मिलित करें ..... ..... VALUES ("val1", "val2", .......................) SET ROW_ID = SCO

Checking an array of data for similar elements in C -

मैंने एक "पता" संरचना बनाई है। प्रत्येक पते (xx.yy.zz.mm) में एक एक्सएक्स, य्, ज़्ज़ और मिमी तत्व होता है, जो सभी इन्सटी हैं। प्रत्येक पते में इसके साथ "नाम" तत्व भी होता है। मेरे पास "नेटवर्क" नामक 100 पते तक की एक सरणी है यहां नेटवर्क में कुछ तत्वों का एक उदाहरण है: 186.88.1.21 टायलर 186.88.9.11 बॉब 101.21.0.13 टॉम 111.11.3.89 चक 101.21.5.99 ल्यूक < / P> मुझे प्रत्येक पते की जांच करने की आवश्यकता है और देखें कि क्या समान स्थान से अन्य पते हैं। दो पते उसी स्थान से हैं यदि तत्व xx और yy समान हैं। यदि एक ही स्थान से 1 या अधिक पते हैं, तो मुझे इस जानकारी को आउटपुट करने की आवश्यकता है। नीचे ऐसा कुछ कोड है जिसे मैंने करने की कोशिश की है: char temp [1 1]; Int nameCount; के लिए (i = 0; i & lt; गिनती; i ++) {चार नाम [100] [10] = {}; Strcpy (temp, नेटवर्क [i] .name); अस्थायी [11] = '\ 0'; NameCount = 0; के लिए (जे = आई + 1; जम्मू & lt; count; j ++) {यदि (नेटवर्क [i] .xx == नेटवर्क [जे] .xx और amp; नेटवर्क [i] .yy == नेटवर्क [

portability - MySql portable version -

Anyone know the portable version of mysql? I know xampp but it comes with PHP and Apache Does anybody know how to separate mysql? You can download MySQL Essentials to use the relative path instead of the version and full path < Make some small changes to the directories in the code> my.ini file. You can then run the server directly without installing or using a Windows service. Download a MySQL .zip file ( .msi , though you receive .msi And extract 7 from the files using zip or orca). Extract files. At least you have bin and share directory (in fact, in bin , you can actually enter only mysqld.exe to run the server as the full min) Edit my.ini to change basedir and Datadir to some relative For example the path: basedir = ".." datadir = "/ MySQLdb" If you have existing Do not have a database, then create one: mysqld --bootstrap To run the server (you have Switch to switch-grant-tables to leave it unt

asp.net - Recycle windows workflow after changes on workflow activity -

I used WWF on my web project, I have many workflows on this project and fill out the Visitor form and then the form is filled in. Will be posted to the technical people to do their work and some other states ... When I change workflow and make new activity or state, when all workflow runs (DB on before the changes ) Servers requires was unable to process the request --- & gt; System.UniqueOption Exception: Workflow state with id "82b0cb6c-d6b7-43cd-9071-04a1078954ec" was not found in the firmness store. On the system Workflow.timetime.hosting.precent debaucher Restrest InstantState (System Example: Status, Gide Owner, Timeline Timeout) on system. Workflow.timetime Hosting Silver Workflow Persistence Service Wordflow InstanceState (Guide ID) in the system. Workflow.timetime Turn on the workflow. On the Initialization Exclorator (Guide) System.Workflow.Runtime.WorkflowRuntime.Load (System Build, Workflow Instance Workflow Instance) system. Workflow. Runtime. WorkflowRu

version control - SVN: How do I link part of my source to another repository? -

Say that my trunk is to be in hibernation and I would like to use the source directly from source stores in source and whenever I do svn, to update it, it should also update hibernate from my source - how do I get it? You should be able to do this externally with a command like this: svn propset svn: externals dest-folder http: // you-other-repository you can find External documents in

How to get an XForm to display a checkbox? -

I'm having trouble receiving xform to display a check box - instead This is to display the text area, all my other things are working correctly, I do not seem to be doing this work. This is the code inside my model: & lt; Tecnicoff type = "XS: Boolean" /> // close my structure / close the example & lt; Xf: bind id = "takeMoneyOff" nodeset = "/ xForm / takeMoneyOff" /> // Close the model More items are referred to display for everyone: Do not you mention which XForms implementation (target) you are targeting , But believe that it is perfectly consistent, you have two options. If you want to specify the type in the example data, your example code indicates that you need the type of attribute, the XML schema example is in the name space, so if you have namespace If the prefix is ​​declared xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" , then your example will look like this: < Code> &a

c# - .NET Compact Framework: define default size to a custom control -

I am developing with a Winform Windows Mobile 5.0 or above application. Net Compact Framework 2.0 SP2 and C # . I'm thinking that there is no way to set a default size for custom control. When I leave it on the Designer, it always gets 200x200 as my default size. Any advice? Thank you! There are two ways to do this: Override Assign this property to the default size and assign it to this attribute: [default value (type size, "500, 500")] Within the constructor you want to set the default size.

vba - How to force user to deal with the Security Warning when starting Access 2007? -

When a user starts an Access 2007 database macros and VBA, a security warning is displayed. I want to deal with this warning to the user, so if the content is not enabled, then the user should not be able to use the database. Now I'm using a macro called AutoExec / code> (opens a form that works like a menu), and it runs with a macro security warning before user deals But I want to know if the content is enabled or else I will show a form that informs the user that they should enable the content. So I'm really asking how I do it If the vba and macro not enabled -> show the form "notification" Show the form "Start Menu" enabled Text "itemprop =" text "> OK, after some time I have the solution Thanks for the reply that took me right. Microsoft is very helpful. In AutoEX-Macro, I have two lines: Line one: Terms: [current project]. [Isstread] = false and then I want to select the witch form to open I and in

Is this JQuery valid? -

क्या यह JQuery वैध है? $ ("[Name = enableTooltip]: चेक किया हुआ") यह क्या करता है? यह अधिक समझदार है: $ ("इनपुट [name = enableTooltip]: चेक किया हुआ") यह सभी इनपुट का चयन करता है जिसमें नाम विशेषता है बराबर "enableTooltip" और जाँच की स्थिति सही है। उदाहरण मिलान: & lt; इनपुट प्रकार = "चेकबॉक्स" नाम = "सक्षम टोलटिप" चेक = "चेक" / & gt;

audio - can I make Flash/swf "movie" in which I can scroll back and forth through the sound recording? -

It seems that I have a long sound recording as part of the flash presentation, do I have a media player or a Windows Sound Recorder Can I present the presentation as a scrollbar and start / stop / pause / resume button, so that I will be allowed to scroll to the sound recording at any point of time? So I think, I'm asking, can the functionality of such a specific sound player be applied to Flash's Flash presentation? If there are sample apps that already show similar code writing, the links greatly appreciate: -) Yes, it is possible to jump in any situation within the loaded sound file. By using the voice class, you can get the length of the sound file and the current position of playing sound together. In this way, you can create a scroller that updates its position when the sound is played and it allows to jump in any different position. If a user jumps in position, then you only need to start the time and use it as a parameter. That method also gives you the req

winforms - Action Event problems[C#] -

My application has a dataset, a save button, a calendar (month calendar), and a datagrid view (column) Assignment, description, date, subject end). I want to make events: If they are in the date column then the calendar changes to different colors Save button should save DataSet as an XML file in "" \ \ Assignments.xml "(which is that the application folder is correct? And not C: \ Assignments.xml?) < Li> The line should change to a color when the assignment is terminated I'm sorry it is too much but my application is complex and I want to complete it for These events are required. Any person giving the best answer will be put in the README.txt file to help with the code. Do not use a binding resource, and can you tie the textbox and description columns in the same area? To change the calendar (datatapapicar me Think?) Date, you can add a handler for a valid event in the handler Check and update the color. To get the dataset to be se

Amazon Affiliate links on a website written by users -

If my users link to Amazon in their messages, then I have to get commission for shopping. How do I do this? Do I have to learn Amazon Web Services or just register my website with Amazon Affiliate Program? Thank you very much. You will need an associated account and you will then need to type the code that takes the user's posts Finds the link from Amazon.com in them, and links your affiliate code to those links.

java - Should a function's comment include descriptions of work done by functions it calls? -

Assume that I have a function called displayclaimer () that puts some slashes and backslashes on the screen such as this To represent the armor of an animal: /// \\\. // With this line, you can write a comment for this function // 3 / P> of a location but if I then displayKitten ( ) And DisplaySealion () which are displayed as part of their work performance (), how much details should be made about displaying the wings for these functions? On the one hand, it seems that I should be able to see the observations for displayplay (and) and I should be able to understand everything about what I have to do, in which it is actually the armor On the other hand, if the comments for DisplayKitten () clearly refer to three slashes after three backslashes, then I would like to see the comments for the Wishers For An reading should not be anywhere else. It seems that it has to go against the feeling of encapsulation and if possible, DisplayWhiskers () has been changed later. What

.net - C# GUI, have to display a huge table and make it sortable -

I am creating a small # GUI application that provides table-abstract (cells, rows, columns) data from a binary file It reads and displays the end user some files are very small (5 columns / 10 lines), but some are too big (245 columns and approximately 50,000 lines). Another simple way I had to easily show an MSXL-like table. When I tried small files I was very happy with it, but the sooner I tried, the OOM was loaded earlier (and I had free memory of more than 4 GB). After that though I came to know, and it was really fast, though unfortunately the columns were no longer fit to sort and it is a necessity. So, what can I do to get the performance similar to Datagrid Weave's virtual mode, but is it also sorted? (If you have another control in your mind then okay, I do not have to use the DataGrid view) Also, please note that: Binary files were not created or created by me, I have no control over their format. The data is not in the database. My end users should no

c# - Is there an added cost of splitting code out to a separate library from your main application? -

I can understand an additional cost at a separate DLL loading startup, but say a different title that my application (It should be ASP.NET webforms, MVCs or Winfomes) and for some reason or another reason I decide that from the perspective of maintenance, it would be better to move some sections in my own separate library so that I am somewhat on the road Above I can float to other applications. Do I have any additional increase in reference to classes in different libraries, if I put them in. My main application and referred them there? I want to take them out, but there is a potential requirement for scaling a large amount of application, so I do not want to shoot myself by doing it in the foot. Normally I will transfer the code without giving it another library outside of my library, but generally I am not writing those applications for which this scaling level is required and therefore I Now I'm guessing myself If this is understood by API design / code clarity / m

security - php secure login -

What do you think about this login process? Is it very safe? When they log in, I first know that username is present, if I catch the salt (the unique salt of every user) from the user, then I have a hash with the posted password again. $ pass = hash ('sha256', $ salt. $ Post_password); And then I just compare with $ check = mysql_query ("Choose where user name is from user" = ". $ Username." 'And password =' ​​". $. Pass" "") or die ("MySQL error:". Mysql_error ()); I do not think it is a good idea to post mysql error if it fails. or die (" MySQL error: ". Mysql_error ( )); When it comes to doing this, I'll say less information you returned better The user who is trying to log in, whether the username or password that has failed, is not good, it tells you what type of database the user is using, how it asks, Etc. Further and realize that the most frequent protection in these sit

ruby - Properly converting a CMYK image to RGB with RMagick -

I'm using below to make a color conversion if @ image .colorspace == Magick :: CMYKColorspace # @ image.colorspace # = & gt; CMYKColorspace = 12 @ image.colorspace = Magick :: RGBColorspace @image = @ image.negate end This works, almost, but the color brightness is far away. The fact is that I need to reject the image very bad odor. The documentation mentions using color_profiles, but besides this I can not find much. I am now trying @image = @ image.quantize (16777216, Magick :: RGBColorspace) And the colors are better, but still are closed. Thank you peka, you pointed me at the answer (1). You should have compiled the image magic with this installed, it may already be the case if any installer or package was used. But I was compiling from the source that it was easy to install LCMS from the source and as Image Magic Rebuild ( ./configure; create; install ). FILENAME -profile / PATH_TO_PROFILE / sRGB.icm OUT.jpg ImageMagick works well to repr

javascript - Copying INPUT FILE value to INPUT TEXT with click in jQuery -

I would like to copy the value of an input: file for input: text I can do it with javascript scheme but I would like to know how to do it with jQuery. ---- javascript // What this script would look like with plain javascript / it works fine. I just want to know what to do with jQuery. Function fake script () {var filepath; Filepath = document.adminForm.tumb.value; Filepath = filepath.substring (filepath.lastIndexOf ('\\') + 1, filepath.length); Document.adminForm.tumbFake.value = Filepath; } If you have something that works in "plain javascript" It will also work with JQuery: jquery is just a library that adds functions - it's (or there is some kind of bug in it ^^)

windows - Where do I download : VBRun60sp6.exe (which installs Visual Basic 6.0 SP6 run-time files)? -

When I describe the MS web page, I give instructions for VBR 6060.Acca, but when I actually I am downloading it as VB6.0-KB290887-X86.exe which is OleAut32.dll update for VB6 only. I downloaded the VB6 IDE SP6 update but it is installed directly on Dev Machine and I want to capture all the files at one place Any ideas? (If I extract a T / T with that update then there is no DLL file in it, because it is an update). Download from: If you can not find it, So look at this search:

c# - Validating User Input and Type -

I have designed an input validation loop in C #, and I want to be able to check it for the correct input format. I'm not sure, but I think that my designed loop is not checking the type of input, just the character that has been entered. I know that I can use an effort-block, but should you not use exceptions only for extraordinary situations? This is not an extraordinary situation, because I hope the user will enter the wrong value. Question: Is there a way to give it a new look, so that it is a valid input type Also checks? Code: do {console.write ("Do you want to enter another complex number?: (Y or N) "); Feedback = char.Parse (Console.ReadLine ()); Reaction = char.ToUpper (feedback); If (feedback! = 'Y' and feedback! = 'N') console.light line ("You must answer Y or N!"); } While (feedback! = 'Y' and feedback! = 'N'); Good: reads the next line Characters from standard input stream Then your data will

mysql - Whats a better strategy for storing log data in a database? -

I want to create an application that requires extensive logging of users, payments, etc. Am I am better with a monolithic log table, and just log everything in it ... or for each type of action, log log (log_piment, log-login, log_x_change) Better to keep separate log tables? For example, currently logging user interaction with a payment gateway. When they sign up for a test, when the test becomes a subscription, when this bill is received, the refund is done, if failure occurs or not, etc. I would like to start logging tasks or events Edit: with no payment gateway (renewal cancellation, restriction, do not interact with payment failures) The data will also be checked for entry, entry, data to verify its integrity on a regular basis, because people will have to pay on its basis, therefore accurate data is very important. Read the questions by me and 2 Will be done by the new administrators, 99% of the time, it is going to be written / updated. I have only estimated to b

How to get value from match in ActionScript? -

How to get value from matching in action script? For example, what would happen? If you mean a RegEx match, I know that you can do this method in string class You can only $ & amp; may be used. Otherwise, I do not know what you say.

objective c - iPhone SDK: viewDidLoad() sees an empty NSArray, but it's populated in a delegate method (MGTwitterEngine) -

This is probably obvious, but I'm a little of a newbie and have spent hours understanding it. I have a function on an MGTwitterEngine object (custom object) with an input in viewDidLoad (). If the request (on Twitter, in this case) is successful, then it calls a proper representative method In viewDidLoad (), it is like this: [ MyTwitterEngine getSearchResultsForQuery: @ "#cotation" sinceID: 0 startup page: 0 count: 10]; In the case of a successful search request the caller's representative method looks like this: - (zero) searchResults received: (NSArray * ) Search for searchResest: (NSString *) Connection identifier {NSMutableArray * tempArray = [[[NSMutableArray alloc] init] autorelease]; If ((calculation of search results)> 0) {for (int n = 0; n I can not understand this: Finally, where I say "Ok, the work is here", it is clear that the self The message (an NSArray) is populated with information that I want However, if I call it

writing a replacement for a function which takes a variable number of parameters (c programming) -

I want to write a function to replace fprintf int fprintf (FILE * Stream, const char * format, ...); I'm not sure how to define such a function, because, after the format parameter, this function takes a variable number of parameters. In particular, at least several additional arguments are specified in the format. UPDATE I have received a resource on the topic (), but the example does not seem like This is not a homework. I am just a beginner who is trying to learn how to program in my spare time. Thanks! Instead of calling fprintf directly Code> vfprintf for example: #include In the standard library, each function that has varargs ( ... ) also has the v version of the same function in it Sounds like a va_list parameter. Since you can not create logic for dynamically passing, so you have to use the v version to pass on varargs.

c# - Adding DateTime to ListView? -

How do I add a date value with 2 string values ​​in a ListView? I have tried ... string [] line = {time.view Toaster (), "example text", "example text"}; ListView1.Items.AddRange (line); But I get conversion errors. I do not think that you have any questions specifically to do with a ListView It seems that you just need to know how to extract the string from time to time. Experiment with "T" standard format (): time. Value Toastring ("T") This will be the following for our N: 3:51:24 PM < / Div>

Annoyances of Flex - Associative Array -

I have an associative array and through this array, using the foreach loop. Flex is losing the order How is this happening? Itemprop = "text"> According to the specification, the values ​​of an associative array are not "orders". If you need to get the value in a specific order, then you will need to sort the keys themselves.

Manually sorting a linked list in Java (lexically) -

I am implementing my linked list in Java. There is only one string field in the node class called "name" And is a node called "link". Right now I have a test driver class which involves only several names in sequential order. Now, I am trying to type a sorting method to sort nodes according to the characters, but there is a problem with it. I From the post of someone else, I found this bubblest pseudo-stroke and tried to apply it, but it does not completely sort the entries. Is very sure that I do not appreciate any suggestions! Private zero type () Enter the // {Enter} loop only if there are elements in the boolean list = (head! = Null); // If swap is done {swapped = false; // monitor pointer node curr = head; Node next = curr.link; Node pre = null; // The last object can not be swapped with next time (next! = Null) {// swap if there are items in the wrong order (curr.name.compareTo (next.name)) I spent a few minutes for errors on your code but no one

html - CSS problem, creating tabs -

I have a CSS problem that I can not understand. I'm not even sure that this is possible. What I want is the following: I have three buttons like this / tabs and when you click on a tab, this way, each tab should show a separate device or < P> I know how to show / hide divs with jQuery but the problem is that the divs will increase in height and then they will press the other tabs and divs down what am I trying to do? I am not a guru in CSS, if you can see the code here or post here, I would be very grateful! This is the HTML I am using for my tab: & lt; Div class = "maincontent" & gt; Content & lt; / Div & gt; & Lt; Div class = "TabsHolder" & gt; & Lt; Div id = "Tab1" & gt; & Lt; Div style = "width: 200px" & gt; Content tab 1 & lt; / Div & gt; & Lt; / Div & gt; & Lt; One class = "button1" href = "# tab1" & gt; & Lt; / A & gt; &

Writing pseudo-crawler for web statistics -

I have been tasked with writing a web pseudo-crawler to calculate some statistics. I need to measure the percentage of HTML files which & lt; DOCTYPE starts with against the number of HTML files that do not compare this staticity between the sites on different topics. To do this, the idea is to separate words (such as "Automobile", " Stock exchange "," liposuction "...) and requested 300 or more pages first. I want the process to be very fast, yet I do not want to ban Google. Certainly I want to reduce the time of development when it may be possible that some stupid Pearl scripts Is there a ready-made solution that I can use again? With Google I am not a part of the HTML contained in HTML files, which is the proper solution, I did not find what I wanted to measure. You can do just about everything, including limiting your request rate.

sql - How to find a gap in a time ordered table where a given column does not have a certain value for a specified interval -

I have a large desk (millions of rows) where I need to find groups of records based on the presence of a specific column The value and where a specified 'timeout' has not happened, I understand that in the entire table it has to find out where this 'timeout' interval has happened. Example table: + ---------------- + ------ + | Time | Base | + ---------------- + ------ + | 1245184797.064 | One | | 1245184802.020 | One | | 1245184807.103 | B | 1245184812.089 | B | 1245184816.831 | B | 1245184821.856 | One | | 1245184821.856 | One | | 1245184855.903 | One | | 1245184855.903 | B | 1245184858.362 | B | 1245184858.362 | B | 1245184860.360 | One | | 1245184860.360 | One | | 1245184862.174 | One | | 1245184862.174 | B | 1245185001.480 | B | 1245185417.556 | One | | 1245185417.844 | One | | 124518541996060 B | 1245185420.181 | B + ---------------- + ------ + Looking at this set, how can I quickly get points in the table where the base = This has not happened for a few

entity framework - Testing internal/closed/sealed System.Data bits. TypeMock or Decorators or xxxxxx? -

I am writing some code which is very tight with system.Data (such as DBDataCord and many internal and sealed categories inside Integrates ObjectStateEntry) for an EntityFramework project I am working on Of course, the pieces trying to duplicate these things fall. I still need to test these items and AFAIK has two options: Buying To create your own fake subclass of these objects using decorative patterns. Decorative "cheap" and easy option Are there any third or fourth option to duplicate these items?

How do I make one Visual Studio project automatically execute before another? -

मेरे समाधान में दो परियोजनाएं हैं ग्राहक सर्वर दोनों कंसोल अनुप्रयोगों को कंसोल करने के लिए जब मैं सही क्लिक करके और डीबग का चयन करके क्लाइंट प्रोजेक्ट निष्पादित करता हूं ... नया इंस्टेंस प्रारंभ करें या F5 दबाकर, मैं इसे सर्वर अनुप्रयोग को स्वत: निष्पादित करने के लिए चाहूंगा। क्या इसे सेट करने का कोई तरीका है? समाधान पर राइट-क्लिक करें, फिर properties पर क्लिक करें अपने कॉन्फ़िगरेशन को सेट करने के लिए स्टार्टअप प्रोजेक्ट गुण पृष्ठ का उपयोग करें। आपके मामले में मैं एकाधिक स्टार्टअप प्रोजेक्ट्स का चयन करूँगा और उन्हें उचित रूप से सॉर्ट कर दूंगा।

php - Image file permission - image resizer -

PHP mySQL Hi, I have an interesting problem. I have a form in my CMS Allows to upload images to the server. The script transforms the images into a thumbnail (170px height) and a larger image (600px height). Thumbnail size is around 16000k and large images are approximately 160,000k in size. I do not set file permissions and just let it happen automatically when I go to the site I can see thumbnails but I can not see images of full size and I tracked this problem below on file permissions. There are RW-R-R permissions in thumbnails and RWs in larger pictures - - Permissions - that is, the public is not allowed to see large images. I save big images with the name of the original and I save the thumbnail with the thumbnail by adding the thumbnail to the end. Why do large images have different permissions, when they are uploaded and rewritten by the same script and when I do not set the file permissions? Does it have something to do? I get this problem when production uploads images

Saving a screenshot of a window using C#, WPF, and DWM -

यह एक अनुवर्ती प्रश्न है उपर्युक्त समाधान का एक थंबनेल प्रदर्शित करने के लिए DWM का उपयोग करता है एक सक्रिय विंडो अगर मैं सही ढंग से समझता हूं, यह आपको एप्लिकेशन के विंडो हैंडल को निर्दिष्ट करने से काम करता है जिसे आप देखना चाहते हैं और फिर आप खिड़की के संचालन और खिड़की पर एक स्थान प्रदान करते हैं जहां विंडो को लक्ष्य विंडो की सामग्री खींचनी चाहिए। क्या विंडो के सीधे शॉट को सीधे बिटमैपआईमेज या छवि को सीधे अपनी खिड़की में कहीं से ड्राइंग करने का कोई तरीका है? (मूलतः खिड़की के स्क्रीन शॉट को पकड़ने के लिए - भले ही इसे किसी अन्य विंडो से कवर किया गया हो - अपडेट थंबनेल का उपयोग करके)। आपके लिए धन्यवाद! कंट्रोल। ड्राटोबिटमैप हमेशा काम नहीं करता है इसलिए मैं निम्नलिखित देशी एपीआई कॉलों का उपयोग करता हूं जो अधिक प्रदान करता है सुसंगत परिणाम: उपयोगिता वर्ग। विशिष्ट उपयोग पर कब्जा करने के लिए कॉल यूटिलिटीज़। कैप्चर विंड (नियंत्रण। हांडल): सार्वजनिक स्थिर वर्ग उपयोगिताएँ {सार्वजनिक स्थिर छवि कैप्चर स्क्रीन () {कैप्चर विंडूइन वापस (User32.GetDesktopWindow ()); } सार्वजनिक स्थि

Retrieving and Presenting SQL Joined Table Records with PHP, Sqlite (or MySql), and HTML -

Please do not hesitate with me while I try to explain your question. I have a SQLite database that has a table containing company information (companies) and product information (product). Companies table ID is added COMPANY_NAME it with the product table by Company_Name For example, the company consists of the name of the 'A' inner volume = ProductID (ProductID company) many associated with it through joining companies to Products can be. I'm trying to display this information using a loop while loop so that there will be a list of companies with their respective products. I can not understand how to do this. I can record a company like loop with a product, but I can not list a company with many products. The following is what I am trying to achieve: Company "A" - Location CA Product 1, Product 2, Product 3 Company "C" - Location CA Product 3, product pulls all companies 4, the product 6 the company "F" - for CA product 1, the prod

iphone - How to customise the Button on UIActionSheet? -

मैं width & amp; UIActionSheet UIActionSheet * शीट = [[यूआईएक्सशेट एएलओओसी] के बटन के ऊँचाई आदि आदि इनट विथ टाइटल: शून्य प्रतिनिधि: स्वयं रद्द करेंटूटल: नाइल डिस्ट्रक्टिवबटन टाइटले: शून्य अन्यबटनटिटल्स: @ ** "पूर्ण" **, शून्य]; मैं ऐसा करने से सुझाव दूंगा UIActionSheet में बटन के आकार और आकृतियों को एक्सेस करने के कारणों के लिए तैयार किया गया है। वे प्लेटफ़ॉर्म पर सभी एप्लिकेशन के अनुरूप भी हैं, इसलिए उपयोगकर्ता उनके साथ परिचित हैं। से: क्योंकि उपयोगकर्ताओं को इन दृश्यों के स्वरूप और व्यवहार के आदी हैं, इसलिए उन्हें आपके ऐप्लिकेशन में लगातार और सही तरीके से उपयोग करना महत्वपूर्ण है। यदि आप इन आकारों को बदलते हैं, न केवल आप अपने आवेदन को कम प्रयोग करने योग्य बना सकते हैं, लेकिन वह एप्पल का उल्लंघन कर सकता है, जिस पर आपके आवेदन की अस्वीकृति हो सकती है।

Should I put my output files in source control? -

I have been asked to put each file under source control in my project, which contains the database file (schema No, full file). It seems wrong to me, but I can not explain it. Regarding source control, I know that every resource tells me not to put output files generated in a source control system. And I think this is not a "source" file. However, I have been presented with the following argument: Who cares? We have a lot of bandwidth. Every time I get the latest amendment, no dispute is resolved, this is just one click It is much more convenient to ignore good files Think about it Also, if I want to add an external DLL file to the bin folder now, then I can not put it in the source control, because the bin folder is no longer being ignored. Simple solution for last bullet-point is to add the file to a library folder and reference it to the project. Please indicate whether the output files generated under the sources generated and why are incorrect.

DataGridView not updating in c# -

Anyone know what's going on? Changing code 2 into code 2 can solve the problem - there should not be a theoretical difference. (Theory behaves like a pumpkin killing a brick wall). Code 1: Output data gray view. Data source = myList; Code 2: Output Data Grid view. Data source = null; Output Data Grid View Data source = myList; Take a look at this link < / Div>

c - Converting a non-GUI Makefile (make) project to KDevelop -

I have a simple project that I compile that I want to run and debug in KDevelop, It works to get it to work. I have installed SeamCom and have tried to import an existing project and start a new one (which insists on creating main.cpp file), but what do I do to run the program I'm doing all the menu options. How do I transfer this project to KDE? Yes, once you've created a new project by importing custom messaging, go to the Run menu, configure Launch , Then select Global Tag, then press the green plus + icon. This will create a new launch configuration that you will need to fill it with in the right execution path and all of the logic and whatnot. Once these are set, the executed / debug option will ungrey. I had to find out today, it was not clear at all.

list - Comparing user input integers to dictionary values? (Python) -

I'm a python knot and I'm trying to write a program that will show a list of phone numbers to a user X Over time, I got this program to read successfully in duplicates and count them (numbers are stored in a dictionary where {phoneNumber: numberOfTimes collapse}), but I have user input, a Poo Print the value in the dictionary and then the phone number that was X or more often than the code, it is my code so far: import fileinput dupNumberCount = {} phoneNumLog = list () Fileinput.input in line (['PhoneLog.csv']): phoneNumLog.append (line if I am not in dupnumbercount: dupnumbercount [i] = 0 dupnumbercount [i] + = 1 print ('', ') [1]) userInput3 = Input ("Dupnumbercount.values ​​(" number greater than the X-bar) "userInput = input (" When the program is finished you can see the program in the command line Actually, I can not understand how to convert the dictionary value to the integer, compare the value of the user input integer, a

iphone - MPMediaItem.h:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'class' -

I am compiling my iPhone app, and I get the following error in the MPMediaItem header from Media Player Framework : / developer / playoffs / iPhoneOS.platform / developer / SDKs / iPhoneOS3.1.sdk / System / Library / Frameworks / MediaPlayer.framework / Headers / MPMediaItem.h: 14: Error: Expected '= Before 'class', ',', ',', 'asm' or ' attribute ' How can I fix it? Thank you: I have solved this exact problem now and I get my hair removed from above I am here. The GCC was not highlighting in the problem, where there was actually a problem - I had a passive 'B' character in the lower part of the header file (to run Command-B). The error was then being thrown into an IM file and other H files, which included the problematic one, often on the @class statement. If this is throwing an issue with your @class statement, then the problem is almost certainly in one of the predecessor header files, as you already include them

gcc - imposing library loading order -

I have a GCC-compiled application that is connected to dynamic libraries. Is there a way to implement the order in which the library loads? (In my case, a library creator uses the resources established by the second library constructor). Thank you. GCC is not the charge of loading the libraries, either Ld.so automatically does when your program loads, or you manually suggests it @ Jldupont. and ld.so can be ordered to stop the return-to-stadilib attacks. Then either: Load the library yourself. Remove dependencies between library load scripts. Libraries themselves may have dependencies (maybe work may be done) This happens when you come to the point of adding each shared library, to ensure that the -l & lt; Dependantlib & gt; Link command You can test it by creating a stereoscopic program that only links to the shared library - if it creates and runs, then the library has all the necessary dependent labs. It can help if ld.so dependency loads the li

Create a List of pairs in .net -

Let me see the list of joints in my classes < & Gt; needs to be created such as: list & lt; Class 1, Class 2 & gt; How would you do this? I can not use the "pair" datatype because it is in the system. WEB.UI. Do you make a list of arrays? Is there another way I do not know and I'm just a Noble? Note: T want any sort of auto sort to sort. I know that some people feel uncomfortable about this - see a discussion - but you System in non-web projects There is nothing to stop the web, and then you can use System.Web.UI.Pair with great pleasure.

Machine Migrations wireup. -

I am trying to wipe one of my projects to use the machine. Merging for Database Migration However, I am unable to do this. I'm getting weird errors I have tried to use MSBuild work but I'm getting the following error. target Maigreshnmashiin: D: \ repository \ Core \ Playground \ Minhazuddin \ MachineMigrationsTest \ lib \ Machine.Migrations.targets (20, 5): error MSB4062: "Machine.Migrations.MigratorTask "Work assembly can not be loaded with D: \ repositories \ core \ playground \ minhajuddin \ MachineMigrationsTest \ lib \ Machine.Migrations.dll. The file or assembly file could not be loaded: /// D: \ The repository \ core \ placenta \ minhzuddin \ machine migrase \ lib \ Machine.Migrations.dll 'or its dependency failed to detect a system specified file Stayed. Confirm that & lt; Using & gt; The announcement is correct, and the assembly and all its dependencies are available. Building target "MigrationMatchin" finished in project "M

string - How to count instances of character in SQL Column -

I have a SQL column that is a string of 100 'Y' or 'N' characters. For example: YYNYNYYNNNYYNY ... What is the easiest way to get the number of 'Y' symbols in each line? If MS SQL SELECT LEN (REPLACE (myColumn, N '' ')) ...

Form redirect to URL containing query term? - pure HTML or Django -

I want to create a search box in the Django located in the URL / search, and a friendly URL like / search / queryerum - URL Instead of having q = queryterm) Then the user type in a query period, it takes them to the / search / queryter, and shows a list of results. I can get the results and display exactly one URL like / search / queryterm but I do not know the best way to handle URL redirects from the form. Can this form have a redirect in pure HTML (which seems to be a little hacked), and if so, how can I implement it? Or the form / search / search / query page? Will not it slow down? Thank you! Posting a search query is an incorrect idea and misuse of an HTTP request to be a GET request Should i think Is there a reason that you can not redirect to a friendly URL based on the request.GET parameter? I also disagree with the principle of using "friendly" URLs for search queries; They should be used for permanent results, like some transient search resul

C# Ending Regex statement -

मेरे पास यह कोड है Regex.Match (सामग्री, @ "सुरक्षा = (? & LT; सुरक्षा & gt; \ डी +) ") समूह। [" सुरक्षा "] मूल्य। यह निम्न करता है: सुरक्षा = एसएसपीआई; डेटाबेस = डाटाबाब मैं कैसे रेगेक्स काटा; इसलिए मैं केवल सुरक्षा = एसएसपीआई रेगेक्स। मैच (सामग्री, "सुरक्षा = ( ? & Lt; सुरक्षा & gt; [^;] +) ") समूह [" सुरक्षा "]। मान

c# - Load XML file into DataTable (not from a Database) -

Am I looking to load my XML format data files into datatable (and a dataset ?) Instead of deserializing them in classes I can generate a dataset using xsd.exe, but I do not have any luck that is showing the way to use it. My Google searches are loaded with the use of XSD files as an intermediary to access the database tables in a frustrating manner. Since my apps save data files instead of debugging data, this is no use for me. Try out with Maybe you need to format your XML. Dataset DS = new dataset (); Ds.ReadXml ("xml file path");

windows - Application is visible on taskbar? -

How do I find out on an application taskbar? I am using Delphi on Windows. / P> I did not try: {Wnd = your app (WND) , GWL_HWNDPARENT) = 0) or (HWND (GWL_HWNDPARENT)) and ((GetWindowLong (WND, GWL_EXSTYLE) and WS_EX_TOOLWINDOW) = 0) or (WWND, GWL_HWNDPARENT)) and (if WIND, GWL_HWPARPARENT) // Your App Taskbar Showing on

grid layout - Java GridLayout -

Is there a way to add elements to gridlight that connect them horizontally instead of vertically? Hopefully I made my question clear. I would suggest and this is a lot like a gridlate, but With GridBag Conventions you can specify the component's X and Y coordinates, and you can specify the column and row span. This will look something like this: Import java.awt.GridBagConstraints; Import java.awt.GridBagLayout; Grid background layout = new gridboutout (); Gridbag Consultants c = New Gridbag Consultants (); Zpean panel = new zpn (); JAlabel label = new JLABEL ("EFU"); Panel.setLayout (layout); C.gridx = 0; C. Grady = 0; Panel.add (label, c);

c# - WPF - Workaround for ValidationRule not being a DependencyObject -

ValidationRule is not a dependency object, since ValidationRule is not able to use the data binding on the property to be best suited for What is the solution? Below I'm an example to do like I want to be able to validate text with some other dependency property in the text box I am & lt; Text box name = "myTextBox" & gt; & Lt; TextBox.Text & gt; & Lt; Binding Path = "MySource" UpdateSourceTrigger = "Property Change" & gt; & Lt; Base: EclairsRule target = "{binding micrograj}" /> & Lt; / Binding & gt; & Lt; /TextBox.Text> & Lt; / Text box & gt; You can use Josh Smith.

audio - Preload sounds played via iPhone AudioServices -

I created an iPhone app using AudioSversity to run small voices. For the first time a sound is played, half a second is delayed, while the sound loads before it plays, it definitely creates a strange user experience. Is there a way to preload the sounds to play AudioSverver, or do I need to switch to audioquoise or some other play mode? > This is a well-known problem. Everything in the audio services has become sluggish. I think your best choice might be OpenAL overkill between core audio or open, but there is a simple API, a hal touch example, a good place to start. The core audio is slightly more raw, but it is well documented. IPhone's OpenGL SDK is built on top of it.

compiler construction - How to detect Windows XP or Windows 2000 OS to run a CVI executable -

I am using NI LabWindows CVI 8.1 so that an executable program can be compiled and made that I have windows XP and Windows 2000 is to run on. OS I use Windows XP to compile and build executable. The information so far is that I have to keep some statement as follows: #ifdef (windows xp) // Then specify the path as C: \ wINDOWS \ system32 #elif ( Windows NT) // Then specify the path as C: \ WINNT \ system32 #endif What is the exact syntax and where should I place it (like the headers to move it Or source file)). Here's how to call the API: Then, try GetSystemDirectory:

join - NHibernate Joining on non-mapped property -

I have two classes System Inventions and Users The user has a property that has been e-mailed and system name. There is a property in the inventory called the invitation email address. There is no relation between domains between these properties Is it possible to use the criteria API to generate a query: Select si.InviteesEmailAddress, Si.Identifier, case when u.id is zero then end user of 0 and 1 as userExists from system invocation to external user [user] u on eemail = c. Insights e-mail account ? Thank you! You should map the InviteesEmailAddress column to the mapping for system integration: < Code> & lt; Many-to-one name = "InvitesesEmailAddress" fetch = "join" class = "user" column = "email" cascade = "none" not-found = "ignore" />

iphone - Can a NSDictionary take in NSSet as key? -

I know that you can use an object as the key for the NSDictionary but the problem is whether it receives the correct value Will be able to? Support I have an entry where the key = {1,3,5} and value = {@ "hello"}. Can I retrieve the set in {3,5,1} and retrieve it from this dictionary entry? In order words, the key indicator is based on indicator or does it actually compare the content of the set? (And if this is the former, how can I remove it?) Yes it is well Works from (Not sure if anyone is available) NSMutableDictionary * dict = [NSMutableDictionary dictionary]; NSAT * set; Set = [NSSet set with object: @ "A", @ "b", @ "c", @ "d", zero]; [Dict set object: @ "1" for: set]; Set = [NSSet set with object: @ "b", @ "c", @ "d", @ "e", nil]; [Dict setObject: @ "2" forKey: set]; ID key; NSEnumerator * enumerator = [dict keyEnumerator]; While ((key = [next object] [enum

javascript - jQuery Recursive Function -

I am trying to write a recursive jQuery statement that captures some data and populates the field. Although I do not want the next command to be completed until it is turned on. I am trying to put down, although it does not have to be done in the second run. Is there something that I'm doing wrong? I am doing this: var arg = new array (); Arg [0] = 'id0'; Arg [1] = 'id1'; Arg [2] = 'id2'; Arg [3] = 'id3'; Arg = 4] = 'id4'; Arg = [5] = 'id5'; Grab song ('toggle = 0', RGR, 0); Function bubblemetrics (url, locationAry, num) {warning (number); $ Ajax ({type: "post", url: "foo.php", data: url, success: function ($ this) {$ ("#" + locationAry [num]). Text ($ this); if (num & Lt; 5) {num ++; grabMetrics ('toggle =' + num, locationAry, num);}}}); } Thank you in advance! Change it: if (num> 5) { on: if (num> <5) {

user controls - job scheduling in linux -

I want to set up access to some websites for a limited period, say for 1 hour every day. How can I do this by using cron jobs in linux or can i use linux squid server? In / etc / crontab: 0 18 * * * Root /etc/init.d/apache start 0 19 * * * root /etc/init.d/apache stop Apache service will start at 18:00 every day, and stop 1 Adjust as required for your distorted init script structure every day at 9:00.

Constructors in cases of inheritance (Squeak) -

I have class A that comes from B, contains a bunch of legacy parameters, and these two Basic values ​​should be started (whether we create an object or a B object). I decided to initialize the constructor of A, because A. should be made before the formation of B. However, it does not appear to be happening automatically, and I did not understand how to call the Super Constructor manually. Can somebody help me out? You have already got the solution, but here are some more notes that will help you to understand your question better Can help you with super like , they both represent the receiver of the message. initiates the look of the following message in the receiver of the message itself . Super starts the look of the following message in the Superclass where the implementation method is determined self and super No messages, but inherent variables, for which you can not find them in the message finder.

Does anyone use Google Analytics? How Google does it to avoid counting the owner of the website as visitor? -

Every time I test my page in the host as a host, do I know that I have my Gmail Am I logged in to the account, am I the owner of this site? I do not think Google does anything like this automatically but they do not know the IP address (or Category) and apparently also by the cookie. If you use a CMS or Admin interface, you can insert the code that they provide in an HTML file that you can then add to the admin interface pages by IFRAME (to ensure that it Cookie is set for any person using the interface).

internet explorer - rails page won't display entirely -

I have the most awkward problem, and I was hoping someone could tell me in the right direction (Or even finding out ...). I am working on a rail site, and the pages are displayed in most browsers without any problems. In the other (AOL, IE 6-7 and some other less used) pages, all will be loaded with correct formatting, but the contents inside should be completely lost. For example, the site uses a traditional online store format, but the site name, product name and page footer will load, but not the description or the picture. > >> in the page source), and save it as a static HTML file. Then you can bellow a piece with this file at a time until you can not understand that IO What is throwing for the loop?

ADO.NET database access -

I have written a program in VB.NET and one of the programs is the record of putting in Microsoft Access database. The backend accesses the database which is written as a mutual exchange layer. If I "swap" this layer with a layer which uses a Microsoft SQL Server database, then my program flies If I use MS Access, its still very fast, but it is very slow. Is there any indication or suggestion that how to use Microsoft Access to ADO.NET transactions? I would really like to use MS Access on SQL Server, so that I can distribute my program with my program (rather than connecting to some remote SQL Server). Any suggestions? Also, when I created the MS Access database, I created it in Access 2000 compatible mode. Will it be faster to use the 2003 compatible mode? Thank you in advance Although you need to install it, SQL Server Express supports "XCopy File Deployment" where you need to deploy an application, have an .mdf file and your executable ship. The detai

browser - Embedding PDF documents into websites -

I need to embed some PDF documents into a website The last time I did this, I had a jQuery lightbox Used to do an IFrame popup with a PDF document as URL. The client's PDF viewer will take care of the rest. Obviously, it was a little buggy on some other people's browsers. I think this was due to the large PDF file size, and its efforts were taken to fire Adobe's computers. So I'm after the ideas about how to go about this. How do you embed in PDF websites? Or you just paste the link to add the download link? I often use this problem to solve. You will have to upload your document (PDF, Doctor or something else) in your script account, and from the Service (PDF) document Flash Environment (fully embedded with Lightbox) Can get to see. For this solution, your documents require a third party service, but it is possible to include all the script functionality in your own website with their APIs.

jquery selector array -

I have been added to the basket problem. Some products have options such as color / size to draw an input for selection box and volume for color / size & lt; Select Name = "Product Options [1234] [Color]" & gt; & Lt; Select Name = "Product Option [1234] [Size]" & gt; & Lt; Input type = "text" name = "product option [1234] [qty]" & gt; Then the option is a product that holds values ​​for each product. In Abov example, there are product options with ID = 1234. I tried var productOptions = $ ("name = = 'productOption [" + productID + "]'"). well (); Expected to get an array of the option of the given product ID, but it is not working. Options can dynamically have additional options for some products < P> Can someone help me with the selector so that they can retrieve the values ​​array for the given product ID and send them to the server side. Thanks I think you thin

algorithm - Compare the two ArrayLists in java which contains same objects -

I have the following two array lists: AccVO: Comparison, Zodiac Field List 1: AccVO [001,500] ACCVO [002,600] ACCVO [003,800] List 2: I have solved two lists, I have to compare two lists with the key and databay Insert in to get the record list 2. Sample code: for (AccVO accvo1: List1) {for (AccVO accvo2: List2) {if (accvo1.getCmpkey (). Equals (accvo2. GetCmpkey ())} // Enter recs in the table}}} My list size will be bigger, that means, to handle millions of records, I want some optimistic arguments to bridge the records. / P> Thank you in advance Because your lists are resolved, you You can use an index in both oranes and prefix At only a small key increases in time: int i = 0, j = 0; while (i