Posts

Showing posts from January, 2015

javascript - How to organize models in a node.js website? -

I just node I started experimenting with creating a website using JS, and during the event of my model I have to face a problem. The Mongoos are being used in all real world examples found on the Internet This library allows you to define your model in a steady manner. You can write it: // model / foo.js module.exports = ('Mongoose') is required. Model ('foo', ...); // app.js mongoose.connect (...); // some_controller_1.js var Foo = Requirement ('./Model / Foo'); Foo.find (...); // some_controller_2.js var Foo = Requirement ('./Model / Foo'); Foo.find (...); But since I do not want to use mongodbi, I need another ORM and I have not received any other ORM that I got this permission. You first need to create an example, and then only you can register your model. In addition, they do not allow access to the list of registered models. So I tried to do this: // model / user.js var registration = []; Module Exports = function (sequelize) {var

internet explorer - How to get a transparent WebBrowser/Page -

I would like to see a server page for changes. This page has about 10 tables daily I check the new page against the old page It has to be done so that it can be detected that a number has changed in these tables. Therefore, instead of checking them one by one, I am trying to see them as transparent pages. So I can open the old page in one window, and the other in the second window. Then supermodel one over each other and compare them, I want to see the desktop through the browser. But I could not find a page that clearly describes it, Google brings it but it is also not useful, can anyone guide me on this? Note: The server page is only accessible in IE 10 and above or Google Chrome. OS is Windows 7. I'm not sure about your operating system, but these two programs help: windows : Mac OS:

MATLAB GUI axes getting changed -

Currently I'am working on MATLAB GUI In this GUI I have two axis and three push buttons I now The problem is that whenever I add another element to the GUI or take anything in the GUI, the 'tag' and the 'function' of the property inspector changes, due to which the part of the axis of the GUI ceases to work and It should be restarted.

c# - Pushing text value of a checkbox in an array -

मेरे पास दो चेकबॉक्स हैं जैसे: & lt; div & gt; & Lt; एएसपी: चेकबॉक्स आईडी = "चेकबॉक्स 1" रनैट = "सर्वर" चेक किया गया "सच" टेक्स्ट = "स्थिति" / & gt; & Lt; / div & gt; & Lt; div & gt; & Lt; एएसपी: चेकबॉक्स आईडी = "चेकबॉक्स 2" रनैट = "सर्वर" चेक किया गया "सच" टेक्स्ट = "प्रथमनाम" / & gt; & Lt; / div & gt; मेरे पास एक सरणी है स्ट्रिंग [] arrchk = new string [] {}; मैं सरणी में चेकबॉक्स के पाठ मान को कैसे संग्रहीत कर सकता हूँ क्या आप इसका अर्थ है कि आप सभी चेक बॉक्स के पाठ मान चाहते हैं, या प्रत्येक चेकबॉक्स के पाठ मूल्य या ...? किसी भी तरह से, आप पृष्ठ के नियंत्रण संग्रह के माध्यम से फिर से करना चाहते हैं उन सभी नियंत्रणों को ढूंढें, जिनमें एक चेकबॉक्स है और उसके बाद उसका टेक्स्ट मान प्राप्त करने के लिए उपयोग करें (और आप सीमित कर सकते हैं कि क्या आप चेक बक्से को शामिल करना चाहते हैं या फिर उस यात्रा में नहीं)। और, हां, एक सूची का उपयोग करना

php - Is paypal credit card payment secure? -

I am developing an application that is using PayPal credit card payment. I found a php example from PayPal's developer page. This example is accepting user credit card details directly using the normal HTML form. I wonder how security is managed in this type of payment system. I believe if we get details of the user's credit card, we will be able to pay in the future without the user's permission. I think I can remember some point about paypal credit card payments. Please guide me with the right information Thanks in advance. Unless you copy the input to the form, Payment is safe. The use of HTML form means that the information of credit card PayPal is sent through the form method and action via HTTP. If you ensure that the form method is "post" and the action protocol "HTTPS", the user will do the SSL SSL handshake and encryption stuff. Never use the "GET" method with sensitive data. & lt; Form method = "POST" act

javascript - How to stop incrementing a variable when drop in same dropspot -

I have 7 droppots and 7 dragable elements I can use the same element for all 7 dragpots or I I can use all the draggable elements on the same drawspot. I have an extreme contor which is an increase in the drop but, if I drag all the elements on the same dropopsot it reaches the variable 7 and something happens. I need to increment the drop-once per bar once for the variable, even if I change the drops and src 7 times in the same droppings. My code looks like this: drop: function (Event, UI) {dropTarget = event.target.id; IndexDrops = dropTarget.charAt (dropTarget.length-1); $ ("#dropSpot" + IndexDrop). CSS ("Opacity", 0); $ ("#droppot" + indexdrops). Children ("IMG"). Prop ('src', dragregras.rc); Interval = set interval (Shodrock, 1); $ (Object-tooth [indexdes]). CSS ('visibility', 'visible'); CONTOR ++; If (contor == 7) {resetBtn.disabled = false; $ (DragObjects) .draggable ("disabled"); UpdateBubble (2

java - ORA-24816: Expanded non LONG bind data supplied after actual LONG or LOB column -

I'm getting the exception when updating the table in Hibernate ORA-24816: Expanded Damage data supplied after long long long long or LOB column I have also pulled out the SQL query, it looks like update table_name set columnname (LOB) = value , Colmun2 (with string 4000) = value where id = ?; unit class class testing {@LOB personal string error text; @ Column (length = 4000) private string text; } Please help me, what is wrong in this thanks Ravi Kumar

Passing additional arguments to python callback object (win32com.client.dispatchWithEvents) -

I am struggling with callback objects, I am a newbie. Please be good: I Win32com package to interact with a windows application (application is not important) What I am trying to achieve in a nutshell, this is a subscription on a table that updates. I've successfully implemented a callback that gets data returned to the table update, but what I need to do now is to work on the data received. It will be very easy to solve this problem if I can instantiate the callback object with additional arguments (see the code below), but how do I harm it. callback class: class callback accents (object): "" "callback object for win32com" "def on new data (self, XMLData): logging Print the "{}" .form (XMLData)) # Want to use some logic to use logic # OnActionResult to use new data def (manually, Job, message): Return True Def OnServerDisconnect (self): logging .debug ("server disconnected") def onserver connectivity (Self): Logging. D

ios - Wait for method with completion block to finish inside fast enumeration block -

I know that I can use loop frequency with an incremental variable, then increases on success, but when The blocks are faster than I would use them ideally, the method inside the loop is processed in the background and creates threads and sockets which slow it down, so I finish it before moving forward to the next To wait to be Ta said. Here is the code below (if (! [Asset_model isFile uploaded: uuid]) {[self uploadFileAssetWithUUID: uuid: ^ (BOOL success) {if (success) {NSLog (@ "upload ended .." );}}}}}} How do I contact the block to move to the next instance? Do not wait, and do not want to wait. Queue. Use a NSOperationQueue to create all uploads and control how long If you are up If the area to try to wait for the loop, at any speed advantage you think you are illegal and you can block the main thread.

ruby - `gem install berkshelf` in windows fails -

I am using this package to use chef in windows When I run $ gem install berkshelf , I get this error how can I fix this error? The path is being temporarily extended to include DevKit ... Country Extension Building may take some time ... Getting: dep_selector-1.0.3.gem (100%) Original extension building may take some time ... Error: Error installing berkshell: error: Failed to create gem country extension C: Check for /opscode/chef/embedded/bin/ruby.exe extconf.rb (main) --lgecodesupport ... yes check for main () --lgecodesupport ... yes check for main () -lgecodekernel . .. Check in for yes (main) - LeggcodeInt ... check for (main) in -lgecodeminimodel ... for main (check in) -lgecodesearch ... make makefile make dep_gecode-i386-mingw32 Define_dummy_init.cxx cc1plus.exe: Define_dummy_init.cxx cc1plus.exe: Warning: Command line option is valid for "-Wdeclaration-after-statement" C / O cc1plus.exe: Warning: Command line option "-Uplip-Function-declaration"

java - Why doesn't Object.hashCode() return the same value for seemingly identical objects -

कोड निम्नानुसार है: सार्वजनिक वर्ग मुख्य {सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग) [] आर्ग्स) {छात्र एक = नए छात्र (10, "ओले"); विद्यार्थी बी = नए छात्र (10, "ओले"); Println (a.hashCode ()); Println (b.hashCode ()); }} और ऑब्जेक्ट इस तरह दिखता है: सार्वजनिक वर्ग छात्र {निजी इंट स्नैर; निजी स्ट्रिंग नाम; सार्वजनिक छात्र (इंट स्नआर, स्ट्रिंग नेम) {this.snr = snr; This.namn = namn; }} ये कोड चलते समय ये परिणाम होते हैं: 57651960 441366923 मैंने कुछ पढ़ा है Javadoc का, लेकिन मुझे पता नहीं क्यों, यह क्यों हो सकता है किसी को भी समझा सकता है? और परिणाम को समान बनाने के लिए मुझे क्या करना होगा? (यदि संभव है तो) स्पष्टीकरण के लिए धन्यवाद :)! अब समझ आता है;) आप ओवरराइड नहीं कर रहे हैं Object.hashCode () , इसलिए यह ऑब्जेक्ट पहचान के आधार पर मान लौटा रहा है। से: उतना ही उचित रूप से व्यावहारिक है, वर्ग ऑब्जेक्ट द्वारा परिभाषित हैश कोड विधि अलग-अलग पूर्णांक देता है विशिष्ट वस्तुओं के लिए (यह आम तौर पर ऑब्जेक्ट के आंतरिक पते को पूर्णांक में कनवर्

python - Celery periodic tasks timezones -

I have some periodic tasks that need to be run on the first day of the month at midnight, but the customer's time zone I am trying to keep everything in UTC, so I have CELERY_ENABLE_UTC = true So if I have many tasks, then everyone Need to run at midnight in a specific time zone, what is the most obvious way to do this with Celery? For example, run these 2 tasks in your respective timezones in midnight? Customers # 1, this customer needs to run on # 2 midnight EST (US / Eastern) schedule1 = crontab (DAY_OF_MONTH = 1, hours = 0, min = 0) This needs to be run on midnight PST (US / Pacific) schedule1 = crontab (DAY_OF_MONTH = 1, hour = 0, minute = 0) < Div class = "text" itemprop = "text"> crontab () function only accepts minutes , hours , DAY_OF_WEEK , day_off_mon , day_of_year and month_of_year As Ramitr you want to run a job at midnight for the various time zones to calculate the time for them to set the UTC (or any other defau

c# - Best way to display locale-aware date with abbreviated month name? -

In my application, I use a kind of friendly short date format for NGM Locale, this' MMM Yay ', i.e. 1 June 2014. How can I create a locally-conscious format which uses a short month format and is thus suited to any place (as defined by CurrentCulture)? I thought of something like this: System.Globalization.CultureInfo cI = System.Globalization.CultureInfo.CurrentCulture; ("DD", "D"). (CI.DateTimeFormat.DateSeparator, ""); Replace. But - every locale does not have 'MM', some use 'M' in the shortcut pattern. And I do not think that I can take the place of a separator from the "trustworthy" bus. Or i? Any suggestions? Maybe it would be better to start with a long datetime format and clear it? Take the culture as you var culture = System.blobalization.cultureInfoContentCulture; and then it and dateTime.ToString overload date.ToString ("MMMM d MMMM", using the culture Format it); (B

objective c - Method not running - iOS -

I have a very easy method though UIAlertView will not run in the method .... This is my method: < Pre> - (zero) post_result {nslog (@ "post result"); Post_now.enabled = Yes; [Active stop animation]; [[UIApplication ShareApp] setNetworkActivityIndicatorVisible: no]; UIAlertView * alertView = [[UIAlertView alloc] initWithTitle: @ "Success" Message: @ "You have successfully uploaded posts." Representative: Cancel selfTuttonite: @ "Dismiss" other button titles: zero]; [Show warning view]; Success_post_facebook = 0; Success_post_youtube = 0; Success_post_googleplus = 0; Success_post_tumblr = 0; Success_post_twitter = 0; NSLog (@ "Post results and"); } The strange thing is that earlier and later codes of UIAlertView will run in this method .... So what is wrong with an earth ?? Thank you for your time. You see the UIAlertView not on the main thread that you are most likely calling it to run on the main thread Just use th

python - Matplotlib confused sub-pixel resolution -

Image
I want to plot a narrow peak that contains several thousand data points, except that I have to raise the peak points Want to I'm using Python 2.7 and Winplotlib 1.3.1 on Win7 (checked on two separate PCs). For example, here a Gaussian mark is identified as red on SQLT (2): plt.plot (-Range (-4,4,1e-5) + sqrt (2), exp (-Range (-4,4,1-5) ** 2) * 0.92, 'a', [sqrt (2), sqrt (2)], [0,1], 'r' ) when conspiracy If you are very wide then you will not know that anything is wrong, but as you compress the plot, you will start to see that the red line sits on the right side of the peak, taking a screenshot and using it. By zooming in on the pixel, you can see that the line is a pixel where it should be. (The image above shows that without the red line and in the form of a rising peak to make it clear that the line has remembered the peak.) Am I stupid or is it a Is there a bug? If this is a bug then possibly one of the two rows is wrong: black or red? Concernin

asp.net - Firefox not displaying panel on refresh or postback -

I have an interesting issue that I have an ASP.NET web page that has a radio button list with three radio buttons. Radiobutton 1 hides both panels and displays the RadioButton2 panel 1 and hides the panel 2, then the radio button hides 1 panel 1 and shows the panel 2. pretty straightforward. All the logs that hide and display the panel are in the rear code in C # This works great in Chrome and IE. In Firefox; However, if you refresh the page in any way (by removing other control posts or by pressing the browser's refresh button), then say that the Radio button 2 has been selected and the panel 1 is displayed, then the page radiobuton 2 still comes back with the selection, but both the panels are now hidden. A fresh refresh of the page in Chrome and IE brings it back to its original state. Which means that all controls are set on their original values ​​and Radiobutton 1 is selected and both panels are hidden not necessarily required but better than the radiobutan and panels, th

sandbox - Access to sandboxed app ios that i am not the owner -

I should know if there are ways to access a sandboxed iOS app that I am not a bothecher. For example, youtube Consider, especially, I want to be able to interact with YouTube's interfaces: such as "Play" or other buttons such as "share" or other touch. So I want to use ideas and talk with them. I do not want to use screenshots for this purpose. I am interested in whatever method exists, to be clear, if necessary, I am also ready to break the equipment. But I do not think this is the case. My developer account is any ideas? I know if there are ways to access a sandboxed iOS app, I'm not a boss. . No. This is the issue of sandboxing To be clear, I am also ready to break the device if necessary. If you are ready to run then you can become root and get full access to the device. See BSD methods to read / write other processes. You may also have to learn some ARM codel. Note, things will be possible with this, but definitely will not be easy

sql - How to select distinct values from one column in adodb recordset Excel VBA? -

I have a ADODB.Recordset rs that I'm getting from DB Mike Client John Manager Karen Client Who All Brian Manager Now I need to get all the titles, so I want to: < Code> Customer Manager sub I know that Rsphilter , but I'm not sure I can choose a different one from it. In addition, I know that I can clone this recorcet: set rs_clone rs_clone as ADODB rs_clone = new ADODB.Recordset rs_clone = rs Getrows () Is it possible to only clone different records? Or is there any better way? Thank you A SQL string firing on the database gives you lots of room, Small example (I like the output code while using late binding) where I'm asking for a separate list from the table column MyColumn dim Cn set the form of a blind rupee object cn = CreateObject ("ADODB.Connection") cn.Open strConn cn.CommandTimeout = 0 set RS = CreateObject ("ADODB.Recordset") set rs.ActiveConnection = cn ' strConn code> The correct connec

php - Defining class constants in facades -

I have some libraries that are set for my large application which reveal the constant. For example, I my class definition looks like this: & lt; Php? There is a class to calculate the holidays and work days, some reports are used to calculate the number of working days. Name Location MyApp \ libraries; / ** * Holig Calculation Helper Library * An Assistant Class to Calculate Vacations and Work Days * / Class Vacations {* ** Define EBS Vacations: New Year's Day * / Const New_IERS_AY = "New Year's Day"; / ** * Defined EBS Holidays: Independence Day * / Combined INDEPENDENCE_DAY = "Independence Day"; / ** * Defined EBS Holiday: Christmas Day * / Cut CHRISTMAS_DAY = "Christmas Day"; ... They are used by a date method (for example), which takes the leave constant value and one year and that holiday The date gives it in the year. I have a mask and a service provider, so this library can be used in Lorval Way and Trade . Everything wo

Google drive API ruby native application, how to retrieve the authorization code in terminal automatically -

I am trying to exclude Ruby Tutorial from Google developers and clients I am using Authorization.client_id = CLIENT_ID client.authorization.client_secret = CLIENT_SECRET client.authorization.scope = OAUTH_SCOPE Client. Authorization.redirect_uri = REDIRECT_URI client.authorization.scope = 'https: //www.googleapis.com/auth/drive' uri = Customer .authorization.authorization_uri $ stdout.write Yuri $ stdout.write "" #Token $ stdout.write For Exchange Authorization Code "Enter Authorization Code:" client.authorization.code = gets.chomp client.authorization.fetch_access_token! How to obtain the authorization code by opening the URL in the browser and then show how to copy and paste the given athode code in the terminal. So, how do I copy and paste it automatically without any terminal?

Checking for Server Response Code 200 in C -

Then I have this script which sends barcodes to a server (which should answer 200 codes when receiving the barcode). What I want to know is how can I see it in my script? For example, if (server rpspoint == 200) printf (your barcode has been transmitted) my bad english and mine Sry for very bad knowledge # include & lt; Stdio.h & gt; # Include & lt; Stdlib.h & gt; #include & lt; String.h & gt; Int main (int argc, char * argv []) {while (1) {char buf [256], syscmd [512]; Int i; / * Get the next barcode * / printf ("Waiting for the bar code [q = left]:"); Break if (fgets (buf, 255, stdin) ==); / * For clear CR / LF closed string * / i (i = 0; buf [i]! = '\ 0' and buff [i]! = '\ R' and buffer [i]! = ' \ N '; i ++); Buf [i] = '\ 0'; / * Q = Skip * / if break (Strcmp (buf, "q")); / * Create curl command in command * / sprint (syscmd, "curl \" http: //www.xyz.com/test/order/complete? Barcode =% s

ios - how to compress an UIImagePNGRepresentation -

I am using the following code to save an image captured by the camera and saves the core data, But it is very big and it needs to be reduced, it is the perfect one. NSData * image = [NSData DataWidth Data: UIImagePNGRepresentation (self.imageView.image)]; The length of NSDT is 1048 and I need as much seconds as possible Here is a method that will change the size of the original image to a new sequence: - (UIImage *) imageWithImage: (UIImage *) originalImage scaledToSize: (CGSize) newSize; {@ Synchronize (auto) {UIGraphicsBeginImageContext (newSize); [Original image drawInRect: CGRactMake (0,0, new size.width, new size. Hi)]; UIImage * newImage = UIGraphicsGetImageFromCurrentImageContext (); UIGraphicsEndImageContext (); New image refund; } Return zero; }

centos - unixODBC driver trace only shows tracing from pl/perl but not perl? -

I added odbcinst.ini to the following: [ODBC] trace = yes tracefile = / 777 path / ADBCTSTx this file indicates; However, it seems that only one special connection is being monitored from many connections: a PostgreSQL database inside a pl / perl function via a DBI (Which is accessed directly, not through ODBC.) But how do I connect through Odbi, I do not have much difference. The pl / perl function (the only thing that can be displayed in a trace file) combines this way: my $ pfdbh = DBI- & gt; Connect ("DBI: ODBC: $ ODBC", ...); If ($ pfdbh) {$ pfdbh- & gt; {LongTruncOk} = 1; $ Pfdbh- & gt; {LongReadLen} = 1048576; $ Pfdbh- & gt; {Auto commit} = 0; #health, $ pfdbh- & gt; {RaiseError} = 1; $ Pfdbh- & gt; {Read only} = 0; ... while the other perl script (none of which appears in the trace file) connect like this: My $ fbodbh = DBI- & gt; Connect ("DBI: ODBC: $ odbc", ...) or could not connect to the "$ d

using between function in oracle -

I have already searched over the Internet that what is the logic in Oracle when using between functions in a string, but Do not think so or understand it. For example. Select one with double where 'M 9-W' between 'M9-W' and 'M9 9 9 9'. > Why will not the question above return a line? Can anyone please explain? Thank you very much. string comparison is based on alphabetical order M9W between spectrum M9W0A0 and M9W9Z9 . Alphabetically, it comes before both. In alphabetical order, this is any string M9W & lt; & Lt; Here comes before any letter (>); & Gt; .

Javascript Date add days -

var तारीख = नया दिनांक (); Var date2 = नया दिनांक (); दिन के अंतराल = दस्तावेज़.getElementById ('अग्रिम दिवस')। मूल्य; date2.setDate (date.getDate () + daysinadvance); Console.log (तारीख 2 + तारीख + दिनविधि); शुक्र जनवरी 28 2022 18:13:43 GMT + 0000 (जीएमटी डेलाइट टाइम) सोम अप्रैल 28 2014 18:13:43 GMT + 0100 (जीएमटी मानक समय) 60 अगर मैं पास एक सीधा टाइप नंबर तो +60, यह ठीक काम करता है, लेकिन चर का उपयोग करके, मुझे 2022 में एक तारीख मिलती है। सभी मुझे पसंद है तिथि 2 वर्तमान तिथि + 60 दिन इसलिए मैं अपनी मान्यता अपडेट कर सकता हूं। कोई भी मदद कृपया? मान को पहले किसी संख्या में कनवर्ट करें, उदा। ऑपरेटर के साथ: var daysinadvance = + document.getElementById ('एडवांसडेज़')। मूल्य; // ^ अनारी प्लस अन्यथा दिनविधि एक स्ट्रिंग होगी और आप स्ट्रिंग कॉन्टैनेक्शन कर रहे हैं।

javascript - Footer is obscuring content in simple 1 column sandwiched css layout -

I am trying to get a simple mechanic to work with CSS and I'm walking in the walls I am The general layout is that I have a single column layout with headers and footers, I want the headers and footers to remain "fixed" above and below the viewport and I want the center section Adjust the remaining part to fill it with a vertical scroll bar, if there is too much content I think I am very close, but the point is that the bottom of the page behind the central div footerIs spread out. I am guessing this problem that I have mentioned the height of the central divisor is 100% ... I think it is boil to know about decreasing the height of the fixed footer and keeping central divisions accountable. . Can it be done entirely with CSS move or do I have to use javascript for the screen size query and calculate the offset? I have tried to add padding and margins to the lower part of the central device. It was not working and even if it was, the best part is that all the mat

android - Get name of styleable attribute programmatically -

क्या कार्यक्रम को शैलीगत विशेषता का नाम प्राप्त करने का एक तरीका है: & lt; declare-styleable name = "TextView" & gt; & Lt; attr name = "DataContext" format = "string" / & gt; & Lt; attr name = "text" format = "string" / & gt; & Lt; / घोषित-Styleable & gt; उदाहरण के लिए मुझे "text" से R.styleable.TextView_Text पूर्णांक मान प्राप्त करना चाहते हैं। आपका स्टाइलिश है: & lt; declare-styleable name = "TextView" & gt; & Lt; attr name = "DataContext" format = "string" / & gt; & Lt; attr name = "text" format = "string" / & gt; & Lt; / घोषित-Styleable & gt; इसे कॉल करें जहां आप इस के साथ चाहते हैं: custom: DataContext = "@ string / xxxx" आपके कोड में: टाइप किया गयाअरे एक = getContext ()। प्राप्त स्टाइल गुण (attrs, R.styleable.TextView); Int n = a.getIndexCount (); (इंट आई = 0; आ

android - Combine two images into one orientation issue -

Image
I want to create an app where the user can take a picture with the back camera, and then with the front camera. Then, after that I get two bitmaps and I want to add them to an image. I use this code for front camera parameters: // Set up photo orientation for saving ... camera. Parameter parameter = theCamera.getParameters (); Parameters.setRotation (90); FrontCamera.setParameters (parameter); // Set Camera Preview and Portrait Front Camera. Stop Preview (); FrontCamera.setDisplayOrientation (90); FrontCamera.setPreviewDisplay (holder); FrontCamera.startPreview (); I use this code to take pictures with the front camera cameraObject.takePicture (shuttercollback, rawcollback, jpgcodeback); Callback to take a picture with the camera back ImagecrawlbackJPGCallack = New ImageCallback () {@OverWide Public Wide On PictureText (byte [] data, Camera camera) {BackBitmap = decodeBitampFromByte (data, 0, 800, 800); FrontCameraObject.release (); InitFrontCamera (); }}; No

java - Running AutoIT script on Selenium Grid -

How can I run an auto script over a Selenium grid setting? I have Exe is the file on all the machines but Selenium Script is required to call it to run on each node of the grid, is it possible? This should work for you: string cmd = " C: \\ Pathtox \\ ootaut.xa "; Process P = RuntimeGreat Time (). Exec (CMD); P.waitFor ();

java - Sharing Android tests between two projects -

I am writing automated unit tests for an Android application, and I'm in a very awkward situation. The app is carefully designed to target API8 - API 9 without the need for many releases Part of the tests, however, I need to test a specific class without any internet access or mobile data. I have found a very hacking method to do this, but the solution comes in two parts: one for API 10 and above, and one for API 8 for which permissions are not allowed to target> = API 10 What I want to do is to create two test projects, which target API 8 and which targets everything that I want to save is copying the test files which Work in all editions. As far as I can tell, there is only the manifest and the utility class which needs to be separated. Is there any way to store tests in a central location, and they have been included and have attended both tests? Create tests to share on one project as usual, on Eclipse. When you are happy with the results of the test, then g

javascript - Animating line on scroll -

I am trying to revise a line on the scroll, but at the moment I am in loss. The end result should be similar to how lines should be created on this site, (you have to scroll a bit to get the lines). There is a static gray line, and then a red line that gets high when the user scrolls. If the user scrolls during the part or all of the red line is visible, the height will be reduced by the red line. But nothing should be done with the red line until the user has scrolled down the page 200 pixels. I have made a bela for this problem and I am sure where my problem is, but I do not have one answer for a way to correct it. I think this is because the function countUp135 in my variable currentScrollPosition and lastScrollPosition are always equal to one another. Any help would be greatly appreciated This is my bella: Thanks advance! There are lots of things in my Bela, where I do not understand why you want them And neither do they do. One of your bella, looks like what

sql server - Php excel in one cell -

Image
I am working on creating an Excel from my SQL server, the problem is that the row is in one cell Each cell has to be output. It will be easy to edit and add data. This query and output to SQL Server is: $ sql => code" image description here. Ansatt as Tid, Basseng, routine, measure_routine, measure, rhythm, emps, form emps.user_name in the form of pools.name where routines.id = measure_routine.routine_id and measure_routine.measure_id = measurements.id and (measurements.title 'T_% ') And measure_routine.pool_id = pools.id and routines .emp_id = emps.id and pools.name = routines.date, like 'hovedbasseng' command by routines.time, "; $ Result = sqlsrv_query ($ angle, $ SQL) or die ("Could not execute the query: " ... Sqlsrv_error () "& lt; br & gt; sqlsrv_errno ()); $ File_ending = "xls"; $ Reals = array (); // Header Info for Browser Header ("Content-Type: App / CSV"); Header ("content-dispute

actionscript 3 - Embed images using FlashDevelop - AS3 -

I can not find much documentation about embedding images in .as files. In fact, I want to do some theory on this. What have I got from reading this further here: I placed an image in the Assets folder inside SRC. Then right-click the image and click on "generate embed code", then this code line appears where the cursor was [embed (source = "fluffybunny.png")] what is now ? How can I specify it for a variable or something ... I did not really get there. Instead of using the given object. Graphic Aribbots I want to use an image In addition, should it be an SWF? There are quite a few resources on it (when you search for "as3 Usage Tag Embed Tag" ) Some of them are really useful: The most fundamental thing is that you declare a variable of some sort. And you use the [embed] tag before variable declaration. This is something weird association is like: [embed (source = "image.jpg")] Public Priority Image Class: bitmap; // You

testing - Acceptable Ratio for Dev hours vs. Debugging hours? -

In a recent project, with more than 6,000 hours of development, more than 1,000 hours "debugging" / "fixes side Has gone "... Is this sound acceptable, high or low ?? I also understand that this is another dynamic question, instead of just requesting the answer, however, I was looking for average estimate / average based on previous project experiences Am): Thank you for any and all inputs !! gives 30-40% as the total amount of time for the project for integration, one of the debugging You have to test, so your figures look a bit lower - but it depends on how you calculate it!

position - Jquery: using .animate to creata a game -

I know this is not the best type of question, but I'm really stuck. I'm trying to make a game like this link: using only jazzery / javascript / css / html (so i can not use flash). I know that the game can not be seen good or fluent with it, but whatever I have just done is not working. > First of all, I have created a game, which is 'Gamefield'. Then I want to add every balloon which is 200 meters above the bottom of the page. It works for a balloon, but as soon as I add more, the balloons jump over the screen when the Samsung ceremony starts. var divheight = $ ("# playfield"). Height (); Var divwidth = $ ("# playfield") width (); Var y = 0; While (y & lt; = 20) {var status = Math (Divwidth * Math.random ()); SetTimeout (function () {var testballoon = '& lt; img src = "afgleling / testballon" class = "blueblun"' testballon + = 'style = "status: full; bottom: 0 px;' + 'left:' + Sta

What causes history to be generated with CVS elements? -

I have six modifications of SQL modules re_sales.sql (creates an Informix SE table), but when I CVS History- c re_sales.sql , no history has been displayed. However, I have other modules, when I run cvs history -c , prints a revision history. When I do not remember anything special for the project re_sales.svl to cvs . I do not remember anything special when I added the files whose history shows up I can get ( cvs update ) in every amendment, but the revised dates are those I want . Where CVS stores its history and what is the reason for CVS making history, especially when there are six modifications in the module?

concurrency - measuring concurent loop times in erlang -

I am creating a round of processes in erlang and want to measure the time that the message was taken for the network To get messed up and send back the entire message chain, the first node message every time, it sends the second one, right now in the first node I have the following code: received stop-> gt; ; Io: Format ("All processes are closed! ~ N"), true; Start & gt; Statistics (runtime), son! {Number, 1}, msg (PID, son, M, 1); {_, M} - & gt; {Time 1, _} = data (runtime), IO: format ("last message ~ p! ~ N", [Time 1 * 1000] has come after, son! Of course, I start the data when I send the first message. As you can see that I use TimeSense_Last for the message loop for the first time and want to use the total_timetime for the whole run, the problem is that the total_timetime is accumulated Because I start the data for the first time. I think that The other idea I'm using another process is to get 2 loops each time to get them to add and p

The difference between Lists as pairs and Lists as recursors in the Lambda Calculus -

I think there are several ways to represent lists in Lambda calculus. I can write a list using the pair of (T1, (T2, (T3, NIL)) which is the length of the Lambda period \ f Is equal to I FT1 (\ FT2 (\ FT3 TIL)) and more like doing head = \ ll ( \ H \ Th) How do lists work as recursors and how do I write them? As the recursors the list is "natural fold". The ctors are looking like this: nil = \ add \ zero. Zero bracket = \ head \ tail \ Add. \ Zero. After some optimization (body writing, beta / eta-acting everything), the word cons (1, (2, opposition ( 3, zero))) gets equal to \ add \ zero As you can notice, add 2 plus (add 2 (add zeros)) List two ctor replacers (opposition -> add, zero -> zero) waiting for Has been, and becomes a fold. Applying a (+) and 0 will give us the amount of the list, (*) and < Code> 1 - List product, Conflict again and some tail will give us the attached tail behind the initial lis

If Statement is sorting true/false - jQuery -

I have a statement that does not seem to work as if I would prefer it. I was thinking that someone could help me. var image_url = jQuery ('# bgImgWrap'). CSS ('background'), image; If (image_url [1]) {console.log (image_url.length); // url () Remove or image_url = image_url.match (/ url \ ([^)] + \) /) [0]; in the case of Chrome URL (""); Var imgRegExp = / \ (([^)] +) \) /; Image_url = imgRegExp.exec (image_url); Image_url = image_url [1]; Image = new image (); // Just in case it does not load jQuery (image) already. Load (function () {// Background image is smaller than window size, then set background to cover // Always set to cover mobile if (jQuery (window) .Width ()> Image. Method | | JQuery (window) .it ()> Image .high || jQuery (window) .with () <940) {jQuery ("# ​​bgImgWrap"). Backstrech (Image_url);} Other {jQuery (" # BgImgWrap "). CSS (" Background Size "," Auto ");}}); Image.src = image_url;

java - Issue with serialversionUID while deserializing -

First of all I was getting an exception - ` java.io.InvalidClassException local class inconsistent: stream Clasdesk serial Visrian uid = 4597316331807173261 local class Siriylwarsian UID = -3344057582987646196`, because the API HTML class is no Siriylwarsian UID in Kuki I This exception occurs when class cookie changes because we upgrade the version of HtmlUnit If you are using, then what is the idea in my mind to avoid the match Deserialing, so I have tried the following solution: And now it transforms my stream UID into a local UID but this exception comes to me Stream Controversial Exception: Invalid Type Code: 00

c++ - Error 1 error C2259: 'Player' : cannot instantiate abstract class -

Why can not I instantiate? Why is the player an abstract class? Have I just announced the pure virtual function in the orbit? class object {secure: public: virtual zero DrawOnScreen () = 0; }; Class Creature: Public Object {Public: Virtual Zero DrawOnScreen () = 0; Eat Virtual Zero (object *) = 0; Virtual zero step (direction) = 0; }; Class Player: Public Creatures {Zero Player :: DrawScreen () {cout & lt; & Lt; "Status = (" <";); & lt; get_x () & lt;", "get_y () get_x ()) & amp; amp; amp; (get_y () == chk- & gt; get_y ()) & Amp; amp; - & gt; get_isExist ())) {points = points + chk-> Get_weight (); Chk-> Set_isExist (wrong); }} Zero player :: step (direction d) {if (d == u) {y = y + 2; } If (d == below) {y = y - 2; } If (D == right) {x = x + 2; } If (d == left) {x = x - 2; }}}} The problem is that you have at least one pure Can not instantiate the class virtual system which is being done due to legacy and w

javascript - Converting date to milliseconds to date -

I ran into a strange problem. I'm sending a date in milliseconds using Javascript for my controller there, I Convert millisecond to PHP in a time stamp. It seems that part of its date is correct, but time is completely closed. Can anyone tell me what am I missing? The code is below. Javascript var d = new date ("13 October 2014 11:13:00"); Document.write (d.getTime (+ + "Millesconds from 19/01/01/01); Results 1413191580000 < Results 2014-10-13 02:13:00 I am feeling that this is happening because you have a date with a different timezone returned from the server from the server, according to ECMAScript standard () of a Javascript's UTC timestamp. G Standardize the time zones between the client and the server, and then you can be one on both dates. I always deal with the dates in the UTC on the server and then localize the client side timezone.

log4j - Consolidate Spark Logs -

I want to be able to get a consolidated view of my spark jobs. I am using Log4j which builds RDD on the machine, and distributed distributed various functions are also using log4j. It ends with a local log file, and then the task was distributed to log files on each node. Is anything made to bring all these logs together? After seeing both on the server machine + every node is painful. I have seen a little, and possibly show two options: Use something like a Joblogger (using the Spark listener) One Using Socket Appenders, or something like Flu What is everyone's experience on handling distributed logs? If you really want this, you can log in some shared directories, but I It does not seem that this is a good solution. I do not know why you need this type of functionality - mixed logs of different executives working in parallel and with different applications can actually mess up your logs.

java - SimpleDateFormat with only milliseconds -

I should use it to parse a date in Java. I am using an existing library which takes a date as string and a SimpleDateFormat example to parse it Everything is fine, but I am having problems if the date format is in millisecond only since the time of the era (1/1/1970), i.e. unix time in milliseconds. Using the new SimpleDateFormat ("SS") or New SimpleDateFormat ("SSS") did not work: Weird reproduced Code to SimpleDateFormat Behavior: Timezone.Set Default (Timezone.Gate Time Zone ("GMT")); // Simply currTimeInMilli = System.currentTimeMillis () for long test; SimpleDateform MSSDF = New SimpleDateform ("SS"); // SimpleDateFormat ("SSS") with the same results SimpleDateFormat secSDF = New SimpleDateFormat ("ss"); System.out.println (msSDF.parse ("+ currTimeInMilli)"; System.out.println (secSDF.parse ("+ (CurrTimeInMilli / 1000))); System.out.println (New SimpleDateform ("EEE MMM DD HH: MM: S

http - How to automate logging in and retrieve data? -

I want to automate logging in a website and retrieve some data. I thought the way to do this would be to smell HTTP requests, so I know that the login form is being posted, so I can do this by using nodjs / java / python. Although I can not do it seems that the HTTP request that handles this site is using some java-applets and a lot of javascript. This site is: Do I need a different perspective? Apart from this, after collecting a cookie session and signing it, there is also a surprise about the request of each HTTPT. I'm sorry if I'm not clean, so I can try to explain myself and edit this post. Use Chrome Developer Console (F12 Mara) in Chrome Also works in). To find out which requests are made from a mobile device, you can use a proxy. Also keep in mind that if you post from nodes, cookies will not be set in user browser.

Android listView fast smoothScrollToPosition -

I wonder how can get faster smooth scroll through items in the list view. I have 3000 items in the list list and if I have the CL method: myList.smoothScrollToPosition (1700); There is nothing on my tablet (it is scrolled by objects of two or tree and this scroll is very ugly sticky etc. It does not stop whatever I want Does), but this work great on my virtual device. There is also great work for items on the tablet, so I tray another method, where I can set the duration of this method in such a way (I set 7ms, for an item that needs to be scrolled): myList.smoothScrollToPositionFromTop (1700, 150, 1700 * 7); And in that case also want to work on the work of my tablet, but if I want to sharpen like an item 6 MB then nothing happens (sticky two Or tree is moving through items) My tablet So I wonder how can I make my list smoothen faster? Scrolling? btw My tablet has Android 4.0.3, I have 4.3 on the virtual device

imagemagick - How to convert between bitmap (.bmp) file format types? -

I currently need to use schema (which uses PIL), it does not support some BMP files That's especially, with the recent Windows Paint program. Example (from a traceback): img = data.imread (ruta) file "/usr/lib/pymodules/python2.7/skimage/io/_io "Impy img = call_plugin ('imread', fname, plugin = plugin, plugin_argarh) in the file" .py ", line 120," / usr /lib/pymodules/python2.7/skimage/io/_plugins/plugin.py " , Line 100, in the call return function (* args, ** kwargs) file "/usr/lib/pymodules/python2.7/skimage/ Io / _plugins / pil_plugin.py", line 19, imread im = Image.open (Fname) file "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2001, factory (FP, filename) file in open return "/usr/lib/python2.7/dist- Packages / PIL / ImageFile.py ", in line 94, __init__self._open () file "/usr/lib/python2.7/dist-package/pil/bmpimageplugin", line 168, _Open in self._bitmap (offset = offset) file "

Failing to search multiple buffers in Emacs using "icicle-search-buffer" and C-RET -

मैं icicle-search-file / icicle-search- बफर कमांड, लेकिन दोनों के साथ एक ही समस्या हो रही है, जहां मैं खोज संदर्भ पैटर्न में एक बार पहले प्रवेश कर चुका हूं, जहां सी-आरईटी पूर्णता के विकल्प पर कोई कार्य नहीं करता है बताई गई कार्रवाइयां उबंटू 13.10 पर एमएक्स 24.3.1 का उपयोग कर रही हैं, और कुछ कस्टम कुंजी बाइंडिंग्स H -_ या सीसी _ संघर्ष से बचने के लिए मेरे पास icicles और workgroups2 सेट मेरे .emacs फ़ाइल में शुरू होने पर है। मेरे पास सीसी ` के लिए कोई कस्टम सीमा नहीं है। मैंने icicle-search ( सीसी` ) प्रगतिशील पूरा होने ( एस-एसपीसी ) के साथ और यह अच्छी तरह से काम करता है, यही कारण है कि मैं इन आदेशों को समझाना चाहता था मैंने इन विकल्पों में से प्रत्येक के साथ icicle-search-buffer कमांड को बुलाया है, बस यह सुनिश्चित करने के लिए कि कोई अंतर नहीं है, और इसका परिणाम एक जैसा है: सी-9 सीसी ` सुश्री एमएस बी एमएक्स icicle-search-buffer आरईटी मैं खोज regex ( । * आरईटी - चीजों को सरल बनाने के लिए) के रूप में दर्ज करता हूं जैसे कि ic

ruby - Testing authorization for associated ressources with rspec and factory Girl (has_many through relations) -

I would like to check that a non-signed user can not access the reserved page for a specific customer (one of them Deal: Only they can see the draft page deal). It should be redirected to the customer sign-in page. A customer has many deals model / customer.rb class customer model / deal.rb class deal & lt; ActiveRecord :: Base is_to: admin_user,: foreign_key = & gt; 'Admin_user_id' belong_to: partner,: foreign_key = & gt; 'Partner_id',: counter_cache = & gt; True has_many: customer_deals have_many: Customer, Through Customer: Customer_asses accepts __ nested_attributes_for: Customer #: reject_if # Required for active admin model / customer_deal.rb related_to: customer,: foreign_key => Deals with 'customer_id': deals, foreign_key = & gt; My test below is failing with this error: 1) Non-sign-in form of customer interface page The visitor does not have access to the deal page failure / error: two (: deal) (factorial

Java Swing - How to make the JButton's boundaries invisible? -

Image
In the screenshot below, you can see four buttons in the selected area. I want to duplicate this type of button in my GUI application. Each of these buttons has an image (play, stop, forward, rewind). I can use the icon's icon property to add to the image. When the user catches the mouse pointer on a button, then there are three things: It varies color - I do not need this feature. This tool shows tips I know how to do this by using the tooltip text property of a button. Most importantly, These buttons do not have the border around them, their limitations are not visible at all. This is the image that is visible. I want to do something like that. But when I add an image to a button, its range does not go away (I mean that these boundaries are clearly visible in the form of a line - as you can see in the second image) Then limit the limits of what a button's property should I manipulate, or what method should be used (and on this Except the existing imag

ios - Resize multiple UIViews at different rates -

मेरे पास 3 UIViews है, जो एक एकल UISlider से बढ़ाया जाता है। उनमें प्रत्येक के पास अलग-अलग मिनट की तराजू हैं (0.5, 0.9 और 0.35)। जैसा कि स्लाइडर 1.0 से 0.0 तक चलता है मैं इन दृश्यों में से प्रत्येक को अनुपात के अनुसार पैमाने पर करना चाहता हूं। उदाहरण के लिए 1 100 x 100 है और जब स्लाइडर 0.0 पर है, तो यह 50 x 50 होना चाहिए। दृश्य 2 है 100 x 100 और जब स्लाइडर 0.0 है, तो यह 90 x 90 होना चाहिए। उन्हें सभी के साथ समय में आसानी से पैमाने पर होना चाहिए एक दूसरे, अलग दरों पर बस यहाँ समीकरण: फ्लोट साइड = (100 * minScale ) + (1.0 - मिनट स्केल) * 100 * स्लाइडर वैल्यू; उदाहरण के लिए: फ़्लोट मिनस्केले = 0.9; फ्लोट स्लाइडर वैल्यू = 0.5 फ्लोट साइड = (100 * मिनट स्केल) + (1.0 - मिनस्काले) * 100 * स्लाइडर वैल्यू; // साइड = 90 + (0.10 * 100 * 0.5) = 90 + 5 = 95

oracle - I am dissecting a SQL statement and cannot find out what the "parse_activity" statement does -

I'm severing a SQL statement and can not determine whether "parse_activity" statement I have the following syntax can not find anything with: with PARSE_ACTIVITY aS (SELECT C.SOURCE_ID SUBMISSION_ID, C.NEED_BY_DT, C.PENDING_DT, C.ASSIGNED_DT, A.CREATE_HID, A.WORKFLOW_ACTIVITY_ID, e. WORKFLOW_COMMENT_ID , A.BUS_DIVISION_CD * .... etc .... * you Seeing it is known as the General Table Expression (CTE). CTE in Oracle For use, see To use CTE in Microsoft SQL Server, see:

android - what is ril and how can it help me to read low level info.? -

I am starting in Android and I want to read low level information. Such as RSCP, CQI, RAC and BCCH Some people said that the internal use of the API can help me do this. I tried to know about RIL but it was difficult because there is no complete answer in any particular page or file. Please tell me how to find out how I can read low level information. From the modem RIL means radio interface layer which is a bridge between the Android framework and baseband. RSCP, CQI, RAC and BCCE are under the baseband protocol. Thus you can not see these information in RIL. In order to provide some tools for capturing baseband information, these notifications require the baseband provider. Different baseband providers have different solutions, so it depends on what baseband you use.

java - How to make a loop to center a string? -

How can I create a loop to create a location so that I can produce more space at least in places . The input string should be centered in the star. I can not understand this for loops how to do this. So if you can let me know why fix my code or fix it. / * ******* * * * * * *** * ****** * * * * * * * * * * * * * Public static zero main (string [] args) instead of * / {// TODO code application logic here scanner keyboard = new scanner (System.in) ; System.out.print ("Enter a string:"); String word = keyboard. NixLine (); Int len ​​= word.length (); For (int i = 0; i I'm not sure whether you want only horizontal difference or both horizontal and vertical If you want only horizontal spacing, you can use the bottom Calculate the length of the wire (or the maximum length of any line if it has multiple rows) -Maxlan Determine how much distance you want (it is called X) Length 2 + Maximum Allan + (2 * x) Output String Repeat step 4 Output 2 stars ma

I want a scheduled Python script to remains open (apscheduler+py2exe) -

I am using "epilebaler" for every 1 hour of job scheduling (every 1 hour console I print something in it), Python works perfectly within the shell, but when I use py2exe to create an executable file, the window is not open and immediately closes, which is expected Because there is no "raw input" or something like that C should not be any user input even when not want to go because I perform "raw_input", it is only for monitoring purposes. Do you have any information about keeping the console window open? (Something like a dragon shell). Can you post your code so that I can see what we are doing about What are the things? As far as I know, the console should not be closed, while your program is still running if you are using time.sleep , for example, waiting for an hour between the console Should not disappear to. Something that might be is an exception due to the disconnection of the console by wrapping your code in a try statement, and 5

c# - Validate ASP NET API Token? -

पृष्ठभूमि विजुअल स्टूडियो 2013, एएसपी नेट वेब एपीआई 2 समस्या मैं "मानक" .NET के सदस्यता प्रदाता का उपयोग कर रहा हूं, लेकिन मुझे कस्टम लॉगिन पद्धति की आवश्यकता है। इसलिए मैंने एक नया तरीका जोड़ा और फिर टोकन जेनरेट करने के लिए मेरे लिए यह प्रयोग किया: // OWIN flow var identity = new ClaimsIdentity (Startup.OAuthOptions.AuthenticationType) का उपयोग करके उपयोगकर्ता को साइन-इन करें ); Identity.AddClaim (नया दावा (दावे टाइप .नाम, यूज़र। यूज़र नेम)); // यह बहुत महत्वपूर्ण है क्योंकि यह मौजूदा यूजर आईडी // को पॉप्युलेट करने के लिए इस्तेमाल किया जाएगा जो कि यूजर। आईडेंटिटी.नेटयूआईएसआईडी () विधि से एपीआई कंट्रोलर पहचान के अंदर प्राप्त की जाती है। एडक्लाइम (नया दावे (दावे टाइप करें .नामआईडेंटिफायर, यूजर.आईडी , रिक्त, "LOCAL_AUTHORITY")); प्रमाणीकरण टिकट टिकट = नया प्रमाणनटिकेट (पहचान, नई प्रमाणीकरणप्रापतियां) ()); Var currentUtc = नया Microsoft.Owin.Instructure.SystemClock ()। UtcNow; Ticket.Properties.IssuedUtc = currentUtc; Ticket.Properties.ExpiresUtc = cur

sql - MySQL select points which are contained in a polygon from a different table -

I have two tables The table has a list of names and places (digits) Table B I have a list of name and shape (polygon) I want to type a query to find all the points from one select the name from the tblshops where st_contains (Choose size from tbltowns where name = "London", location) but I'm getting a syntax error. What am I doing wrong? Thank you '), Location)

c++ - Does std::map::erase(it++) maintain a valid iterator pointing to the next element in the map? -

इस सवाल का पहले से ही एक उत्तर है: < / P> 5 जवाब मैं के साथ Xcode का उपयोग कर रहा हूँ एक std :: नक्शा के लिए सी ++ 11 मेरे नक्शे के कुछ तत्वों में एक झंडा है जो कहता है कि उन्हें निकाला जाना चाहिए। मैं ओ (एन) समय में ध्वजांकित तत्वों को मिटाने के लिए मानचित्र के माध्यम से फिर से करना चाहता हूं। मिटाने के लिए कॉल एक इटरेटर वापस नहीं करता है। मैंने कुछ प्रकार के मिटा (यह ++) कार्यान्वयन देखा है, लेकिन मेरे पास कोई सबूत नहीं है कि इस तरह की कॉल काम कर सकती है क्योंकि इटरेटर मिटाए जाने के ऑपरेशन के बाद अमान्य हो जाएगा लेकिन वेतन वृद्धि के पहले। मेरा वर्तमान कोड तो अक्षम। के लिए (स्वतः = myMap.begin); it! = MyMap.end (); ++ यह) {हटाएं} myMap.erase (यह); यह = myMap.begin (); // मैं फिर से नक्शे के माध्यम से दोबारा कैसे से बच सकता हूँ} ऑनलाइन प्रलेखन से: "कार्यवाहक, पॉइंटर्स और फ़ंक्शन द्वारा हटाए गए तत्वों की ओर संदर्भ संदर्भ अवैध हैं। अन्य सभी इटरेटर, पॉइंटर्स और संदर्भ उनकी वैधता रखते हैं।" तो शायद यह: के लिए (स्वतः = myMap.begin); it! = MyM

unit testing - Test version of GWT DOM -

Does anyone know a library that allows the creation of a GWT DOM tree without running a browser. I need this for fast testing. I think there are many basic methods in DOM classes, which are almost fake. May be appropriate for your work. It runs WebKit in memory without any graphical interface, so it works very fast in the "normal" browser.

android - ListView load more from JSON -

I'm trying to create a listView which loads more items in the previous listView item is appearing I have code to get data from JSON which is working fine. This is my MyFragment.java public category MyFragment fragment extension {JSONObject jsonobject; JSONObject newjsonobject; JSONArray jsonarray; JSONArray newjsonarray; List view list view; ListViewAdapter adapter; Array list & lieutenant; Hashmap & lt; String, string & gt; & Gt; array list; Array list & lieutenant; Hashmap & lt; String, string & gt; & Gt; Newarraylist; Public fixed string NAME = "name"; Private int petlest; @ Override Public View Crate View (LayoutInfleter Inflator, View Group Container, Bundle Saved InstantState) {View Routview = Inflator.In Flat (R.Lailout.list View, Container, Incorrect); New downloadjson () carry about (); Return root view; } Private class downloadsJoson Sink Task & lt; Zero, zero, zero> {@Override Safe Volume Doine Background