Posts

c++ - Automatically choosing object files for compilation -

I have recently started to write in C Unit Test ++ project (use). Creating main project is quite simple: I use the GCC -MM and -MD flag to automatically generate dependency to your object files, then I I am linking together for all the object files. Produce is not executable any inspiration. But as I am writing a unit test, is there any way or the GCC will know which object files are necessary to compile each test? Now, I have a simple solution (if you can call it) is useless as it collects all available object files for all the unit tests, which clearly (in terms of both time and space). Is there any way (make, gcc, SAD, or some need object files to the unit test in a forest) is divine, as how to generate dependency to the original source files ? It seems that you have two groups of source files: that actually executes your program , and the second is that all unit tests I believe that their own main function of each unit test, and once the unit tests do not even need...

c# - Webdriver: Interact with grid -

To edit the content of a cell on which you have to double click on it even though with the Webdriver they have an API There is no doubleclick function. How else can I change the contents of a cell? Which grid are you asking about? There is a JavaScript function to start editing cells for most grids. Still you can double click with javascript. Below is a IWebElement that you want to double click on element : for InternetExplorerDriver : ((IJavascriptExecutor) driver) .ExecuteScript ("Logic [0] .fireEvent ('onblblick')", element); For FirefoxDriver and 'ChromeDriver': ((IJavascriptExecutor) driver) .ExecuteScript ("var evt = document. CreateEvent ('MouseEvents'); evt.initMouseEvent ('dblclick', "+" true, true, window, 0, 0, 0, 0, false, false, false, false, 0, "+" null); "+" Logic [0]. Disappeared (EVT); ", Element);

android - detect where on the screen onTouchevent happened -

I found an onTouchEvent boolean on a Surfaceview, I have open GL objects drawn on the scene and I'm wondering, by the way Also know where the on-touch has happened on the screen? For example (x, y) coordination Use event .getX () and event.getY () Assuming that you have the following method The signature is: Public Boolean On-Touch (View View, Motion Event Event)

How can I make the SourcePath property of a file in a Visual Studio Setup and Deployment project (Windows Installer) relative rather than absolute? -

I have found a relatively simple project that is under source control (SVN), and I wanted to make an installer. I know that I can use it, but as I am new to making installers, I thought the built-in Visual Studio (2010) setup and deployment wizard would be easy to use. Unfortunately, it seems that there are files to be added with external (non-project-created) documents, configuration files, and full paths. This, of course, is subplot. I searched the web but did not get any answers, only one and the StackHowflow user has asked one, but the only answer is the suggestion that gives off-base (I have to keep an MSI that I have web based I do not want to distribute the installation). Does anyone know how (or what) it can be decided? It can be easy now but when you come to the limits of the device this is really hard to come Come bad Do not talk about behaviors which can be really difficult for poor end users setting up your product, which will encourage it. You have got Visual Stud...

math - How to get value prediction from Polynomial curve? -

OK, so math is not my strong point! I have this data, I used Zunzun.com, to create a user defined polynomial curve for my data, which is y = a + bx1 + cx2 + dx3 + ex4 + fx5 However, when I recommend code use: double A = -4.2294409347240979 E + 01; Double B = 5.5 9 46102161174718 E + 00; Double C = -1.3446057748924720 E-01; Double D = 1.5448461146899649 E-03; Double E = -8.2537158069276241 A-06; Double F = 1.7176546321558128 E-088; Temp = f; Temp = temp * x_in + e; Temp = temp * x_in + d; Temp = temp * x_in + c; Temp = temp * x_in + b; Temp = temp * x_in + a; Return temporary; Does it give me the 'sum of complete error'? Say for X value 94, I should get a value of approximately 60.3, but this code gives me -46.152. I know that I'm stupid and obviously there is no equation in the end. But did anyone have guessed my Y value from my X with this platform? The graph really fits well and will not be great to use a lookup table. Many thanks! XY - 180 200 178 1...

compiler construction - How use to write programme that involve with a lot of active calculation? In excel 1M+ Row and 20+ column -

First of all, I have no experience with programming. If I ever start, it would probably be my first I am looking for a reply to this site as long as no. I am looking outside the box because Excel is doing data of 1 million + row and 20+ columns, just to wait for the calculation will take a very long time and with copy and formula Paste will take longer to imagine that with the help of Marco and F4 (repeat) I have to give the computer more than 8 hours to run. All my formulas need to be pasted in number only, as I did with the formula. And even if I break the files into pieces, without the active size the file size is 20 MB to 110 MB. Opening the file is always taking place. I wonder how to write a program with a dialog box, 2) Excel command and formula (sort, delay, contattetate), 3) the ability to create graphs, 4) data with tabs Or to see the different set of graphs 5) Add a set of data 6) Number limited (1-100000), etc. Outlook looks like some utorrent What compiler is sui...

php - Getting total number of records from mysql table - too slow -

I have a file that goes through a large data set and divides lines into a paged way. There are about 210k rows, which is not very much, it will increase up to 3 miles + in a few weeks, but it has already slowed down. I have one such query, in which the number of total items is DB for a special WHERE clause combination, the most basic one looks like this: SELECT count It takes 0.9 seconds to run (v_id) from num_items versions like WHERE v_status = 1 . The second query is a limited query that receives the actual data on that page. This question is really quick (under 0.001) from v_id, v_title, v_desc in variants where v_status = 1 command v_dateadded DESC LIMIT 0, 25 There is an index on v_status, v_dateadded I use php; I cache the results in the memcache, so later the requests are really fast, but the first request has been requested. In particular, once I throw it in a complete search, it starts taking 2-3 seconds for 2 questions. I do not think this is corre...