unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
What is the OleDb equivalent for INFORMATION_SCHEMA === In SQL you can use SELECT * FROM INFORMATION_SCHEMA.TABLES etc to get information about the database structure. I need to know how to achieve the same thing for an Access database.
0
[ 2, 98, 25, 14, 12116, 9007, 4602, 26, 676, 1, 7526, 540, 800, 3726, 3726, 19, 4444, 255, 42, 92, 275, 5407, 1637, 37, 676, 1, 7526, 540, 9, 5924, 18, 2722, 20, 164, 676, 88, 14, 6018, 1411, 9, 31, 376, 20, 143, 184, 20, 4689...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
Debug/Monitor middleware for python wsgi applications === I'm searching a wsgi middleware which I can warp around a wsgi applications and which lets me monitor incoming and outgoing http requests and header fields. Something like firefox live headers, but for the server side.
0
[ 2, 121, 16254, 118, 2111, 242, 248, 772, 5011, 26, 20059, 619, 18, 2234, 3767, 800, 3726, 3726, 31, 22, 79, 5792, 21, 619, 18, 2234, 772, 5011, 56, 31, 92, 176, 306, 140, 21, 619, 18, 2234, 3767, 17, 56, 6884, 55, 7626, 17126, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best text search engine for integrating with custom web app? === We have a web app that allows users to upload documents, create their own documents, and so on. Uploaded files are stored on Amazon S3, created information is stored in a MySQL database. What I'm looking for is some sort of search engine, where I feed it all of our text documents, each with a unique ID, and it builds an index or whatever. Later, I can give it search queries, and it will pull out the best matching documents (via their ID), along with snippets of matching text. Basically we want to allow our users to search through their repository of uploaded stuffs, along with anything that other users have marked as public. The solution should run on a standard Linux server, and ideally it would be open source, but I'll also consider paid solutions if they aren't outrageously priced. So far, I've found three potential candidates: 1. [MySQL Full Text Search][1] - some reports I've read are that it's very slow 2. [Apache Lucene][2] - unfortunately written in Java, but I'll use it if I have to. Supposedly fast 3. [Sphinx][3] - doesn't seem to be as popular, ideally whatever solution I find will have lots of community support. Please let me know if there are any other good choices that I've overlooked, or if you have experience with any of the above. [1]: http://dev.mysql.com/doc/refman/5.0/en/fulltext-search.html [2]: http://lucene.apache.org/java/docs/index.html [3]: http://www.sphinxsearch.com/
0
[ 2, 246, 1854, 2122, 1406, 26, 24529, 29, 5816, 2741, 4865, 60, 800, 3726, 3726, 95, 57, 21, 2741, 4865, 30, 2965, 3878, 20, 71, 8294, 4374, 15, 1600, 66, 258, 4374, 15, 17, 86, 27, 9, 23782, 6488, 50, 8214, 27, 8059, 13, 18, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best tool for manipulating AFP print streams? === The IBM print file format is AFP. > [Advanced Function Presentation][1] (AFP) is a presentation architecture and family of associated printer software and hardware that provides for document and information presentation independent of specific applications and devices. [1]: http://en.wikipedia.org/wiki/Advanced_Function_Presentation This is a binary, record based format, for high volume printing. There are tools that can manipulate these print streams. Which have you had experience with? What is it good/bad at?
0
[ 2, 98, 25, 14, 246, 5607, 26, 27799, 21, 12087, 4793, 9464, 60, 800, 3726, 3726, 14, 10233, 4793, 3893, 2595, 25, 21, 12087, 9, 13, 1, 636, 1283, 2686, 11014, 1990, 6364, 500, 2558, 165, 500, 13, 5, 58, 12087, 6, 25, 21, 6364, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does anyone work with Function Points? === Some questions about Function Points: 1) Is it a reasonably precise way to do estimates? (I'm not unreasonable here, but just want to know compared to other estimation methods) 2) And is the effort required worth the benefit you get out of it? 3) Which type of Function Points do you use? 4) Do you use any tools for doing this?
0
[ 2, 630, 1276, 170, 29, 1990, 819, 60, 800, 3726, 3726, 109, 2346, 88, 1990, 819, 45, 137, 6, 25, 32, 21, 19531, 11114, 161, 20, 107, 10527, 60, 13, 5, 49, 22, 79, 52, 28454, 235, 15, 47, 114, 259, 20, 143, 2428, 20, 89, 2539...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best activation key software for .NET application? === We're looking to replace our current, in-house developed trial-version activation system for our .NET application with something off the shelf. To clarify the question I'm asking, let me point out some ground we've already covered (and related questions already asked here), and some other requirements we have: - We're convinced that we do want to use an activation key system -- we don't want to release the software without any form of protection. (See for example [http://stackoverflow.com/questions/109997/how-do-you-protect-your-software-from-illegal-distribution][1] and [http://stackoverflow.com/questions/104291/trialwarelicensing-strategies][2].) - We accept that pirates will probably be able to crack whatever system we use, but since our software is targetted at business executives, we don't expect that there will be a big demand for cracked copies. - We want an off-the-shelf system, not to develop our own (whether based on public key cryptography or other technicques). We've already experienced the cost of having our developers working on the licensing system when they could be working on the application, and we want to move away from that. (See for example [http://stackoverflow.com/questions/49662/software-evaluation-licensing][3] and [http://stackoverflow.com/questions/5606/license-models][4].) - We want the system to integrate easily into an online store such as [Kagi][5]. Given these requirements, what's the best license/activation system for us? [1]: http://stackoverflow.com/questions/109997/how-do-you-protect-your-software-from-illegal-distribution [2]: http://stackoverflow.com/questions/104291/trialwarelicensing-strategies [3]: http://stackoverflow.com/questions/49662/software-evaluation-licensing [4]: http://stackoverflow.com/questions/5606/license-models [5]: http://www.kagi.com/kagisolutions/software.php
4
[ 2, 246, 15519, 1246, 2306, 26, 13, 9, 2328, 3010, 60, 800, 3726, 3726, 95, 22, 99, 699, 20, 3934, 318, 866, 15, 19, 8, 1682, 885, 2178, 8, 10898, 15519, 329, 26, 318, 13, 9, 2328, 3010, 29, 301, 168, 14, 12424, 9, 20, 23116, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Web Site Compliance with the Americans with Disabilities Act (ADA) === Are there any automatic, online or off, tools for testing xhtml/css for compliance with screen readers and other visual guidelines of the [Americans with Disabilities Act (ADA)][1]? [1]: http://www.access-board.gov/sec508/guide/1194.22.htm
0
[ 2, 2741, 689, 14969, 29, 14, 4878, 29, 15277, 601, 13, 5, 4405, 6, 800, 3726, 3726, 50, 80, 186, 6715, 15, 2087, 54, 168, 15, 4672, 26, 4431, 993, 15895, 118, 6824, 18, 26, 14969, 29, 2324, 7807, 17, 89, 3458, 12629, 16, 14, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Question about object-orientation === I had this questions since the time I learnt about object-oriented programming. Now, I have got a wonderful forum I thought of asking this. Lets say we are implementing an employee management application using EJB. Now, there are 2 ways of doing this. 1. Normally, we create entities (POJOs) which represent an employee. Then we create an EJB interface 'EmployeeManager' with add, delete, update, retrieve, retrieveAll methods. This way I could use 'employee' entity as a data transfer object. 2. We call the EJB interface itself 'Employee'. Implementation could be called 'EmployeeImpl' which has *fields* as well as method implementation (add, delete, update, retrieve, retrieveAll). If I am using a layered approach where my business logic needs access to employee details, I need to pass 'EmployeeImpl' (because it contains values). Which one do you think is the better way? I prefer the first one, because it 'looks' fine and does not feel awkward. like EmployeeMgr empMgr = // JNDI lookup; Employee emp = new Employee(); empMgr.add(emp); Employee employees[] = empMgr.retrieveAll(); Where as the second one would look like (though I am not sure), Employee emp = // JNDI lookup; emp.setName(); //set the properties emp.add(); Employee employees[] = emp.retrieveAll(); As you can see, the second one looks awkward. I request you guys to advise me on this. Thanks manju
0
[ 2, 1301, 88, 3095, 8, 9712, 857, 800, 3726, 3726, 31, 41, 48, 2346, 179, 14, 85, 31, 2484, 38, 88, 3095, 8, 6800, 3143, 9, 130, 15, 31, 57, 330, 21, 5934, 5691, 31, 289, 16, 3379, 48, 9, 6884, 395, 95, 50, 17333, 40, 7362, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can you host multiple tenants on a single ASP.NET application instance over SSL? === I have an ASP.NET application that will host multiple tenants (Software-as-a-Service style). Each tenant will have their own domain name (www.mydomain.com, www.yourdomain.com) and their own SSL certificate. **Is there a way to host the application such that all of the tenants are on the same application *instance*?** - I know you can have multiple IIS web sites pointing to the same shared location, but that won't work - it's not the same *instance*. That's different *instances* of the same *application*. - I also know you can use SSL host header mapping with wildcard certificates, but that won't work because all of the tenants would need to be subdomains of the same primary domain - yourdomain.commondomain.com, mydomain.commondomain.com. For the solution to be valid, everyone needs to have their own domain name, not be subdomains. (Ideally each tenant could opt to use an EV cert, too, and you can't have wildcard EV certs.)
0
[ 2, 92, 42, 2015, 1886, 16126, 27, 21, 345, 28, 306, 9, 2328, 3010, 4851, 84, 13, 18, 18, 255, 60, 800, 3726, 3726, 31, 57, 40, 28, 306, 9, 2328, 3010, 30, 129, 2015, 1886, 16126, 13, 5, 12980, 5011, 8, 472, 8, 58, 8, 11449, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can you use Silverlight with AJAX without any UI element? === I know you can just use CSS to hide the DIV or Silverlight Plugin, but is there a way to instantiate a Silverlight Component/App using JavaScript that doesn't show any UI element at all? There is alot of great functionality in Silverlight, like MultiThreading and compiled code, that could be utilized by traditional Ajax apps without using the XAML/UI layer of Silverlight at all. I would like to just use the standard HTML/CSS for my UI layer only, and use some compiled .NET/Silverlight code in the background.
0
[ 2, 92, 42, 275, 1172, 3130, 29, 20624, 366, 186, 13, 5661, 4520, 60, 800, 3726, 3726, 31, 143, 42, 92, 114, 275, 272, 18, 18, 20, 3077, 14, 13, 12916, 54, 1172, 3130, 10922, 108, 15, 47, 25, 80, 21, 161, 20, 6322, 15882, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
log4net vs Enterprise Library, which is better? faster? === Anyone know of some performance comparisons of the latest version Enterprise Library and the latest version of log4net? Any technical reason why I should choose one over the other?
0
[ 2, 6738, 300, 2328, 4611, 6002, 1248, 15, 56, 25, 574, 60, 4233, 60, 800, 3726, 3726, 1276, 143, 16, 109, 956, 6050, 18, 16, 14, 5736, 615, 6002, 1248, 17, 14, 5736, 615, 16, 6738, 300, 2328, 60, 186, 2447, 1215, 483, 31, 378, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
C# grid binding not update === I have a grid that is binded to a collection. For some reason that I do not know, now when I do some action in the grid, the grid doesn't update. Situation : When I click a button in the grid, it increase a value that is in the same line. When I click, I can debug and see the value increment but the value doesn't change in the grid. **BUT** when I click the button, minimize and restore the windows, the value are updated... what do I have to do to have the value updated like it was before?
0
[ 2, 272, 5910, 7354, 8728, 52, 11100, 800, 3726, 3726, 31, 57, 21, 7354, 30, 25, 10193, 69, 20, 21, 1206, 9, 26, 109, 1215, 30, 31, 107, 52, 143, 15, 130, 76, 31, 107, 109, 1028, 19, 14, 7354, 15, 14, 7354, 1437, 22, 38, 1110...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does anyone have an example of a User Interface for creating a SQL Where clause? === I'm having trouble trying to map nested conditions onto an intuitive interface. eg. How would you represent ((Condition1 AND Condition2) OR (Condition1 AND Condition5)) AND Condition4
0
[ 2, 630, 1276, 57, 40, 823, 16, 21, 4155, 6573, 26, 2936, 21, 4444, 255, 113, 9040, 60, 800, 3726, 3726, 31, 22, 79, 452, 2572, 749, 20, 2942, 5618, 69, 2039, 1204, 40, 13, 24392, 6573, 9, 12369, 9, 184, 83, 42, 3501, 13, 5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you design a website to make the best use of ads? === Is anyone aware of general UI design guidelines for increasing ad revenue from web ads? Obviously many SO users use adblock, and probably find this type of question reprehensible, but I believe that it is possible to integrate advertising (and other revenue streams) into sites so that they are visually appealing, on-target, and functional. However, this is only a belief ;). Given the widespread use of advertising as a means of income, this seems like it must be an active area of research. I believe that any web design that is intended to generate income should take this into account, since the web designer (read: a sizable portion of the SO user base) should be trying to get the biggest return on their time/skills. (This question is a repost because there is *no*way* on SO to contest a 'closed question', and it only takes one person with enough rep to decide they don't like it.)
0
[ 2, 184, 107, 42, 704, 21, 2271, 20, 233, 14, 246, 275, 16, 16236, 60, 800, 3726, 3726, 25, 1276, 3854, 16, 297, 13, 5661, 704, 12629, 26, 3425, 21, 43, 5640, 37, 2741, 16236, 60, 4409, 151, 86, 3878, 275, 21, 43, 12048, 15, 17...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Managing user stories for a large project === We are just starting on a pretty big project with lots of sub projects. we don't currently use any kind of named process but I am hoping to get some kind of agile/scrumlike process in by the back door. The area I will be focusing on most is having a good backlog for the whole project and, at least in my head, the idea of an iteration where some things are taken from the backlog, looked at in more detail and developed to a reasonable deadline. I wonder what techniques people use to break projects down into things to go in the backlog, and once the backlog is created how it is maintained and ordered. also how relationships between elements are maintained (ie this must be done before it is possible to do that, or this was one story now it is five) I am not sure what I expect the answer for this question to look like. I think what may be most helpful is if there is an open source project that keeps its backlog online in some way so I can see how others do it. Something else that would get +1 from me is examples of real user stories from real projects (the "a user can log on" story does not help me picture things in my project. Thanks.
0
[ 2, 5616, 4155, 1650, 26, 21, 370, 669, 800, 3726, 3726, 95, 50, 114, 1422, 27, 21, 1772, 580, 669, 29, 7503, 16, 972, 2314, 9, 95, 221, 22, 38, 871, 275, 186, 825, 16, 377, 953, 47, 31, 589, 3935, 20, 164, 109, 825, 16, 2747...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why doesn't GCC optimize structs? === Systems demand that certain primitives be aligned to certain points within the memory (ints to bits that are multiples of 4, shorts to bits that are multiples of 2, etc.). Of course, these can be optimized to waste the least space in padding. my question is why doesn't GCC do this automatically? Is the more obvious heuristic (order variables from biggest size requirement to smallest) lacking in some way? Is some code dependent on the physical ordering of its structs (/is that a good idea)? I'm only asking because GCC is super optimized in a lot of ways but not in this one, and I'm thinking there must be some relatively cool explanation (to which I am oblivious). Thanks Alex
0
[ 2, 483, 1437, 22, 38, 489, 3384, 22864, 13, 10346, 18, 60, 800, 3726, 3726, 1242, 3888, 30, 1200, 11473, 18, 44, 13, 12740, 20, 1200, 819, 363, 14, 1912, 13, 5, 6391, 18, 20, 10181, 30, 50, 1886, 18, 16, 268, 15, 12789, 20, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Whats the best book/site/tutorial for learning object oriented php? === Im pretty familiar with procedural side of php, but I would like to learn the OO side of things. Can you guys suggest some (short) reads that would get me on my way?
0
[ 2, 98, 18, 14, 246, 360, 118, 9097, 118, 2473, 9819, 192, 26, 2477, 3095, 13, 6800, 13, 26120, 60, 800, 3726, 3726, 797, 1772, 3694, 29, 26429, 270, 16, 13, 26120, 15, 47, 31, 83, 101, 20, 2484, 14, 13, 4328, 270, 16, 564, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What name do you give the MSBuild project build file? === I am trying to learn how to use MSBuild so we can use it to build our project. There's what seems to be a very big hole in the documentation, and I find the hole everywhere I look, the hole being how do you name or otherwise designate the MSBuild project file? For example, the tutorial on MSBuild that can be downloaded from Microsoft goes into some detail on the contents of the build file. For example, here's a little bit of their Hello World project file. <Project MSBuildVersion = "1.0" DefaultTargets = "Compile"> <Property appname = "HelloWorldCS"/> <Item Type = "CSFile" Include = "consolehwcs1.cs"/> <Target Name = "Compile"> <Task Name = "CSC" Sources = "@(CSFile)"> <OutputItem TaskParameter = "OutputAssembly" Type = "EXEFile" Include = "$(appname).exe"/> </Task> <Message Text="The output file is @(EXEFile)"/> </Target> </Project> And it goes on blah, blah, blah Items blah blah blah tasks, here's how you do this and here's how you do that. Useless, completely useless. Because they never get around to saying how this xml file is supposed to be recognized by the MSBuild app. Is it supposed to be named in a particular way? Is it supposed to be placed in a particular directory? Both? Neither? It isn't just the MS tutorial where they don't tell about it. I haven't been able to find it on MSDN, or on any link I can wring out of Groups.Google, either. Does someone here know? I sure hope so.
0
[ 2, 98, 204, 107, 42, 590, 14, 4235, 29361, 669, 1895, 3893, 60, 800, 3726, 3726, 31, 589, 749, 20, 2484, 184, 20, 275, 4235, 29361, 86, 95, 92, 275, 32, 20, 1895, 318, 669, 9, 80, 22, 18, 98, 2206, 20, 44, 21, 253, 580, 3990...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can i parse a comma delimited string into a list (caveat)? === I need to be able to take a string like: '''foo, bar, "one, two", three four''' into: ['foo', 'bar', 'one, two', 'three four'] I have an feeling (with hints from #python) that the solution is going to involve the shlex module.
0
[ 2, 184, 92, 31, 2017, 870, 21, 11951, 58, 121, 23012, 3724, 77, 21, 968, 13, 5, 793, 195, 721, 6, 60, 800, 3726, 3726, 31, 376, 20, 44, 777, 20, 247, 21, 3724, 101, 45, 13, 7, 22, 4120, 111, 15, 748, 15, 13, 7, 849, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What tool do you use to do burndown charts? === do you use a tool? or just manually make them?
0
[ 2, 98, 5607, 107, 42, 275, 20, 107, 4306, 2968, 5158, 60, 800, 3726, 3726, 107, 42, 275, 21, 5607, 60, 54, 114, 23671, 233, 105, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do I totally disable caching in nHibernate? === How do I totally disable caching in nHibernate?
0
[ 2, 184, 107, 31, 5139, 1460, 579, 1658, 7192, 19, 12109, 15191, 8820, 60, 800, 3726, 3726, 184, 107, 31, 5139, 1460, 579, 1658, 7192, 19, 12109, 15191, 8820, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Tips for avoiding big ball of mud with ASP.NET WebForms === Although ASP.NET MVC seems to have all the hype these days, WebForms are still quite pervasive. How do you keep your project sane? Let's collect some tips here.
0
[ 2, 11034, 26, 10298, 580, 1592, 16, 5006, 29, 28, 306, 9, 2328, 2741, 4190, 18, 800, 3726, 3726, 419, 28, 306, 9, 2328, 307, 8990, 2206, 20, 57, 65, 14, 29278, 158, 509, 15, 2741, 4190, 18, 50, 174, 1450, 416, 8471, 1284, 9, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
C# - Why won't a fullscreen winform app ALWAYS cover the taskbar? === I'm using Windows Vista and C#.net 3.5, but I had my friend run the program on XP and has the same problem. So I have a C# program that I have running in the background with an icon in the SystemTray. I have a low level keyboard hook so when I press two keys (Ctr+windows in this case) it'll pull of the application's main form. The form is set to be full screen in the combo key press even handler: this.FormBorderStyle = FormBorderStyle.None; this.WindowState = FormWindowState.Maximized; So it basically works. When I hit CTR+Windows it brings up the form, no matter what program I have given focus to. But sometimes, the taskbar will still show up over the form, which I don't want. I want it to always be full screen when I hit that key combo. I figure it has something to do with what application has focus originally. But even when I click on my main form, the taskbar sometimes stays there. So I wonder if focus really is the problem. It just seems like sometimes the taskbar is being stubborn and doesn't want to sit behind my program. Anyone have any ideas how I can fix this?
0
[ 2, 272, 5910, 13, 8, 483, 230, 22, 38, 21, 503, 7187, 628, 4190, 4865, 550, 1227, 14, 3005, 1850, 60, 800, 3726, 3726, 31, 22, 79, 568, 1936, 13520, 17, 272, 5910, 9, 2328, 203, 9, 264, 15, 47, 31, 41, 51, 860, 485, 14, 625,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I develop and create a self-contained PyGTK application bundle for MacOS, with native-looking widgets? === I have read that it is possible to [build GTK+ on MacOS X][1]. I know that it's possible to create a [bundle of a GTK+ application on MacOS][2]. I also know that it's possible to create widgets [that look sort of native][3]. However, searching around I am not really clear on how to create a bundle that includes the native theme stuff, and uses Python rather than its own C main-point. There are also rumors [that it's possible to build PyGTK][4], but it sounds like there might still be some wrinkles in that process. However, there is no step-by-step guide that explains how one can set up an environment where an application might be run from Python source, then built and deployed in an app bundle. How can I go about doing that? [1]: http://developer.imendio.com/projects/gtk-macosx/build-instructions [2]: http://developer.imendio.com/projects/gtk-macosx/creating-app-bundles [3]: http://people.imendio.com/richard/archives/2008/02/native_mac_them_1.html [4]: http://developer.imendio.com/node/175
0
[ 2, 184, 107, 31, 2803, 17, 1600, 21, 1119, 8, 28578, 13, 28860, 38, 197, 3010, 10194, 26, 1572, 759, 15, 29, 1275, 8, 7940, 4807, 43, 3060, 18, 60, 800, 3726, 3726, 31, 57, 1302, 30, 32, 25, 938, 20, 636, 29361, 9509, 197, 243...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What exactly is Parrot? === I understand that Parrot is a virtual machine, but I feel like I'm not completely grasping the idea behind it. As I understand, it's a virtual machine that's being made to handle multiple languages. Is this correct? What are the advantages of using a virtual machine instead of just an interpreter? What specifically is Parrot doing that makes it such a big deal?
0
[ 2, 98, 1890, 25, 18329, 60, 800, 3726, 3726, 31, 1369, 30, 18329, 25, 21, 6599, 1940, 15, 47, 31, 583, 101, 31, 22, 79, 52, 1524, 23765, 14, 882, 439, 32, 9, 28, 31, 1369, 15, 32, 22, 18, 21, 6599, 1940, 30, 22, 18, 142, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Python Regex vs PHP Regex === No not a competition, it is instead me trying to find why a certain regex works in one but not the other. (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?) That's my Regex and I'm trying to run it on 127.255.0.0 Using Pythons regex I get nothing, using PHP I match it, below are the two calls I am making (just incase it's something to do with that). Essentially I am trying to work out why it works in PHP but not Python. re.findall(regex, string) preg_match_all($regex, $string, $matches);
0
[ 2, 20059, 7953, 1706, 4611, 13, 26120, 7953, 1706, 800, 3726, 3726, 90, 52, 21, 1076, 15, 32, 25, 700, 55, 749, 20, 477, 483, 21, 1200, 7953, 1706, 693, 19, 53, 47, 52, 14, 89, 9, 13, 5, 1811, 2558, 387, 8, 264, 500, 1, 135,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the most efficient way to select the last n rows in a table without changing the table's structure? === What's the most efficient way to select the last n number of rows in a table using mySQL? The table contains millions of rows, and at any given time I don't know how large the table is (it is constantly growing). The table does have a column that is automatically incremented and used as a unique identifier for each row.
0
[ 2, 98, 22, 18, 14, 127, 8243, 161, 20, 5407, 14, 236, 13, 103, 11295, 19, 21, 859, 366, 4226, 14, 859, 22, 18, 1411, 60, 800, 3726, 3726, 98, 22, 18, 14, 127, 8243, 161, 20, 5407, 14, 236, 13, 103, 234, 16, 11295, 19, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best way to rotate content within a DIV using JavaScript? === For example, see the [MySQL][1] website. It's only going to be used to rotate through about 3-5 "ads" to noteworthy areas of the site. I'd like to have some kind of link control to backtrack to the other content (again, like the MySQL site). Google gives me a bunch of very easy to implement stuff for the rotation itself, it's the link control that is difficult. [1]: http://www.mysql.com/
0
[ 2, 246, 161, 20, 21448, 2331, 363, 21, 13, 12916, 568, 8247, 8741, 60, 800, 3726, 3726, 26, 823, 15, 196, 14, 636, 915, 18, 22402, 500, 2558, 165, 500, 2271, 9, 32, 22, 18, 104, 228, 20, 44, 147, 20, 21448, 120, 88, 203, 8, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I detect and invoke a user's local installation of the AIR runtime on a particular AIR application? === I am writing a program that has an AIR front-end, but a back-end written in another language (Python, in this case). Since AIR can't invoke other executables, the relationship has to be the other way around, with Python running an AIR subprocess. How can I locate the user's AIR runtime? I'd like to be able to do this on Mac, Windows, and Linux. (Ironically, this would be super easy if I could package the AIR debug runtime, but the licensing agreement requires that the user download the regular runtime themselves and run the installer.)
0
[ 2, 184, 92, 31, 9092, 17, 28371, 21, 4155, 22, 18, 375, 7758, 16, 14, 282, 485, 891, 27, 21, 1498, 282, 3010, 60, 800, 3726, 3726, 31, 589, 1174, 21, 625, 30, 63, 40, 282, 431, 8, 2451, 15, 47, 21, 97, 8, 2451, 642, 19, 22...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Tips on helping to move to MS SQL from MySQL === I have been interested in database developing for some time now and decided that MS SQL has a lot to offer in terms of T-SQL and generally much more functionality (not saying that Oracle or Postgres don't have that). I would like to know: 1. What are the big paradigm changes I should expect to see? 2. How much effort do "regular" companies put into developing their database (for transactions, triggers, events, data cleansing, ETL)? 3. What can I expect from the inner-workings of MS SQL developer teams and how they interact with the .NET application developers? I hope I have phrased my question correctly. I am not very clued-up about the whole .NET scene.
0
[ 2, 11034, 27, 3713, 20, 780, 20, 4235, 4444, 255, 37, 51, 18, 22402, 800, 3726, 3726, 31, 57, 74, 3158, 19, 6018, 3561, 26, 109, 85, 130, 17, 868, 30, 4235, 4444, 255, 63, 21, 865, 20, 1994, 19, 1663, 16, 13, 38, 8, 18, 2240...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I ignore ampersands in a SQL script running from SQL Plus? === I have a SQL script that creates a package with a comment containing an ampersand (&). When I run the script from SQL Plus, I am prompted to enter a substitute value for the string starting with &. How do I disable this feature so that SQL Plus ignores the ampersand?
0
[ 2, 184, 107, 31, 7174, 589, 7490, 290, 18, 19, 21, 4444, 255, 3884, 946, 37, 4444, 255, 3123, 60, 800, 3726, 3726, 31, 57, 21, 4444, 255, 3884, 30, 9695, 21, 6030, 29, 21, 6484, 3503, 40, 589, 7490, 290, 13, 5, 1569, 6, 9, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C++ Thread, shared data === I have an application where 2 threads are running... Is there any certanty that when I change a global variable from one thread, the other will notice this change? I don't have any syncronization or Mutual exclusion system in place... but should this code work all the time (imagine a global **bool** named **dataUpdated**): Thread 1: while(1) { if (dataUpdated) updateScreen(); doSomethingElse(); } Thread 2: while(1) { if (doSomething()) dataUpdated = TRUE; } Does a compiler like gcc optimize this code in a way that it doesn't check for the global value, only considering it value at compile time (because it nevers get changed at the same thred)? PS: Being this for a game-like application, it really doen't matter if there will be a read while the value is being written... all that matters is that the change gets noticed by the other thread.
0
[ 2, 272, 20512, 9322, 15, 2592, 1054, 800, 3726, 3726, 31, 57, 40, 3010, 113, 172, 20396, 50, 946, 9, 9, 9, 25, 80, 186, 6173, 13186, 93, 30, 76, 31, 753, 21, 2062, 7612, 37, 53, 9322, 15, 14, 89, 129, 3551, 48, 753, 60, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to "Open in New Window" using WebBrowser control? === When you use the WebBrowser control in .NET you can "embed" an instance of IE in your application, essentially making your own IE-based Web Browser. Does anyone know how to make any new windows created (like when the user selects "Open in New Window" from the context menu) open up in another Window of Your Web Browser Application, instead of the computers default browser??
0
[ 2, 184, 20, 13, 7, 10157, 19, 78, 1463, 7, 568, 10192, 5417, 4104, 569, 60, 800, 3726, 3726, 76, 42, 275, 14, 10192, 5417, 4104, 569, 19, 13, 9, 2328, 42, 92, 13, 7, 1503, 4283, 7, 40, 4851, 16, 13, 660, 19, 154, 3010, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I publish a subversion repository to a local IIS? === At work, we have a windows server 2003 with IIS and Subversion installed. We use it to publish and test locally our ASP.NET websites. Every programmer has Tortoise installed on his PC and can update/commit content to the server. What is an easy way to publish those subversion directories to our local IIS?
0
[ 2, 184, 92, 31, 10824, 21, 972, 10898, 24869, 20, 21, 375, 595, 18, 60, 800, 3726, 3726, 35, 170, 15, 95, 57, 21, 1936, 8128, 973, 29, 595, 18, 17, 972, 10898, 4066, 9, 95, 275, 32, 20, 10824, 17, 1289, 6680, 318, 28, 306, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Parsing a string as a list using boost::spirit === I've got a situation where I'm parsing input into a map of vectors boost::Spirit. It works well, but I've run into a situation where I need to provide a fixed string internally for a certain case of user input, so that the internal string is parsed in lieu of the user input. Here's a sample of the grammar: input_pair = key( std::string("__input")) >> valid_input % ',' ; where: key = qi::attr( _r1 ) ; and "valid_input" is a simple rule that tests for specific strings / character patterns, etc. This grammar pairs the input with a pre-defined internal key and stores it in a map as a vector. If the input contains the specified delimiter, input is appropriately parsed into separate elements of the receiving vector. The problem I've encountered, however, is providing a pre-defined string for "valid_input". My first inclination is to do what I did with the map key: input_pair = key( std::string("__input")) >> key ( std::string("A, B, C")) % ',' ; But, of course,the entire string is inserted as the first element of the vector. That is, the comma delimiters in "A, B, C" are not recognized as I'd hoped they would. Thus my question: Given a boost::Spirit parser whose grammar parses input into a map of vectors, is there any way to parse a fixed string ***defined within the parser itself*** into a vector?
0
[ 2, 2017, 18, 68, 21, 3724, 28, 21, 968, 568, 10419, 45, 45, 23886, 800, 3726, 3726, 31, 22, 195, 330, 21, 1858, 113, 31, 22, 79, 2017, 18, 68, 6367, 77, 21, 2942, 16, 7497, 18, 10419, 45, 45, 23886, 9, 32, 693, 134, 15, 47, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Generic Database Viewer with the simplest Functions and Use === I want to write a database viewer with the highest possible amount of supported database types. This viewer knows nothing about the database structure. Thats why I think nhibernate is nothing for me, correct? Databases to which I have thought are MsSQL, Access, Excel, Oracle, SQLite, PostgreSql, (MySQL, ...) I want to select a table and show all rows of it in a DataTable. I've already started with the OleDbConnection. I just want to clarify in advance whether that is really the right way for me. OleDbConnection connection = new OleDbConnection(connectionString); connection.Open(); DataTable dataTable = connection.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, new object[] { null, null, null, null }); Thanks Chris
0
[ 2, 12733, 6018, 16812, 29, 14, 24384, 3719, 17, 275, 800, 3726, 3726, 31, 259, 20, 2757, 21, 6018, 16812, 29, 14, 1554, 938, 2006, 16, 1827, 6018, 2551, 9, 48, 16812, 3620, 626, 88, 14, 6018, 1411, 9, 30, 18, 483, 31, 277, 12109...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Multidimensional Array in PHP (form data with checkboxes) === I'm new to PHP and having a problem reading checkboxes submitted by a form. Before explaining it i would like to mention that i'm trying to edit a much larger application and the data cannot be sent in any other way. It's just a matter of finding a good method of reading what is being sent. When a normal text input is sent, the form will post the following: custom[0][type]="text" custom[0][name]="VariableName" custom[0][value]="VariableName" Basically there is a main "custom" multidimensional array that has several elements (0,1,2,3 etc) and each element has name and value. However, when one of the elements is a checkbox, the following stuff gets posted: custom[1][type]="list" custom[1][name]="SelectedOptions" custom[1][value]="Value1" custom[1][value]="Value3" custom[1][value]="Value5" Getting to the PHP side of things, this is the code i'm using to read the data sent by the form. The code below works ok in scenario 1 (with text based inputs) but only reads one value when we have list type custom data. foreach($_POST['custom'] as $item){ if($item['value'] != "") echo $item['name'].'='.$item['value'] } The problem is that <b>$item['value']</b> only reads one of the values, not all 3. How can i get all 3 values in a variable ? It probably is a very easy thing... Thanks !
0
[ 2, 1889, 7865, 7718, 19, 13, 26120, 13, 5, 4190, 1054, 29, 2631, 5309, 160, 6, 800, 3726, 3726, 31, 22, 79, 78, 20, 13, 26120, 17, 452, 21, 1448, 1876, 2631, 5309, 160, 7368, 34, 21, 505, 9, 115, 10225, 32, 31, 83, 101, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Sidebar block randomly changing width === I have a floating block on the right hand side here http://www.paleolife.co.uk/pi/79-2008518383 When you scroll down the width changes. I have no idea why...anyone have any hints of where to look? Thanks
0
[ 2, 270, 1850, 1921, 21324, 4226, 9456, 800, 3726, 3726, 31, 57, 21, 8319, 1921, 27, 14, 193, 224, 270, 235, 7775, 6903, 6483, 9, 6720, 3894, 4102, 9, 716, 9, 2185, 118, 2159, 118, 3399, 8, 2753, 264, 28061, 240, 76, 42, 12159, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can't run Passenger Standalone. It keeps telling me I need to update my RVM Wrappers === I've just installed the latest RVM on my new server using Mixed Mode, and in my user account, I ran `rvm user all` to give my user a completely separate ruby environment -- no sharing of rubies or gems. I installed the passenger gem and when I tried to run `passenger start`, it told me this: Your RVM wrapper scripts are too old. Please update them first by running 'rvm update --head && rvm reload && rvm repair all'. So I ran the command it listed: `rvm update --head && rvm reload && rvm repair all` Ran `passenger start` and it gave mteh same error as above.
0
[ 2, 92, 22, 38, 485, 3093, 26986, 9, 32, 8968, 2497, 55, 31, 376, 20, 11100, 51, 13, 10359, 79, 28051, 18, 800, 3726, 3726, 31, 22, 195, 114, 4066, 14, 5736, 13, 10359, 79, 27, 51, 78, 8128, 568, 2198, 3740, 15, 17, 19, 51, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to update images embedded in css or js files === now there are some css files that links some images. eg: main.css: .nav{ background-image:url("/www/images/bg.png") } and this css file is linked just like this: <link href="/www/css/main.css?version=1.2" type="stylesheet" /> I know there is an approach that add a query string like "?version=1.2" to force browser to load the css file from web server not from cache. but my problem is that just work for css file, but do nothing to embedded images. so what can I do to make the browser download the images embedded in css or js files when I edit them? complements: 1. image name not allow to be modified 2. do not disable browser cache. thanks
0
[ 2, 184, 20, 11100, 3502, 12138, 19, 272, 18, 18, 54, 487, 18, 6488, 800, 3726, 3726, 130, 80, 50, 109, 272, 18, 18, 6488, 30, 6271, 109, 3502, 9, 12369, 45, 407, 9, 6824, 18, 45, 13, 9, 18343, 1, 2395, 8, 22039, 45, 911, 255...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Adding more than one song to single AVAudioPlayer === In my app i am using AVAudioPlayer. Is it possible to add more number of songs to single AVAudioPlayer. Any one can help or sugget with links.
0
[ 2, 4721, 91, 119, 53, 338, 20, 345, 13656, 6785, 111, 14049, 800, 3726, 3726, 19, 51, 4865, 31, 589, 568, 13656, 6785, 111, 14049, 9, 25, 32, 938, 20, 3547, 91, 234, 16, 916, 20, 345, 13656, 6785, 111, 14049, 9, 186, 53, 92, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What's the best dispatcher/callback library in Python? === I need to allow other Python applications to register callback functions for events in my application. These need to have priorities associated with them (so a callback with a priority of 10 runs before a callback with a priority of 1) and callback functions need to be able to signal errors to the dispatcher. Is there a good Python library to handle this, or do I need to write my own?
0
[ 2, 98, 22, 18, 14, 246, 14226, 106, 118, 9200, 1958, 1248, 19, 20059, 60, 800, 3726, 3726, 31, 376, 20, 1655, 89, 20059, 3767, 20, 2243, 645, 1958, 3719, 26, 963, 19, 51, 3010, 9, 158, 376, 20, 57, 20872, 1598, 29, 105, 13, 5,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I use SCM with a PHP app such as Wordpress? === I run my blog using Wordpress and all too recently became a _big_ believer in SCM. I really want to put my site into subversion (that's what I'm using right now, maybe git will come later) but I can't think of the correct way to do it yet. Basically, my repository is set up currently with an 'implementation' directory and a 'resources' directory, with implementation holding what will eventually be published to the live site. I want to be able to preview my site locally without having to upload to the server for obvious reasons. However, to do this I found that I needed to actually install Wordpress locally (not just copy the remote site down to my local box). This was told to me over at Wordpress.org. This brings up the problem of being able to use SCM with the install because I need to upgrade my local site every now and then but this generates inconsistencies with subversion because it can’t track what’s going on because an external system is messing with it’s repository structure. That just won’t work. My initial inclination is to try to just SCM my theme information as this is really the only stuff that I ‘own’ while as everything else is really just part of my platform (no different than Apache or PHP, really). However, that’s where my understanding breaks down. How can I selectively SCM only part of that directory structure, and how can I maintain the configuration of Wordpress that I’m on? Anyway, I’m sure other people have tackled this and the solution is probably applicable to many apps similar to Wordpress (Drupal, phpBB, phpMyAdmin, etc.). So, how do you do it? Thanks in advance!
0
[ 2, 184, 107, 31, 275, 4729, 79, 29, 21, 13, 26120, 4865, 145, 28, 833, 5890, 60, 800, 3726, 3726, 31, 485, 51, 8146, 568, 833, 5890, 17, 65, 266, 1989, 178, 21, 13, 1, 6407, 1, 985, 139, 19, 4729, 79, 9, 31, 510, 259, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Calculate text width with Javascript === I'd like to use Javascript to calculate the width of a string, is this possibly without having to use a monospace typeface? If it's not built in my only idea is to create a table of widths for each character but this is pretty unreasonable especially supporting unicode and different type sizes (and all browsers for that matter). Thanks for any ideas!
0
[ 2, 18469, 1854, 9456, 29, 8247, 8741, 800, 3726, 3726, 31, 22, 43, 101, 20, 275, 8247, 8741, 20, 18469, 14, 9456, 16, 21, 3724, 15, 25, 48, 2879, 366, 452, 20, 275, 21, 4129, 5582, 1001, 6413, 60, 100, 32, 22, 18, 52, 392, 19,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Open multiple Eclipse workspaces on the Mac === How can I open multiple Eclipse workspaces at the same time on the Mac? On other platforms, I can just launch extra Eclipse instances, but the Mac will not let me open the same application twice. Is there a better way than keeping two copies of Eclipse?
0
[ 2, 368, 1886, 11652, 170, 5582, 18, 27, 14, 1572, 800, 3726, 3726, 184, 92, 31, 368, 1886, 11652, 170, 5582, 18, 35, 14, 205, 85, 27, 14, 1572, 60, 27, 89, 6843, 15, 31, 92, 114, 3394, 2230, 11652, 13946, 15, 47, 14, 1572, 129...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the best way to implement ACLs to a Rails application? === I just wanted to compare different solutions used when implementing ACLs in Rails.
0
[ 2, 98, 22, 18, 14, 246, 161, 20, 8713, 21, 5316, 18, 20, 21, 2240, 18, 3010, 60, 800, 3726, 3726, 31, 114, 417, 20, 11590, 421, 6776, 147, 76, 17333, 21, 5316, 18, 19, 2240, 18, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Good .NET ORM Framework that supports OleDb and Stored Procedures? === A typical stored procedure in our system accepts around 20 or so parameters. There's no chance of refactoring these stored procedures either. I've basically resorted to writing my own code generator that wraps these SP's into (database provider agnostic) "Command" objects, with their public properties corresponding to the SP parameters. It works, but I'd prefer a 3rd party tried and tested solution. Can anyone recommend anything? I haven't found one that supports OleDB and stored procedures.
0
[ 2, 254, 13, 9, 2328, 54, 79, 6596, 30, 6747, 12116, 9007, 17, 8214, 8876, 60, 800, 3726, 3726, 21, 3874, 8214, 7004, 19, 318, 329, 16548, 140, 434, 54, 86, 12905, 9, 80, 22, 18, 90, 1504, 16, 302, 17455, 68, 158, 8214, 8876, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get python 3 to display html and dynamic content when running http.server === So I am currently trying to get python to output html on a webpage. Its not working, as there is nothing on the screen, and not sure why. Running the server like so: from http.server import HTTPServer, CGIHTTPRequestHandler port = 8080 httpd = HTTPServer(('', port), CGIHTTPRequestHandler) print("Starting simple_httpd on port: " + str(httpd.server_port)) httpd.serve_forever() My simple file, which is just to test and make sure I can accomplish this the way I am trying to. I am receiving this form a form that has one input for an email: #! /usr/local/bin/python3 #This file is used for testing to make sure output to browser is as expected import cgi form_data = cgi.FieldStorage() email = form_data['email'].value print ("Content-Type: text/html") print("<!doctype html> <br />") print("<html> <head></head><body>") print("<p>This is the email info: " + email+</p>) print("</body>") print("<html>") I am new to python, and essentially just trying to print this out. I have searched and have yet to find an answer. So I am hoping the distinguished minds of stack overflow can help me out. I don't want a framework, just to be able to print out few things, but not sure why its not working.
0
[ 2, 184, 20, 164, 20059, 203, 20, 3042, 13, 15895, 17, 7782, 2331, 76, 946, 7775, 9, 10321, 106, 800, 3726, 3726, 86, 31, 589, 871, 749, 20, 164, 20059, 20, 5196, 13, 15895, 27, 21, 2741, 6486, 9, 82, 52, 638, 15, 28, 80, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
call javascript functions without receiver === Let's say we have a function: function fn(){return this;} If we call the function by `foo = fn();`, then `foo` will get the value of `this`, but I am curious about where the return goes if the the function is called without receiver, i.e. `fn();`? Thanks!
0
[ 2, 645, 8247, 8741, 3719, 366, 6264, 800, 3726, 3726, 408, 22, 18, 395, 95, 57, 21, 1990, 45, 1990, 13, 19035, 5, 6, 1, 24632, 48, 73, 1, 100, 95, 645, 14, 1990, 34, 13, 1, 4120, 111, 800, 13, 19035, 5, 6, 73, 1, 15, 94, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best design for storing related things === I am working on an online recipe book, in which there are many recipes, ingredients, categories etc. I have to implement that the admin can add related recipes to objects of given entities(e.g. a category has many related recipes, which according to my client's wish should be added manually). Also, the related recipes have to have an order, which is also set manually. So I need one ManyToMany relationship between recipes and each of other entities(category, ingredient, recipe, etc.), and additionally I have to store the position of each related recipe. One solution could be to set up a table for each entity having related recipes, and each row would contain an id for the entity, a recipe id and a position. This would mean I would have as many tables as many entities I have with relative recipes, which does not seem to be the best solution. Another solution could be to have 1 table containing all the information about related recipes, then each row would additionally contain the type of the other entity. Also I am really strict about the DRY principle so I would want to achieve this without writing repeated code and use Doctrine2+Symfony2 to handle as much work as possible. And if possible, the best would be if I had a piece of code(such as a class) which I can reuse and add the related recipes feature to new entites as well without writing or copy-pasting much code. What could be the best class/database design for this? I am highlighting, I am using Doctrine2 + Symfony2 so please try to "think in Doctrine". Thank you in advance!
0
[ 2, 246, 704, 26, 25615, 1597, 564, 800, 3726, 3726, 31, 589, 638, 27, 40, 2087, 20510, 360, 15, 19, 56, 80, 50, 151, 22229, 15, 14129, 15, 6422, 2722, 9, 31, 57, 20, 8713, 30, 14, 21, 43, 2160, 92, 3547, 1597, 22229, 20, 3916,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Attributes of another jQuery plugin instance getting overridden === I'm having this weird problem where other instances of my jQuery plugin are getting modified even though I believe I've written my plugin to support multiple separate instances. I've stripped down the code to the bare essentials, and you can test it out here: http://jsbin.com/ajifoh/4/edit#html,live The first time you press a key in either textbox it should display `leng: 0` in the console, but after you've triggered the first one for some reason the second one also has all the comboParts that were inserted for the first... What have I done wrong? ;(function($, window, document, undefined){ var KeyCombinator = function( elem, options ){ this.$elem = $(elem); }; function ComboPart(keyCode){ if (keyCode !== undefined){ this.keyCode = keyCode; } } function ComboData(){ this.comboParts= []; } function set_insert(array, value){ array.push(value); } KeyCombinator.prototype = { comboData: new ComboData(), eval_key_event: function(e){ set_insert(this.comboData.comboParts, new ComboPart(e.keyCode)); }, init: function(){ var $elem = this.$elem; var that = this; $elem.keydown(function(e){ console.log('leng', that.comboData.comboParts.length); that.eval_key_event(e); }); } }; $.fn.makeKeyCombinator = function(options) { return this.each(function() { new KeyCombinator(this, options).init(); }); }; })(jQuery, window, document);
0
[ 2, 13422, 16, 226, 487, 8190, 93, 10922, 108, 4851, 1017, 84, 15267, 800, 3726, 3726, 31, 22, 79, 452, 48, 5455, 1448, 113, 89, 13946, 16, 51, 487, 8190, 93, 10922, 108, 50, 1017, 5372, 166, 362, 31, 985, 31, 22, 195, 642, 51, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get project workspace details === To get project names and followers I can use: https://app.asana.com/api/1.0/projects?opt_fields=name,followers However it doesn't let me get the workspace: https://app.asana.com/api/1.0/projects?opt_fields=name,workspace Only the project ids and names are listed. I have tried using `opt_expand` as well. Is it possible to get the workspace when listing projects?
0
[ 2, 184, 20, 164, 669, 170, 5582, 3289, 800, 3726, 3726, 20, 164, 669, 1817, 17, 8518, 31, 92, 275, 45, 7775, 18, 6903, 7753, 9, 472, 1629, 9, 960, 118, 2552, 49, 11698, 9, 15928, 21011, 18, 60, 2594, 38, 1, 1109, 18, 3726, 725...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Notifying a player of a change in their standing in a tournament === I'm using the following Score model: class Score(models.Model): tournament = models.ForeignKey(Tournament) player = models.ForeignKey(User) score = models.IntegerField() datetime = models.DateTimeField() For each tournament, standings are calculated based on players' scores. I want to notify the top n players in a given tournament if they drop in the standings. My thought is to store the positions of the top n players for each tournament, set a post_save signal on the Score model, and when a new score is entered into a tournament, compare the old and new positions and notify any players if their position dropped.
4
[ 2, 52, 10874, 21, 517, 16, 21, 753, 19, 66, 1288, 19, 21, 1085, 800, 3726, 3726, 31, 22, 79, 568, 14, 249, 1618, 1061, 45, 718, 1618, 5, 13998, 18, 9, 13998, 6, 45, 1085, 800, 2761, 9, 28292, 4237, 5, 29508, 6, 517, 800, 276...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
maintain MPI version and non MPI version in a convenient way === Recently, I used MPI to parallelize my simulation program to speed up. The way I adopted was to rewrite one function that is very time-consuming but easy to be parallelized. The simplified model of non-MPI program is as follows, int main( int argc, char* argv[] ){ // some declaration here Some_OBJ.Serial_Function_1(); Some_OBJ.Serial_Function_2(); Some_OBJ.Serial_Function_3(); return 0; } While my MPI version is, #include "mpi.h" int main( int argc, char* argv[] ){ // some declaration here MPI_Init( NULL, NULL ); Some_OBJ.Serial_Function_1(); Some_OBJ.Parallel_Function_2(); // I rewrite this function to replace Some_OBJ.Serial_Function_2(); Some_OBJ.Serial_Function_3(); MPI_Finalize(); return 0; } I copied my non MPI code to a new folder, something like mpi_simulation, and add a mpi function, revised the main file to . It works, but very inconveniently. If I update some functions, say OBJ.Serial_Function_1(), I need to copy the code with caution even if I just change a constant. There are still some slight differences between these versions of programs. I felt exhausted to keep them in accordance. So I wander if there is any way to let MPI program dependent on non MPI version, so that my revisions can be easily applied to both of them safely and conveniently. Thanks.
0
[ 2, 4027, 4628, 49, 615, 17, 538, 4628, 49, 615, 19, 21, 12845, 161, 800, 3726, 3726, 1989, 15, 31, 147, 4628, 49, 20, 3821, 2952, 51, 10926, 625, 20, 1362, 71, 9, 14, 161, 31, 2527, 23, 20, 27891, 53, 1990, 30, 25, 253, 85, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Ajax JSON Not Returning === I have the following code in my main page, trying to pull AJAX JSON. It simply has to show 10 extra products on each page scroll. and at the moment it only shows the loader Circle div which should remove after loading - but nothing is loading. var handler = null; var page = 1; var isLoading = false; var apiURL = 'ajax/api.php' function onScroll(event) { // Only check when we're not still waiting for data. if(!isLoading) { // Check if we're within 100 pixels of the bottom edge of the broser window. var closeToBottom = ($(window).scrollTop() + $(window).height() > $(document).height() - 100); if(closeToBottom) { loadData(); } } }; function loadData() { isLoading = true; $('#loaderCircle').show(); $.ajax({ url: apiURL, dataType: 'jsonp', data: {page: page}, // Page parameter to make sure we load new data success: onLoadData }); }; // Receives data from the API, creates HTML for images function onLoadData(data) { isLoading = false; $('#loaderCircle').hide(); // Increment page index for future calls. page++; // Create HTML for the images. var html = ''; var i=0, length=data.length, image; for(; i<length; i++) { image = data[i]; html += '<li>'; // Image tag html += '<img src="products/200/'+p_id+'.jpg" ">'; // Image title. html += '<p>'+p_name+'</p>'; html += '</li>'; } // Add image HTML to the page. $('#tiles').append(html); }; And my PHP JSON call <?php require_once('../inc/config.php'); $page = $_REQUEST['page']; $items = '10'; $start = (($page * $items) - $items); $end = ($page * $items); $result = mysql_query("SELECT p_id, p_name FROM products ORDER BY p_id ASC LIMIT $start, $end"); $products = array(); while($product = mysql_fetch_array($result, MYSQL_ASSOC)) { $products[] = ($product); } $output = json_encode($products); echo $output; ?> The JSON that the php displays is as follows (example data): [{"p_id":"1","p_name":"ASOS Pleated Swing Mac"},{"p_id":"2","p_name":"ASOS Midi Belted Coat"},{"p_id":"3","p_name":"ASOS Zig Zag Coat"},{"p_id":"4","p_name":"Collarless Quilted Leather Biker with Ribbed Sleeve"},{"p_id":"6","p_name":"TFNC Dress with Wrap Front in Flocked Heart"},{"p_id":"7","p_name":"Striped Skater Dress"}, {"p_id":"8","p_name":"Metallic Wrap Dress"},{"p_id":"9","p_name":"Strapless Dress With Neon Belt"},{"p_id":"10","p_name":"Darling Floral Border Print Dress"},{"p_id":"11","p_name":"Dip Hem Chiffon Dress With Printed Top"}] So overall it doesnt load the data into the html. Can someone please explain what I might have to do or what I might be doing wrong. (this is using the wookmark plugin - but shouldnt affect anything)
0
[ 2, 20624, 487, 528, 52, 2485, 800, 3726, 3726, 31, 57, 14, 249, 1797, 19, 51, 407, 2478, 15, 749, 20, 2201, 20624, 487, 528, 9, 32, 1659, 63, 20, 298, 332, 2230, 1985, 27, 206, 2478, 12159, 9, 17, 35, 14, 688, 32, 104, 1285, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to start IDLE (python editor) without using the shortcut on windows vista? === I'm trying to teach Komodo to fire up IDLE when I hit the right keystrokes. I can use the exact path of the shortcut in start menu in the windows explorer location bar to launch IDLE so I was hoping Komodo would be able to use it as well. But, giving this path to Komodo causes it to say that 1 is returned. This appears to be a failure as IDLE doesn't start up. I thought I'd avoid the shortcut and just use the exact path. I go to the start menu, find the shortcut for IDLE, right click to look at the properties. The target is grayed out but says, "Python 2.5.2". The "Start in" is set to, "C:\Python25\". The "Open File Location" button is also grayed out. How do I find out where this shortcut is really pointing? I have tried starting python.exe and pythonw.exe both in C:\Python25, but neither starts up IDLE.
0
[ 2, 184, 20, 799, 18652, 13, 5, 6448, 11570, 1835, 6, 366, 568, 14, 502, 4118, 27, 1936, 13520, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 5348, 8028, 8850, 20, 535, 71, 18652, 76, 31, 770, 14, 193, 1246, 12962, 18, 9, 31, 92, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Long-running code within asp.net process === E.g. we this code in the asp.net form codebihind: private void btnSendEmails_OnClick() { Send100000EmailsAndWaitForReplies(); } This code execution will be killed by the timeout reason. For resolving the problem I'd like to see something like this: private void btnSendEmails_OnClick() { var taskId = AsyncTask.Run( () => Send100000EmailsAndWaitForReplies() ); // Store taskId for future task execution status checking. } And this method will be executed for some way outside the w3wp.exe process within a special enveronment. Does anybody know a framework/toolset for resolving this kind of issues?
0
[ 2, 175, 8, 11325, 1797, 363, 28, 306, 9, 2328, 953, 800, 3726, 3726, 13, 62, 9, 263, 9, 95, 48, 1797, 19, 14, 28, 306, 9, 2328, 505, 1797, 2161, 7359, 43, 45, 932, 11364, 334, 38, 2172, 17264, 8079, 18, 1, 218, 150, 10129, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best way to manipulate pages while embedding Webkit? === I'm using Webkit-sharp to embed Webkit into an application and I need to hook certain links to perform actions in my app rather than their normal action. I've considered using Javascript to iterate over the anchor tags and replace the ones that match with the proper link, but I'm wondering if this is the best way. Is there a preferred way of doing this?
0
[ 2, 246, 161, 20, 18468, 4434, 133, 11911, 69, 3258, 2741, 13703, 60, 800, 3726, 3726, 31, 22, 79, 568, 2741, 13703, 8, 23646, 20, 11911, 69, 2741, 13703, 77, 40, 3010, 17, 31, 376, 20, 5559, 1200, 6271, 20, 2985, 3078, 19, 51, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you resolve a circular dependency with an inner class? === (Java question) If I reference a field in an inner class, does this cause a circular dependency between the enclosing class and the inner class? How can I avoid this? Here is an example: public class Outer { private Other o; private Inner i; public Outer() { o = new Other(); i = new Inner() { public void doSomething() { o.foo(); } }; } }
0
[ 2, 184, 107, 42, 9854, 21, 8155, 26835, 29, 40, 3754, 718, 60, 800, 3726, 3726, 13, 5, 1004, 1385, 1301, 6, 100, 31, 2801, 21, 575, 19, 40, 3754, 718, 15, 630, 48, 1679, 21, 8155, 26835, 128, 14, 1957, 13023, 18, 68, 718, 17, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Trying to resize a jQuery dialog in IE6? === I thought I had seen a bug report about this on the jQuery site, but now I cannot find it. I'm trying to resize a dialog in IE6. But when the element is resized, the content and title bar don't resize down. They will resize up if the dialog is made larger, however. The result is that the close button ends up being cut off and the content is clipped if the user resize the dialog to be smaller. I've tried handling the resizeStop event and manually resizing the content and titlebar, but this can gave me weird results. The sizes and positions of elements in the content area were still off. Also, even though I resize the title bar, the close button still doesn't move back into view. Any ideas? If this is a bug in jQuery-ui, does anyone know a good workaround? <html> <head> <title>Example of IE6 resize issue</title> <link rel="stylesheet" type="text/css" href="flora/flora.all.css" /> <script type="text/javascript" src="jquery-1.2.6.js"></script> <script type="text/javascript" src="ui.core.js"></script> <script type="text/javascript" src="ui.draggable.js"></script> <script type="text/javascript" src="ui.resizable.js"></script> <script type="text/javascript" src="ui.dialog.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#main-dialog").dialog(); }); </script> </head> <body> <div id="main-dialog"> This is just some simple content that will fill the dialog. This example is sufficient to reproduce the problem in IE6. It does not seem to occur in IE7 or FF. I haven't tried with Opera or Safari. </div> </body> </html>
0
[ 2, 749, 20, 302, 10454, 21, 487, 8190, 93, 28223, 19, 13, 660, 379, 60, 800, 3726, 3726, 31, 289, 31, 41, 541, 21, 6256, 1330, 88, 48, 27, 14, 487, 8190, 93, 689, 15, 47, 130, 31, 1967, 477, 32, 9, 31, 22, 79, 749, 20, 302...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
sql style guide === I AM SO TIRED OF READING THE WHOLE SQL STATEMTNE / STORED PROCEUDRE IN FULL CAPS. WHAT THE HELL WERE THE INITIAL DEVELOPERS THINKING? What's the best style (in terms of cap, indentation, lines breaks, etc) to write SQL in?
0
[ 2, 4444, 255, 1034, 3378, 800, 3726, 3726, 31, 589, 86, 4117, 16, 1876, 14, 979, 4444, 255, 146, 79, 38, 556, 13, 118, 8214, 895, 1105, 3192, 99, 19, 503, 9293, 9, 98, 14, 1094, 46, 14, 2104, 10168, 1440, 60, 98, 22, 18, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I parse a string with GetOpt::Long::GetOptions? === I have a string with possible command line arguments (using an Read-Eval-Print-Loop program) and I want it to be parsed similar to the command line arguments when passed to Getopt::Long. To elaborate: I have a string $str = '--infile /tmp/infile_location --outfile /tmp/outfile' I want it to be parsed by GetOptions so that it is easier for me to add new options. One workaround I could think of is to split the string on whitespace and replace @ARGV with new array and then call GetOptions. something like ... my @arg_arr = split (/\s/, $input_line); # This is done so that GetOptions reads these new arguments @ARGV = @arg_arr; print "ARGV is : @ARGV\n"; GetOptions ( 'infile=s' => \$infile, 'outfile=s' => \$outfile ); Is there any good/better way?
0
[ 2, 184, 107, 31, 2017, 870, 21, 3724, 29, 164, 2594, 38, 45, 45, 2701, 45, 45, 834, 3880, 3309, 18, 60, 800, 3726, 3726, 31, 57, 21, 3724, 29, 938, 1202, 293, 10553, 13, 5, 12655, 40, 1302, 8, 62, 3377, 8, 10299, 8, 18786, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Alternative to String.Replace === So I was writing some code today that basically looks like this: string returnString = s.Replace("!", " ") .Replace("@", " ") .Replace("#", " ") .Replace("$", " ") .Replace("%", " ") .Replace("^", " ") .Replace("*", " ") .Replace("_", " ") .Replace("+", " ") .Replace("=", " ") .Replace("\", " ") Which isn't really nice. I was wondering if there's a regex or something that I could write that would replace all the calls to the Replace() function?
0
[ 2, 2676, 20, 3724, 9, 99, 5119, 800, 3726, 3726, 86, 31, 23, 1174, 109, 1797, 786, 30, 11374, 1879, 101, 48, 45, 3724, 788, 11130, 800, 13, 18, 9, 99, 5119, 5, 7, 187, 7, 15, 13, 7, 13, 7, 6, 13, 9, 99, 5119, 5, 7, 1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Convert a UTF-8 string to/from 7-bit XML in PHP === How can UTF-8 strings (i.e. 8-bit string) be converted to/from XML-compatible 7-bit strings (i.e. printable ASCII with numeric entities)? i.e. an `encode()` function such that: encode("“£”") -> "&#8220;&#163;&#8221;" `decode()` would also be useful: decode("&#8220;&#163;&#8221;") -> "“£”" PHP's `htmlenties()`/`html_entity_decode()` pair does not do the right thing: htmlentities(html_entity_decode("&#8220;&#163;&#8221;")) -> "&amp;#8220;&pound;&amp;#8221;"
0
[ 2, 8406, 21, 287, 11720, 8, 457, 3724, 20, 118, 2665, 453, 8, 3326, 23504, 19, 13, 26120, 800, 3726, 3726, 184, 92, 287, 11720, 8, 457, 7887, 13, 5, 49, 9, 62, 9, 469, 8, 3326, 3724, 6, 44, 3494, 20, 118, 2665, 23504, 8, 200...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
A way to determine a process's "real" memory usage, i.e. private dirty RSS? === Tools like 'ps' and 'top' report various kinds of memory usages, such as the VM size and the Resident Set Size. However, none of those are the "real" memory usage: - Program code is shared between multiple instances of the same program. - Shared library program code is shared between all processes that use that library. - Some apps fork off processes and share memory with them (e.g. via shared memory segments). - The virtual memory system makes the VM size report pretty much useless. - RSS is 0 when a process is swapped out, making it not very useful. - Etc etc. I've found that the private dirty RSS, as reported by Linux, is the closest thing to the "real" memory usage. This can be obtained by summing all Private_Dirty values in /proc/somepid/smaps. However, do other operating systems provide similar functionality? If not, what are the alternatives? In particular, I'm interested in FreeBSD and OS X.
0
[ 2, 21, 161, 20, 3746, 21, 953, 22, 18, 13, 7, 7467, 7, 1912, 7514, 15, 31, 9, 62, 9, 932, 6121, 13, 1224, 18, 60, 800, 3726, 3726, 4672, 101, 13, 22, 1919, 22, 17, 13, 22, 3880, 22, 1330, 617, 8623, 16, 1912, 7514, 18, 15,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to debug a LINQ Statement === I have a Linq to objects statement var confirm = from l in lines.Lines where (l.LineNumber == startline.LineNumber) || (l.LineNumber == endline.LineNumber) select l; The confirm object is returning an 'Object Null or Not A Reference' at at System.Linq.Enumerable.WhereListIterator`1.MoveNext() If the result of the query was empty, it would just return an empty enumerator. I know for a fact that there are no null objects in the statement. Is it possible to step through the LINQ statement to see where it is falling over?
0
[ 2, 184, 20, 121, 16254, 21, 6294, 1251, 3331, 800, 3726, 3726, 31, 57, 21, 6294, 1251, 20, 3916, 3331, 4033, 10265, 800, 37, 644, 19, 1560, 9, 7939, 113, 13, 5, 255, 9, 1143, 16299, 800, 3726, 799, 1143, 9, 1143, 16299, 6, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to search cvs comment history === I am aware of this command: `cvs log -N -w<userid> -d"1 day ago"` Unfortunately this generates a formatted report with lots of newlines in it, such that the file-path, the file-version, and the comment-text are all on separate lines. Therefore it is difficult to scan it for all occurrences of comment text, (eg, grep), and correlate the matches to file/version. (Note that the log output would be perfectly acceptable, if only cvs could perform the filtering natively.)
0
[ 2, 184, 20, 2122, 13, 12732, 18, 6484, 447, 800, 3726, 3726, 31, 589, 3854, 16, 48, 1202, 45, 13, 1, 12732, 18, 6738, 13, 8, 103, 13, 8, 499, 1, 3699, 5175, 1, 13, 8, 43, 7, 165, 208, 1464, 7, 1, 6200, 48, 7920, 18, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I automatically update a ModifiedAt field with ADO.NET Entity Framework? === Ruby on Rails has [magic timestamping fields][1] that are automatically updated when a record is created or updated. I'm trying to find similar functionality in Entity Framework. I've considered database triggers and a SavingChanges event handler. Is there a more obvious method I'm overlooking? [1]: http://wiki.rubyonrails.com/rails/pages/Timestamping
0
[ 2, 184, 107, 31, 7499, 11100, 21, 5372, 721, 575, 29, 21, 537, 9, 2328, 9252, 6596, 60, 800, 3726, 3726, 10811, 27, 2240, 18, 63, 636, 21200, 436, 4919, 3181, 2861, 500, 2558, 165, 500, 30, 50, 7499, 6372, 76, 21, 571, 25, 679, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I extend msbuild to run a custom preprocessor on .cs files? === I have a custom program which preprocesses a C# file and generates a new C# file as output. I would like to invoke this from msbuild on each of the C# files in the project, then compile the output files instead of the original C# files. How would I go about this?
0
[ 2, 184, 92, 31, 7206, 4235, 29361, 20, 485, 21, 5816, 782, 16835, 248, 27, 13, 9, 6824, 6488, 60, 800, 3726, 3726, 31, 57, 21, 5816, 625, 56, 782, 16835, 160, 21, 272, 5910, 3893, 17, 7920, 18, 21, 78, 272, 5910, 3893, 28, 519...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
User Interface for creating Oracle SQL Loader control file === Is there a good user interface for authoring Oracle SQL Loader control files? PL/SQL Developer includes a "Text Importer" feature (that reminds one of the Excel import wizard) to import text files into tables, but uses a proprietary format instead of the SQL Loader format. Something like this for the SQL Loader format would be quite helpful.
0
[ 2, 4155, 6573, 26, 2936, 15759, 4444, 255, 6305, 106, 569, 3893, 800, 3726, 3726, 25, 80, 21, 254, 4155, 6573, 26, 1314, 68, 15759, 4444, 255, 6305, 106, 569, 6488, 60, 12443, 118, 18, 22402, 10058, 1103, 21, 13, 7, 11969, 9010, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you use the ellipsis slicing syntax in Python? === This came up in [Hidden features of Pyton][1], but I can't seem good documentation or examples that explain how the feature works. [1]: http://stackoverflow.com/questions/101268/hidden-features-of-python
0
[ 2, 184, 107, 42, 275, 14, 13, 4223, 16459, 18, 27646, 22649, 19, 20059, 60, 800, 3726, 3726, 48, 281, 71, 19, 636, 1822, 43, 817, 967, 16, 7103, 444, 500, 2558, 165, 500, 15, 47, 31, 92, 22, 38, 2260, 254, 13945, 54, 3770, 30,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you ensure multiple threads can safely access a class field? === When a class field is accessed via a getter method by multiple threads, how do you maintain thread safety? Is the synchronized keyword sufficient? Is this safe: public class SomeClass { private int val; public synchronized int getVal() { return val; } private void setVal(int val) { this.val = val; } } or does the setter introduce further complications?
0
[ 2, 184, 107, 42, 4062, 1886, 20396, 92, 9817, 1381, 21, 718, 575, 60, 800, 3726, 3726, 76, 21, 718, 575, 25, 12904, 1197, 21, 164, 815, 2109, 34, 1886, 20396, 15, 184, 107, 42, 4027, 9322, 2108, 60, 25, 14, 27202, 1246, 9587, 67...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What techniques do you use when writing your own cryptography methods? === For years, maybe 10, I've been fascinated with cryptography. I read a book about XOR bit-based encryption, and have been hooked ever since thing. I guess it's more fair to say that I'm fascinated by those who can break various encryption methods, but I digress. To the point -- what methods do you use when writing cryptography? Is obfuscation good in cryptography? I use two key-based XOR encryption, various hashing techniques (SHA1) on the keys, and simple things such as reversing strings here and there, etc. I'm interested to see what others think of and try when writing a not-so-out-of-the-box encryption method. Also -- any info on how the pros go about "breaking" various cryptography techniques would be interesting as well. Ian
0
[ 2, 98, 4212, 107, 42, 275, 76, 1174, 154, 258, 16277, 15438, 3195, 60, 800, 3726, 3726, 26, 122, 15, 913, 332, 15, 31, 22, 195, 74, 17452, 29, 16277, 15438, 9, 31, 1302, 21, 360, 88, 993, 248, 1142, 8, 1281, 24420, 15, 17, 57,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why is my Drupal site logging out users when a Javascript function is called? === I have Drupal 5 site where a button is clicked and it calls a JavaScript function. The function basically builds a string, and then redirects to another page on our site. After clicking the button, sometimes the user gets logged out and sees the "Access Denied" screen, even though they were previously logged in. The page where they are being redirected has the same access restrictions as the previous page, but regardless of that, they shouldn't be getting logged out. One user has this happen about half the time (the other half it works as it should), and another user has reported always being logged out when clicking that button. However, I'm always able to run it without a hitch on the machines I use, and I suspect it has to do with them using IE6. Has anyone run across this issue before, or have any ideas on what could be causing this? I've searched and posted in the Drupal forum, and searched in this forum, and have had no luck yet.
0
[ 2, 483, 25, 51, 15708, 6720, 689, 13, 13919, 70, 3878, 76, 21, 8247, 8741, 1990, 25, 227, 60, 800, 3726, 3726, 31, 57, 15708, 6720, 331, 689, 113, 21, 5167, 25, 15802, 17, 32, 3029, 21, 8247, 8741, 1990, 9, 14, 1990, 11374, 1895...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Failed software development === I have to do a project based on failed software development and implementation in any organizations or case from the internet and then do a forensic investigation on it. can anyone suggest how can i do this project. I have no idea about failed project. Can anyone suggest me....
0
[ 2, 1702, 2306, 522, 800, 3726, 3726, 31, 57, 20, 107, 21, 669, 432, 27, 1702, 2306, 522, 17, 6123, 19, 186, 2856, 54, 610, 37, 14, 2620, 17, 94, 107, 21, 15218, 3193, 27, 32, 9, 92, 1276, 5601, 184, 92, 31, 107, 48, 669, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Datetime localization === My database is located in e.g. california. My user table has all the user's timezone e.g. -0700 UTC How can I adjust the time from my database server whenever I display a date to the user who lives in e.g. new york? UTC/GMT -4 hours
0
[ 2, 1231, 891, 375, 1829, 800, 3726, 3726, 51, 6018, 25, 335, 19, 13, 62, 9, 263, 9, 751, 9, 51, 4155, 859, 63, 65, 14, 4155, 22, 18, 85, 11661, 13, 62, 9, 263, 9, 13, 8, 387, 7915, 13, 11440, 184, 92, 31, 14328, 14, 85, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Set up Apache for local development/testing? === I've been impressed by the screencasts for Rails that demonstrate the built-in web server and database to allow development and testing to occur on the local machine. How can I get an instance of Apache to execute a project directory as its DocumentRoot, and maybe serve up the files on port 8080 (or something similar)? The reason why I'm asking is because I'm going to be trying out CodeIgniter, and I would like to use it for multiple projects and would rather not clutter up my machine's DocumentRoot with each one. Suggestions on how to do database migrations are also welcome.
0
[ 2, 309, 71, 17140, 26, 375, 522, 118, 10543, 68, 60, 800, 3726, 3726, 31, 22, 195, 74, 7059, 34, 14, 2324, 6146, 18, 26, 2240, 18, 30, 10847, 14, 392, 8, 108, 2741, 8128, 17, 6018, 20, 1655, 522, 17, 4431, 20, 3744, 27, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Selecting values grouped to a specific identifer === I have an application that tracks high scores in a game. I have a **user\_scores** table that maps a user_id to a score. I need to return the 5 highest scores, but only 1 high score for any *specific* user. So if user X has the 5 highest scores on a purely numerical basis, I simply return the highest one and then the next 4 user scores. I have tried to use: SELECT user_id, score FROM user_scores ORDER BY score DESC GROUP BY user_id LIMIT 5 But it seems that MySQL drops any user_id with more than 1 score.
0
[ 2, 20764, 4070, 19511, 20, 21, 1903, 13, 13384, 16344, 800, 3726, 3726, 31, 57, 40, 3010, 30, 1633, 183, 7369, 19, 21, 250, 9, 31, 57, 21, 13, 1409, 16704, 1, 15077, 18, 1409, 859, 30, 6867, 21, 4155, 1, 1340, 20, 21, 1618, 9,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I join a list into a string (caveat)? === Along the lines of my previous [question](http://stackoverflow.com/questions/118096/how-can-i-parse-a-comma-delimited-string-into-a-list-caveat), how can i join a list of strings into a string such that values get quoted cleanly. Something like: ['a', 'one "two" three', 'foo, bar', """both"'"""] into: a, 'one "two" three', "foo, bar", "both\"'" I suspect that the csv module will come into play here, but i'm not sure how to get the output I want.
0
[ 2, 184, 92, 31, 1865, 21, 968, 77, 21, 3724, 13, 5, 793, 195, 721, 6, 60, 800, 3726, 3726, 303, 14, 1560, 16, 51, 1158, 636, 24652, 500, 5, 21127, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 18, 118, 11479, 2545, 12626, 1544, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the performance difference of pki to symmetric encryption? === We are looking to do some heavy security requirements on our project, and we need to do a lot of encryption that is highly performant. I think that I know that PKI is much slower and more complex than symmetric encrpyption, but I can't find the numbers to back up my feelings.
0
[ 2, 98, 25, 14, 956, 2841, 16, 351, 1520, 20, 13, 16367, 24420, 60, 800, 3726, 3726, 95, 50, 699, 20, 107, 109, 1278, 1221, 4786, 27, 318, 669, 15, 17, 95, 376, 20, 107, 21, 865, 16, 24420, 30, 25, 2157, 2985, 1830, 9, 31, 27...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Tool to monitor network connectivity in Windows === What tool would you recommend to monitor the connectivity status of a machine, this is if a given machine it is able to connect to some web servers over time. It should be able to log the status. There is a long list of freeware at http://ping-monitors.qarchive.org/
0
[ 2, 5607, 20, 7626, 982, 24026, 19, 1936, 800, 3726, 3726, 98, 5607, 83, 42, 12360, 20, 7626, 14, 24026, 1782, 16, 21, 1940, 15, 48, 25, 100, 21, 504, 1940, 32, 25, 777, 20, 6379, 20, 109, 2741, 17595, 84, 85, 9, 32, 378, 44, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I create a non-standard type with SOAPpy? === I am calling [a WSDL web service][1] from Python using [SOAPpy][2]. The call I need to make is to the method [Auth_login][3]. This has 2 arguments - the first, a string being the API key; the second, a [custom type containing username and password][4]. The custom type is called Auth_credentialsData which contains 2 values as stings - one for the username and one for the password. How can I create this custom type using SOAPpy? I tried passing a list and a dictionary, none of which work. Code so far: from SOAPpy import WSDL wsdlUrl = 'https://ws.pingdom.com/soap/PingdomAPI.wsdl' client = WSDL.Proxy(wsdlUrl) Tried both: credentials = ['email@example.com', 'password'] client.Auth_login('key', credentials) and credentials = {'username': 'email@example.com', 'password': 'passsword'} client.Auth_login('key', credentials) both of which give an authentication failed error. [1]: http://www.pingdom.com/services/api-documentation/ [2]: http://pywebsvcs.sourceforge.net/ [3]: http://www.pingdom.com/services/api-documentation/operation_login [4]: http://www.pingdom.com/services/api-documentation/class_CredentialsData
0
[ 2, 184, 107, 31, 1600, 21, 538, 8, 15566, 1001, 29, 6447, 6448, 60, 800, 3726, 3726, 31, 589, 2555, 636, 58, 619, 18, 8643, 2741, 365, 500, 2558, 165, 500, 37, 20059, 568, 636, 656, 7753, 93, 500, 2558, 135, 500, 9, 14, 645, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Login module for Website === What are the community's recommendations for an user login and management module for a custom-designed Website? The requirements: <ol> <li>E-mail address + security-checked password</li> <li>Mechanism of recovering lost password</li> <li>Database of usernames, managed by privileged users ("administrators")</li> <li>Another data item is retained per user (such as username)</li> <li>Log of login/logout activity by each user</li> <li>Follows the current best practices in Website login management</li> </ol> In the client side, it should support both W3C standards compliant and broken but popular browsers. In the server side, it should use PHP 5, Perl or Python, with PHP5/Perl preferred.
0
[ 2, 6738, 108, 12613, 26, 2271, 800, 3726, 3726, 98, 50, 14, 514, 22, 18, 12121, 26, 40, 4155, 6738, 108, 17, 1097, 12613, 26, 21, 5816, 8, 20555, 2271, 60, 14, 4786, 45, 13, 1, 1823, 1, 13, 1, 1210, 1, 62, 8, 8079, 3218, 275...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Action Naming Convention === Has anybody established a good naming convention for action in MVC? I was specifically looking at ASP.net MVC but it is a general question. For instance I have an action which displays the login screen (Login) and one which process the login request from that page (LoginTest). I'm not keen on the names and I have a lot of the applicaiton left to write.
0
[ 2, 1028, 10929, 3087, 800, 3726, 3726, 63, 11181, 613, 21, 254, 10929, 3087, 26, 1028, 19, 307, 8990, 60, 31, 23, 3524, 699, 35, 28, 306, 9, 2328, 307, 8990, 47, 32, 25, 21, 297, 1301, 9, 26, 4851, 31, 57, 40, 1028, 56, 9412, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MySQL Query: Select most-recent items across two tables === (Sorry the title isn't more help. I have a database of media-file URLs that came from two sources: RSS feeds and manual entries. I want to find the ten most-recently added URLs, but a maximum of one from any feed. To simplify, table 'urls' has columns 'url, feed_id, timestamp'. feed_id='' for any URL that was entered manually. How would I write the query? Remember, I want the ten most-recent urls, but only one from any single feed_id.
0
[ 2, 51, 18, 22402, 25597, 45, 5407, 127, 8, 99, 5089, 3755, 464, 81, 7484, 800, 3726, 3726, 13, 5, 8959, 14, 581, 2532, 22, 38, 91, 448, 9, 31, 57, 21, 6018, 16, 941, 8, 16877, 13, 911, 7532, 30, 281, 37, 81, 2662, 45, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
LINQ + type tables best practices === Whats the best design pattern to use for LINQ and type tables that exist in SQL. I have tables in SQL that constrain values to type values, and I want to be able to use this in my C# code as strongly typed values. My current approach for a 'PackageStatus' type is as follows: **SQL Table** >` PackageStatusType (int)`<br> `desc (varchar)` **C# Class - using LINQ** public class PackageStatusType { static PackageStatusType() { var lookup = (from p in DataProvider.ShipperDB.PackageStatus select p).ToDictionary(p => p.Desc); Unknown = lookup["Unknown"]; LabelGenerated = lookup["Label generated"]; ReadyForCollection = lookup["Ready for pickup"]; PickedUp = lookup["Picked up"]; InTransit = lookup["In Transit"]; DeliveryAttempted = lookup["Delivery attempted"]; DeliveredByHand = lookup["By hand"]; DeliveryFailed = lookup["Delivery failed"]; Delivered = lookup["Delivered"]; Voided = lookup["Voided"]; } public static ShipperDB.Model.PackageStatus Unknown; public static ShipperDB.Model.PackageStatus LabelGenerated; public static ShipperDB.Model.PackageStatus ReadyForCollection; public static ShipperDB.Model.PackageStatus PickedUp; public static ShipperDB.Model.PackageStatus InTransit; public static ShipperDB.Model.PackageStatus DeliveryAttempted; public static ShipperDB.Model.PackageStatus DeliveryFailed; public static ShipperDB.Model.PackageStatus Delivered; public static ShipperDB.Model.PackageStatus DeliveredByHand; public static ShipperDB.Model.PackageStatus Voided; } I then can put `PackageStatusType.Delivered` in my C# code and it will correctly reference the right LINQ entity. This works fine, but makes me wonder: a) how can i make this more efficient b) why doesn't Microsoft seem to provide anything to create strongly typed type tables c) is my database design even a good one? d) what is everyone else doing! thanks!
0
[ 2, 6294, 1251, 2754, 1001, 7484, 246, 5242, 800, 3726, 3726, 98, 18, 14, 246, 704, 3732, 20, 275, 26, 6294, 1251, 17, 1001, 7484, 30, 3182, 19, 4444, 255, 9, 31, 57, 7484, 19, 4444, 255, 30, 11608, 11809, 4070, 20, 1001, 4070, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How would you implement a badge system like StackOverflow's? === Just wondering how you would do this. Would you have some sort of process that scanned through all the actions that took place over the past X minutes? Would you trigger a badge update check every time any action took place (up vote, down vote, tag, etc.)? It seems like this would be a relatively expensive process one way or another.
0
[ 2, 184, 83, 42, 8713, 21, 8715, 329, 101, 7566, 2549, 9990, 22, 18, 60, 800, 3726, 3726, 114, 5712, 184, 42, 83, 107, 48, 9, 83, 42, 57, 109, 2058, 16, 953, 30, 12752, 120, 65, 14, 3078, 30, 199, 209, 84, 14, 640, 993, 902, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What would a Database Diagram (ER Diagram/Table Layout) look like for measuring distribution of something? === If I was, for example, going to *count* "activities" across many computers and show a rollup of that activity, what would the database look like to store the data? Simply this? Seems too simple. I'm overthinking this. ACTIVITYID COUNT ---------- -----
0
[ 2, 98, 83, 21, 6018, 14161, 13, 5, 106, 14161, 118, 5924, 9106, 6, 361, 101, 26, 9937, 2523, 16, 301, 60, 800, 3726, 3726, 100, 31, 23, 15, 26, 823, 15, 228, 20, 1637, 16549, 2483, 13, 7, 19516, 3808, 7, 464, 151, 7774, 17, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Stored Procedures, mySQL and PHP5 === The question is a fairly open one. I've been using Stored Procs with MS SQLServer for some time with classic ASP and ASP.net and love them, lots. I do have a small amount of experience with PHP4 and mySQL, and previously when working with these was limited to in-line SQL. I have a small hobby project I'm working on and for various reasons have gone the LAMP route. Any hints/tricks/traps or good starting points to get into using stored procedures with mySQL & PHP5? Yes my version of mySQL supports Stored Procedures so lets skip that trap!
0
[ 2, 8214, 8876, 15, 51, 18, 22402, 17, 13, 26120, 264, 800, 3726, 3726, 14, 1301, 25, 21, 6647, 368, 53, 9, 31, 22, 195, 74, 568, 8214, 13, 15617, 18, 29, 4235, 4444, 255, 10321, 106, 26, 109, 85, 29, 2732, 28, 306, 17, 28, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Project retirement or archiving === What is the best way to retire a currently active project? I've been working on this one for a while now and I think its time to let go. Without going into too much detail, there are other projects and technologies that are way ahead now and I don't see much value in investing in it any further. What have you done to retire a project and what is the process like?
2
[ 2, 669, 3543, 54, 13, 25328, 68, 800, 3726, 3726, 98, 25, 14, 246, 161, 20, 10097, 21, 871, 1348, 669, 60, 31, 22, 195, 74, 638, 27, 48, 53, 26, 21, 133, 130, 17, 31, 277, 82, 85, 20, 408, 162, 9, 366, 228, 77, 266, 212, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you deal with concurrency in NHibernate? === How do you support optimistic / pessimistic concurrency using NHibernate?
0
[ 2, 184, 107, 42, 1183, 29, 25547, 19, 12109, 15191, 8820, 60, 800, 3726, 3726, 184, 107, 42, 555, 24408, 13, 118, 10457, 8672, 3771, 25547, 568, 12109, 15191, 8820, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Horrible redraw performance of the DataGridView on one of my two screens. === I've actually solved this, but I'm posting it for posterity. ---------------------------------------- I ran into a very odd issue with the DataGridView on my dual-monitor system. The issue manifests itself as an EXTREMELY slow repaint of the control (*like 30 seconds for a full repaint*), but only when it is on one of my screens. When on the other, the repaint speed is fine. I have an nVidia 8800 GT with the latest non-beta drivers (175. something). Is it a driver bug? I'll leave that up in the air, since I have to live with this particular configuration. (It does not happen on ATI cards, though...) The paint speed has nothing to do with the cell contents, and custom drawing doesn't improve the performance at all - even when just painting a solid rectangle. I later find out that placing a ElementHost (from the System.Windows.Forms.Integration namespace) on the form corrects the problem. It doesn't have to be messed with, it just needs to be a child of the form the DataGridView is also on. It can be resized to (0, 0) as long as the *Visible* property is true. Not wanting to explicitly add the .Net 3/3.5 dependency to my app, I make a method to create this control at runtime (if it can) using reflection. It works, and at least it fails gracefully on machines that don't have the required library - it just goes back to being slow. This method also lets me apply to fix while the app is running, making it easier to see what the WPF libraries are changing on my form (using Spy++). After a lot of trial and error, I notice that enabling double buffering on the control itself (as opposed to just the form) corrects the issue! ---------- So, you just need to make a custom class based off of DataGridView so you can enable its DoubleBuffering. That's it! class CustomDataGridView: DataGridView { public CustomDataGridView() { DoubleBuffered = true; } } As long as all of my instances of the grid are using this custom version, all is well. If I ever run into a situation caused by this where I'm not able to use the subclass solution (if I don't have the code), I suppose I could try to inject that control onto the form :) (*although I'll be more likely to try using reflection to force the DoubleBuffered property on from the outside to once again avoid the dependency*). It is sad that such a trivially simple thing ate up so much of my time...
0
[ 2, 9244, 402, 12404, 956, 16, 14, 1054, 16375, 4725, 27, 53, 16, 51, 81, 14236, 9, 800, 3726, 3726, 31, 22, 195, 1121, 15091, 48, 15, 47, 31, 22, 79, 15669, 32, 26, 13021, 856, 9, 13, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to unit test webforms apps ( ASP.NET ) === What is the best way to Unit test my webforms applications?
0
[ 2, 98, 25, 14, 246, 161, 20, 1237, 1289, 2741, 4190, 18, 4865, 18, 13, 5, 28, 306, 9, 2328, 13, 6, 800, 3726, 3726, 98, 25, 14, 246, 161, 20, 1237, 1289, 51, 2741, 4190, 18, 3767, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
What is the best way to send a HTML email from Asp.net MVC? === I would like to be able to render a view and send it as an email, similar to what can be done with Ruby on Rails. What is the best way to do this?
0
[ 2, 98, 25, 14, 246, 161, 20, 2660, 21, 13, 15895, 8517, 37, 28, 306, 9, 2328, 307, 8990, 60, 800, 3726, 3726, 31, 83, 101, 20, 44, 777, 20, 16535, 21, 1418, 17, 2660, 32, 28, 40, 8517, 15, 835, 20, 98, 92, 44, 677, 29, 108...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
Can you control the speed of a video clip playing in Quartz Composer? === Is there a way to manipulate the speed of the video playback? I'm especially interested in a way to slow down with frame blending, exactly like the function in Final Cut Pro.
0
[ 2, 92, 42, 569, 14, 1362, 16, 21, 763, 12229, 791, 19, 20913, 3039, 60, 800, 3726, 3726, 25, 80, 21, 161, 20, 18468, 14, 1362, 16, 14, 763, 21306, 60, 31, 22, 79, 1118, 3158, 19, 21, 161, 20, 2276, 125, 29, 3523, 25359, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
How can I change Drupal's default menu strings without hacking the core files or using the String Override plugin? === Title says it all. If you need more details, let me know.
0
[ 2, 184, 92, 31, 753, 15708, 6720, 22, 18, 12838, 11379, 7887, 366, 25787, 14, 2884, 6488, 54, 568, 14, 3724, 84, 11891, 10922, 108, 60, 800, 3726, 3726, 581, 898, 32, 65, 9, 100, 42, 376, 91, 3289, 15, 408, 55, 143, 9, 3, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Creating a ZIP file on Windows (XP/2003) in C/C++ === I am looking for a way to create a ZIP file from a folder in Windows C/C++ APIs. I can find the way to do this in VBScript using the Shell32.Application CopyHere method, and I found a tutorial explaining how to do it in C# also, but nothing for the C API (C++ is fine too, project already uses MFC). I'd be really grateful if anyone can share some sample C code that can successfully create a zip file on Windows XP/2003. Failing that, if someone can find solid docs or a tutorial that would be great, since MSDN searches don't turn up much. I'm really hoping to avoid having to ship a third-party lib for this, because the functionality is obviously there, I just can't figure out how to access it. Google searches turn up nothing useful, just tantalizing bits and pieces of information. Here's hoping someone in the community has sorted this out and can share it for posterity!
0
[ 2, 2936, 21, 12133, 3893, 27, 1936, 13, 5, 396, 306, 118, 3325, 6, 19, 272, 118, 150, 20512, 800, 3726, 3726, 31, 589, 699, 26, 21, 161, 20, 1600, 21, 12133, 3893, 37, 21, 19294, 19, 1936, 272, 118, 150, 20512, 21, 8954, 9, 31...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I call a web service from javascript === Say I have a web service http://www.example.com/webservice.pl?q=google which returns text "google.com". I need to call this web service (http://www.example.com/webservice.pl) from a JavaScript module with a parameter (q=google) and then use the return value ("google.com") to do further processing. What's the simplest way to do this? I am a total JavaScript newbie, so any help is much appreciated.
0
[ 2, 184, 107, 31, 645, 21, 2741, 365, 37, 8247, 8741, 800, 3726, 3726, 395, 31, 57, 21, 2741, 365, 7775, 6903, 6483, 9, 29041, 9, 960, 118, 14113, 11449, 9, 5727, 60, 1251, 3726, 16111, 4875, 56, 4815, 1854, 13, 7, 16111, 4875, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Do you find podcasts helps you program? === I wanted to get some ideas on whether people find it helpful to listen to podcasts about technology, programming while not computing and if there is any one that listens while programming. I heard that it can be distracting while trying to program but I wonder if listening to podcasts while not programming helps people get inspired. How have podcasts helped your career? I know I mentioned podcasts in a job interview and they really looked at me like I was a super-nerd. Stories are welcome.
4
[ 2, 107, 42, 477, 15124, 18, 7778, 42, 625, 60, 800, 3726, 3726, 31, 417, 20, 164, 109, 3478, 27, 1472, 148, 477, 32, 15600, 20, 3834, 20, 15124, 18, 88, 1099, 15, 3143, 133, 52, 10626, 17, 100, 80, 25, 186, 53, 30, 3834, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a way to use the same file for both a RTP and a kernel module in vxWorks? === We have a vxWorks application that we would like to deploy either as a kernel module, or as a Real-Time process. Is there a way to do this from the same source file, or do we have to create one file for the kernel module and another for the RTP?
0
[ 2, 25, 80, 21, 161, 20, 275, 14, 205, 3893, 26, 156, 21, 761, 13726, 17, 21, 17007, 12613, 19, 566, 396, 7684, 60, 800, 3726, 3726, 95, 57, 21, 566, 396, 7684, 3010, 30, 95, 83, 101, 20, 17617, 694, 28, 21, 17007, 12613, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...