unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
UITableView issue when using separate delegate/dataSource === To start with what works, I have a UITableView which has been placed onto an XCode-generated view using Interface Builder. The view's File Owner is set to an XCode-generated subclass of UIViewController. To this subclass I have added working implementations of numberOfSectionsInTableView: tableView:numberOfRowsInSection: and tableView:cellForRowAtIndexPath: and the Table View's dataSource and delegate are connected to this class via the File Owner in Interface Builder. The above configuration works with no problems. The issue occurs when I want to move this Table View's dataSource and delegate implementations out to a separate class. To accomplish this, I try the following: <ul> <li>Create a new subclass of UITableViewController in XCode</li> <li>Move the implementations of numberOfSectionsInTableView: tableView:numberOfRowsInSection: and tableView:cellForRowAtIndexPath: to the new subclass</li> <li>Add a Table View Controller to the top level of the existing XIB in InterfaceBuilder and set its class to match the new subclass</li> <li>Remove the Table View's existing dataSource and delegate connections and connect them to the new Table View Controller</li> </ul> When complete, I do not have a working Table View. I end up with one of three outcomes which can seemingly happen at random: <ul> <li>When the Table View loads, I get a runtime error indicating I am sending tableView:cellForRowAtIndexPath: to an object which does not recognize it</li> <li>When the Table View loads, the project breaks into the debugger without error</li> <li>There is no error, but the Table View does not appear</li> </ul> With some debugging and having created a basic project just to reproduce this issue, I am usually seeing the 3rd option above (no error but no visible table view). I added some NSLog calls and found that although numberOfSectionsInTableView and numberOfRowsInSection are both getting called, cellForRowAtIndexPath is not. I am convinced I'm missing something really simple and was hoping the answer may be obvious to someone with more experience than I have. If this doesn't turn out to be an easy answer I would be happy to update with some code or a sample project. Thanks for your time!
0
[ 2, 13, 11193, 579, 4725, 1513, 76, 568, 1725, 11300, 118, 18768, 12097, 800, 3726, 3726, 20, 799, 29, 98, 693, 15, 31, 57, 21, 13, 11193, 579, 4725, 56, 63, 74, 1037, 1204, 40, 993, 9375, 8, 25314, 1418, 568, 6573, 14960, 9, 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...
DBus-Server in Java? === Is there a server implementation of [DBus][1] for Java? There's a [lib][2] for clients and services (not servers). [1]: http://www.freedesktop.org/wiki/Software/dbus [2]: http://dbus.freedesktop.org/doc/dbus-java/
0
[ 2, 13, 43, 3822, 8, 10321, 106, 19, 8247, 60, 800, 3726, 3726, 25, 80, 21, 8128, 6123, 16, 636, 43, 3822, 500, 2558, 165, 500, 26, 8247, 60, 80, 22, 18, 21, 636, 8326, 500, 2558, 135, 500, 26, 7421, 17, 687, 13, 5, 1270, 175...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 bandwidth improvement from installing a 32-bit operating system on a 64-bit machine? === Knuth [recently objected][1] to 64-bit systems, saying that for programs which fit in 4 gigs of memory, "they effectively throw away half of the cache" because the pointers are twice as big on a 32-bit system. My question is: can this problem be avoided by installing a 32-bit operating system on a 64-bit machine? And are there any bandwidth-intensive benchmarks which demonstrate the advantage in this case? [1]: http://www-cs-faculty.stanford.edu/~knuth/news08.html
0
[ 2, 25, 80, 21, 23392, 6984, 37, 25429, 21, 2512, 8, 3326, 2455, 329, 27, 21, 4384, 8, 3326, 1940, 60, 800, 3726, 3726, 25938, 252, 636, 99, 5089, 102, 18092, 500, 2558, 165, 500, 20, 4384, 8, 3326, 1242, 15, 1148, 30, 26, 1726, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 auto load a database jar in Groovy without using the -cp switch? === I want to simplify my execution of a Groovy script that makes calls to an Oracle database. How do I add the ojdbc jar to the default classpath so that I can run groovy RunScript.groovy instead of groovy -cp ojdbc5.jar RunScript.groovy
0
[ 2, 184, 107, 31, 3108, 6305, 21, 6018, 5112, 19, 3452, 2026, 93, 366, 568, 14, 13, 8, 7439, 5521, 60, 800, 3726, 3726, 31, 259, 20, 28257, 51, 5769, 16, 21, 3452, 2026, 93, 3884, 30, 1364, 3029, 20, 40, 15759, 6018, 9, 184, 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...
How do you converting an image to black and white in PHP === How does one go about converting an image to black and white in PHP? Not just turning it into greyscale but every pixel made black or white?
0
[ 2, 184, 107, 42, 19583, 40, 1961, 20, 319, 17, 359, 19, 13, 26120, 800, 3726, 3726, 184, 630, 53, 162, 88, 19583, 40, 1961, 20, 319, 17, 359, 19, 13, 26120, 60, 52, 114, 2101, 32, 77, 2682, 5093, 47, 352, 18146, 117, 319, 54, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
what ever happened to the entry keyword? === While cruising through my white book the other day, I noticed in the list of c keywords. **entry** is one of the keywords on that list. It is reserved for future use. Thinking back to my Fortran days, there was a function of some sort that used an **entry** statement to make a second argument signature, or entry point into a function. Is this what **entry** was originally intended to be used for? or something completely different? What is the story on the **entry** keyword?
0
[ 2, 98, 462, 1190, 20, 14, 2792, 1246, 9587, 60, 800, 3726, 3726, 133, 25338, 120, 51, 359, 360, 14, 89, 208, 15, 31, 2711, 19, 14, 968, 16, 272, 1246, 12827, 9, 13, 1409, 18195, 1409, 25, 53, 16, 14, 1246, 12827, 27, 30, 968, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 include a newline character in a string in Delphi? === I want to create a string that spans multiple lines to assign to a Label Caption property. How is this done in Delphi?
0
[ 2, 184, 107, 31, 468, 21, 78, 1143, 925, 19, 21, 3724, 19, 23030, 60, 800, 3726, 3726, 31, 259, 20, 1600, 21, 3724, 30, 16967, 1886, 1560, 20, 13952, 20, 21, 1899, 26622, 1354, 9, 184, 25, 48, 677, 19, 23030, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Storing video duration time in sql server. === What's the most appropriate type used to store the duration time information of a video in sql server?
0
[ 2, 25615, 763, 9403, 85, 19, 4444, 255, 8128, 9, 800, 3726, 3726, 98, 22, 18, 14, 127, 4593, 1001, 147, 20, 1718, 14, 9403, 85, 676, 16, 21, 763, 19, 4444, 255, 8128, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Deploying Test Resources in the iPhone Simulator === I am working on an iPhone Application that stores images in the Applications 'Document' folder. I am currently doing the majority of my testing using the iPhone Simulator. In order to aid development I want to have some test images pre-loaded into the Document folder of the application that my application can access and display. I have discovered that when running the application in the iPhone simulator you can access the applications file system via /Users/<user>/Library/Application Support/iPhone Simulator/User The application is then represented by a UID and within that is the Document folder. Placing the images in this folder and they adding their path to my applications database allows me display test data. The problem is that each time I build and redeploy the application the old application folder is deleted and a new one is created, this means I have to copy the images to the new application folder and update the database. Is there a way to automatically add test resources to an application when building and deploying? Should I be putting the test data in the bundle instead, and if so is there a way to not include the test data when building the actual release? Many thanks in advance
0
[ 2, 17617, 68, 1289, 2566, 19, 14, 21024, 24565, 800, 3726, 3726, 31, 589, 638, 27, 40, 21024, 3010, 30, 4134, 3502, 19, 14, 3767, 13, 22, 28132, 22, 19294, 9, 31, 589, 871, 845, 14, 1698, 16, 51, 4431, 568, 14, 21024, 24565, 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...
ASP.NET Image uploading with Resizing === I have an aspx page which will upload images to server harddisk from client pc But now i need to change my program in such a way that it would allow me to resize the image while uploading. Does anyone has any idea on this ? I couldnt not find such properties/methods with Input file server control Any one there to guide me ?
0
[ 2, 28, 306, 9, 2328, 1961, 71, 16866, 29, 10719, 3335, 800, 3726, 3726, 31, 57, 40, 28, 306, 396, 2478, 56, 129, 71, 8294, 3502, 20, 8128, 552, 2906, 197, 37, 6819, 5168, 47, 130, 31, 376, 20, 753, 51, 625, 19, 145, 21, 161, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Thou shalt have only Autonomous Services === One of the tenets of SOA is: "Services Are Autonomous". I have 2 services. Service A depends on Service B. Service A cannot serve clients unless Service B is up and running. Do I violate the tenet here? Or if autonomous must mean "decoupled", do I satisfy the tenet if I have a failsafe (say another instance of Service B running elsewhere that's connected to if primary instance is down.)? This may satisfy my availability requirements, but I'm not sure how this can reduce my dependency. Yes, the failsafe could even be Service C from a third party and in this case I do improve my autonomy. Or does the tenet just mean that the services have to be designed as "fifedoms" with well-defined interfaces for getting the data in & out. However, some gurus seem to think that you need to even store this data you receive internally to reduce dependency and maintain your autonomy... Is it a mistake if I were to treat services as components with messaging? :) Thoughts?
0
[ 2, 18024, 17824, 38, 57, 104, 8087, 687, 800, 3726, 3726, 53, 16, 14, 652, 6095, 16, 86, 58, 25, 45, 13, 7, 11449, 18, 50, 8087, 7, 9, 31, 57, 172, 687, 9, 365, 21, 9597, 27, 365, 334, 9, 365, 21, 1967, 1884, 7421, 4003, 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...
LastAccess Time is incorrect === every time i create a FileInfo object and access it's lastaccesstime property, it's always a few minutes off. What could be causing this ? below is an example: static void Main(string[] args) { if (args.Length > 0) { FileInfo fi = new FileInfo(args[0].ToString()); Console.WriteLine(args[0]); if (fi.Exists) { Console.Write("Current: " + DateTime.Now + "\n"); Console.Write("LAT: " + fi.LastAccessTime + "\n"); Console.Write("LWT: " + fi.LastWriteTime + "\n"); Console.Write("CT: " + fi.CreationTime + "\n"); } Console.ReadKey(); } } ![alt text][1] [1]: http://img407.imageshack.us/img407/4728/propertiesox6.png ![alt text][2] [2]: http://img380.imageshack.us/img380/7752/appgt0.png
0
[ 2, 236, 20604, 85, 25, 18867, 800, 3726, 3726, 352, 85, 31, 1600, 21, 3893, 108, 4120, 3095, 17, 1381, 32, 22, 18, 236, 20604, 891, 1354, 15, 32, 22, 18, 550, 21, 310, 902, 168, 9, 98, 110, 44, 3242, 48, 13, 60, 1021, 25, 40...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
HashSet.remove() and Iterator.remove() not working === I'm having problems with Iterator.remove() called on a HashSet. I've a Set of time stamped objects. Before adding a new item to the Set, I loop through the set, identify an old version of that data object and remove it (before adding the new object). the timestamp is included in hashCode and equals(), but not equalsData(). for (Iterator<DataResult> i = allResults.iterator(); i.hasNext();) { DataResult oldData = i.next(); if (data.equalsData(oldData)) { i.remove(); break; } } allResults.add(data) The odd thing is that i.remove() silently fails (no exception) for some of the items in the set. I've verified * The line i.remove() is actually called. I can call it from the debugger directly at the breakpoint in Eclipse and it still fails to change the state of Set * DataResult is an immutable object so it can't have changed after being added to the set originally. * The equals and hashCode() methods use @Override to ensure they are the correct methods. Unit tests verify these work. * This also fails if I just use a for statement and Set.remove instead. (e.g. loop through the items, find the item in the list, then call Set.remove(oldData) after the loop). * I've tested in JDK 5 and JDK 6. I thought I must be missing something basic, but after spending some significant time on this my colleague and I are stumped. Any suggestions for things to check?
0
[ 2, 19170, 3554, 9, 99, 16598, 5, 6, 17, 32, 106, 3457, 9, 99, 16598, 5, 6, 52, 638, 800, 3726, 3726, 31, 22, 79, 452, 1716, 29, 32, 106, 3457, 9, 99, 16598, 5, 6, 227, 27, 21, 19170, 3554, 9, 31, 22, 195, 21, 309, 16, 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...
.net windows forms & picking Vista fonts === I'm building a .net application with windows forms. I'm pondering on the following problem: If I specify fonts in my application that are available only in Vista and Office 07, what will happen when the application tries to run in a machine without these ? I suppose the system won't be able to fall back to a font of it's family, since they are initialized internally using strings (eg "Segoe UI"). What's the best practice to follow, such that I will still be able to specify fonts through the forms designer and not worry about things like this breaking ?
0
[ 2, 13, 9, 2328, 1936, 1997, 279, 7833, 13520, 9978, 18, 800, 3726, 3726, 31, 22, 79, 353, 21, 13, 9, 2328, 3010, 29, 1936, 1997, 9, 31, 22, 79, 14197, 68, 27, 14, 249, 1448, 45, 100, 31, 19077, 9978, 18, 19, 51, 3010, 30, 50...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Schema, Owner for objects in MS SQL === By default, objects (tables, stored procedures, etc) are set up with the dbo owner/schema (I think ms sql 2000 calls it owner, while ms sql 2005 calls it schema) The owner/schema is really a role or user in the database. I've always left the default of dbo, but I've recently seen some examples in microsoft training books where some of their tables & stored procedures had different owners/schemas. When is it beneficial to do this and why?
0
[ 2, 23874, 15, 2410, 26, 3916, 19, 4235, 4444, 255, 800, 3726, 3726, 34, 12838, 15, 3916, 13, 5, 5924, 18, 15, 8214, 8876, 15, 2722, 6, 50, 309, 71, 29, 14, 13, 43, 1192, 2410, 118, 7526, 540, 13, 5, 49, 277, 4235, 4444, 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...
chroot + execvp + bash === Here is my problen: I have created a small binary called "jail" and in /etc/password I have made it the default shell for a test user. Here is the -- simplified -- source code: #define HOME "/home/user" #define SHELL "/bin/bash" ... if(chdir(HOME) || chroot(HOME)) return -1; ... char *shellargv[] = { SHELL, "-login", "-rcfile", "/bin/myscript", 0 }; execvp(SHELL, shellargv); Well, no matter how hard I try, it seems that, when my test user logs in, /bin/myscript will never be sourced. Similarly, if I drop a .bashrc file in user's home directory, it will be ignored as well. Why would bash snob these guys?
0
[ 2, 6193, 14032, 2754, 1396, 3319, 10924, 2754, 13158, 800, 3726, 3726, 235, 25, 51, 895, 2854, 103, 45, 31, 57, 679, 21, 284, 14171, 227, 13, 7, 1004, 947, 7, 17, 19, 13, 118, 1198, 150, 118, 6201, 9587, 31, 57, 117, 32, 14, 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...
.NET : How do you get the Type of a null object? === I have a method with an out parameter that tries to do a type conversion. Basically: public void GetParameterValue(out object destination) { object paramVal = "I want to return this. could be any type, not just string."; destination = null; // default out param to null destination = Convert.ChangeType(paramVal, destination.GetType()); } The problem is that usually someone would call this like: string output; GetParameterValue(output); This will fail because of: destination.GetType() destination is null, so we can't call .GetType() on it. We also can not call: typeof(destination) because destination is a variable name not a type name. So is there any way to get the type of an object that is set to null? I would think there would have to be a way to know what type a storage location is without it being assigned anything.
0
[ 2, 13, 9, 2328, 13, 45, 184, 107, 42, 164, 14, 1001, 16, 21, 16203, 3095, 60, 800, 3726, 3726, 31, 57, 21, 2109, 29, 40, 70, 18906, 30, 3919, 20, 107, 21, 1001, 6263, 9, 11374, 45, 317, 11364, 164, 6351, 7307, 15165, 5, 1320, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
OpenId development while disconnected from Internet === What solutions have people come up with to develop their web applications offline when they made the decision to use OpenId for site membership? Couple of ideas: 1. Create two login pages one for OpenId and one for ASP.NET Membership 2. Create local OpenId provider with test accounts Any thoughts?
0
[ 2, 368, 1340, 522, 133, 25730, 37, 2620, 800, 3726, 3726, 98, 6776, 57, 148, 340, 71, 29, 20, 2803, 66, 2741, 3767, 168, 1143, 76, 59, 117, 14, 1401, 20, 275, 368, 1340, 26, 689, 4363, 60, 1335, 16, 3478, 45, 137, 9, 1600, 81,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Loading scheme for icons === What would be the best scheme for loading icons for an application? A little bit of a background... I’m creating an FTP-like application that has 4 panes (local folder pane, local file pane, cloud folder pane, cloud file pane). In both file panes, one of the columns is filename, which I want to display the icon next to (just like you see in Windows Explorer). Do to the fact that I do not have the physical file for all files in the cloud, I have to poke into the registry (with file extension in hand) and get the ExeFileName and IconIndex combination for that file type, and from there the retrieve the icon. That said, I think that I have the below options, and would like to get your opinion: 1) Load all ExeFileName/IconIndex combinations for every extension (EG: .doc, .txt) on program load and as needed query and use them to call out to the ExtractIcon Win32 API. 2) Poke into the registry only when needed to get the ExeFileName/IconIndex combinations and call out to the ExtractIcon Win32 API for the icon of the associated file type. 3) Save a 1 byte file of every extension known, to a directory and call out to the SHGetFileInfo Win32 API and pluck the associated icon from the file when needed. 4) Save the physical icon file for every file extension at the time of install to a directory and call out to this when need (but will not change with file association changes, additions, or deletions). 5) Junk the whole thing and buy a set of icons from an icon shop that has the top 1000 icon file types known, and display an unknown icon type of the other file types. Thank you for your time and comments. -Jessy Houle
0
[ 2, 12797, 4276, 26, 9801, 18, 800, 3726, 3726, 98, 83, 44, 14, 246, 4276, 26, 12797, 9801, 18, 26, 40, 3010, 60, 21, 265, 1142, 16, 21, 2395, 9, 9, 9, 31, 1, 79, 2936, 40, 1187, 306, 8, 1403, 3010, 30, 63, 268, 1809, 160, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
View output of 'print' statements using ADOConnection in Delphi === Some of my MS SQL stored procedures produce messages using the 'print' command. In my Delphi 2007 application, which connects to MS SQL using TADOConnection, how can I view the output of those 'print' commands? Key requirements: 1) I can't run the query more than once; it might be updating things. 2) I need to see the 'print' results even if datasets are returned.
0
[ 2, 1418, 5196, 16, 13, 22, 10299, 22, 9015, 568, 21, 537, 25996, 872, 19, 23030, 800, 3726, 3726, 109, 16, 51, 4235, 4444, 255, 8214, 8876, 2213, 7561, 568, 14, 13, 22, 10299, 22, 1202, 9, 19, 51, 23030, 624, 3010, 15, 56, 8534,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Any disadvantages to using spring to separate tests and data? === I've been struggling coming up with a good solution to separate my testing data from unit tests (hard coded values). Until it dawned on me that I could create beans with spring and use those beans to hold my data. Are there any draw backs to coding my unit tests this way? Albeit they run a bit slower seeing as how spring has to configure all the beans and what not.
0
[ 2, 186, 13387, 18, 20, 568, 1573, 20, 1725, 4894, 17, 1054, 60, 800, 3726, 3726, 31, 22, 195, 74, 7587, 880, 71, 29, 21, 254, 4295, 20, 1725, 51, 4431, 1054, 37, 1237, 4894, 13, 5, 6011, 13, 22254, 4070, 6, 9, 163, 32, 4824, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 get AnkhSVN to work with VisualSVN Server? === I'm looking for the easiest free SVN implementation I can find. I downloaded and installed VisaulSVN server - pretty easy. Installed Tortiosesvn - pretty easy - both work together. Installed ankhSVN, I can't get it to connect to the repository on the VisualSVN server. Is there anything special I need to do to get ankhSVN to talk to the VisualSVN server?
0
[ 2, 184, 107, 42, 164, 40, 4278, 18, 16578, 20, 170, 29, 3458, 18, 16578, 8128, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 14, 27237, 551, 13, 18, 16578, 6123, 31, 92, 477, 9, 31, 23887, 17, 4066, 7068, 1287, 18, 16578, 8128, 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...
Server-side commenting in asp.net (HTML side) === I need to leave some instructional comments for other developers on a page/user control. Is there a better way to do this besides the below? <% /* DO NOT rename control IDs here, because blah blah blah... */ %>
0
[ 2, 8128, 8, 1416, 17797, 19, 28, 306, 9, 2328, 13, 5, 15895, 270, 6, 800, 3726, 3726, 31, 376, 20, 767, 109, 25565, 7534, 26, 89, 10168, 27, 21, 2478, 118, 16704, 569, 9, 25, 80, 21, 574, 161, 20, 107, 48, 3410, 14, 1021, 60...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
PHP and Enums === I know that PHP doesn't have native Enumerations. But I have become accustomed to them from the Java world. I would love to use enums as a way to give predefined values which IDEs' auto completion features could understand. Constants do the trick, but there's the namespace collision problem and (or actually *because*) they're global. Arrays don't have the namespace problem, but they're too vague, they can be overwritten at runtime and IDEs rarely (never?) know how to autofill their keys. Are there any solutions/workarounds you commonly use? Does anyone recall whether the PHP guys have had any thoughts or decisions around enums?
0
[ 2, 13, 26120, 17, 1957, 723, 18, 800, 3726, 3726, 31, 143, 30, 13, 26120, 1437, 22, 38, 57, 1275, 26940, 5757, 9, 47, 31, 57, 533, 20946, 20, 105, 37, 14, 8247, 126, 9, 31, 83, 339, 20, 275, 1957, 723, 18, 28, 21, 161, 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...
Migrating MOSS 2007 from SQL 2000 to SQL 2005 === We have an installation of MOSS 2007 that is using MS SQL 2000 as the backend database. The web front end for MOSS is on one server and the database on a separate server. We would like to move the database to a MS SQL 2005 server. Is there a recommended approach for doing this? Does anyone know of any resources that offer tips, tricks, tutorials, best practices for doing this?
0
[ 2, 28749, 8188, 624, 37, 4444, 255, 824, 20, 4444, 255, 812, 800, 3726, 3726, 95, 57, 40, 7758, 16, 8188, 624, 30, 25, 568, 4235, 4444, 255, 824, 28, 14, 97, 2451, 6018, 9, 14, 2741, 431, 241, 26, 8188, 25, 27, 53, 8128, 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...
What does a GCC compiled static library contain? === My application links against libsamplerate.a. I am doing this to make distributing the final binary easier. I am worried that perhaps the code inside the .a file depends on some other libraries I also will need to distribute. But if it doesn't I am worried I am bloating up my application too much by including multiple copies of eg. libc. What exactly will be inside libsamplerate.a? Just libsamperate's bytecode? Or more?
0
[ 2, 98, 630, 21, 489, 3384, 9316, 12038, 1248, 3717, 60, 800, 3726, 3726, 51, 3010, 6271, 149, 13, 8326, 6101, 5106, 5487, 9, 58, 9, 31, 589, 845, 48, 20, 233, 23125, 14, 426, 14171, 4950, 9, 31, 589, 3681, 30, 1774, 14, 1797, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Stunning graphic effects with javascript === Seeing the [full javascript rotating 3d cube][1], I was asking: which are the most stunning javascript-only effects you've ever seen? [1]: http://maettig.com/code/javascript/3d_dots.html
0
[ 2, 16173, 8479, 2292, 29, 8247, 8741, 800, 3726, 3726, 2078, 14, 636, 13727, 8247, 8741, 16164, 203, 43, 13682, 500, 2558, 165, 500, 15, 31, 23, 3379, 45, 56, 50, 14, 127, 16173, 8247, 8741, 8, 4965, 2292, 42, 22, 195, 462, 541, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Visual Studio designer error. === I'm getting this error on a compact framework form. "code generation for property 'inputControl' failed. Error was: 'object reference not set to an instance of an object.'" Anyone have any idea why? It just started and was never an issue before.
0
[ 2, 3458, 1120, 4742, 7019, 9, 800, 3726, 3726, 31, 22, 79, 1017, 48, 7019, 27, 21, 8285, 6596, 505, 9, 13, 7, 9375, 2782, 26, 1354, 13, 22, 108, 4881, 12898, 22, 1702, 9, 7019, 23, 45, 13, 22, 23793, 2801, 52, 309, 20, 40, 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 can I get my orderby to work using an anonymous type? === What do I put in my order by?? I want to order by Name. I have moved the orderby after the distinct because I read that it needs to be done last. var result = (from r in db.RecordDocs where r.RecordID == recordID select new { DocTypeID = r.Document.DocType.DocTypeID, Name = r.Document.DocType.Name, Number = r.Document.DocType.Number } ).Distinct().OrderBy( );
0
[ 2, 184, 92, 31, 164, 51, 389, 779, 20, 170, 568, 40, 10364, 1001, 60, 800, 3726, 3726, 98, 107, 31, 442, 19, 51, 389, 34, 60, 60, 31, 259, 20, 389, 34, 204, 9, 31, 57, 385, 14, 389, 779, 75, 14, 4421, 185, 31, 1302, 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...
Is seven inner joins in a query too much? === I have a query that has 7 inner joins (because a lot of the information is distributed in other tables), a few coworkers have been surprised. I was wondering if they should be surprised or is having 7 inner joins normal?
0
[ 2, 25, 810, 3754, 10612, 19, 21, 25597, 266, 212, 60, 800, 3726, 3726, 31, 57, 21, 25597, 30, 63, 453, 3754, 10612, 13, 5, 4451, 21, 865, 16, 14, 676, 25, 4387, 19, 89, 7484, 6, 15, 21, 310, 326, 16355, 57, 74, 2948, 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, 0...
What options are there for serverless databases? === I'm familiar with SQLite and Derby. I used SQLLite in a Ruby project before and I looked at Derby for a personal Java project that went nowhere. Both of these were 2+ years ago, and I'm sure much has changed. What are the top contenders (preferably free) today?
4
[ 2, 98, 6368, 50, 80, 26, 8128, 923, 6018, 18, 60, 800, 3726, 3726, 31, 22, 79, 3694, 29, 4444, 10601, 17, 6473, 9, 31, 147, 4444, 211, 2119, 19, 21, 10811, 669, 115, 17, 31, 292, 35, 6473, 26, 21, 1319, 8247, 669, 30, 296, 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...
msvcr71.dll file missing on Win Vista when trying to run my java swing application === I've done numerous searches and I realize that I can just download this file and install it either in windows/system32 or in the application's directory. My question is, how does this dll generally get installed on Vista? I tried installing the .net framework 3.5 and it didn't get installed with that. Background: I'm running a java.jar wrapped as an exe using exe4j.
0
[ 2, 4235, 8990, 139, 4241, 9, 43, 211, 3893, 2863, 27, 628, 13520, 76, 749, 20, 485, 51, 8247, 5587, 3010, 800, 3726, 3726, 31, 22, 195, 677, 1548, 19994, 17, 31, 4007, 30, 31, 92, 114, 7121, 48, 3893, 17, 16146, 32, 694, 19, 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 you enumerate a collection in C# out of order? === Is there a way to use a foreach loop to iterate thru a collection backwards or in a completely random order?
0
[ 2, 92, 42, 26940, 62, 21, 1206, 19, 272, 5910, 70, 16, 389, 60, 800, 3726, 3726, 25, 80, 21, 161, 20, 275, 21, 26, 14322, 5293, 20, 32, 106, 1373, 19637, 21, 1206, 12207, 54, 19, 21, 1524, 5477, 389, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
User Access Checking for Rights on Particular Database Objects or Records === I'm having a friendly debate with a developer about a situation where users are logging in and accessing documents in a web application. When we load the document for the user to view, we have the userID in session and the documentID that may be passed via QueryString. To prevent the user from modifying the documentID on the QueryString, I propose that the stored procedure that loads the document take the UserId as a parameter to validate rights to the document. My developer friend suggests that we run a separate procedure to determine access rights to the document earlier in the page and just run a procedure to grab the document when the document should be shown. Are we missing something? Which is most efficient and safe? I thought passing the UserId with the DocID into one procedure call to check rights and pull the document was a more efficient solution.
0
[ 2, 4155, 1381, 9886, 26, 1096, 27, 1498, 6018, 3916, 54, 742, 800, 3726, 3726, 31, 22, 79, 452, 21, 4753, 4503, 29, 21, 10058, 88, 21, 1858, 113, 3878, 50, 13, 13919, 19, 17, 1381, 68, 4374, 19, 21, 2741, 3010, 9, 76, 95, 6305...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Semantic HTML markup for a copyright notice === When a web site is licensed under Creative Commons, I use the <a href="http://microformats.org/wiki/rel-license">rel-license microformat</a>. When a web site is licensed under regular copyright, I have a boring paragraph element. <p id="copyright">&copy; 2008 Example Corporation</p> That id attribute on there is just for CSS styling purposes. I'm wondering if there's some better way to markup a copyright notice that is more semantic. Is this a job for Dublin Core metadata? If so, how do I go about it? (I've never used Dublin Core before.)
0
[ 2, 17220, 13, 15895, 943, 576, 26, 21, 8398, 3551, 800, 3726, 3726, 76, 21, 2741, 689, 25, 6392, 131, 4231, 8322, 15, 31, 275, 14, 13, 1, 58, 746, 14057, 3726, 7, 21127, 6903, 22019, 23588, 18, 9, 5583, 118, 17375, 118, 7256, 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...
Breaking up PHP Websites === I am wondering how I can break up my index.php homepage to multiple php pages (i.e. header.php, footer.php) and build a working index.php page using those separate php pages. I know WordPress uses this with different functions like: GetHeader(); GetFoodter(); But when I tried to use those functions, it errors. I am guessing they are not native functions to PHP. What would I need to do to get this functionality?
0
[ 2, 3892, 71, 13, 26120, 13931, 800, 3726, 3726, 31, 589, 5712, 184, 31, 92, 1442, 71, 51, 4348, 9, 26120, 213, 6486, 20, 1886, 13, 26120, 4434, 13, 5, 49, 9, 62, 9, 157, 106, 9, 26120, 15, 1749, 106, 9, 26120, 6, 17, 1895, 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...
Tiny python executable? === I plan to use PyInstaller to create a stand-alone python executable. PythonInstaller comes with built-in support for UPX and uses it to compress the executable but they are still really huge (about 2,7 mb). Is there any way to create even smaller Python executables? For example using a shrinked python.dll or something similiar?
0
[ 2, 3228, 20059, 1396, 17194, 5924, 60, 800, 3726, 3726, 31, 944, 20, 275, 7103, 108, 21300, 106, 20, 1600, 21, 1261, 8, 17979, 20059, 1396, 17194, 5924, 9, 20059, 108, 21300, 106, 1624, 29, 392, 8, 108, 555, 26, 71, 396, 17, 2027,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
jdbc: when can i close what === currently i have jdbc code with the following basic stucture: get Connection (do the next 4 lines several times, never closing statement) get statement get result set process result set close result set close connection It occurred to me after writing this code that i need to close the statement. 1 what are the effects of not closing the statement. 2 will the following work, this si will closing the statement prevent me from processing the result set as normal? get Connection (do the next 5 lines several times) get statement get result set close statement process result set close result set close connection
0
[ 2, 487, 43, 7229, 45, 76, 92, 31, 543, 98, 800, 3726, 3726, 871, 31, 57, 487, 43, 7229, 1797, 29, 14, 249, 2125, 354, 6335, 6418, 45, 164, 2760, 13, 5, 537, 14, 328, 268, 1560, 238, 436, 15, 243, 4239, 3331, 6, 164, 3331, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 Tools for Web Site Architecture Design === Are there any tools you would recommend for site architecture design and analysis? I've checked out several such as Poseidon UML, Adalon and FuseBuilder for ColdFusion, Mindmapper and a few others but have yet to find anything that seems to strike the right balance between allowing for quick high-level planning (as can be accomplished with mind mapping) to more detailed architecture and analysis. UML seems to be the ultimate for application design but I don't consider tools such as Poseidon UML to be particularly adept when creating quick initial designs. Is there anything else out there that can be applied to any programming language, from CF to C#. Perhaps a combination of tools?
0
[ 2, 246, 4672, 26, 2741, 689, 2607, 704, 800, 3726, 3726, 50, 80, 186, 4672, 42, 83, 12360, 26, 689, 2607, 704, 17, 2495, 60, 31, 22, 195, 6505, 70, 238, 145, 28, 29667, 13, 723, 255, 15, 21, 3952, 218, 17, 13, 13072, 20904, 26...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Anyone using VeraCode for static analysis? === My company is looking at using VeraCode for some independent static analysis of our binaries. Anyone out there using them? I would also be interested to hear from anyone using their dynamic analysis services as well.
0
[ 2, 1276, 568, 10970, 9375, 26, 12038, 2495, 60, 800, 3726, 3726, 51, 237, 25, 699, 35, 568, 10970, 9375, 26, 109, 1124, 12038, 2495, 16, 318, 4511, 11301, 9, 1276, 70, 80, 568, 105, 60, 31, 83, 67, 44, 3158, 20, 990, 37, 1276, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Why is my iPhone app crashing? === When I try to allocate a Texture2D the app just crashes. I've stepped through the code where the crash occurs... all I can tell is "EXC BAD ACCESS". Here is the line in the app delegate that makes it crash: _textures[myTex] = [[Texture2D alloc] initWithImage: [UIImage imageNamed:@"sometex.png"]]; sometex.png has been added to the resources folder via "add existing files". I've was able to load this png just fine in some sample code... but now when I try to duplicate the functionality of the sample code it just crashes. Any ideas? Also I can do the following just fine: _textField = [[UITextField alloc] initWithFrame:CGRectMake(60, 214, 200, 30)];
0
[ 2, 483, 25, 51, 21024, 4865, 14604, 60, 800, 3726, 3726, 76, 31, 1131, 20, 65, 111, 9530, 21, 12714, 135, 43, 14, 4865, 114, 21563, 9, 31, 22, 195, 1973, 120, 14, 1797, 113, 14, 4597, 3690, 9, 9, 9, 65, 31, 92, 494, 25, 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...
Using ASP.Net ajax library for cross browser Xml manipulation === I am currently updating a web app that uses ActiveX objects in client side code to manipulate some xml. Of course, this app only works in IE and I need to get it cross browser compatible. I am looking to get a javascript xml library to handle the cross browser oddities, and was wondering if the ASP.Net ajax library would work. I have looked around a bit, but I haven't been able to any examples of loading a fresh xmldom object up using this. If not, any other good libraries out there I should take a look at? Thanks
0
[ 2, 568, 28, 306, 9, 2328, 20624, 1248, 26, 919, 16495, 23504, 17561, 800, 3726, 3726, 31, 589, 871, 71, 43, 1880, 21, 2741, 4865, 30, 2027, 1348, 396, 3916, 19, 6819, 270, 1797, 20, 18468, 109, 23504, 9, 16, 674, 15, 48, 4865, 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...
What does placing a @ in front of a variable name do? === I've been working with some C# legacy code and I've been seeing a lot of @ symbols in front of variable names. What does this signify or do?
0
[ 2, 98, 630, 5861, 21, 13, 1, 19, 431, 16, 21, 7612, 204, 107, 60, 800, 3726, 3726, 31, 22, 195, 74, 638, 29, 109, 272, 5910, 7780, 1797, 17, 31, 22, 195, 74, 2078, 21, 865, 16, 13, 1, 9794, 19, 431, 16, 7612, 1817, 9, 98, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
T-SQL: How to get user-defined data-type of the column by it's ID or smth? === I have the query like this SELECT TABLE_NAME, COLUMN_NAME, IS_NULLABLE, DATA_TYPE FROM MY_DB.INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'OrderId' ORDER BY TABLE_NAME GO OrderId column is of user-defined data type. But DATA_TYPE in the query shows underlying system type (i.e. bigint). How to show user-defined type name?
0
[ 2, 13, 38, 8, 18, 22402, 45, 184, 20, 164, 4155, 8, 13439, 1054, 8, 4474, 16, 14, 4698, 34, 32, 22, 18, 4924, 54, 7613, 96, 60, 800, 3726, 3726, 31, 57, 14, 25597, 101, 48, 5407, 859, 1, 7259, 15, 4698, 1, 7259, 15, 25, 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...
Multiple Inheritance from two derived classes === I have an abstract base class which acts as an interface. I have two "sets" of derived classes, which implement half of the abstract class. ( one "set" defines the abstract virtual methods related to initialization, the other "set" defines those related to the actual "work". ) I then have derived classes which use multiple inheritance to construct fully defined classes ( and does not add anything itself ). So: ( bad pseudocode ) class AbsBase { virtual void init() = 0; virtual void work() = 0; } class AbsInit : public AbsBase { void init() { do_this(); } // work() still abs } class AbsWork : public AbsBase { void work() { do_this(); } // init() still abs } class NotAbsTotal : public AbsInit, public AbsWork { // Nothing, both should be defined } First of all, can I do this? Can I inherit from two classes which are both derived from the same Base? (I hope so). Here is the "real problem", though (I lied a bit above to simplify the example). What I have really gone and done is add non abstract accessors methods to the base class: class AbsBase { public: void init() { init_impl(); } void work() { work_impl(); } private: virtual void init_impl() = 0; virtual void work_impl() = 0; } Because, a common idiom is to make all virtual methods private. Unfortunately, now both AbsInit, and AbsWork inherit these methods, and so NotAbsTotal inherits "two of each" ( I realize I may be butchering what is really happening at compile time ). Anyway, g++ complains that: "request for member init() is ambiguous" when trying to use the class. I assume that, had I used my AbsBase class as a pure interface, this would have been avoided ( assuming that the top example is valid ). So: - Am I way off with my implementation? - Is this a limitation of the idiom of making virtual methods private? - How do I refactor my code to do what I want? ( Provide one common interface, but allow a way to swap out implementations for "sets" of member functions )
0
[ 2, 1886, 13852, 37, 81, 3981, 2684, 800, 3726, 3726, 31, 57, 40, 8502, 1000, 718, 56, 3167, 28, 40, 6573, 9, 31, 57, 81, 13, 7, 3554, 18, 7, 16, 3981, 2684, 15, 56, 8713, 519, 16, 14, 8502, 718, 9, 13, 5, 53, 13, 7, 3554, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 it better to use readonly properties verses functions? === I see little functional difference between using a property public readonly property foo get return bar end get end property or a function public function foo() as string return bar end function Why would I want to use one form over the other? Thanks!
0
[ 2, 483, 25, 32, 574, 20, 275, 1302, 4965, 3704, 12347, 3719, 60, 800, 3726, 3726, 31, 196, 265, 7652, 2841, 128, 568, 21, 1354, 317, 1302, 4965, 1354, 4310, 111, 164, 788, 748, 241, 164, 241, 1354, 54, 21, 1990, 317, 1990, 4310, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
weird Page.Response.Redirect problem === I have a login page where I authenticate the user. When the authentication pass, I then redirect the user to another page via Response.Redirect with the url defined in login control's destinationpageurl. It work fine in firefox but when i test it with IE. It just redirect the user back to the login page. does anyone know what's going on here?
0
[ 2, 5455, 2478, 9, 99, 18, 8782, 870, 9, 99, 14706, 1448, 800, 3726, 3726, 31, 57, 21, 6738, 108, 2478, 113, 31, 14351, 1373, 14, 4155, 9, 76, 14, 27963, 1477, 15, 31, 94, 302, 14706, 14, 4155, 20, 226, 2478, 1197, 1627, 9, 99,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Disable spell-checking on HTML textfields === Can I somehow disable spell-checking on HTML textfields (as seen in e.g. Safari)?
0
[ 2, 1460, 579, 4762, 8, 12542, 68, 27, 13, 15895, 1854, 1109, 18, 800, 3726, 3726, 92, 31, 3625, 1460, 579, 4762, 8, 12542, 68, 27, 13, 15895, 1854, 1109, 18, 13, 5, 472, 541, 19, 13, 62, 9, 263, 9, 25055, 6, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Easiest way to call a Windows macro from Autohotkey (or VB)? === I have the following Macro I want to call from within an AutoHotkey script in order to set certain dates in my MonthCal object to be bold. [http://msdn.microsoft.com/en-us/library/bb774722(VS.85).aspx][1] How would I go about that? Note that it's possible the easiest way to do it is to write a simple VB script which uses the macro and call that. But I am entirely clueless about VB scripts. Any thoughts? [1]: http://msdn.microsoft.com/en-us/library/bb774722(VS.85).aspx
0
[ 2, 27237, 161, 20, 645, 21, 1936, 9069, 37, 3108, 7010, 4237, 13, 5, 248, 13, 20468, 6, 60, 800, 3726, 3726, 31, 57, 14, 249, 9069, 31, 259, 20, 645, 37, 363, 40, 3108, 7010, 4237, 3884, 19, 389, 20, 309, 1200, 4076, 19, 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 do you use fonts after installing xna === I've downloaded a tutorial that had fonts included in the source. When I try to build the project, I always get the following error message: > Error 1 The font family "Joystick" > could not be found. Please ensure the > requested font is installed, and is a > TrueType or OpenType font. The font was added via the control panel, and is a TrueType font.
0
[ 2, 184, 107, 42, 275, 9978, 18, 75, 25429, 993, 325, 800, 3726, 3726, 31, 22, 195, 23887, 21, 29724, 30, 41, 9978, 18, 506, 19, 14, 1267, 9, 76, 31, 1131, 20, 1895, 14, 669, 15, 31, 550, 164, 14, 249, 7019, 2802, 45, 13, 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...
File Upload with Java (with progress bar) === I'm *extremely new* to Java, and have mostly just been teaching myself as I go, so I've started building an applet. I'd like to make one that can select a file from the local disk and upload it as a multipart/form-data POST request but **with a progress bar**. Obviously the user has to grant permission to the Java applet to access the hard drive. Now I've already got the first part working: the user can select a file using a `JFileChooser` object, which conveniently returns a `File` object. But I'm wondering what comes next. I know that `File.length()` will give me the total size in bytes of the file, but how do I send the selected `File` to the web, and how do I monitor how many bytes have been sent? Thanks in advance.
0
[ 2, 3893, 71, 8294, 29, 8247, 13, 5, 1410, 3455, 748, 6, 800, 3726, 3726, 31, 22, 79, 1637, 27979, 102, 78, 2483, 20, 8247, 15, 17, 57, 1555, 114, 74, 2540, 992, 28, 31, 162, 15, 86, 31, 22, 195, 373, 353, 40, 4037, 38, 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 build a visual studio solution using xbuild (from Mono)? === I recently downloaded Mono 2 for my new MacBook. I'm trying to figure out how to compile Visual Studio solutions with xbuild, which is included in Mono. Any ideas?
0
[ 2, 184, 92, 31, 1895, 21, 3458, 1120, 4295, 568, 993, 29361, 13, 5, 2665, 4129, 6, 60, 800, 3726, 3726, 31, 1989, 23887, 4129, 172, 26, 51, 78, 1572, 5199, 9, 31, 22, 79, 749, 20, 1465, 70, 184, 20, 26561, 3458, 1120, 6776, 29...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0...
In Java, for a string x, what is the runtime cost of s.length()? Is it O(1) or O(n)? === I've been told that code such as: for (int i=0; i<x.length(); i++) { // blah } is actually O(n^2) because of the repeated calls to x.length(). Instead I should use: int l=x.length(); for (int i=0; i<l; i++) { // blah } Is this true? Is string length stored as a private integer attribute of the String class? Or does length() really walk the whole string just to determine its length?
0
[ 2, 19, 8247, 15, 26, 21, 3724, 993, 15, 98, 25, 14, 485, 891, 1516, 16, 13, 18, 9, 6325, 5, 6, 60, 25, 32, 635, 5, 165, 6, 54, 635, 5, 103, 6, 60, 800, 3726, 3726, 31, 22, 195, 74, 470, 30, 1797, 145, 28, 45, 26, 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 cope with "disk full" scenarios? === The vast majority of applications does not handle "disk full" scenarios properly. Example: an installer doesn't see that the disk is full, ignores all errors, and finally happily announces "installation complete!", or an email program is unaware that the message it has just downloaded could not be saved, and tells the server to delete the original. What techniques are there to handle this situation gracefully? Do you use them? Do you test them?
0
[ 2, 184, 20, 11624, 29, 13, 7, 2906, 197, 503, 7, 19611, 60, 800, 3726, 3726, 14, 4658, 1698, 16, 3767, 630, 52, 3053, 13, 7, 2906, 197, 503, 7, 19611, 7428, 9, 823, 45, 40, 16146, 106, 1437, 22, 38, 196, 30, 14, 8582, 25, 50...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
PostbackUrl vs NavigateUrl === Can someone tell me the different between LinkButton.PostBackUrl and HyperLink.NavigateUrl? I've got a asp.net 2.0 application that uses both methods throughout the application and everything works fine. However if I connect to the application over the company vpn all of the links that use LinkButton.PostBackUrl give me a (54) Connection reset by peer error and the HyperLink.NavigateUrl work just fine. I want to know the underlying difference between the commands so I can try to figure out what the vpn software is blocking that is causing the Connection reset by peer error.
0
[ 2, 678, 1958, 911, 255, 4611, 20782, 911, 255, 800, 3726, 3726, 92, 737, 494, 55, 14, 421, 128, 3508, 811, 444, 9, 6962, 1958, 911, 255, 17, 5443, 6258, 9, 16424, 3322, 911, 255, 60, 31, 22, 195, 330, 21, 28, 306, 9, 2328, 172...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
JSP bean tag for property that might not exist === In JSP I can reference a bean's property by using the tag ${object.property} Is there some way to deal with properties that might not exist? I have a JSP page that needs to deal with different types. Example: public class Person { public String getName() } public class Employee extends Person { public float getSalary() } In JSP I want to display a table of people with columns of name and salary. If the person is not an employee then salary should be blank. The row HTML might look like: <tr> <td><c:out value="${person.name}"></td> <td><c:out value="${person.salary}"></td> </tr> Unfortunately if person is not an employee then it can't find salary and an error occurs. How would I solve this in JSP?
0
[ 2, 487, 3401, 15322, 3383, 26, 1354, 30, 530, 52, 3182, 800, 3726, 3726, 19, 487, 3401, 31, 92, 2801, 21, 15322, 22, 18, 1354, 34, 568, 14, 3383, 5579, 1, 23793, 9, 10890, 106, 1084, 1, 25, 80, 109, 161, 20, 1183, 29, 3704, 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...
What is the correct format to use for Date/Time in an XML file (.NET) === What format do I use for Date/Time when writing to an XML file using .NET? Do I simply use DateTime.ToString(), or do I have to use a specific format?
0
[ 2, 98, 25, 14, 4456, 2595, 20, 275, 26, 1231, 118, 891, 19, 40, 23504, 3893, 13, 5, 9, 2328, 6, 800, 3726, 3726, 98, 2595, 107, 31, 275, 26, 1231, 118, 891, 76, 1174, 20, 40, 23504, 3893, 568, 13, 9, 2328, 60, 107, 31, 1659,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 be good in Data Structures and Analysis? === I want to be good in Data Structures and Analysis esp. in Java. I often find myself very week. what should I do to be good in it? Any good mental exercises?
0
[ 2, 184, 20, 44, 254, 19, 1054, 3815, 17, 2495, 60, 800, 3726, 3726, 31, 259, 20, 44, 254, 19, 1054, 3815, 17, 2495, 9867, 9, 19, 8247, 9, 31, 478, 477, 992, 253, 877, 9, 98, 378, 31, 107, 20, 44, 254, 19, 32, 60, 186, 254,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
How can I perform a nested Join, Add, and Group in LINQ? === I have two objects, let's call them **`Input`** and **`Output`** **`Input`** has properties *`Input_ID`*, *`Label`*, and *`Input_Amt`* **`Output`** has properties *`Output_ID`* and *`Output_Amt`* I want to perform the equivalent SQL statement in LINQ: SELECT Label, Sum(Added_Amount) as Amount FROM (SELECT I.Label, I.Input_Amt + ISNULL(O.Output_Amt, 0) as Added_Amount FROM Input I LEFT OUTER JOIN Output O ON I.Input_ID = O.Output_ID) GROUP BY Label For the inner query, I'm writing something like: var InnerQuery = from i in input join o in output on i.Input_ID equals o.Output_ID into joined from leftjoin in joined.DefaultIfEmpty() select new { Label = i.Label, AddedAmount = (i.Input_Amt + leftjoin.Output_Amt) }; In testing, however, the statement returns null. What gives? Also, how can I continue the desired query and perform the group after I've added my amounts together, all within a single LINQ statement?
0
[ 2, 184, 92, 31, 2985, 21, 5618, 69, 1865, 15, 3547, 15, 17, 214, 19, 6294, 1251, 60, 800, 3726, 3726, 31, 57, 81, 3916, 15, 408, 22, 18, 645, 105, 13, 1409, 1, 108, 4881, 1, 1409, 17, 13, 1409, 1, 1320, 4881, 1, 1409, 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 develop "shippable" components for ASP.NET MVC? === In ASP.NET webforms we have server components, that can be encapsulated into an external assembly and shipped as product. In ASP.NET MVC we don't have server components, so what's the best option for external components? Looking around it seems like the only possible option is making an **Html helper** method that returns a bunch of html + js that manipulates things. And if the component needs some logic, a http module that add some new routes and a controller defined in the same external assembly to handle the ajax calls. Otherwise **RenderPartial** only returns a view... but a view is a real file, so difficult to encapsulate in an external assembly unless it's added as resource file and then retrieved using a path provider that looks into the resource file instead of a real location on the disk. Or are there any other options I'm not considering? Thx Simo
0
[ 2, 184, 20, 2803, 13, 7, 2418, 306, 579, 7, 5090, 26, 28, 306, 9, 2328, 307, 8990, 60, 800, 3726, 3726, 19, 28, 306, 9, 2328, 2741, 4190, 18, 95, 57, 8128, 5090, 15, 30, 92, 44, 1957, 4666, 18, 13045, 77, 40, 4886, 1475, 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...
How do I delete a single row in Linq? === I'm trying to delete a single row from a database table using Linq-to-Sql. This ItemCommand method runs when an ASP.NET LinkButton within a Repeater control is clicked. The following code fails at runtime&hellip; <pre> 135 Sub RepeaterDogs_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.RepeaterCommandEventArgs ) Handles RepeaterDogs.ItemCommand 136 If e.CommandName = "Delete" Then 137 Dim DeleteId As Guid = CType(e.CommandArgument, Guid) 138 Dim db As New DogDataContext 139 Dim DeleteDog As Dog = (From d In db.Dogs _ 140 Where d.DogId = DeleteId).Single 141 db.Dogs.DeleteOnSubmit(DeleteDog) 142 db.SubmitChanges() 143 End If 144 End Sub </pre> It throws this exception on line 139... <pre> System.InvalidCastException was unhandled by user code Specified cast is not valid </pre> Why doesn't this work? How do I fix it?
0
[ 2, 184, 107, 31, 27448, 21, 345, 3131, 19, 6294, 1251, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 27448, 21, 345, 3131, 37, 21, 6018, 859, 568, 6294, 1251, 8, 262, 8, 18, 22402, 9, 48, 9101, 16239, 2109, 1461, 76, 40, 28, 306, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 it possible to get line numbers for stack traces on .Net CF 2.0 or 3.5 === I have a .Net CF 2.0 application and am using log4net to log errors. I get a stack trace, but it doesn't have any line numbers. I noticed that it doesn't appear to deploy the pdb file to the device, so I tried to manually place it in the same directory as the exe. But that didnt' help.
0
[ 2, 25, 32, 938, 20, 164, 293, 2116, 26, 7566, 10738, 27, 13, 9, 2328, 10084, 172, 9, 387, 54, 203, 9, 264, 800, 3726, 3726, 31, 57, 21, 13, 9, 2328, 10084, 172, 9, 387, 3010, 17, 589, 568, 6738, 300, 2328, 20, 6738, 11908, 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 do I make my iPhone app find my images? === My app crashes when I do the following in the applicationDidFinishLaunching event in the app delegate: _textures[mytex] = [[Texture2D alloc] initWithImage: [UIImage imageNamed:@"a.png"]]; However when I replace "a.png" with "/Users/MyUserName/Desktop/MyProjectFolder/a.png" everything works fine. I've experimented with the relative path stuff for the a.png resource... but none of it has worked. How can I fix this? I'd like to just say "a.png" for all the image resources (esp since I did this in another app... where I was working directly with sample code). So what is that magical setting? Thanks!
0
[ 2, 184, 107, 31, 233, 51, 21024, 4865, 477, 51, 3502, 60, 800, 3726, 3726, 51, 4865, 21563, 76, 31, 107, 14, 249, 19, 14, 3010, 3052, 23858, 18494, 68, 807, 19, 14, 4865, 11300, 45, 13, 1, 11969, 4221, 18, 2558, 915, 38, 1706, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
ASP.Net free Ajax file upload control === I need an ASP.NET control for file uploads that can work in an update panel. Any ideas?
0
[ 2, 28, 306, 9, 2328, 551, 20624, 3893, 71, 8294, 569, 800, 3726, 3726, 31, 376, 40, 28, 306, 9, 2328, 569, 26, 3893, 71, 8294, 18, 30, 92, 170, 19, 40, 11100, 4113, 9, 186, 3478, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Random array using LINQ and C# === I was reading an article on MSDN Magazine about using the [Enumerable class in LINQ][1] to generate a random array. The article uses VB.NET and I'm not immediately sure what the equivalent is in C#: Dim rnd As New System.Random() Dim numbers = Enumerable.Range(1, 100). _ OrderBy(Function() rnd.Next) [1]: http://msdn.microsoft.com/en-us/magazine/cc700332.aspx
0
[ 2, 5477, 7718, 568, 6294, 1251, 17, 272, 5910, 800, 3726, 3726, 31, 23, 1876, 40, 2002, 27, 4235, 43, 103, 1039, 88, 568, 14, 636, 219, 723, 106, 579, 718, 19, 6294, 1251, 500, 2558, 165, 500, 20, 7920, 21, 5477, 7718, 9, 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...
MSBuild isnt making the build completely parallel === I have an MSBuild project where within it I have a task that calls multiple projects where I set BuildInParallel = "true" Example: <Target Name="Build"> <Message Text="MSBuild project list = @(ProjList)" /> <!-- Compile in parallel --> <MSBuild Projects="@(ProjList)" Targets="Build" Properties="Configuration=$(Configuration)" BuildInParallel="true" /> </Target> These sub-projects actually invoke a command-line tool to do the actual 'building' - call it compile.exe. Doing crude profiling (thank you taskmgr.exe) of the build process has the following results: based on the /m setting - I see that exact number of MSBuild.exe processes started which is expected of course - the total available concurrent build processes. However what I expect to see is around that many number of processes of compile.exe. Basically each MSBuild process will just turn around and invoke compile.exe. What I see is that a number of compile.exe's are started, then they slowly finish until I just see one sole compile.exe still around. The tasks that each compile.exe take a different amount of time, so it's expected that one of them takes a lot longer than the others. However no other compile.exe's are spawned until the first 'batch' of them are finished. In other words if I have /m:4 - I will see 4 compile.exe's until all finish, then another 4 will be spawned. This isn't exactly completely parallel to me. Has anyone else seen this behavior. Am I just misunderstanding something?
0
[ 2, 4235, 29361, 8441, 544, 14, 1895, 1524, 3821, 800, 3726, 3726, 31, 57, 40, 4235, 29361, 669, 113, 363, 32, 31, 57, 21, 3005, 30, 3029, 1886, 2314, 113, 31, 309, 1895, 108, 6351, 211, 532, 800, 13, 7, 13398, 7, 823, 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...
Only one project of two running in my CruiseControl.net config. === I am creating an integration server for the first time, and although I have two projects in my cruisecontrol config file, only the first one seems to be executing. My config file is pasted below. <cruisecontrol> <project name="cc-config"> <triggers> <intervalTrigger seconds="60" /> </triggers> <sourcecontrol type="svn"> <trunkUrl></trunkUrl> <workingDirectory>C:\Program Files (x86)\CruiseControl.NET\server\config</workingDirectory> </sourcecontrol> </project> <project name="stable_trunk"> <workingDirectoy>C:\working</workingDirectory> <artifactDirectory>C:\artifact</artifactDirectory> <triggers> <intervalTrigger name="continuous" seconds="60"/> </triggers> <sourcecontrol type="svn"> <trunkUrl></trunkUrl> <workingDirectory>C:\projects\security\trunk</workingDirectory> </sourcecontrol> <tasks> <nant> <executable>C:\projects\security\trunk\tools\nant-0.86-nightly-2008-08-18\bin\nant.exe</executable> <buildFile>C:\projects\security\trunk\security.build</buildFile> </nant> </tasks> <externalLinks> <externalLink name="proj" url="projURL"> </externalLinks> </project> </cruisecontrol> Can anybody help me? thanks Carter
0
[ 2, 104, 53, 669, 16, 81, 946, 19, 51, 6581, 12898, 9, 2328, 13, 14093, 2816, 9, 800, 3726, 3726, 31, 589, 2936, 40, 8078, 8128, 26, 14, 64, 85, 15, 17, 419, 31, 57, 81, 2314, 19, 51, 6581, 12898, 13, 14093, 2816, 3893, 15, 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...
Would it be bad form to put braces on the same line as the statement for single line "if" statements? === So I know it's considered somewhat good practice to always include curly braces for if, for, etc even though they're optional if there is only one following statement, for the reason that it's easier to accidentally do something like: if(something == true) DoSomething(); DoSomethingElse(); when quickly editing code if you don't put the braces. What about something like this though: if(something == true) { DoSomething(); } That way you still take up fewer lines (which IMO increases readability) but still make it unlikely to accidentally make the mistake from above? I ask because I don't believe I've ever seen this style before for if or loops, but I do see it used for getter and setter in C# properties like: public string Name {get;set;} Not asking what's best since that's too subjective, but rather just whether this would be considered acceptable style and if not, why not.
0
[ 2, 83, 32, 44, 896, 505, 20, 442, 15646, 18, 27, 14, 205, 293, 28, 14, 3331, 26, 345, 293, 13, 7, 821, 7, 9015, 60, 800, 3726, 3726, 86, 31, 143, 32, 22, 18, 724, 4131, 254, 1345, 20, 550, 468, 21056, 15646, 18, 26, 100, 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 to efficiently delete all files in a document library? === I am looking for a clear, complete example of programmatically deleting all documents from a specific document library, via the Sharepoint object model. The doclib does not contain folders. I am looking to delete the documents completely (ie I don't want them in the Recycle Bin). I know of SPWeb.ProcessBatchData, but somehow it never seems to work for me. Thanks!
0
[ 2, 184, 20, 20519, 27448, 65, 6488, 19, 21, 4492, 1248, 60, 800, 3726, 3726, 31, 589, 699, 26, 21, 1207, 15, 1279, 823, 16, 625, 6732, 1326, 121, 1336, 68, 65, 4374, 37, 21, 1903, 4492, 1248, 15, 1197, 14, 1891, 3132, 3095, 1061...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 embed a tag within another tag in a django template? === How do I embed a tag within ( not nested ) another tag in a django tempalte? Django 1.0 , Python 2.5.2 In views.py def home_page_view(request): NUP={"HOMEPAGE": "named-url-pattern-string-for-my-home-page-view"} variables = RequestContext(request, {'NUP':NUP}) return render_to_response('home_page.html', variables) In home_page.html, the following NUP.HOMEPAGE = {{ NUP.HOMEPAGE }} is displayed as NUP.HOMEPAGE = named-url-pattern-string-for-my-home-page-view and the following url named pattern works ( as expected ), url template tag for NUP.HOMEPAGE = {% url named-url-pattern-string-for-my-home-page-view %} and is displayed as url template tag for NUP.HOMEPAGE = /myhomepage/ but when `{{ NUP.HOMEPAGE }}` is embedded within a `{% url ... %}` as follows url template tag for NUP.HOMEPAGE = {% url {{ NUP.HOMEPAGE }} %} this results in a template syntax error TemplateSyntaxError at /myhomepage/ Could not parse the remainder: '}}' from '}}' Request Method: GET Request URL: http://localhost:8000/myhomepage/ Exception Type: TemplateSyntaxError Exception Value: Could not parse the remainder: '}}' from '}}' Exception Location: C:\Python25\Lib\site-packages\django\template\__init__.py in __init__, line 529 Python Executable: C:\Python25\python.exe Python Version: 2.5.2 I was expecting `{% url {{ NUP.HOMEPAGE }} %}` to resolve to `{% url named-url-pattern-string-for-my-home-page-view %}` at runtime and be displayed as `/myhomepage/`. Are embedded tags not supported in django? is it possible to write a custom template tag with embedded tags support to make this work? `{% url {{ NUP.HOMEPAGE }} %}`
0
[ 2, 184, 20, 11911, 69, 21, 3383, 363, 226, 3383, 19, 21, 3857, 14541, 22894, 60, 800, 3726, 3726, 184, 107, 31, 11911, 69, 21, 3383, 363, 13, 5, 52, 5618, 69, 13, 6, 226, 3383, 19, 21, 3857, 14541, 13, 9577, 192, 591, 60, 3857...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Silverlight Rest Service, Security Exception === I am trying to get Silverlight to work with a quick sample application and am calling a rest service on a another computer. The server that has the rest service has a clientaccesspolicy.xml which looks like: <access-policy> <cross-domain-access> <policy> <allow-from http-request-headers="*"> <domain uri="*"/> </allow-from> <grant-to> <resource path="/" include-subpaths="true"/> </grant-to> </policy> </cross-domain-access> </access-policy> And is being picked up (at least according to the the network traces I have run), and there is no request for crossdomain.xml. The C# code looks like: public Page() { InitializeComponent(); string restUrl = "http://example.com/rest_service.html?action=test_result"; WebClient testService = new WebClient(); testService.DownloadStringCompleted += new DownloadStringCompletedEventHandler(testService_DownloadStringCompleted); testService.DownloadStringAsync(new Uri(restUrl, UriKind.Absolute)); } void testService_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e) { if (e.Error == null) { LoadTreeViewWithData(e.Result); } } However, I always get the following Security Error back: <pre> {System.Security.SecurityException ---> System.Security.SecurityException: Security error. at System.Net.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult) at System.Net.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState) at System.Net.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState) --- End of inner exception stack trace --- at System.Net.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state) at System.Net.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result) at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)} </pre> What am I doing wrong? And why doesn't the security error tell me some more useful information?
0
[ 2, 1172, 3130, 760, 365, 15, 1221, 5391, 800, 3726, 3726, 31, 589, 749, 20, 164, 1172, 3130, 20, 170, 29, 21, 2231, 5717, 3010, 17, 589, 2555, 21, 760, 365, 27, 21, 226, 1428, 9, 14, 8128, 30, 63, 14, 760, 365, 63, 21, 6819, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Should you use the private access modifier if it's redundant? === Given that these two examples are equivalent, which do you think is preferrable? **Without explicit modifier** public class MyClass { string name = "james"; public string Name { get { return name; } set { name = value; } } void SomeMethod() { ... } } **With explicit modifier** public class MyClass { private string name = "james"; public string Name { get { return name; } set { name = value; } } private void SomeMethod() { ... } } --- I've always used the latter, but recently I've started adopting the former style. The private is redundant as that's the default accessor modifier, so doesn't it make sense to exclude it?
0
[ 2, 378, 42, 275, 14, 932, 1381, 7226, 16292, 100, 32, 22, 18, 24295, 60, 800, 3726, 3726, 504, 30, 158, 81, 3770, 50, 4602, 15, 56, 107, 42, 277, 25, 6369, 139, 579, 60, 13, 1409, 14506, 14990, 7226, 16292, 1409, 317, 718, 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...
Restricting access to page unless coming from a specific page === I'm trying to figure out how to restrict access to a page unless the page is navigated to from a specific "gate" page. Essentially I want the page to be unaccessible unless you're coming from the page that comes before it in my sitemap. I'm not certain this is even possible. If possible, can you limit your suggestions to using either html or javascript? Thanks!
0
[ 2, 15436, 68, 1381, 20, 2478, 4003, 880, 37, 21, 1903, 2478, 800, 3726, 3726, 31, 22, 79, 749, 20, 1465, 70, 184, 20, 15436, 1381, 20, 21, 2478, 4003, 14, 2478, 25, 20782, 43, 20, 37, 21, 1903, 13, 7, 3322, 7, 2478, 9, 7398, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 SpeechSynthesizer.SetOutputToAudioStream audio format problem === I'm currently working on an application which requires transmission of speech encoded to a specific audio format. System.Speech.AudioFormat.SpeechAudioFormatInfo synthFormat = new System.Speech.AudioFormat.SpeechAudioFormatInfo(System.Speech.AudioFormat.EncodingFormat.Pcm, 8000, 16, 1, 16000, 2, null); This states that the audio is in PCM format, 8000 samples per second, 16 bits per sample, mono, 16000 bits per sample, block alignment of 2. When I attempt to execute the following code there is nothing written to my MemoryStream instance; however when I change from 8000 samples per second up to 11025 the audio data is written successfully. SpeechSynthesizer synthesizer = new SpeechSynthesizer(); waveStream = new MemoryStream(); PromptBuilder pbuilder = new PromptBuilder(); PromptStyle pStyle = new PromptStyle(); pStyle.Emphasis = PromptEmphasis.None; pStyle.Rate = PromptRate.Fast; pStyle.Volume = PromptVolume.ExtraLoud; pbuilder.StartStyle(pStyle); pbuilder.StartParagraph(); pbuilder.StartVoice(VoiceGender.Male, VoiceAge.Teen, 2); pbuilder.StartSentence(); pbuilder.AppendText("This is some text."); pbuilder.EndSentence(); pbuilder.EndVoice(); pbuilder.EndParagraph(); pbuilder.EndStyle(); synthesizer.SetOutputToAudioStream(waveStream, synthFormat); synthesizer.Speak(pbuilder); synthesizer.SetOutputToNull(); There are no exceptions or errors recorded when using a sample rate of 8000 and I couldn't find anything useful in the documentation regarding SetOutputToAudioStream and why it succeeds at 11025 samples per second and not 8000. I have a workaround involving a wav file that I generated and converted to the correct sample rate using some sound editing tools, but I would like to generate the audio from within the application if I can. One particular point of interest was that the SpeechRecognitionEngine accepts that audio format and successfully recognized the speech in my synthesized wave file...
0
[ 2, 1301, 2974, 9507, 124, 18, 11907, 9, 3554, 1320, 4881, 262, 1346, 6921, 11260, 4023, 2595, 1448, 800, 3726, 3726, 31, 22, 79, 871, 638, 27, 40, 3010, 56, 4781, 5213, 16, 2974, 13665, 20, 21, 1903, 4023, 2595, 9, 329, 9, 18, 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...
Storing Social Security Numbers === The HR department at the company that I am currently working for has requested that I provide a system for storing employee social security numbers in our company database. The reason for this is to streamline payroll completion, as we use in-house software for employee timesheets but have to integrate with third-party software for our actual payroll system. This is a relatively small company (20-30 employees), and we'd only be storing current employees' SSN's (so a breach would only have limited impact), but I would still like to bank on security. I would like to know if there is any convention out there for storing information as sensitive as social security numbers. I'm not very skilled in encryption, and I understand that there are several encryption techniques that I could resort to, but I was wondering if there was one way in particular that was best suited for this type of situation. Would AES be my best bet? As for current software, we're running MySQL and our web interface is written in PHP and running on an IIS server.
0
[ 2, 25615, 668, 1221, 2116, 800, 3726, 3726, 14, 13, 3112, 604, 35, 14, 237, 30, 31, 589, 871, 638, 26, 63, 6602, 30, 31, 1181, 21, 329, 26, 25615, 7362, 668, 1221, 2116, 19, 318, 237, 6018, 9, 14, 1215, 26, 48, 25, 20, 3766, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 get PNGs to work in D2009? === One of Delphi 2009's advertised features was PNG support. That's great, because the Unicode issues break the pngimage.pas library I was using before. Only problem is, I can't *find* the Delphi 2009 version. Anyone know what it's called, and how difficult it is to migrate existing pngimage.pas-based code to the new library?
0
[ 2, 184, 107, 31, 164, 351, 2723, 18, 20, 170, 19, 13, 43, 2849, 60, 800, 3726, 3726, 53, 16, 23030, 588, 22, 18, 19465, 967, 23, 351, 2723, 555, 9, 30, 22, 18, 374, 15, 185, 14, 28010, 1549, 1442, 14, 351, 2723, 22039, 9, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 Forward an Email to FogBugz and Have it Make it into a Bug? === I didn't see it in the help but I figure it's possible. Also how do I find out what email address to use?
0
[ 2, 184, 92, 31, 917, 40, 8517, 20, 7486, 16254, 380, 17, 57, 32, 233, 32, 77, 21, 6256, 60, 800, 3726, 3726, 31, 223, 22, 38, 196, 32, 19, 14, 448, 47, 31, 1465, 32, 22, 18, 938, 9, 67, 184, 107, 31, 477, 70, 98, 8517, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Best resources for learning x86_64 assembly? === I'm currently teaching myself x86_64 assembly, mostly via AMD's ABI. There's tons of great resources out there for learning x86, but I'm finding that the 64 bit arena is pretty sparse. Anyone have some good resources hidden away?
0
[ 2, 246, 2566, 26, 2477, 993, 3274, 1, 3470, 1475, 60, 800, 3726, 3726, 31, 22, 79, 871, 2540, 992, 993, 3274, 1, 3470, 1475, 15, 1555, 1197, 589, 43, 22, 18, 13, 9104, 9, 80, 22, 18, 5278, 16, 374, 2566, 70, 80, 26, 2477, 99...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
WinForms: what is the best control for GDI+ drawing surface? === I think you can do GDI+ drawing in just about any window in a .net windows forms project, but what do you recommend as the best built-in control for containing custom drawing? I'm going to be drawing my own x-y plots, text and images. I could use a Panel, UserControl, etc.
0
[ 2, 628, 4190, 18, 45, 98, 25, 14, 246, 569, 26, 489, 1115, 2430, 3533, 1490, 60, 800, 3726, 3726, 31, 277, 42, 92, 107, 489, 1115, 2430, 3533, 19, 114, 88, 186, 1463, 19, 21, 13, 9, 2328, 1936, 1997, 669, 15, 47, 98, 107, 42...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Dealing with .NET iDisposable objects === I work in C#, and I've been pretty lax about using `using` blocks to declare objects that implement `iDisposable`, which you're apparently always supposed to do. However, I don't see an easy way of knowing when I'm slipping up. Visual Studio doesn't seem to indicate this in any way (am I just missing something?). Am I just supposed to check help every time I declare anything, and gradually build up an encyclopedic memory for which objects are and which are not disposable? Seems unnecessary, painful, and error-prone. How do *you* handle this?
0
[ 2, 5746, 29, 13, 9, 2328, 13, 19405, 12551, 579, 3916, 800, 3726, 3726, 31, 170, 19, 272, 5910, 15, 17, 31, 22, 195, 74, 1772, 333, 396, 88, 568, 13, 1, 12655, 1, 5198, 20, 10123, 3916, 30, 8713, 13, 1, 19405, 12551, 579, 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...
Why don't more .NET applications use MySQL or a DAO that allows for the use of MySQL? === I suppose this question could just as easily be applied to PHP with regard to MSSQL. However, with some versions of MSSQL being so expensive, I always wondered, what is the real advantage of choosing it over MySQL for .NET development? Is it really difficult to use .NET tools in conjunction with a MySQL database? Why not create some sort of DAO that abstracts out the differences between the two so that you can use both? As I consider building .NET apps, I'm always wondering, should I just go with MSSQL, and not even consider MySQL as an option?
0
[ 2, 483, 221, 22, 38, 91, 13, 9, 2328, 3767, 275, 51, 18, 22402, 54, 21, 13, 17104, 30, 2965, 26, 14, 275, 16, 51, 18, 22402, 60, 800, 3726, 3726, 31, 5787, 48, 1301, 110, 114, 28, 2351, 44, 2435, 20, 13, 26120, 29, 6731, 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...
Help with using ConfigurationSection to properly read from a config file === I'm trying to create classes to read from my config file using ConfigurationSection and ConfigurationElementCollection but am having a hard time. As an example of the config: <pre><code> &lt;PaymentMethodSettings&gt; &lt;PaymentMethods&gt; &lt;PaymentMethod name="blah blah" code="1"/&gt; &lt;PaymentMethod name="blah blah" code="42"/&gt; &lt;PaymentMethod name="blah blah" code="43"/&gt; &lt;Paymentmethod name="Base blah"&gt; &lt;SubPaymentMethod name="blah blah" code="18"/&gt; &lt;SubPaymentMethod name="blah blah" code="28"/&gt; &lt;SubPaymentMethod name="blah blah" code="38"/&gt; &lt;/Paymentmethod&gt; &lt;/PaymentMethods&gt; &lt;/PaymentMethodSettings&gt; </code></pre>
0
[ 2, 448, 29, 568, 8091, 10579, 20, 7428, 1302, 37, 21, 13, 14093, 2816, 3893, 800, 3726, 3726, 31, 22, 79, 749, 20, 1600, 2684, 20, 1302, 37, 51, 13, 14093, 2816, 3893, 568, 8091, 10579, 17, 8091, 27567, 15015, 872, 47, 589, 452, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
fast geometic proximity predicatefast geometric proximity predicate === I have 3 points (A, B and X) and a distance (d). I need to make a function that tests if point X is closer than distance d to any point on the line segment AB. The question is firstly, is my solution correct and then to come up with a better (faster) solution. My first pass is as follows AX = X-A BX = X-B AB = A-B // closer than d to A (done squared to avoid needing to compute the sqrt in mag) If d^2 < AX.mag^2 return true // closer than d to B If d^2 < BX.mag^2 return true // "beyond" B If (dot(BX,AB) < 0) return false // "beyond" A If (dot(AX,AB) > 0) return false // find component of BX perpendicular to AB Return (BX.mag)^2 - (dot(AB,BX)/AB.mag)^2 < d^2 This code will end up being run for a large set of P's and a large set of A/B/d triplets with the intent of finding all P's that pass for at least one A/B/d so I suspect that there is a way to reduce overall the cost based on that but I haven't looked into that yet. (BTW: I am aware that some reordering, some temporary values and some algebraic identities could decrease the cost of the above. I just omitted them for clarity.)
0
[ 2, 1512, 6389, 79, 9329, 10493, 28712, 13088, 13958, 10493, 28712, 800, 3726, 3726, 31, 57, 203, 819, 13, 5, 58, 15, 334, 17, 993, 6, 17, 21, 1583, 13, 5, 43, 6, 9, 31, 376, 20, 233, 21, 1990, 30, 4894, 100, 454, 993, 25, 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...
Help with CredEnumerate === As a follow-up to [this][1] question I am hoping someone can help with the [CredEnumerate][2] API. As I understand from the documentation the PCREDENTIALS out parameter is a "pointer to an array of pointers to credentials". I am able to successfully call the CredEnumerate API using C# but I am not sure of how to convert the PCREDENTIALS into something useful (like a list of credentials). Any ideas? [1]: http://stackoverflow.com/questions/199518/how-to-programatically-add-mapped-network-passwords-winxp [2]: http://msdn.microsoft.com/en-us/library/aa374794(VS.85).aspx
0
[ 2, 448, 29, 5059, 817, 9472, 5487, 800, 3726, 3726, 28, 21, 1740, 8, 576, 20, 636, 1565, 500, 2558, 165, 500, 1301, 31, 589, 3935, 737, 92, 448, 29, 14, 636, 6037, 817, 9472, 5487, 500, 2558, 135, 500, 21, 2159, 9, 28, 31, 136...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
choosing a SOAP library to integrate with ISAPI webapp === The company I work for has a large webapp written in C++ as an ISAPI extension (not a filter). We're currently enhancing our system to integrate with several 3rd party tools that have SOAP interfaces. Rather than roll our own, I think it would probably be best if we used some SOAP library. Ideally, it would be free and open source, but have a license compatible with closed-source commercial software. We also need to support SSL for both incoming and outgoing SOAP messages. One of the biggest concerns I have is that every SOAP library that I've looked at seems to have 2 modes of operation: standalone server and server module (either Apache module or ISAPI filter). Obviously, we can't use the standalone server. It seems to me that if it is running as a module, it won't be part of my app -- it won't have access to the rest of my code, so it won't be able to share data structures, etc. Is that a correct assumption? Each HTTP request processed by our app is handled by a separate thread (we manage our own thread pool), but we have lots of persistent data that is shared between those threads. I think the type of integration I'm looking for is to add some code to my app that looks at the request URL, sees that it is trying to access a SOAP service, and calls some function like soapService.handleRequest(). I'm not aware of anything that offers this sort of integration. We must be able to utilize data structures from our main app in the SOAP handler functions. In addition to handling incoming SOAP requests, we're also going to be generating them (bi-directional communication with the 3rd parties). I assume pretty much any SOAP library will fulfill that purpose, right? Can anyone suggest a SOAP library that is capable of this, or offer a suggestion on how to use a different paradigm? I've already looked at Apache Axis2, gSOAP and AlchemySOAP, but perhaps there's some feature of these that I overlooked. Thanks.
0
[ 2, 10883, 21, 6447, 1248, 20, 18399, 29, 25, 2552, 49, 2741, 7753, 800, 3726, 3726, 14, 237, 31, 170, 26, 63, 21, 370, 2741, 7753, 642, 19, 272, 20512, 28, 40, 25, 2552, 49, 3896, 13, 5, 1270, 21, 11945, 6, 9, 95, 22, 99, 87...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 a good (cheap/free) calendar/schedule control for asp.net? === I need a calendar/scheduler control for asp.net - not a pop-up date picker, but a full page monthly calendar. I'm trying to create an on call rotation / scheduler utility for work, and it'd be great to display the who's on call info in a calendar on a web page where others could quickly see who's on call. using visual studio 2008/asp/net 3.5 (I had a look around the net and on this site, but didn't turn up what I was looking for so I am hopeing someone here can point me in the right direction)
0
[ 2, 98, 25, 21, 254, 13, 5, 2569, 2552, 118, 4639, 6, 7036, 118, 18, 6261, 9813, 569, 26, 28, 306, 9, 2328, 60, 800, 3726, 3726, 31, 376, 21, 7036, 118, 7526, 11203, 106, 569, 26, 28, 306, 9, 2328, 13, 8, 52, 21, 1675, 8, 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 can I best handle WPF radio buttons? === I've got some RadioButtons in my XAML... <StackPanel> <RadioButton Name="RadioButton1" GroupName="Buttons" Click="ButtonsChecked" IsChecked="True">One</RadioButton> <RadioButton Name="RadioButton2" GroupName="Buttons" Click="ButtonsChecked">Two</RadioButton> <RadioButton Name="RadioButton3" GroupName="Buttons" Click="ButtonsChecked">Three</RadioButton> </StackPanel> And I can handle their click events in the Visual Basic code. This works... <pre> Private Sub ButtonsChecked(ByVal sender As System.Object, _ ByVal e As System.Windows.RoutedEventArgs) Select Case CType(sender, RadioButton).Name Case "RadioButton1" 'Do something one Exit Select Case "RadioButton2" 'Do something two Exit Select Case "RadioButton3" 'Do something three Exit Select End Select End Sub </pre> But, I'd like to improve it. This code fails... <StackPanel> <RadioButton Name="RadioButton1" GroupName="Buttons" Click="ButtonsChecked" Command="one" IsChecked="True">One</RadioButton> <RadioButton Name="RadioButton2" GroupName="Buttons" Click="ButtonsChecked" Command="two">Two</RadioButton> <RadioButton Name="RadioButton3" GroupName="Buttons" Click="ButtonsChecked" Command="three">Three</RadioButton> </StackPanel> <pre> Private Sub ButtonsChecked(ByVal sender As System.Object, _ ByVal e As System.Windows.RoutedEventArgs) Select Case CType(sender, RadioButton).Command Case "one" 'Do something one Exit Select Case "two" 'Do something two Exit Select Case "three" 'Do something three Exit Select End Select End Sub </pre> In my XAML I get a blue squiggly underline on the **Command=** attributes and this tip... <pre>'CommandValueSerializer' ValueSerializer cannot convert from 'System.String'.</pre> In my VB I get a green squiggly underline on the **Select Case** line and this warning... <pre>Runtime errors might occur when converting 'System.Windows.Input.ICommand' to 'String'.</pre> Even better would be to use Enum type commands with full Intellisense and compile errors rather than runtime errors in case of typos. How can I improve this?
0
[ 2, 184, 92, 31, 246, 3053, 619, 7721, 603, 12861, 60, 800, 3726, 3726, 31, 22, 195, 330, 109, 603, 811, 444, 18, 19, 51, 13, 6791, 8184, 9, 9, 9, 13, 1, 25325, 3206, 532, 1, 13, 1, 11129, 811, 444, 204, 3726, 7, 11129, 811, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 dynamically create/remove controls, with EventHandlers, to/from and ASP.NET page? === In one of my projects I need to build an ASP.NET page and some of the controls need to be created dynamically. These controls are added to the page by the code-behind class and they have some event-handlers added to them. Upon the PostBacks these event-handlers have a lot to do with what controls are then shown on the page. To cut the story short, this doesn't work for me and I don't seem to be able to figure this out. So, as my project is quite involved, I decided to create a short example that doesn't work either but if you can tweak it so that it works, that would be great and I would then be able to apply your solution to my original problem. The following example should dynamically create three buttons on a panel. When one of the buttons is pressed all of the buttons should be dynamically re-created except for the button that was pressed. In other words, just hide the button that the user presses and show the other two. For your solution to be helpful you can't statically create the buttons and then use the Visible property (or drastically change the example in other ways) - you have to re-create all the button controls dynamically upon every PostBack (not necessarily in the event-handler though). This is not a trick-question - I really don't know how to do this. Thank you very much for your effort. Here is my short example: From the Default.aspx file: --- <body> <form id="form1" runat="server"> <div> <asp:Panel ID="ButtonsPanel" runat="server"></asp:Panel> </div> </form> </body> From the Default.aspx.cs code-behind file: --- using System; using System.Web.UI; using System.Web.UI.WebControls; namespace DynamicControls { public partial class _Default : Page { protected void Page_Load(object sender, EventArgs e) { AddButtons(); } protected void AddButtons() { var lastClick = (string) Session["ClickedButton"] ?? ""; ButtonsPanel.Controls.Clear(); if (!lastClick.Equals("1")) AddButtonControl("1"); if (!lastClick.Equals("2")) AddButtonControl("2"); if (!lastClick.Equals("3")) AddButtonControl("3"); } protected void AddButtonControl(String id) { var button = new Button {Text = id}; button.Click += button_Click; ButtonsPanel.Controls.Add(button); } private void button_Click(object sender, EventArgs e) { Session["ClickedButton"] = ((Button) sender).Text; AddButtons(); } } } My example shows the three buttons and when I click one of the buttons, the pressed button gets hidden. Seems to work; but after this first click, I have to click each button **TWICE** for it to get hidden. !?
0
[ 2, 184, 107, 31, 7782, 1326, 1600, 118, 99, 16598, 8671, 15, 29, 807, 3203, 1252, 18, 15, 20, 118, 2665, 17, 28, 306, 9, 2328, 2478, 60, 800, 3726, 3726, 19, 53, 16, 51, 2314, 31, 376, 20, 1895, 40, 28, 306, 9, 2328, 2478, 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...
Forking open source PHP code, project classloader strategy === I've been looking for a good PHP ORM tool to use, and I recently found a good ORM class in Kohana. It has a fairly good and simple ORM implementation. The problem is, the code is unreusable outside of the Kohana framework without a rewrite/refactor. It relies on the Kohana class loader and various framework loading strategies to even work in the first place. Further, the required classes aren't packaged into a single dependency directory, or even multiple directories. When I do this rewrite, I intend to republish the code via sourceforge or something, and those guys can of course reuse it if they want. So, should I just package the fileset needed into one directory, and make the appropriate classes do a require_once on any dependant classes, and 2 should I stick with the original class names that are project dependent (like Kohana_exception) even though it is pretty much unrelated to the Kohana project as a whole? A second option would be to write another classloader that is a simplified version of the Kohana Framework classloader, and only cares about the ORM related stuff...
0
[ 2, 26, 1581, 368, 1267, 13, 26120, 1797, 15, 669, 718, 8294, 106, 4427, 800, 3726, 3726, 31, 22, 195, 74, 699, 26, 21, 254, 13, 26120, 54, 79, 5607, 20, 275, 15, 17, 31, 1989, 216, 21, 254, 54, 79, 718, 19, 1584, 7285, 9, 32...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
automatically launch app on USB (through autorun?) === is it possible to automatically launch an app from USB flash drive (bypassing windows prompt asking user what he wants to do)? on windows XP or vista. I looked into **autorun.inf** and **open** entry seems to work only for CD drives
0
[ 2, 7499, 3394, 4865, 27, 182, 220, 13, 5, 11639, 3108, 3169, 60, 6, 800, 3726, 3726, 25, 32, 938, 20, 7499, 3394, 40, 4865, 37, 182, 220, 4433, 1493, 13, 5, 779, 6201, 68, 1936, 11443, 4417, 3379, 4155, 98, 24, 2846, 20, 107, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Minify Html output of ASP.NET Application === What are the ways by which we can reduce the size of the HTML Response sent by an asp.net application? I am using Controls which are not owned by me and it produces output with white spaces. I am interested in Minifying the entire HTML output of the page just like how google does (View source www.google.com) to improve the timing. Is there any Utility classes available for ASP.NET which can do this stuff for me?
0
[ 2, 4232, 8612, 13, 15895, 5196, 16, 28, 306, 9, 2328, 3010, 800, 3726, 3726, 98, 50, 14, 2847, 34, 56, 95, 92, 4136, 14, 1072, 16, 14, 13, 15895, 1627, 795, 34, 40, 28, 306, 9, 2328, 3010, 60, 31, 589, 568, 8671, 56, 50, 52,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
scriptless JSP === Is there any way to do the equivalent of the following in a JSP without using scriptlet? <% response.setContentType("text/plain"); %> Cheers, Don
0
[ 2, 3884, 923, 487, 3401, 800, 3726, 3726, 25, 80, 186, 161, 20, 107, 14, 4602, 16, 14, 249, 19, 21, 487, 3401, 366, 568, 3884, 1336, 60, 13, 1, 11881, 1627, 9, 3554, 25424, 4474, 5, 7, 11969, 118, 9897, 108, 7, 6, 73, 13, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Converting datetime to POSIX time === How do I convert a datetime or date object into a POSIX timestamp in python? There are methods to create a datetime object out of a timestamp, but I don't seem to find any obvious ways to do the operation the opposite way.
0
[ 2, 19583, 1231, 891, 20, 2353, 6742, 85, 800, 3726, 3726, 184, 107, 31, 8406, 21, 1231, 891, 54, 1231, 3095, 77, 21, 2353, 6742, 436, 38, 10158, 19, 20059, 60, 80, 50, 3195, 20, 1600, 21, 1231, 891, 3095, 70, 16, 21, 436, 38, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
IE javascript string indexers === is there some way I can define string[int] to avoid using string.CharAt(int)?
0
[ 2, 13, 660, 8247, 8741, 3724, 4348, 445, 800, 3726, 3726, 25, 80, 109, 161, 31, 92, 9267, 3724, 2558, 6391, 500, 20, 2658, 568, 3724, 9, 5433, 721, 5, 6391, 6, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Install a .NET windows service without InstallUtil.exe === I have a standard .NET windows service written in C#. Can it install itself without using InstallUtil? Should I use the service installer class? How should I use it? I want to be able to call the following: MyService.exe -install and it will have the same effect as calling: InstallUtil MyService.exe
0
[ 2, 16146, 21, 13, 9, 2328, 1936, 365, 366, 16146, 14255, 9, 1706, 62, 800, 3726, 3726, 31, 57, 21, 1236, 13, 9, 2328, 1936, 365, 642, 19, 272, 5910, 9, 92, 32, 16146, 1145, 366, 568, 16146, 14255, 60, 378, 31, 275, 14, 365, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Multi-Parameterized Threads Effeciency === Would there a more elegant way of writing the following syntax? Thread t0 = new Thread(new ParameterizedThreadStart(doWork)); t0.Start('someVal'); t0.Join(); Thread t1 = new Thread(new ParameterizedThreadStart(doWork)); t1.Start('someDiffVal'); t1.Join(); Presuming we want to pass 20 different values, what would the best way of setting this up be? Looping through and joining at the end? If a new thread isn't instantiated (like below), it errors that the thread can't be restarted. For example: Thread t1 = new Thread(new ParameterizedThreadStart(doWork)); t1.Start('someVal'); t1.Start('someDiffVal');
0
[ 2, 1889, 8, 6351, 7307, 1333, 20396, 13, 25202, 1892, 8883, 800, 3726, 3726, 83, 80, 21, 91, 11614, 161, 16, 1174, 14, 249, 22649, 60, 9322, 13, 38, 387, 800, 78, 9322, 5, 2681, 18906, 1333, 96, 10647, 13680, 5, 537, 3783, 6, 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...
Using existing SWIG wrappers when creating new ones === I have an existing library (JPhysX) that is a Java wrapper for a native C++ library (PhysX). The Java library makes use of types generated by SWIG, for example, <code>`com.jphysx.SWIGTYPE_p_NxStream`</code>, which represents a pointer to an <code>NxStream</code> object in the C++ code. Now I want to create my own C++ function that I can call from Java, and returns an object of this type. The problem is that when I call SWIG to generate this function, it also creates a new wrapper called <code>`SWIGTYPE_p_NxStream`</code>, which is functionally identical to the one in <code>`com.jphysx`</code>, but still a different type as far as Java is concerned. How can I convince SWIG to reuse this existing wrapper from <code>com.jphysx</code> and make my function return a wrapper of type <code>`com.jphysx.SWIGTYPE_p_NxStream`</code> instead?
0
[ 2, 568, 3149, 13, 18, 12445, 28051, 18, 76, 2936, 78, 53, 18, 800, 3726, 3726, 31, 57, 40, 3149, 1248, 13, 5, 728, 10100, 396, 6, 30, 25, 21, 8247, 28051, 26, 21, 1275, 272, 20512, 1248, 13, 5, 10100, 396, 6, 9, 14, 8247, 12...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
JQuery DatePicker bundled control can't be included in other controls === I've been tasked with implementing a Date/Time selector for several areas of our web project, and instructed to use a control that another developer created as part of it. The control I'm working on is supposed to allow the user to choose a date from a calendar, choose a format for the display of that date (from several pre-defined formats, or with a simple text override) and optionally a time string (which is really just freeform text). The control I was instructed to use is documented here: http://www.west-wind.com/WebLog/posts/213015.aspx, and uses the DatePicker from jQuery. After I implemented my control and tested it, I began integrating it into the pages which needed Date and/or time inputs. In my testing of those implementations, I discovered a bug: when I include multiple copies of my control on a page, only the first one gets the jQuery calendar. The others are not tied to it. I have tried some of the methods suggested in a seemingly-related question (titled 'duplicating jquery datepicker'), such as calling the '.datepicker()' function on the west-wind control (which renders a textbox) via the $("css-selector").datepicker() syntax, and ASP.NET is guaranteeing unique IDs for all the text boxes. So, in summation, it looks like this: <page> <mycontrol> <west-windjQuerycontrol /> </mycontrol> <mycontrol> <west-windjQuerycontrol /> </mycontrol> </page> Now, the strange part: When there are multiple copies of the west-wind control on the page, without the other user control containing them, they work correctly. Other than the jQuery control, my control has nothing unusual about it: simply labels, textboxes, panels, and dropdowns. Something about bundling the West-Wind jQuery control into a user control seems to be breaking it. Any advice? I've been banging my head against this for a while, hampered by my poor javascript skills and limited exposure to jQuery.
0
[ 2, 487, 8190, 93, 1231, 16855, 106, 10194, 43, 569, 92, 22, 38, 44, 506, 19, 89, 8671, 800, 3726, 3726, 31, 22, 195, 74, 14605, 29, 17333, 21, 1231, 118, 891, 23946, 26, 238, 924, 16, 318, 2741, 669, 15, 17, 10456, 20, 275, 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...
Open ports under Fedora Core 8 (for VMWare Server) === I have just installed VMWare Server 2.0 on a fresh Fedora Core 8 install. The ports for the web access console of VMWare are 8222 and 8333 (like the defaults). When I try a remote http access to myserver:8222 it fails. But when I run /sbin/service iptables stop access becomes possibles (although not very satisfactory). Thus, I have updated the conf file as follow cat /etc/sysconfig/iptables # Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] :RH-Firewall-1-INPUT - [0:0] -A INPUT -j RH-Firewall-1-INPUT -A RH-Firewall-1-INPUT -i lo -j ACCEPT -A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT -A RH-Firewall-1-INPUT -p 50 -j ACCEPT -A RH-Firewall-1-INPUT -p 51 -j ACCEPT -A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT -A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited # Custom authorization for VMWare administration -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8222 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8333 -j ACCEPT COMMIT yet, even after reloading the iptables settings it's still not working. Do anyone knows what I am doing wrong?
0
[ 2, 368, 9551, 131, 26726, 58, 2884, 469, 13, 5, 1106, 13, 20147, 5011, 8128, 6, 800, 3726, 3726, 31, 57, 114, 4066, 13, 20147, 5011, 8128, 172, 9, 387, 27, 21, 3180, 26726, 58, 2884, 469, 16146, 9, 14, 9551, 26, 14, 2741, 1381, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 difference between a string and a symbol in Ruby? === What's the difference between a string and a symbol in Ruby and when should you use one over the other?
0
[ 2, 98, 22, 18, 14, 2841, 128, 21, 3724, 17, 21, 4678, 19, 10811, 60, 800, 3726, 3726, 98, 22, 18, 14, 2841, 128, 21, 3724, 17, 21, 4678, 19, 10811, 17, 76, 378, 42, 275, 53, 84, 14, 89, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...