unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
jQuery: how to change title of document during .ready() ? === I am using some nested layouts in Ruby on Rails, and in one of the layouts i have a need to read in a string from a div and set that as the title of the document. What is correct way (if any) to set the title of the document? <script type="text/javascript"> $(document).ready(function() { // ??? }); </script>
0
[ 2, 487, 8190, 93, 45, 184, 20, 753, 581, 16, 4492, 112, 13, 9, 15193, 5, 6, 13, 60, 800, 3726, 3726, 31, 589, 568, 109, 5618, 69, 9106, 18, 19, 10811, 27, 2240, 18, 15, 17, 19, 53, 16, 14, 9106, 18, 31, 57, 21, 376, 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...
Detecting when a user leaves a page / browser in Flex === I have an HTML wrapper that contains a Flex application, is there an Event that I can listen on, that is triggered when a user leaves the HTML wrapper either by navigation arrows or closing the browser? Thanks.
0
[ 2, 9092, 68, 76, 21, 4155, 2084, 21, 2478, 13, 118, 16495, 19, 14409, 800, 3726, 3726, 31, 57, 40, 13, 15895, 28051, 30, 1588, 21, 14409, 3010, 15, 25, 80, 40, 807, 30, 31, 92, 3834, 27, 15, 30, 25, 15164, 76, 21, 4155, 2084, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
Designing Game Objects === I recently started working on a small game for my own amusement, using Microsoft XNA and C#. My question is in regards to designing a game object and the objects that inherit it. I'm going to define a game object as something that can be rendered on screen. So for this, I decided to make a base class which all other objects that will need to be rendered will inherit, called GameObject. The code below is the class I made: class GameObject { private Model model = null; private float scale = 1f; private Vector3 position = Vector3.Zero; private Vector3 rotation = Vector3.Zero; private Vector3 velocity = Vector3.Zero; private bool alive = false; protected ContentManager content; #region Constructors public GameObject(ContentManager content, string modelResource) { this.content = content; model = content.Load<Model>(modelResource); } public GameObject(ContentManager content, string modelResource, bool alive) : this(content, modelResource) { this.alive = alive; } public GameObject(ContentManager content, string modelResource, bool alive, float scale) : this(content, modelResource, alive) { this.scale = scale; } public GameObject(ContentManager content, string modelResource, bool alive, float scale, Vector3 position) : this(content, modelResource, alive, scale) { this.position = position; } public GameObject(ContentManager content, string modelResource, bool alive, float scale, Vector3 position, Vector3 rotation) : this(content, modelResource, alive, scale, position) { this.rotation = rotation; } public GameObject(ContentManager content, string modelResource, bool alive, float scale, Vector3 position, Vector3 rotation, Vector3 velocity) : this(content, modelResource, alive, scale, position, rotation) { this.velocity = velocity; } #endregion } I've left out extra methods that do things such as rotate, move, and draw the object. Now if I wanted to create another object, like a ship, I'd create a Ship class, which would inherit GameObject. Sample code below: class Ship : GameObject { private int num_missiles = 20; // the number of missiles this ship can have alive at any given time private Missile[] missiles; private float max_missile_distance = 3000f; // max distance a missile can be from the ship before it dies #region Constructors public Ship(ContentManager content, string modelResource) : base(content, modelResource) { InitShip(); } public Ship(ContentManager content, string modelResource , bool alive) : base(content, modelResource, alive) { InitShip(); } public Ship(ContentManager content, string modelResource, bool alive, float scale) : base(content, modelResource, alive, scale) { InitShip(); } public Ship(ContentManager content, string modelResource, bool alive, float scale, Vector3 position) : base(content, modelResource, alive, scale, position) { InitShip(); } public Ship(ContentManager content, string modelResource, bool alive, float scale, Vector3 position, Vector3 rotation) : base(content, modelResource, alive, scale, position, rotation) { InitShip(); } public Ship(ContentManager content, string modelResource, bool alive, float scale, Vector3 position, Vector3 rotation, Vector3 velocity) : base(content, modelResource, alive, scale, position, rotation, velocity) { InitShip(); } #endregion } Again, I've left out any extra Ship-specific methods, like firing a missile. Do you think that this sort of design is good or should it be improved somehow or changed completely? It seems like the constructors for child classes is messy, but maybe that's the only way to do it. I've never done anything like this and am wondering if I'm way off track.
0
[ 2, 15026, 250, 3916, 800, 3726, 3726, 31, 1989, 373, 638, 27, 21, 284, 250, 26, 51, 258, 9697, 15, 568, 7099, 993, 325, 17, 272, 5910, 9, 51, 1301, 25, 19, 14179, 20, 15026, 21, 250, 3095, 17, 14, 3916, 30, 17569, 32, 9, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Generating a Reporting Services 2005 PDF report and storing it on disk === Is there an easy way to generate a PDF report from an RDL that's been uploaded to Report Manager and put that file somewhere on the server's disk? I already have a location on disk to put the file, I just need to know how to programmatically generate the PDF. This is for SQL Server 2005 Reporting Services. Code in either VB or C# is fine.
0
[ 2, 13500, 21, 6670, 687, 812, 13, 11124, 1330, 17, 25615, 32, 27, 8582, 800, 3726, 3726, 25, 80, 40, 2010, 161, 20, 7920, 21, 13, 11124, 1330, 37, 40, 13, 897, 255, 30, 22, 18, 74, 23782, 20, 1330, 1382, 17, 442, 30, 3893, 349...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 time a method's execution in Java? === It seems like it should be simpler than it is to get a method's execution time. Is there a Timer utility class for things like timing how long a task takes, etc? Most of the searches on Google return results for timers that schedule threads and tasks, which is not what I want.
0
[ 2, 184, 107, 31, 85, 21, 2109, 22, 18, 5769, 19, 8247, 60, 800, 3726, 3726, 32, 2206, 101, 32, 378, 44, 19120, 119, 32, 25, 20, 164, 21, 2109, 22, 18, 5769, 85, 9, 25, 80, 21, 85, 139, 10082, 718, 26, 564, 101, 11812, 184, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 expose a C ODBC connection to a JVM using JNI? === I'm embedding a JRE in an existing C application using the invocation API, and I'd like to be able to use JDBC to work with the database in that code. This application is a transaction processing application, and the database transaction is managed by code in the C portion of the application, and the java code must run within that transaction. This means that I can't open a _new_ connection, I must re-use the existing one. So, is there a way to provide JDBC access to an existing ODBC connection handle when setting up the JRE? Some JDBC-ODBC bridge, perhaps, but unlike the existing driver by that name, one that can be set up to use an existing connection and transaction. My other options, as I see them, are as follows: * Provide java equivalents for every C operation that is possible in the application (this is not desirable for a great many reasons -- we have a great many methods and duplicating them is a pain in the ass. * Write my own JDBC driver that wraps the ODBC connection with JNI. Sure, it'd be a fun weekend (month) project, but I expect to need something done faster than that. Help me, Stack-Overflow, you're my only hope!
0
[ 2, 184, 92, 31, 13833, 21, 272, 12340, 7229, 2760, 20, 21, 487, 20147, 568, 487, 889, 60, 800, 3726, 3726, 31, 22, 79, 11911, 69, 3258, 21, 487, 99, 19, 40, 3149, 272, 3010, 568, 14, 19, 2625, 16893, 21, 2159, 15, 17, 31, 22, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Ctor with no arguments === Is there any good reason that an empty set of brackets isn't valid for calling the default ctor in c++? MyObject object; // ok - default ctor MyObject object(blah); // ok MyObject object(); // error I seem to type "()" automatically everytime. I just wondered if there was a good reason this isn't allowed?
0
[ 2, 272, 2153, 29, 90, 10553, 800, 3726, 3726, 25, 80, 186, 254, 1215, 30, 40, 2424, 309, 16, 21971, 2532, 22, 38, 7394, 26, 2555, 14, 12838, 272, 2153, 19, 272, 20512, 60, 51, 23793, 3095, 73, 12894, 5854, 13, 8, 12838, 272, 215...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 DIV click, with anchors === To make click-able divs, I do: <div class="clickable" url="http://google.com"> blah blah </div> and then $("div.clickable").click( function() { window.location = $(this).attr("url"); }); I don't know if this is the best way, but it works perfectly with me, except for one issue: If the div contains a click-able element, such as &lt;a href="..."&gt;, and the user clicks on the hyperlink, both the hyperlink and div's-clickable are called This is especially a problem when the anchor tag is referring to a javascript AJAX function, which executes the AJAX function *AND* follows the link in the 'url' attribute of the div. Anyway around this?
0
[ 2, 487, 8190, 93, 13, 12916, 10840, 15, 29, 6265, 18, 800, 3726, 3726, 20, 233, 10840, 8, 579, 13, 12916, 18, 15, 31, 107, 45, 13, 1, 12916, 718, 3726, 7, 150, 10129, 579, 7, 287, 6362, 3726, 7, 21127, 6903, 16111, 4875, 9, 96...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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-site login ala Google. === Not sure if the title is quite right for the question but I can't think of any other way to put it.. Suppose you wanted to create multiple different web apps, but you wanted a user who was logged into one app to be able to go straight to your other app without re-logging in (assuming they have perms to look at the other app as well). If I'm not mistaken, if you're logged into gmail you can go straight to your iGoogle, googleReader, etc without re-logging in (if you set it up right). How would you approach this? What would you use? Assume the apps already exist and you don't want to change the initial login page for the users.
0
[ 2, 1889, 8, 9097, 6738, 108, 21, 531, 8144, 9, 800, 3726, 3726, 52, 562, 100, 14, 581, 25, 1450, 193, 26, 14, 1301, 47, 31, 92, 22, 38, 277, 16, 186, 89, 161, 20, 442, 32, 9, 9, 5787, 42, 417, 20, 1600, 1886, 421, 2741, 48...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
HTTP input filter like mod_security for WebSphere? === Does WebSphere offer an HTTP input filter / firewall like mod_security? I know that it's possible to have Apache be the HTTP server front-end to WebSphere, but that type of configuration is beyond my influence. We're stuck using just what WebSphere itself can do.
0
[ 2, 7775, 6367, 11945, 101, 7226, 1, 17749, 26, 2741, 14079, 60, 800, 3726, 3726, 630, 2741, 14079, 1994, 40, 7775, 6367, 11945, 13, 118, 535, 6051, 101, 7226, 1, 17749, 60, 31, 143, 30, 32, 22, 18, 938, 20, 57, 17140, 44, 14, 77...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Editing tables with MSHTML === Is there a way to create/edit a table using MSHTML without resorting to editing the underlying HTML?
0
[ 2, 9510, 7484, 29, 4235, 15895, 800, 3726, 3726, 25, 80, 21, 161, 20, 1600, 118, 69, 242, 21, 859, 568, 4235, 15895, 366, 4765, 68, 20, 9510, 14, 10974, 13, 15895, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How can I copy a mySQL Database in ruby on rails? === We are making a Ruby On Rails webapp where every customer gets their own database. We have a template database that has all of the tables and columns that we need to copy. How can I do this in rails?
0
[ 2, 184, 92, 31, 4344, 21, 51, 18, 22402, 6018, 19, 10811, 27, 2240, 18, 60, 800, 3726, 3726, 95, 50, 544, 21, 10811, 27, 2240, 18, 2741, 7753, 113, 352, 7705, 3049, 66, 258, 6018, 9, 95, 57, 21, 22894, 6018, 30, 63, 65, 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...
Where are the DataValueField values for a CheckBoxList stored? === I have this CheckBoxList on a page: <asp:checkboxlist runat="server" id="Locations" datasourceid="LocationsDatasource" datatextfield="CountryName" datavaluefield="CountryCode" /> I'd like to loop through the checkbox elements on the client using Javascript and grab the value of each checked checkbox, but the values don't appear to be available on the client side. The HTML output looks like this: <table id="ctl00_Content_Locations" class="SearchFilterCheckboxlist" cellspacing="0" cellpadding="0" border="0" style="width:235px;border-collapse:collapse;"> <tr> <td><input id="ctl00_Content_Locations_0" type="checkbox" name="ctl00$Content$Locations$0" /><label for="ctl00_Content_Locations_0">Democratic Republic of the Congo</label></td> </tr><tr> <td><input id="ctl00_Content_Locations_1" type="checkbox" name="ctl00$Content$Locations$1" /><label for="ctl00_Content_Locations_1">Central African Republic</label></td> </tr><tr> <td><input id="ctl00_Content_Locations_2" type="checkbox" name="ctl00$Content$Locations$2" /><label for="ctl00_Content_Locations_2">Congo</label></td> </tr><tr> <td><input id="ctl00_Content_Locations_3" type="checkbox" name="ctl00$Content$Locations$3" /><label for="ctl00_Content_Locations_3">Cameroon</label></td> </tr><tr> <td><input id="ctl00_Content_Locations_4" type="checkbox" name="ctl00$Content$Locations$4" /><label for="ctl00_Content_Locations_4">Gabon</label></td> </tr><tr> <td><input id="ctl00_Content_Locations_5" type="checkbox" name="ctl00$Content$Locations$5" /><label for="ctl00_Content_Locations_5">Equatorial Guinea</label></td> </tr> </table> The values ("cd", "cg", "ga", etc.) are nowhere to be found. Where are they? Is it even possible to access them on the client, or do I need to build this checkboxlist myself using a repeater or something?
0
[ 2, 113, 50, 14, 1054, 15165, 1109, 4070, 26, 21, 2631, 5309, 5739, 8214, 60, 800, 3726, 3726, 31, 57, 48, 2631, 5309, 5739, 27, 21, 2478, 45, 13, 1, 472, 306, 45, 12542, 5309, 5739, 485, 721, 3726, 7, 10321, 106, 7, 4924, 3726, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Which Visual Studio debugger features are missing from WinDbg? === Are there any?
0
[ 2, 56, 3458, 1120, 121, 2345, 11356, 967, 50, 2863, 37, 1511, 19924, 60, 800, 3726, 3726, 50, 80, 186, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Twiki/Source Control with fine-grained permissions for internal and external use === We've been using trac and svn internally with fairly good results. Now we'd like to open up parts of our system to external vendors - eg. we'd like to create an area on the twiki for our external designer to upload images, document things, and so forth. We need to be able to restrict his access to only that part of the twiki. Similarly we have external developers working on specific modules that we'd like to provide twiki and svn access to, but only for their subset of the project. We started to do this with trac, then switched to pursuing basecamp, then basecamp alternatives, and then generally floundered. What do you recommend?
0
[ 2, 13, 38, 17375, 118, 12097, 569, 29, 1123, 8, 4973, 108, 69, 5572, 18, 26, 3117, 17, 4886, 275, 800, 3726, 3726, 95, 22, 195, 74, 568, 13, 38, 5797, 17, 13, 18, 16578, 17739, 29, 6647, 254, 1736, 9, 130, 95, 22, 43, 101, 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...
Proper naming of enum values for C# === How do you think, is it a good idea to have such an enum: enum AvailableSpace { Percent10, Percent20, SqF500, SqF600 } The question is about the semantics of the values names, i.e. both percentage and square feet. I really believe that it's not a good idea, but I could not find and guidelines, etc. in support of this.
0
[ 2, 4119, 10929, 16, 1957, 723, 4070, 26, 272, 5910, 800, 3726, 3726, 184, 107, 42, 277, 15, 25, 32, 21, 254, 882, 20, 57, 145, 40, 1957, 723, 45, 1957, 723, 904, 5582, 13, 1, 2091, 1036, 15, 2091, 1323, 15, 4444, 410, 6000, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Visual Designer errors, when there are no errors === I get errors when viewing forms and there are not any. I can close VS and reopen and it is fine. What cases this? Can it be fixed without closing?
0
[ 2, 3458, 4742, 11908, 15, 76, 80, 50, 90, 11908, 800, 3726, 3726, 31, 164, 11908, 76, 11244, 1997, 17, 80, 50, 52, 186, 9, 31, 92, 543, 4611, 17, 21398, 17, 32, 25, 1123, 9, 98, 1871, 48, 60, 92, 32, 44, 3535, 366, 4239, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to preview git-pull without doing fetch? === Is it even possible? Basically, there's a remote repository from which I pull using just: git pull Now, I'd like to preview what this pull would change (a diff) without touching anything on my side. The reason is that thing I'm pulling might not be "good" and I want someone else to fix it before making my repository "dirty".
0
[ 2, 184, 20, 16121, 13, 10404, 8, 23289, 366, 845, 18312, 60, 800, 3726, 3726, 25, 32, 166, 938, 60, 11374, 15, 80, 22, 18, 21, 5388, 24869, 37, 56, 31, 2201, 568, 114, 45, 13, 10404, 2201, 130, 15, 31, 22, 43, 101, 20, 16121, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Change Windows Mobile 6.1 Theme Programmatically === I am trying to figure out the proper procedure for applying a new tsk based theme file in windows mobile 6.1. I have tried working off of the page http://www.pocketpcdn.com/articles/changetodaytheme.html But this only changes the background, not the system colors for things such as the top and bottom bars on the screen. wceload.exe seems to work perfectly for some tsk's and partially for others. Does anyone know more about tsk files and applying them programmatically in Windows Mobile 6.1? My application is an open source application, the code is avail;able via read only svn, feel free to check it out @ [google code][1] [1]: http://code.google.com/p/manilla2dcustomizer/
0
[ 2, 753, 1936, 3241, 400, 9, 165, 3184, 625, 6732, 1326, 800, 3726, 3726, 31, 589, 749, 20, 1465, 70, 14, 4119, 7004, 26, 11989, 21, 78, 13, 20781, 432, 3184, 3893, 19, 1936, 3241, 400, 9, 165, 9, 31, 57, 794, 638, 168, 16, 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...
DataReader or DataSet when pulling multiple recordsets in ASP.NET === I've got an ASP.NET page that has a bunch of controls that need to be populated (e.g. dropdown lists). I'd like to make a single trip to the db and bring back multiple recordsets instead of making a round-trip for each control. I could bring back multiple tables in a DataSet, or I could bring back a DataReader and use '.NextResult' to put each result set into a custom business class. Will I likely see a big enough performance advantage using the DataReader approach, or should I just use the DataSet approach? Any examples of how you usually handle this would be appreciated.
0
[ 2, 1054, 10647, 106, 54, 1054, 3554, 76, 3303, 1886, 742, 6095, 19, 28, 306, 9, 2328, 800, 3726, 3726, 31, 22, 195, 330, 40, 28, 306, 9, 2328, 2478, 30, 63, 21, 7653, 16, 8671, 30, 376, 20, 44, 11111, 13, 5, 62, 9, 263, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What are the limits of ruby on rails? === I have a memory of talking to people who have got so far in using Ruby on Rails and then had to abandon it when they have hit limits, or found it was ultimately too rigid. I forget the details but it may have had to do with using more than one database. So what I'd like is to know is what features/requirements fall outside of Ruby on Rails, or at least requires such contortions that it is better to use another more flexible framework, even though you may have to lose some elegance or write extra boilerplate code.
0
[ 2, 98, 50, 14, 5887, 16, 10811, 27, 2240, 18, 60, 800, 3726, 3726, 31, 57, 21, 1912, 16, 1582, 20, 148, 72, 57, 330, 86, 463, 19, 568, 10811, 27, 2240, 18, 17, 94, 41, 20, 10416, 32, 76, 59, 57, 770, 5887, 15, 54, 216, 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...
How do I POST from an iframe to another page outside the iframe? === Within an iframe I have a user validate credit card payment information with a 3rd party website and upon validation the page will redirect to a predefined URL within our application. However, it POSTs to this URL within the iframe itself. Is there a clean way to redirect to the page I need? or do I have to use some intermediate page that would then do the redirect 'out' of the iframe?
0
[ 2, 184, 107, 31, 678, 37, 40, 31, 8361, 20, 226, 2478, 719, 14, 31, 8361, 60, 800, 3726, 3726, 363, 40, 31, 8361, 31, 57, 21, 4155, 7394, 1373, 3251, 2056, 7582, 676, 29, 21, 203, 897, 346, 2271, 17, 685, 27999, 14, 2478, 129,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Get the Primary Key of a new Entry === I have a number of child tables that have a foreign key to a parent table. How do I add an entry in the parent table and get the primary key of that entry, so that I can then enter rows in the child tables that point to the entry in the parent table? I'm doing this in a MS Access Database from a C# application.
0
[ 2, 164, 14, 1256, 1246, 16, 21, 78, 2792, 800, 3726, 3726, 31, 57, 21, 234, 16, 850, 7484, 30, 57, 21, 1228, 1246, 20, 21, 4766, 859, 9, 184, 107, 31, 3547, 40, 2792, 19, 14, 4766, 859, 17, 164, 14, 1256, 1246, 16, 30, 2792,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 Delphi 2009 in English and in French coexist on the same machine? === Does anyone know (like in tried and succeeded) if I can have D2009 both in English and in French? It's not so much to generate French or English applications but to have the IDE available in either language to take screen shots and make demos in French or in English. What would be involved: complementary install plus some shortcut param switch?
0
[ 2, 92, 23030, 588, 19, 486, 17, 19, 484, 326, 1706, 702, 27, 14, 205, 1940, 60, 800, 3726, 3726, 630, 1276, 143, 13, 5, 1403, 19, 794, 17, 2914, 6, 100, 31, 92, 57, 13, 43, 2849, 156, 19, 486, 17, 19, 484, 60, 32, 22, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best virtual grid for Winforms Csharp === i am looking for both performance as well as ease of learning curve. thoughts?
0
[ 2, 98, 25, 14, 246, 6599, 7354, 26, 628, 4190, 18, 272, 23646, 800, 3726, 3726, 31, 589, 699, 26, 156, 956, 28, 134, 28, 6378, 16, 2477, 7101, 9, 3064, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Are C++ Templates just Macros in disguise? === I've been programming in C++ for a few years, and I've used STL quite a bit and have created my own template classes a few times to see how it's done. Now I'm trying to integrate templates deeper into my OO design, and a nagging thought keeps coming back to me: They're just a macros, really... You could implement (rather UGLY) auto_ptrs using #defines, if you really wanted to. This way of thinking about templates helps me understand how my code will actually work, but I feel that I must be missing the point somehow. Macros are meant evil incarnate, yet "template metaprogramming" is all the rage. So, what ARE the real distinctions? and how can templates avoid the dangers that #define leads you into, like - Inscrutable compiler errors in places where you don't expect them? - Code bloat? - Difficulty in tracing code? - Setting Debugger Breakpoints?
0
[ 2, 50, 272, 20512, 22894, 18, 114, 9069, 18, 19, 14185, 60, 800, 3726, 3726, 31, 22, 195, 74, 3143, 19, 272, 20512, 26, 21, 310, 122, 15, 17, 31, 22, 195, 147, 354, 255, 1450, 21, 1142, 17, 57, 679, 51, 258, 22894, 2684, 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...
Equation Solvers for C++ === I need to solve a few mathematical equations in my application. Here's a typical example of such an equation: a + b * c - d / e = a Additional rules: - b % 10 = 0 - b >= 0 - b <= 100 - Each number must be integer - ... I would like to get the possible solution sets for a, b, c, d and e. Are there **any libraries out there**, either open source or commercial, **which I can use to solve such an equation**? If yes, what kind of result do they provide?
0
[ 2, 8020, 8402, 1224, 26, 272, 20512, 800, 3726, 3726, 31, 376, 20, 8402, 21, 310, 7046, 12853, 19, 51, 3010, 9, 235, 22, 18, 21, 3874, 823, 16, 145, 40, 8020, 45, 21, 2754, 334, 1637, 272, 13, 8, 13, 43, 13, 118, 13, 62, 800...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Updateable (and persistable) dataset based on a join - possible with ADO.Net??? === So lets say I have a dataset based on: SELECT TopicLink.*, Topic.Name AS FromTopicName, Topic_1.Name AS ToTopicName FROM TopicLink INNER JOIN Topic ON TopicLink.FromTopicId = Topic.TopicId INNER JOIN Topic AS Topic_1 ON TopicLink.ToTopicId = Topic_1.TopicId With old school ADO, using a Recordset, I could modify columns in table TopicLink and the invoke Save() on the recordset and it would make it back into the database. Is this functionality in now way possible anymore in ADO.Net, presumably with a CommandBuilder? Or is there a workaround? (Yes I know I could "simply" write a stored procedure...but I am looking for a quick and easy solution, basically the equivalent functionality we had in old ADO, or MS Access, where you can do a query with multiple joins, bind it to a grid on a form, and the user can update and save data, with no code required whatsoever)
0
[ 2, 11100, 579, 13, 5, 290, 22084, 579, 6, 1054, 3554, 432, 27, 21, 1865, 13, 8, 938, 29, 21, 537, 9, 2328, 60, 60, 60, 800, 3726, 3726, 86, 6884, 395, 31, 57, 21, 1054, 3554, 432, 27, 45, 5407, 8303, 6258, 9, 2483, 15, 8303,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C# Save Dialog box === I've got a save dialog box which pops up when i press a button. However i dont want to save a file at that point, i want to take the name and place it in the text box next to the button, for the name to be used later. Can anybody tell me how to obtain the file path from the save dialog box to use it later?
0
[ 2, 272, 5910, 2079, 28223, 1649, 800, 3726, 3726, 31, 22, 195, 330, 21, 2079, 28223, 1649, 56, 1675, 18, 71, 76, 31, 901, 21, 5167, 9, 207, 31, 1049, 259, 20, 2079, 21, 3893, 35, 30, 454, 15, 31, 259, 20, 247, 14, 204, 17, 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...
Is it a good idea to use Active Directory user login to your application. === I am developing a web based intranet for my company. I just want to know is it a good thing for users to login the application using the active directory login details or shall i create a login together with the application db. If there is anything better that this please suggest. This is my first application development so need help from experienced people. Thanks in advance.
0
[ 2, 25, 32, 21, 254, 882, 20, 275, 1348, 16755, 4155, 6738, 108, 20, 154, 3010, 9, 800, 3726, 3726, 31, 589, 3561, 21, 2741, 432, 14369, 2328, 26, 51, 237, 9, 31, 114, 259, 20, 143, 25, 32, 21, 254, 584, 26, 3878, 20, 6738, 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 can I dynamically change the Active Record database for all models in Ruby on Rails? === In our program, each customer gets their own database. We e-mail them a link that connects them to their database. The link contains a GUID that lets us know which database to connect to. How do I dynamically connect ActiveRecord to the right db?
0
[ 2, 184, 92, 31, 7782, 1326, 753, 14, 1348, 571, 6018, 26, 65, 2761, 19, 10811, 27, 2240, 18, 60, 800, 3726, 3726, 19, 318, 625, 15, 206, 7705, 3049, 66, 258, 6018, 9, 95, 13, 62, 8, 8079, 105, 21, 3508, 30, 8534, 105, 20, 66...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Delphi versus C++ Builder - Which is Better Choice for a Java Programmer Doing Win32 === I'm a pretty experienced Java programmer that's been quite a bit of Win32 stuff in the last couple of years. Mainly I've been using VB6, but I really need to move to something better. I've spent a month or so playing with Delphi 2009. I like the GUI stuff, it seems more suited to Windows API calls than VB6, I really like the fact that it's much better at OO than VB6, and I like the unit-testing framework that comes with the IDE. But I really struggle with the fact that there's no widely-used garbage collector for Delphi - having to free every object manually or use interfaces for everything seems to have a pretty big impact on the way that you can do things effectively in an object oriented way. Also I'm not particularly keen on the syntax, or the fact that you have to declare variables all at the top of a method. I can handle Delphi, but I'm wondering if C++ Builder 2009 might be a better choice for me. I know very little about C++ Builder and C++, but then I know very little about Delphi either. I know there's a lot to the C++ language, but I suspect it's only necessary to know a subset of it to get things done productively... I have heard that the C++ of today is a lot more productive to program in that the C++ of 10 years ago. I'll be doing new development only so I wouldn't need to master every aspect of the C++ language - if I can find an equivalent for each of Java's language features I'll be happy enough, and as I progress I could start looking at the more advanced stuff a bit more. (Sorry if that sounds painfully naive - if so please set me straight!) So, for a Java programmer that's new to both Delphi and C++ Builder, which would you consider to be a better choice for productive development of Win32 exes and dlls, and why? What do you see to be the pros and cons of each?
0
[ 2, 23030, 5706, 272, 20512, 14960, 13, 8, 56, 25, 574, 1837, 26, 21, 8247, 17968, 845, 628, 3125, 800, 3726, 3726, 31, 22, 79, 21, 1772, 3882, 8247, 17968, 30, 22, 18, 74, 1450, 21, 1142, 16, 628, 3125, 3217, 19, 14, 236, 1335, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C# WinFroms UserControl Mouse Event Help === I have a custom control that I created for my project. In this control there are several child controls like a Label, a PictureBox, and a LinkLabel. Other then the LinkLabel, I want the mouse over event currently on the parent control. The background color changes when you hover over the control, but the background color doesn't change when over a child control. The click even also is ignored over the child controls when I've subscribed to the click event on my parent controls. The term I've found by searching is Event Bubbling, but this seems to only apply to ASP.NET technologies and frameworks. Any suggestions?
0
[ 2, 272, 5910, 628, 2665, 18, 4155, 12898, 7567, 807, 448, 800, 3726, 3726, 31, 57, 21, 5816, 569, 30, 31, 679, 26, 51, 669, 9, 19, 48, 569, 80, 50, 238, 850, 8671, 101, 21, 1899, 15, 21, 2151, 5309, 15, 17, 21, 3508, 21018, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 open a hxs file? === I understand that a hxs file is a compiled help file, a replacement for .chm files, but I can't seem to open them. I've read that you read them with the help explorer, dexplore.exe found here: C:\Program Files\Common Files\microsoft shared\Help 9\dexplore.exe When I try opening the file with dexplore, it asks me to save the file to disk, or open with another program. Any ideas?
0
[ 2, 184, 107, 42, 368, 21, 746, 396, 18, 3893, 60, 800, 3726, 3726, 31, 1369, 30, 21, 746, 396, 18, 3893, 25, 21, 9316, 448, 3893, 15, 21, 4610, 26, 13, 9, 673, 79, 6488, 15, 47, 31, 92, 22, 38, 2260, 20, 368, 105, 9, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Losing Button.Click events after first partial postback in UpdatePanel === I have a Page that has a single instance of a UserControl that itself has a single UpdatePanel. Inside the UpdatePanel are several Button controls. The Click event for these controls are wired up in the code-behind, in the Init event of the UserControl. I get the Click event for the first button I push, every time, no problem. After that, I only get Click events for one button (SearchButton) - the rest are ignored. I have included the code for the control below - for sake of brevity, I have excluded the click event handler methods, but they are all of the standard "void Button_Click(object sender, EventArgs e)" variety. Any ideas? <asp:UpdatePanel ID="PickerUpdatePanel" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:Panel ID="Container" runat="server"> <div> <asp:TextBox ID="PickerResults" runat="server" style="margin-right: 3px;" SkinID="Plain" /> <asp:Image ID="LaunchPopup" runat="server" ImageUrl="~/images/icons/user_manage.png" ImageAlign="Top" BorderColor="#294254" BorderStyle="Dotted" BorderWidth="1px" Height="20px" Width="20px" style="cursor: pointer;" /> </div> <asp:Panel ID="PickerPanel" runat="server" DefaultButton="OKButton" CssClass="popupDialog" style="height: 227px; width: 400px; padding: 5px; display: none;"> <asp:Panel runat="server" id="ContactPickerSearchParams" style="margin-bottom: 3px;" DefaultButton="SearchButton"> Search: <asp:TextBox ID="SearchTerms" runat="server" style="margin-right: 3px;" Width="266px" SkinID="Plain" /> <asp:Button ID="SearchButton" runat="server" Text="Go" Width="60px" SkinID="Plain" /> </asp:Panel> <asp:ListBox ID="SearchResults" runat="server" Height="150px" Width="100%" SelectionMode="Multiple" style="margin-bottom: 3px;" /> <asp:Button ID="AddButton" runat="server" Text="Add >>" style="margin-right: 3px;" Width="60px" SkinID="Plain" /> <asp:TextBox ID="ChosenPeople" runat="server" Width="325px" SkinID="Plain" /> <div style="float: left;"> <asp:Button ID="AddNewContact" runat="server" SkinID="Plain" Width="150px" Text="New Contact" /> </div> <div style="text-align: right;"> <asp:Button ID="OKButton" runat="server" Text="Ok" SkinID="Plain" Width="100px" /> </div> <input id="SelectedContacts" runat="server" visible="false" /> </asp:Panel> <ajax:PopupControlExtender ID="PickerPopEx" runat="server" PopupControlID="PickerPanel" TargetControlID="LaunchPopup" Position="Bottom" /> </asp:Panel> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="AddButton" EventName="Click" /> <asp:AsyncPostBackTrigger ControlID="SearchButton" EventName="Click" /> <asp:AsyncPostBackTrigger ControlID="AddNewContact" EventName="Click" /> </Triggers> </asp:UpdatePanel> public partial class ContactPicker : System.Web.UI.UserControl { protected void Page_Init(object sender, EventArgs e) { SearchButton.Click += new EventHandler(SearchButton_Click); AddButton.Click += new EventHandler(AddButton_Click); OKButton.Click += new EventHandler(OKButton_Click); } // Other code left out }
0
[ 2, 2281, 5167, 9, 150, 10129, 963, 75, 64, 7284, 678, 1958, 19, 11100, 3206, 532, 800, 3726, 3726, 31, 57, 21, 2478, 30, 63, 21, 345, 4851, 16, 21, 4155, 12898, 30, 1145, 63, 21, 345, 11100, 3206, 532, 9, 572, 14, 11100, 3206, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 display DateTime with an abbreviated Time Zone? === I am aware of the [System.TimeZone][1] class as well as the many uses of the [DateTime.ToString()][2] method. What I haven't been able to find is a way to convert a DateTime to a string that, in addition to the time and date info, contains the three-letter Time Zone abbreviation (in fact, much the same way StackOverflow's tooltips for relative time display works). To make an example easy for everyone to follow as well as consume, let's continue with the StackOverflow example. If you look at the tooltip that displays on relative times, it displays with the full date, the time including seconds in twelve-hour format, an AM/PM designation, and then the three-letter Time Zone abbreviation (in their case, Coordinated Universal Time). I realize I could easily get GMT or UTC by using the built-in methods, but what I really want is the time as it is locally &mdash; in this case, on a web server. If our web server is running Windows Server 2k3 and has it's time zone set to CST (or, until [daylight saving][3] switches back, CDT is it?), I'd like our ASP.NET web app to display DateTimes relative to that time zone as well as formatted to display a "CST" on the end. I realize I could easily hard-code this, but in the interest of robustness, I'd really prefer a solution based on the server running the code's OS environment settings. Right now, I have everything but the time zone abbreviation using the following code: myDateTime.ToString("MM/dd/yyyy hh:mm:ss tt") Which displays: 10/07/2008 03:40:31 PM All I want (and it's not much, promise!) is for it to say: 10/07/2008 03:40:31 PM CDT I can use System.TimeZone.CurrentTimeZone and use it to correctly display "Central Daylight Time" but... that's a bit too long for brevity's sake. Am I then stuck writing a string manipulation routine to strip out white-space and any non-uppercase letters? While that might work, that seems incredibly hack to me... [Googling][4] and looking around on here did not produce anything applicable to my specific question. [1]: http://msdn.microsoft.com/en-us/library/system.timezone(VS.80).aspx [2]: http://msdn.microsoft.com/en-us/library/system.datetime.tostring(VS.80).aspx [3]: http://en.wikipedia.org/wiki/Daylight_saving_time#Terminology [4]: http://www.google.com/search?hl=en&safe=off&q=C%23+time+zone+abbreviation&btnG=Search
0
[ 2, 184, 20, 3042, 1231, 891, 29, 40, 15902, 85, 2464, 60, 800, 3726, 3726, 31, 589, 3854, 16, 14, 636, 10724, 9, 891, 11661, 500, 2558, 165, 500, 718, 28, 134, 28, 14, 151, 2027, 16, 14, 636, 8209, 891, 9, 262, 11130, 5, 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...
Enforce the use of the "this" and "base" at compile-time in Visual Studio/C# === When extending classes, I find it very descriptive to use the `base` (`MyBase` in VB) keyword when accessing methods in the base-class. And the `this` (`Me` in VB) keyword when accessing functions in the class extending the base-class. That goes for a "flat" structure with no inheritance as well. I find it easier to read this: public class World { public String baseName = "World"; } public class Hello : World { public String thisName = "Hello"; public String GetNames() { return this.thisName + " " + base.baseName; } } Than this: ... public String GetNames() { return thisName + " " + baseName; } ... Now, my question is: is it possible to enforce the use of `this` and `base` at compile-time in Visual Studio/C#, so that the compiler throws an error or a warning if you do not use these keywords in your code?
0
[ 2, 16525, 14, 275, 16, 14, 13, 7, 1565, 7, 17, 13, 7, 8436, 7, 35, 26561, 8, 891, 19, 3458, 1120, 118, 150, 5910, 800, 3726, 3726, 76, 8176, 2684, 15, 31, 477, 32, 253, 25508, 20, 275, 14, 13, 1, 8436, 1, 13, 5, 1, 915, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 any way instead of a JS hack where I can post from an iframe to another page outside the iframe? === Is there any way instead of a JS hack where I can post from an iframe to another page outside the iframe?
0
[ 2, 25, 80, 186, 161, 700, 16, 21, 487, 18, 11835, 113, 31, 92, 678, 37, 40, 31, 8361, 20, 226, 2478, 719, 14, 31, 8361, 60, 800, 3726, 3726, 25, 80, 186, 161, 700, 16, 21, 487, 18, 11835, 113, 31, 92, 678, 37, 40, 31, 8361...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0...
Programatically access weather info === I am looking for a web weather service in the United States that will allow links to be created with the latitude and longitude. Ideally it would show the radar imagery for that location, but just a simple "Sunny, 78F" would suffice as well. Any ideas?
0
[ 2, 625, 721, 8438, 1381, 2580, 15404, 800, 3726, 3726, 31, 589, 699, 26, 21, 2741, 2580, 365, 19, 14, 181, 202, 30, 129, 1655, 6271, 20, 44, 679, 29, 14, 16337, 17, 22291, 9, 5628, 102, 32, 83, 298, 14, 6262, 15051, 26, 30, 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...
C# Abstract class, using anonymous instead of declaring concerete class? === I have an abstract class and I would like to use it quickly by NOT create a concrete class that inherit the abstract class. Well, to define the abstract method anonymously. Something like that: Command c = new Command(myObject){ public override void Do() { } }; Is it possible in C#2.0?
0
[ 2, 272, 5910, 8502, 718, 15, 568, 10364, 700, 16, 15594, 23998, 99, 591, 718, 60, 800, 3726, 3726, 31, 57, 40, 8502, 718, 17, 31, 83, 101, 20, 275, 32, 976, 34, 52, 1600, 21, 4105, 718, 30, 17569, 14, 8502, 718, 9, 134, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can I make JUnit more verbose? === I'd like to have it yell hooray whenever an assert statement succeeds, or at the very least have it display the number of successful assert statements that were encountered. I'm using JUnit4. Any suggestions?
0
[ 2, 92, 31, 233, 7446, 242, 91, 9504, 6641, 60, 800, 3726, 3726, 31, 22, 43, 101, 20, 57, 32, 10779, 13, 8884, 2787, 6634, 40, 10908, 3331, 7952, 18, 15, 54, 35, 14, 253, 639, 57, 32, 3042, 14, 234, 16, 1300, 10908, 9015, 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, 0, 0, 0...
C++: Asterisks and Pointers === I've recently decided that I just have to finally learn C/C++, and there is one thing I do not really understand about pointers or more precisely, their definition. How about these examples: 1. int* test; 2. int *test; 3. int * test; 4. int* test,test2; 5. int *test,test2; 6. int * test,test2; Now, to my understanding, the first 3 cases are all doing the same: Test is not an int, but a pointer to one. The second set of examples is a bit more tricky. In case 4, both test and test2 will be pointers to an int, whereas in case 5, only test is a pointer, whereas test2 is a "real" int. What about case 6? Same as case 5?
0
[ 2, 272, 20512, 45, 28, 591, 20989, 18, 17, 454, 445, 800, 3726, 3726, 31, 22, 195, 1989, 868, 30, 31, 114, 57, 20, 722, 2484, 272, 118, 150, 20512, 15, 17, 80, 25, 53, 584, 31, 107, 52, 510, 1369, 88, 454, 445, 54, 91, 11628...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 add dynamic 'where' clauses to a linq query? === I've got a User table with a bitmask that contains the user's roles. The linq query below returns all the users whose roles include 1, 4 or 16. var users = from u in dc.Users where ((u.UserRolesBitmask & 1) == 1) || ((u.UserRolesBitmask & 4) == 4) || ((u.UserRolesBitmask & 16) == 16) select u; I'd like to rewrite this into the method below to returns all the users from the given roles so I can reuse it: private List<User> GetUsersFromRoles(uint[] UserRoles) {} Any pointers on how to dynamically build my query? Thanks
0
[ 2, 184, 107, 42, 3547, 7782, 13, 22, 2798, 22, 9040, 18, 20, 21, 6294, 1251, 25597, 60, 800, 3726, 3726, 31, 22, 195, 330, 21, 4155, 859, 29, 21, 1142, 23265, 30, 1588, 14, 4155, 22, 18, 2954, 9, 14, 6294, 1251, 25597, 1021, 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...
What does the setting WorkArounds2=8192 do on an ODBC connection? === My company has a 3rd party application that runs on a [Progress][1] database. I've been building an application on top of their database using an ODBC connection. One of the "quirks" of Progress is that it doesn't honor SQL column widths, so it will allow 100 characters in a column defined as a varchar(50). When reading this data via ODBC, I get the following error: > Column test_column in table > PUB.test_table has value exceeding its > max length or precision. The support techs at the company that build the application pointed me towards adding some work around flags in the registry for the ODBC connection, however, I can't find any documentation as to what these flags will do or what the possible values are. The registry keys are > KEY_CURRENT_USER->Software->ODBC->ODBC.INI->MyODBCConnectionName->WorkArounds > KEY_CURRENT_USER->Software->ODBC->ODBC.INI->MyODBCConnectionName->WorkArounds2 Google has found me other problems that people have solved by adding these flags with specific values (including my personal favourite from [The Daily WTF][2]) but I can't find anywhere that tells me what the flags actually do. Do you know? [1]: http://www.progress.com/ [2]: http://thedailywtf.com/Articles/Oh,_the_Workarounds.aspx
0
[ 2, 98, 630, 14, 2697, 170, 10037, 18, 135, 3726, 457, 19532, 107, 27, 40, 12340, 7229, 2760, 60, 800, 3726, 3726, 51, 237, 63, 21, 203, 897, 346, 3010, 30, 1461, 27, 21, 636, 2740, 13026, 500, 2558, 165, 500, 6018, 9, 31, 22, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mocks or real classes? === Classes that use other classes (as members, or as arguments to methods) need instances that behave properly for unit test. If you have these classes available and they introduce no additional dependencies, isn't it better to use the real thing instead of a mock?
0
[ 2, 10506, 18, 54, 683, 2684, 60, 800, 3726, 3726, 2684, 30, 275, 89, 2684, 13, 5, 472, 443, 15, 54, 28, 10553, 20, 3195, 6, 376, 13946, 30, 14149, 7428, 26, 1237, 1289, 9, 100, 42, 57, 158, 2684, 904, 17, 59, 8500, 90, 1351, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Sharepoint InputFormSection control look-a-like === I'm looking for a similar control to the InputFormSection control in Sharepoint that I want to use in a regular web page that doesn't run in the context of Sharepoint. Here's how the inputformsection looks like : [http://graegert.com/wp-content/uploads/2008/01/moss_adminarea_page_structure1.png][1] [1]: http://graegert.com/wp-content/uploads/2008/01/moss_adminarea_page_structure1.png
0
[ 2, 1891, 3132, 6367, 4190, 10579, 569, 361, 8, 58, 8, 1403, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 835, 569, 20, 14, 6367, 4190, 10579, 569, 19, 1891, 3132, 30, 31, 259, 20, 275, 19, 21, 1290, 2741, 2478, 30, 1437, 22, 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...
LINQ inner join betwenn Enumerable and DB Table === I'm trying to determine which records to delete from a database when a user submits a form. The page has two CheckBoxList one representing the records before modification and one after. I can easily get the selected values that need to be deleted like this... //get the items not selected that were selected before var oldSelectedItems = from oItem in oldChklSpecialNeeds.Items.Cast<ListItem>() where !(from nItem in newChklSpecialNeeds.Items.Cast<ListItem>() where nItem.Selected select nItem.Value).Contains(oItem.Value) && oItem.Selected select oItem.Value; now I am trying to do something like this but it isn't allowing it... var itemsToDelete = from specialNeed in db.SpecialNeeds join oldSelectedItem in oldSelectedItems on specialNeed.SpecialNeedsTypeCd equals oldSelectedItem.Value where specialNeed.CustomerId == customerId I can easily just use a foreach loop and a .DeleteOnSubmit() for each item but I'm thinking there is a way use functionality of LINQ and pass the whole query result of an inner join to .DeleteAllOnSubmit() //like so db.SpecialNeeds.DeleteAllOnSubmit(itemsToDelete); Any ideas?
0
[ 2, 6294, 1251, 3754, 1865, 5676, 5036, 103, 1957, 723, 106, 579, 17, 13, 9007, 859, 800, 3726, 3726, 31, 22, 79, 749, 20, 3746, 56, 742, 20, 27448, 37, 21, 6018, 76, 21, 4155, 12298, 18, 21, 505, 9, 14, 2478, 63, 81, 2631, 530...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Create Generic List from a subclass === Option Explicit On Option Strict On Public Class Class1 Dim l As List(Of A) Public Sub New() l = New List(Of B) End Sub End Class Public Class A End Class Public Class B Inherits A End Class<p> I've run into this problem.<br> I have a list declared of a Generic Type 'A'<br> I want to define the list as a Generic Type 'B', which is a subclass of 'A'.<p> Why can't this be done, and how can the same effect be achieved?
0
[ 2, 1600, 12733, 968, 37, 21, 972, 1898, 800, 3726, 3726, 4255, 14990, 27, 4255, 8170, 27, 317, 718, 718, 165, 5937, 644, 28, 968, 5, 1041, 21, 6, 317, 972, 78, 5, 6, 644, 800, 78, 968, 5, 1041, 334, 6, 241, 972, 241, 718, 31...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mixed syntax for control structures generating syntax errors === I'm refactoring some PHP code and discovered that certain nested combinations of if () : and if () { generate syntax errors. Not that I would normally mix the two, but I like to do frequent syntax checks as I'm writing code and I kept getting a syntax error because of this. Example - generates syntax error: if ( $test == 1 ) : if ( $test2 == 'a' ) { if ( $test3 == 'A' ) { } else { } } else : echo 'test2'; endif; Example - does NOT generate syntax error: if ( $test == 1 ) : if ( $test2 == 'a' ) : if ( $test3 == 'A' ) : else : endif; endif; else : echo 'test2'; endif; Could someone please explain to me why the first block of code is generating an error?
0
[ 2, 2198, 22649, 26, 569, 3815, 13500, 22649, 11908, 800, 3726, 3726, 31, 22, 79, 302, 17455, 68, 109, 13, 26120, 1797, 17, 1848, 30, 1200, 5618, 69, 17908, 16, 100, 13, 5, 6, 13, 45, 17, 100, 13, 5, 6, 13, 1, 7920, 22649, 1190...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
graphical open source text editor for large text files === Is there an open source alternative (similar to ultraedit) to handle files with filesize >200 MByte?
0
[ 2, 21755, 368, 1267, 1854, 1835, 26, 370, 1854, 6488, 800, 3726, 3726, 25, 80, 40, 368, 1267, 2676, 13, 5, 19107, 20, 6885, 69, 242, 6, 20, 3053, 6488, 29, 6488, 2952, 13, 1, 4621, 307, 23246, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Using javascript and jquery, to populate related select boxes with array structure === Using answers to [this question][1], I have been able to populate a select box based on the selection of another select box. ( [I posted my answer here][2]) Pulling the data from an array structure built server-side, stored in a .js file and referenced in the html page. Now I would like to add a third select box. If I had 3 sets of data (model, make, options) something like this (pseudo code): cars : [Honda[Accord[Lx, Dx]], [Civic[2dr, Hatchback]], [Toyota[Camry[Blk, Red]], [Prius[2dr,4dr]] Ex: If Honda were selected, the next select box would have [Accord Civic] and if Accord were selected the next select box would have [Lx Dx] How can I 1) create an array structure to hold the data? such that 2) I can use the value from one select box to reference the needed values for the next select box Thanks [1]: http://stackoverflow.com/questions/57522/javascript-array-with-a-mix-of-literals-and-arrays [2]: http://stackoverflow.com/questions/57522/javascript-array-with-a-mix-of-literals-and-arrays#58062
0
[ 2, 568, 8247, 8741, 17, 487, 8190, 93, 15, 20, 1675, 12383, 1597, 5407, 8120, 29, 7718, 1411, 800, 3726, 3726, 568, 6709, 20, 636, 1565, 1301, 500, 2558, 165, 500, 15, 31, 57, 74, 777, 20, 1675, 12383, 21, 5407, 1649, 432, 27, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do i set a click event for a form === I have a c# form (let's call it MainForm) with a number of custom controls on it. I'd like to have the MainForm.OnClick() method fire anytime someone clicks on the form regardless of whether the click happened on the form or if the click was on one of the custom controls. I'm looking for behavior similar to the KeyPreview feature of forms except for mouse clicks rather than key presses.
0
[ 2, 184, 107, 31, 309, 21, 10840, 807, 26, 21, 505, 800, 3726, 3726, 31, 57, 21, 272, 5910, 505, 13, 5, 1336, 22, 18, 645, 32, 407, 4190, 6, 29, 21, 234, 16, 5816, 8671, 27, 32, 9, 31, 22, 43, 101, 20, 57, 14, 407, 4190, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 proper use of php.ini's session.save_path? === I'm running PHP on Windows/IIS. My session variables don't seem to be preserved from page-to-page. This code&hellip; //echos out the session variables in a nice format for inspection echo "<p><pre>"; print_r($_SESSION); echo "</pre></p>"; &hellip;outputs blank values, like this&hellip; <pre> Array ( [s_firstvar] => [s_var2] => [s_third] => [s_numberfour] => [s_youget] => [s_thepoint] => [] => ) </pre> I found suggestions on a forum&hellip; > I had a similar problem recently (Win2000, IIS), and it turned out that PHP did not have write-access to whatever directory that the session data was stored in. You may want to look into this. and > have you set session.save_path? What's the proper use of php.ini's session.save_path? And, is that my problem?
0
[ 2, 98, 22, 18, 14, 4119, 275, 16, 13, 26120, 9, 2651, 22, 18, 3723, 9, 19863, 1, 8353, 60, 800, 3726, 3726, 31, 22, 79, 946, 13, 26120, 27, 1936, 118, 2865, 18, 9, 51, 3723, 12157, 221, 22, 38, 2260, 20, 44, 6190, 37, 2478, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you deal with connection strings when deploying an ASP.NET site? === Right now our test and production databases are on the same server, but with different names. Deploying has meant editing Web.config to change all the connection strings for the correct database. A step which I forget all too frequently... We've finally created a new database server for testing, and I'm moving the databases over... but now the server will be different and we'll still need to deal with connection string issues. I was thinking of managing it via a hosts file, but the thought of switching that on my desktop machine whenever I need to test against production data seems cumbersome at best. So I'm just wondering if there's a better way out there. Something that would build with a "production" web config for deployment would be ideal...
0
[ 2, 184, 107, 42, 1183, 29, 2760, 7887, 76, 17617, 68, 40, 28, 306, 9, 2328, 689, 60, 800, 3726, 3726, 193, 130, 318, 1289, 17, 637, 6018, 18, 50, 27, 14, 205, 8128, 15, 47, 29, 421, 1817, 9, 17617, 68, 63, 1380, 9510, 2741, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Obtaining MP3 Audio Compression Library === I would like to find out where I would be able to find the MP3 library, for implementation in an Operating System. Thanks.
0
[ 2, 12114, 4628, 240, 4023, 14864, 1248, 800, 3726, 3726, 31, 83, 101, 20, 477, 70, 113, 31, 83, 44, 777, 20, 477, 14, 4628, 240, 1248, 15, 26, 6123, 19, 40, 2455, 329, 9, 3669, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
MOSS 2007 Document Library - choice column not displaying selected value === I have something funky going on with MOSS & was wondering if anyone out there has seen anything like it: I have a document library in MOSS that has several custom columns added to it. I have a column of type choice. For one document in the library (a word document), the selected value does not get displayed for the one column - all of the other columns are fine & the other 60 documents in the folder display the selected values correctly. When I edit the properties of the document, the value of the column is defaulted to blank, I can change it to another value & save it. However the new value doesn't get displayed in the list view, nor does it show up if I edit the properties again. If, I open the document in word & view the Document Information Panel it displayes the value that I had selected & saved for the column. However, the column is being displayed as a text box & not a drop down. The value still does not get displayed in the list view or properties view after a save. Has anyone seen behaviour like this before?
0
[ 2, 8188, 624, 4492, 1248, 13, 8, 1837, 4698, 52, 17418, 1704, 1923, 800, 3726, 3726, 31, 57, 301, 11275, 93, 228, 27, 29, 8188, 279, 23, 5712, 100, 1276, 70, 80, 63, 541, 602, 101, 32, 45, 31, 57, 21, 4492, 1248, 19, 8188, 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 there a master list of the Big-O notation for everything? === Is there a master list of the Big-O notation for everything? Data structures, algorithms, operations performed on each, average-case, worst-case, etc.
0
[ 2, 25, 80, 21, 1129, 968, 16, 14, 580, 8, 111, 15591, 26, 796, 60, 800, 3726, 3726, 25, 80, 21, 1129, 968, 16, 14, 580, 8, 111, 15591, 26, 796, 60, 1054, 3815, 15, 15935, 15, 1311, 986, 27, 206, 15, 862, 8, 10325, 15, 4126, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Display an invalid default value in a DataGridViewComboBoxColumn === I have a DataGridViewComboBoxColumn in a DataGridView in a windows application. The user can change settings elsewhere to potentially invalidate a selection in a DataGridViewComboBoxColumn. I have a requirement to retain/display the invalid item while only leaving valid items selectable in the list. Without correcting the selection an exception is thrown: DataGridViewComboBoxCell value is not valid. Catching and ignoring the setting reverts the selected value to the first valid item in the list. Is there a way to provide a value to a DataGridViewComboBoxColumn so that it does not show up in the list of selectable values?
0
[ 2, 3042, 40, 16671, 12838, 1923, 19, 21, 1054, 16375, 4725, 960, 1192, 5309, 716, 4404, 103, 800, 3726, 3726, 31, 57, 21, 1054, 16375, 4725, 960, 1192, 5309, 716, 4404, 103, 19, 21, 1054, 16375, 4725, 19, 21, 1936, 3010, 9, 14, 41...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 filter items from a std::map? === I have roughly the following code. Could this be made nicer or more efficient? Perhaps using `std::remove_if`? Can you remove items from the map while traversing it? Can we avoid using the temporary map? typedef std::map<Action, What> Actions; static Actions _actions; bool expired(const Actions::value_type &action) { return <something>; } void bar(const Actions::value_type &action) { // do some stuff } void foo() { // loop the actions finding expired items Actions actions; BOOST_FOREACH(Actions::value_type &action, _actions) { if (expired(action)) bar(action); else actions[action.first]=action.second; } } actions.swap(_actions); }
0
[ 2, 184, 20, 11945, 3755, 37, 21, 354, 43, 45, 45, 15022, 60, 800, 3726, 3726, 31, 57, 4457, 14, 249, 1797, 9, 110, 48, 44, 117, 2210, 139, 54, 91, 8243, 60, 1774, 568, 13, 1, 384, 43, 45, 45, 99, 16598, 1, 821, 1, 60, 92, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Single-row subqueries in Oracle -- what is the join plan? === I've just discovered that Oracle lets you do the following: SELECT foo.a, (SELECT c FROM bar WHERE foo.a = bar.a) from foo As long as only one row in bar matches any row in foo. The explain plan I get from PL/SQL developer is this: SELECT STATEMENT, GOAL = ALL_ROWS TABLE ACCESS FULL BAR TABLE ACCESS FULL FOO This doesn't actually specify how the tables are joined. A colleague asserted that this is more efficient than doing a regular join. Is that true? What is the join strategy on such a select statement, and why doesn't it show up in the explain plan? Thanks.
0
[ 2, 345, 8, 5417, 972, 2005, 2829, 19, 15759, 13, 8, 8, 98, 25, 14, 1865, 944, 60, 800, 3726, 3726, 31, 22, 195, 114, 1848, 30, 15759, 6884, 42, 107, 14, 249, 45, 5407, 4310, 111, 9, 58, 15, 13, 5, 18, 16964, 272, 37, 748, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best way to access Java classes from C++? (better than using JNI directly) === I have to integrate a large Java library in a quite large C++ application. A solution is to use JNI but this requires to hand code all the classes. Python has, for example, a wonderful solution with JPype (http://jpype.sourceforge.net/) that automatizes the process (although the same solution cannot be applied to C++ due to C++ and Python different natures). Thanks, Das
0
[ 2, 246, 161, 20, 1381, 8247, 2684, 37, 272, 20512, 60, 13, 5, 16252, 119, 568, 487, 889, 1703, 6, 800, 3726, 3726, 31, 57, 20, 18399, 21, 370, 8247, 1248, 19, 21, 1450, 370, 272, 20512, 3010, 9, 21, 4295, 25, 20, 275, 487, 889...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SQL Express for production? === Is using SQL Express in a production environment a reasonable choice? I looked at Microsoft's comparison chart: [http://www.microsoft.com/sql/prodinfo/features/compare-features.mspx][1] I would be using SQL Express with a small to mid-sized web site. I don't believe I would exceed the 4GB database size limit. Is SQL Express typically supported in shared hosting environments? Is there something I'm missing that would make SQL Express an unreasonable choice? [1]: http://www.microsoft.com/sql/prodinfo/features/compare-features.mspx
0
[ 2, 4444, 255, 2999, 26, 637, 60, 800, 3726, 3726, 25, 568, 4444, 255, 2999, 19, 21, 637, 2307, 21, 9954, 1837, 60, 31, 292, 35, 7099, 22, 18, 6050, 1795, 45, 636, 21127, 6903, 6483, 9, 22019, 12980, 9, 960, 118, 18, 22402, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Learn C first before learning Objective-C === Being an aspiring Apple developer, I want to get the opinions of the community if it is better to learn C first before moving into Objective-C and ultimately the Cocoa Framework? My gut says learn C, which will give me a good foundation.
4
[ 2, 2484, 272, 64, 115, 2477, 7038, 8, 150, 800, 3726, 3726, 142, 40, 24502, 4037, 10058, 15, 31, 259, 20, 164, 14, 11900, 16, 14, 514, 100, 32, 25, 574, 20, 2484, 272, 64, 115, 1219, 77, 7038, 8, 150, 17, 3308, 14, 24507, 6596...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
Is there an online system to support donations to individuals in need? === A good friend of mine had a stroke yesterday. It would be a terrible situation even if he weren't a freelancer with no health insurance: he's now looking at the near-certainty of bankruptcy and the strong probability of homelessness in addition to being disabled. Two years ago, another friend of mine, who'd been battling breast cancer, ran out of money about six months before she ran out of life. I'm seeing this sort of situation happen with greater and greater frequency. It's occurring to me that there are a lot of people in my age cohort (I'm 47) who are one crisis away from being seriously in need. (I'm one. If you're a middle-aged freelancer in the US, you probably are too.) Every time this has happened, the response in the online communities I'm in has been similar: people want to help but don't know how, and eventually, someone steps forward and agrees to collect donations, consolidate them, and funnel them to the person in need. I've seen this particular wheel be reinvented three times in the last two years. It seems clear to me that this is a problem space that a good web-based system could be a great help in. But I haven't been able to find one. What I've been able to find are systems that support non-profit organizations' fund-raising efforts. There are a lot of reasons these systems aren't very useful for the situations I've seen, which (to use the buzzwords) have been as much about social networking as it is about e-commerce. Before I decide to put all of my silly hobby projects aside and turn my attention to this problem, I'd like to be sure that I'm not reinventing the wheel myself. Does anyone know of a web site or web application that supports the task of collecting and disbursing donations to individuals in need?
2
[ 2, 25, 80, 40, 2087, 329, 20, 555, 12465, 20, 1883, 19, 376, 60, 800, 3726, 3726, 21, 254, 860, 16, 1114, 41, 21, 7080, 7124, 9, 32, 83, 44, 21, 5803, 1858, 166, 100, 24, 4144, 22, 38, 21, 16043, 139, 29, 90, 853, 4225, 45, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Bold text for a tab control === I'd like to bold the text for a tab page under certain conditions (not, necessarily, GotFocus). Is it true the only 'er easiest way to do this is by overriding the DrawItem event for the tab control? http://www.vbforums.com/showthread.php?t=355093 It seems like there should be an easier way. Like ... <code> tabControl.TabPages(index).Font = New Font(Me.Font, FontStyle.Bold) </code> That doesn't work, obviously.
0
[ 2, 5657, 1854, 26, 21, 6523, 569, 800, 3726, 3726, 31, 22, 43, 101, 20, 5657, 14, 1854, 26, 21, 6523, 2478, 131, 1200, 2039, 13, 5, 1270, 15, 9324, 15, 330, 23371, 6, 9, 25, 32, 1151, 14, 104, 13, 22, 106, 27237, 161, 20, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best practice in defining Soap Service (generic vs. specific operation)? === My situation is as follows: I have a normalized database, in which I hold geographic information about airports. The structure is: airport --is in--> city --is in--> country --is in--> continent Now I want to let users administrate this data, without giving them direct access to the database. We need to offer this administration interface via a web service. Now, when it comes to designing the service, we ran into the discussion about how to define the operations. We came up with different solutions: **Solution A: specific operations** For each of the four tables (airport, city, country, continent) we define 3 operations: - insert - get - update This would lead to 12 operations with 2 request/response objects = 24 objects To create an all new airport with all dependencies, at least 4 requests would be necessary. **Solution B: generic** There is only one operation, which is controlled via parameters. This operation is capable of creating everything needed to administer the database. The operation would decide what needs to be done and executes it. If an error occures, it will roll back everything. ==> 1 Operation = 2 highly complex request/response-objects **Solution C: Meet in the middle 1** One generic operation per table, which is capable of executing get, insert, update, just like solution B, but focused on one table each. ==> 4 operations = 8 complex request/response-objects **Solution D: Meet in the middle 2** One generic operation per action (get, insert, delete), which can work on each table and resolve dependencies. ==> 3 operations = 6 slightly more complex request/response-objects **Example** Since this was rather abstract, hier a simplified example for request-objects for creating (JFK/New York/USA/North America): **Solution A:** Request 1/4: <insertContinent>North America</insertContinent> Request 2/4: <insertCountry continent="North America">USA</insertCountry> Request 3/4: <insertCity country="USA">New York</insertCity> Request 4/4: <insertAirport city="New York">JFK</insertAirport> **Solution B:** Request 1/1: <action type="insertCountry" parent="North America">USA</action> <action type="insertAirport" parent="New York">JFK</action> <action type="insertContinent" parent="">North America</action> <action type="insertCity" parent="USA">New York</action> **Solution C:** Request 1/4: <countryAction type="insert" parent="North America">USA</countryAction> Request 2/4: <airportAction type="insert" parent="New York">JFK</airportAction> Request 3/4: <continentAction type="insert" parent="">North America</continentAction > Request 4/4: <cityAction type="insert" parent="USA">New York</cityAction > **Solution D:** Request 1/1: <insert airport="JFK" city="New York" country="USA" continent="North America" /> Solution D seems rather elegant for me, therefore I tried to put this in XSD: Code: <complexType name="NewContinent"> <sequence> <element name="NAME" type="string"></element> </sequence> </complexType> <complexType name="NewCountry"> <sequence> <element name="ISOCODE" type="string"></element> <element name="NAME" type="string"></element> <choice> <element name="newCONTINENT" type="tns:NewContinent"></element> <element name="CONTINENT" type="string"></element> </choice> </sequence> </complexType> <complexType name="NewCity"> <sequence> <element name="IATA" type="string"></element> <element name="NAME" type="string"></element> <choice> <element name="COUNTRY" type="string"></element> <element name="newCOUNTRY" type="tns:NewCountry"></element> </choice> </sequence> </complexType> <complexType name="NewAirport"> <sequence> <element name="IATA" type="string"></element> <element name="NAME" type="string"></element> <choice> <element name="CITY" type="string"></element> <element name="newCITY" type="tns:NewCity"></element> </choice> </sequence> </complexType> A corresponding request would then look like follows: <complexType name="Request"> <choice> <element name="AIRPORT" type="tns:NewAirport"></element> <element name="CITY" type="tns:NewCity"></element> <element name="COUNTRY" type="tns:NewCountry"></element> <element name="CONTINENT" type="tns:NewContinent"></element> </choice> </complexType> Now my question: **Is this really the best solution available? Is the XSD enough to understand, what is going on?** Best regards and TIA!
0
[ 2, 98, 25, 14, 246, 1345, 19, 14684, 6447, 365, 13, 5, 17083, 596, 4611, 9, 1903, 1453, 6, 60, 800, 3726, 3726, 51, 1858, 25, 28, 2415, 45, 31, 57, 21, 1826, 1333, 6018, 15, 19, 56, 31, 1027, 9225, 676, 88, 1282, 18, 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...
Visual Studio Express any good ? === We all know Visual Studio is one of the best IDEs out there but what about the free Express edition. Is it any good ? Would any of you use it for serious work ?
4
[ 2, 3458, 1120, 2999, 186, 254, 13, 60, 800, 3726, 3726, 95, 65, 143, 3458, 1120, 25, 53, 16, 14, 246, 13, 8153, 70, 80, 47, 98, 88, 14, 551, 2999, 1322, 9, 25, 32, 186, 254, 13, 60, 83, 186, 16, 42, 275, 32, 26, 2055, 170,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Does anyone have experience with ZFS? === I am considering to adopt [ZFS](http://opensolaris.org/os/community/zfs/) and I would be happy to know your experience in both production and testing environment.
4
[ 2, 630, 1276, 57, 1496, 29, 2052, 11754, 60, 800, 3726, 3726, 31, 589, 5154, 20, 9512, 636, 380, 11754, 500, 5, 21127, 6903, 10157, 5594, 14688, 9, 5583, 118, 759, 118, 28360, 118, 380, 11754, 118, 6, 17, 31, 83, 44, 1700, 20, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Using "super" in C++ === My style of coding includes the following idiom: class Derived : public Base { public : typedef super Base ; // note that it could be hidden in protected section, instead // Etc. } ; This enables me to use "super" as an alias to Base, for example, in constructors: Derived(int i, int j) : super(i), J(j) { } Or even when calling the method from the base class inside its overriden version: void Derived::doSomething() { super::doSomething() ; // ... And then, do something else } It can even be chained (I have still to find the use for that, though): class DerivedDerived : public Derived { public : typedef super Derived ; // note that it could be hidden in protected section, instead // Etc. } ; void DerivedDerived::doSomethingElse() { super::doSomethingElse() ; // will call Derived::doSomethingElse() super::super::doSomethingElse() ; // will call Base::doSomethingElse() // ... And then, do something else } Anyway, I find the use of "typedef super" very useful, for example, when Base is either verbose and/or templated. The fact is that super is implemented in Java, as well as in C# (where it is called "base", unless I'm wrong). But C++ lacks this keyword. So, my questions: * is this use of typedef super common/rare/never seen in the code you work with? * is this use of typedef super Ok (i.e. do you see strong or not so strong reasons to not use it)? * should "super" be a good thing, should it be somewhat standardized in C++, or is this use through a typedef enough already?
0
[ 2, 568, 13, 7, 8542, 7, 19, 272, 20512, 800, 3726, 3726, 51, 1034, 16, 13, 15458, 1103, 14, 249, 28380, 45, 718, 3981, 13, 45, 317, 1000, 13, 1, 317, 13, 45, 1001, 13862, 1026, 1000, 13, 73, 12894, 1945, 30, 32, 110, 44, 3689,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 convert a list of ascii values to a string in python? === I've got a list in a Python program that contains a series of numbers, which are themselves ASCII values. How do I convert this into a "regular" string that I can echo to the screen?
0
[ 2, 184, 107, 31, 8406, 21, 968, 16, 28, 1892, 49, 4070, 20, 21, 3724, 19, 20059, 60, 800, 3726, 3726, 31, 22, 195, 330, 21, 968, 19, 21, 20059, 625, 30, 1588, 21, 231, 16, 2116, 15, 56, 50, 1366, 28, 1892, 49, 4070, 9, 184, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 delete (not disable) ActiveX add-ons in Internet Explorer (7 and 8 Beta 2)? === I'm developing a solution which uses an ActiveX control (a commercial one which we bought and that I did not develop). I need to develop the proper installation pages to simulate what happens when a user who has never visited the site and does not have the add-on installed comes to the page. I've found the "Manage Add-Ons" bit in Internet Options and I'm not having any luck. In IE7, I see an ability to enable or disable any control and a "Delete ActiveX" option, but it's disabled for this particular control. In IE8 Beta 2, the "Manage Add-Ons" bit has been completely reworked and I no longer see an option to delete the control. Each control has a "Properties" dialog and I can "Remove" it, but the button doesn't appear to do anything (could be related to how "Delete ActiveX" doesn't work for this on in IE7). It looks like maybe this control is installed in such a way that merely deleting it from IE won't work or isn't allowed, but it's not a control with its own entry on the Add/Remove Programs menu in XP, so I can't uninstall it that way either. How can I delete/remove (not disable) this ActiveX control in IE so that I can simulate what happens when people come to the site and the ActiveX control hasn't been installed yet? I figure there must be a way to "purge" IE of it.
0
[ 2, 184, 92, 31, 27448, 13, 5, 1270, 1460, 579, 6, 1348, 396, 3547, 8, 4710, 19, 2620, 8520, 13, 5, 465, 17, 469, 8434, 172, 6, 60, 800, 3726, 3726, 31, 22, 79, 3561, 21, 4295, 56, 2027, 40, 1348, 396, 569, 13, 5, 58, 1439, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 initialize a Service Object when Self-Hosting in WCF === I am hosting a service within a Windows Service. The following snippet instantiates the ServiceHost object: Host = new ServiceHost(typeof(Services.DocumentInfoService)); The DocumentInfoService class implements a contract interface that has methods that invoke business objects requiring initialization (actually a connection string). Ideally, I'd like the hosting process to get the connection string from the config file and pass it to a constructor for my service object, DocumentInfoService, which would hold onto it and use it to pass to business objects as needed. However, the ServiceHost constructor takes a System.Type object -- so instances of DocumentInfoService are created via the default constructor. I did note that there is another constructor method for ServiceHost that takes an object instance -- but the docs indicate that is for use with singletons. Is there a way for me to get to my object after it is constructed so that I can pass it some initialization data?
0
[ 2, 184, 107, 31, 2104, 2952, 21, 365, 3095, 76, 1119, 8, 11694, 68, 19, 11801, 410, 800, 3726, 3726, 31, 589, 10637, 21, 365, 363, 21, 1936, 365, 9, 14, 249, 13, 29061, 6322, 15882, 18, 14, 365, 11694, 3095, 45, 2015, 800, 78, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Remove Last Row Databound DataGridView C# === Thanks in advance for any help. I'm using VS 2008/C# and binding a local List of helper classes as the DataSource for a DataGridView control. Calling the Remove() method on my List of helper classes fires the CellFormatting event of the DataGridView, which makes sense (a bit). But for some reason, when removing whatever happens to be the DataBoundItem of the last row in the grid (so long as the grid has more than one row) the DataGridView's Rows collection is not updated before this event fires. So, in the CellFormatting event handler, I get an IndexOutOfRangeException as the Rows collection is one too large. I've tried removing the row using the DataGridView.Rows.Remove() method, and binding using a BindingSource rather than binding the List directly as the data source, both to no avail. I found a few references to this occurance via Google, but answers were either not forthcoming or said to use a Delete() method on either the DataGridView or the DataGridView.Rows collection - neither of which currently exist. Sorting does not appear to be the issue either, as performing/not performing a sort results in the same outcome. The only exception to the "last row" being a problem for removal is if the DataGridView contains only one row - in which case everything works fine. Hopefully some readers have already tackled this issue and would be willing to help. Thanks again!
0
[ 2, 4681, 236, 3131, 1054, 7410, 1054, 16375, 4725, 272, 5910, 800, 3726, 3726, 3669, 19, 3612, 26, 186, 448, 9, 31, 22, 79, 568, 4611, 570, 118, 150, 5910, 17, 8728, 21, 375, 968, 16, 448, 106, 2684, 28, 14, 1054, 12097, 26, 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...
Determine Time Zone Offset in T-SQL === My database application is going to be deployed at multiple sites in different time zones. I need a T-SQL function that will determine the UTC timestamp of midnight on January 1 of the current year for YTD calculations. All of the data is stored in UTC timestamps. For example, Chicago is UTC-6 with Daylight Savings Time (DST), the function needs to return '2008-01-01 06:00:00' if run any time in 2008 in Chicago. If run in New York (GMT-5 + DST) next year, it needs to return '2009-01-01 05:00:00'. I can get the current year from YEAR(GETDATE()). I thought I could do a DATEDIFF between GETDATE() and GETUTCDATE() to determine the offset but the result depends on whether the query is run during DST or not. I do not know of any built in T-SQL functions for determining the offset or whether or not the current time is DST or not? Does anyone have a solution to this problem in T-SQL? I could hard code it or store it in a table but would prefer not to. I suppose that this is a perfect situation for using CLR Integration in SQL Server 2005. I am just wondering if there is a T-SQL solution that I am unaware of?
0
[ 2, 3746, 85, 2464, 17493, 19, 13, 38, 8, 18, 22402, 800, 3726, 3726, 51, 6018, 3010, 25, 228, 20, 44, 6698, 35, 1886, 3259, 19, 421, 85, 11225, 9, 31, 376, 21, 13, 38, 8, 18, 22402, 1990, 30, 129, 3746, 14, 13, 11440, 436, 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...
Can anyone recommend an efficient UDP messaging framework for Java? === I need to be able to send compact messages (ideally small enough to fit into a single UDP packet) from Java. It needs to be as efficient as possible - can anyone give me any pointers (other than constructing them manually)?
0
[ 2, 92, 1276, 12360, 40, 8243, 287, 7431, 26437, 6596, 26, 8247, 60, 800, 3726, 3726, 31, 376, 20, 44, 777, 20, 2660, 8285, 7561, 13, 5, 3448, 1326, 284, 511, 20, 2742, 77, 21, 345, 287, 7431, 12795, 6, 37, 8247, 9, 32, 2274, 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...
How to line up HTML input elements? === I am hoping to find a resource for lining up input elements in a HTML page. I find it difficult to get a select element and a text box to be the same width even when using the width style attribute, and it is even more difficult across browsers. Finally, file inputs seem impossible to get to the same width cross browser. Are there any good guides or tips for accomplishing this? Perhaps there are some default CSS attributes I should be setting.
0
[ 2, 184, 20, 293, 71, 13, 15895, 6367, 2065, 60, 800, 3726, 3726, 31, 589, 3935, 20, 477, 21, 6577, 26, 13, 8930, 71, 6367, 2065, 19, 21, 13, 15895, 2478, 9, 31, 477, 32, 1956, 20, 164, 21, 5407, 4520, 17, 21, 1854, 1649, 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...
Elegant way to determine total size of website? === is there an elegant way to determine the size of data downloaded from a website -- bearing in mind that not all requests will go to the same domain that you originally visited and that other browsers may in the background be polling at the same time. Ideally i'd like to look at the size of each individual page -- or for a Flash site the total downloaded over time. I'm looking for some kind of browser plug-in or Fiddler script. I'm not sure Fiddler would work due to the issues pointed out above. I want to compare sites similar to mine for total filesize - and keep track of my own site also.
0
[ 2, 11614, 161, 20, 3746, 600, 1072, 16, 2271, 60, 800, 3726, 3726, 25, 80, 40, 11614, 161, 20, 3746, 14, 1072, 16, 1054, 23887, 37, 21, 2271, 13, 8, 8, 7241, 19, 594, 30, 52, 65, 12279, 129, 162, 20, 14, 205, 4603, 30, 42, 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...
Using Office Ribbon in a Word Processor === I heard Microsoft allows use of commercially available Office UI controls, with the exception of competing products, such as a word processor or spreadsheet app, etc. How true is that? Also, if it is not true, do you know of any *free* Ribbon controls?
0
[ 2, 568, 488, 9162, 19, 21, 833, 14762, 800, 3726, 3726, 31, 752, 7099, 2965, 275, 16, 11845, 904, 488, 13, 5661, 8671, 15, 29, 14, 5391, 16, 5649, 1985, 15, 145, 28, 21, 833, 14762, 54, 1789, 17627, 4865, 15, 2722, 9, 184, 1151,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Map *.domain.com to a single address === I´m not sure if this is really a programming question, but it's related to what I'm doing which is... I'm developing a web site that will have a lot of <names>.domain.com, and based on what <names> contain, the web site will show diffrent content. Anyone knows how to do that? Maybe it requires changes in the DNS server. Thanks!
0
[ 2, 2942, 1637, 9, 537, 6232, 9, 960, 20, 21, 345, 3218, 800, 3726, 3726, 31, 307, 52, 562, 100, 48, 25, 510, 21, 3143, 1301, 15, 47, 32, 22, 18, 1597, 20, 98, 31, 22, 79, 845, 56, 25, 9, 9, 9, 31, 22, 79, 3561, 21, 2741,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 does pubsub work in opensocial? === I'm trying to design an app based on the [opensocial API][1] and I'm uncertain of how the [pubsub][2] apparatus will work. This appears to be analogous to a unix pipe, or perhaps an rss feed. Is a channel persistent across browsers / computers? That is, can I subscribe to channel "x" on browser A and publish to "x" on browser B, and have this data be read in browser A? If not, is there a convenient opensocial method of accomplishing the same thing? Also: if one gadget subscribes to a channel after data is published, can that data still be read? [1]: http://code.google.com/apis/opensocial/ [2]: http://code.google.com/apis/opensocial/docs/0.8/reference/gadgets/#gadgets.pubsub
0
[ 2, 184, 630, 6329, 7563, 170, 19, 368, 11559, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 704, 40, 4865, 432, 27, 14, 636, 10157, 11559, 21, 2159, 500, 2558, 165, 500, 17, 31, 22, 79, 8373, 16, 184, 14, 636, 17848, 7563, 500, 25...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Doesn't the ability to cast defeat the purpose of typed variables? === So, I'm working under the assumption that we have typed languages because we make a lot of mistakes... so typing is one way to have the compiler do a lot of checks for us and help us out a bit (please let me know if it is my assumptions that's incorrect). However, if we introduce casting to a typed language, don't we re-introduce most the problems we had when were not able to type variables? I'm also aware that my assumption isn't the only reason why we type variables. Please share some of the other reasons why we have typed languages.
0
[ 2, 1437, 22, 38, 14, 2165, 20, 1325, 2143, 14, 2131, 16, 1001, 43, 12157, 60, 800, 3726, 3726, 86, 15, 31, 22, 79, 638, 131, 14, 12027, 30, 95, 57, 1001, 43, 2556, 185, 95, 233, 21, 865, 16, 13623, 9, 9, 9, 86, 25266, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you determine if a JDBC Connection was retrieved from a JTA enabled DataSource or straight JDBC? === I'm using a vendor API to obtain a JDBC connection to the application's database. The API works when running in the application server or when running in a stand-alone mode. I want to run a series of SQL statements in a single transaction. I'm fine with them occurring in the context of the JTA transaction if it exists. However, if it doesn't then I need to use the JDBC transaction demarcation methods. (Calling these methods on a JDBC connection that is participating in a JTA transaction causes a SQLException.) So I need to be able to determine whether the Connection came from the JTA enabled DataSource or if it's just a straight JDBC connection. Is there a straight forward way to make this determination? Thanks!
0
[ 2, 184, 107, 42, 3746, 100, 21, 487, 43, 7229, 2760, 23, 3685, 37, 21, 487, 536, 9338, 1054, 12097, 54, 1599, 487, 43, 7229, 60, 800, 3726, 3726, 31, 22, 79, 568, 21, 23510, 21, 2159, 20, 5545, 21, 487, 43, 7229, 2760, 20, 14,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to do something to each file in a directory with a batch script === How do you iterate over each file in a directory with a .bat or .cmd file? For simplicity please provide an answer that just echo's the filename or file path.
0
[ 2, 184, 20, 107, 301, 20, 206, 3893, 19, 21, 16755, 29, 21, 13064, 3884, 800, 3726, 3726, 184, 107, 42, 32, 106, 1373, 84, 206, 3893, 19, 21, 16755, 29, 21, 13, 9, 4900, 54, 13, 9, 9095, 43, 3893, 60, 26, 20595, 2247, 1181, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0...
What's the best approach to printing/reporting from WPF? === I have an upcoming project which will have to be able to print simple reports from its data. It'll be WPF-based, and I'm wondering which way to go. I know that WPF introduces its own printing technology (based on XPS) which looks quite easy to use. However, part of me wonders whether it would just be easier to use the ReportViewer control and embed it in a Windows Forms host control, since that will give users the ability to export to a variety of formats as well as print. Has anyone had any experience with printing/reporting from WPF? Which direction would you recommend?
0
[ 2, 98, 22, 18, 14, 246, 2141, 20, 7312, 118, 17437, 68, 37, 619, 7721, 60, 800, 3726, 3726, 31, 57, 40, 9078, 669, 56, 129, 57, 20, 44, 777, 20, 4793, 1935, 2813, 37, 82, 1054, 9, 32, 22, 211, 44, 619, 7721, 8, 1281, 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...
string symbol manipulation in batch files? === Is there a way to take substrings of a string with .bat/.cmd files? For example given the string "hello.txt" is there a way to strip the .txt?
0
[ 2, 3724, 4678, 17561, 19, 13064, 6488, 60, 800, 3726, 3726, 25, 80, 21, 161, 20, 247, 972, 11130, 18, 16, 21, 3724, 29, 13, 9, 4900, 118, 9, 9095, 43, 6488, 60, 26, 823, 504, 14, 3724, 13, 7, 11515, 9, 38, 396, 38, 7, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
Best free resource for learning advanced batch-file usage? === What are the best free resources for learning advanced batch-file usage?
0
[ 2, 246, 551, 6577, 26, 2477, 2255, 13064, 8, 16877, 7514, 60, 800, 3726, 3726, 98, 50, 14, 246, 551, 2566, 26, 2477, 2255, 13064, 8, 16877, 7514, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Makefile If-Then Else and Loops === Can someone explain how to use if-then statements and for loops in Makefiles? I can't seem to find any good documentation with examples.
0
[ 2, 233, 16877, 100, 8, 2504, 962, 17, 19661, 800, 3726, 3726, 92, 737, 3271, 184, 20, 275, 100, 8, 2504, 9015, 17, 26, 19661, 19, 233, 16877, 18, 60, 31, 92, 22, 38, 2260, 20, 477, 186, 254, 13945, 29, 3770, 9, 3, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
What's a good online reference for manipulating Office documents via ActiveX? === I am looking for a reference that covers using ActiveX to open and manipulate Excel (and possibly Word) documents. I'd prefer an online reference but book suggestions are helpful too.
0
[ 2, 98, 22, 18, 21, 254, 2087, 2801, 26, 27799, 488, 4374, 1197, 1348, 396, 60, 800, 3726, 3726, 31, 589, 699, 26, 21, 2801, 30, 2937, 568, 1348, 396, 20, 368, 17, 18468, 20700, 13, 5, 290, 2879, 833, 6, 4374, 9, 31, 22, 43, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0...
Prevent Silverlight ListBox vertical scrollbar from being displayed === I have a ListBox which displays items of variable height. I want to show as many items as will fit in the available space, without showing a vertical scrollbar. Other than surgery on the ListBox item template, is there a way to only show the number of items which will fit without scrolling?
0
[ 2, 2501, 1172, 3130, 968, 5309, 7035, 12159, 1850, 37, 142, 6115, 800, 3726, 3726, 31, 57, 21, 968, 5309, 56, 9412, 3755, 16, 7612, 2947, 9, 31, 259, 20, 298, 28, 151, 3755, 28, 129, 2742, 19, 14, 904, 726, 15, 366, 3187, 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...
Is there a free implementation of Ada? === I looked at the AdaCore site, as well as for A# (which now appears to be owned by AdaCore) and neither appear to be free (although I could have misread something). Any recommendations?
0
[ 2, 25, 80, 21, 551, 6123, 16, 13, 4405, 60, 800, 3726, 3726, 31, 292, 35, 14, 13, 4405, 10375, 689, 15, 28, 134, 28, 26, 21, 5910, 13, 5, 2140, 130, 1780, 20, 44, 1467, 34, 13, 4405, 10375, 6, 17, 3028, 1893, 20, 44, 551, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
How to use the tar -I option === I'm trying to tar up all the *.class files only on a Solaris box under a certain directory. Reading the man pages for tar made it seem like the -I option is what I wanted. This is what I've tried from the dir in question: find . -name "*.class" >> ~/includes.txt tar cvf ~/classfiles.tar -I ~/includes.txt From that I get: tar: Removing leading `/' from member names /home/myhomedir/includes.txt And the ~/classfiles.tar files is garbage. I don't have write permission on the dir where the *.class files are so I need to have the tar written to my home dir. Could someone tell me where I have gone wrong? What tar magic should I use?
0
[ 2, 184, 20, 275, 14, 2475, 13, 8, 49, 4255, 800, 3726, 3726, 31, 22, 79, 749, 20, 2475, 71, 65, 14, 1637, 9, 1898, 6488, 104, 27, 21, 4535, 403, 1649, 131, 21, 1200, 16755, 9, 1876, 14, 169, 4434, 26, 2475, 117, 32, 2260, 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...
What's the best/easiest way to manipulate ActiveX objects in Java? === I want to open and manipulate Excel files with ActiveX. I've had success with Python's [Win32 Extensions][1] and Groovy's [Scriptom][2] libraries on other projects but need to do this is pure Java this time if possible. I've tried the [Jacob Java COM Bridge][3] but that doesn't seem as straightforward or simple to use, and I couldn't get it to retrieve cell values (even though this is the library underlying Scriptom). Are there alternatives? [1]: http://python.net/crew/mhammond/win32/Downloads.html [2]: http://groovy.codehaus.org/COM+Scripting [3]: http://danadler.com/jacob/
0
[ 2, 98, 22, 18, 14, 246, 118, 3537, 18, 10727, 161, 20, 18468, 1348, 396, 3916, 19, 8247, 60, 800, 3726, 3726, 31, 259, 20, 368, 17, 18468, 20700, 6488, 29, 1348, 396, 9, 31, 22, 195, 41, 1280, 29, 20059, 22, 18, 636, 4181, 312...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Replace patterns that are inside delimiters using a regular expression call === I need to clip out all the occurances of the pattern '--' that are *inside* single quotes in long string (leaving intact the ones that are outside single quotes). Is there a regular expression way of doing this? (using it with an iterator from the language is OK). For example, starting with "xxxx rt / $ 'dfdf--fggh-dfgdfg' ghgh- dddd -- 'dfdf' ghh-g '--ggh--' vcbcvb" I should end up with: "xxxx rt / $ 'dfdffggh-dfgdfg' ghgh- dddd -- 'dfdf' ghh-g 'ggh' vcbcvb" So I am looking for a regex that could be run from the following languages as shown - JavaScript input.replace(/someregex/g, "") - PHP preg_replace('/someregex/', "", input) - Python re.sub(r'someregex', "", input) - Ruby input.gsub(/someregex/, "")
0
[ 2, 3934, 6282, 30, 50, 572, 121, 20565, 445, 568, 21, 1290, 1803, 645, 800, 3726, 3726, 31, 376, 20, 12229, 70, 65, 14, 3744, 2416, 18, 16, 14, 3732, 13, 22, 8, 8, 22, 30, 50, 1637, 108, 1416, 2483, 345, 18901, 19, 175, 3724, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 free or commercial Blogging engine recommendations? === I've recently been thinking about moving from Live Spaces and hosting my own blog. I'm not keen to write my own blog engine from scratch (time constraints, etc). What kind of functionality should I be looking for in a free or commercial solution? Sitemap? RSS feeds? Tag support? Offline editor? Any recommendations? Edit: Also happy for recommendations on other blogging sites too
2
[ 2, 186, 551, 54, 1439, 334, 13919, 1406, 12121, 60, 800, 3726, 3726, 31, 22, 195, 1989, 74, 1440, 88, 1219, 37, 515, 7644, 17, 10637, 51, 258, 8146, 9, 31, 22, 79, 52, 7194, 20, 2757, 51, 258, 8146, 1406, 37, 12395, 13, 5, 891...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
In the Django admin interface, is there a way to duplicate an item? === Just wondering if there is an easy way to add the functionality to duplicate an existing listing in the admin interface? In data entry we have run into a situation where a lot of items share generic data with another item, and to save time it would be very nice to quickly duplicate an existing listing and only alter the changed data. Using a better model structure would be one way of reducing the duplication of the data, but there may be situation where the duplicated data needs to be changed on an individual basis in the future.
0
[ 2, 19, 14, 3857, 14541, 21, 43, 2160, 6573, 15, 25, 80, 21, 161, 20, 19429, 40, 9101, 60, 800, 3726, 3726, 114, 5712, 100, 80, 25, 40, 2010, 161, 20, 3547, 14, 18548, 20, 19429, 40, 3149, 9554, 19, 14, 21, 43, 2160, 6573, 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...
asp.net output data from DB without any html markup === I'm new to jquery and asp.net so please forgive if this is an obvious question. I'm using a jquery autocomplete plugin which requires that the page it looks up asynchronously for data is in this format as pure text only: product1|price1<br> product2|price2<br> product3|price3 WITHOUT ANY OTHER HTML MARKUP. Any other html tags seems to cause problems. Normally for a page like that I would use a repeater and some standard database calls and output the 2 fields. This however creates html tags. How can I output this data as text only with no other markup whatsoever?
0
[ 2, 28, 306, 9, 2328, 5196, 1054, 37, 13, 9007, 366, 186, 13, 15895, 943, 576, 800, 3726, 3726, 31, 22, 79, 78, 20, 487, 8190, 93, 17, 28, 306, 9, 2328, 86, 2247, 8591, 100, 48, 25, 40, 4674, 1301, 9, 31, 22, 79, 568, 21, 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...
Close Browser Window after Form Post === Here's my situation. I have a button on my ASP.NET webform. This button creates a new browser window pointing to a page which has a lot of hidden fields (which are dynamically generated). This form submits itself to SQL Reporting Services on the bodies onload event. This works fine and the report is displayed in this new window. However, now I want to still POST a form to SQL Reporting services but I want to get back an excel spreadsheet. So I add another hidden input with a name of rs:Format and value of Excel. This works and the user gets the option to download the excel file. However they are now stuck with the extra window that was created. How do I get around this? I've tried creating the dynamic form and POST in the same window, but then they see the (empty) page with the form, and not the page they generated the report from. I've tried closing the window that I've created but I don't know where to put the javascript to do this. If I put it on the onload, then the window closes without the form being submitted. Any ideas for what to do here?
0
[ 2, 543, 16495, 1463, 75, 505, 678, 800, 3726, 3726, 235, 22, 18, 51, 1858, 9, 31, 57, 21, 5167, 27, 51, 28, 306, 9, 2328, 2741, 4190, 9, 48, 5167, 9695, 21, 78, 16495, 1463, 6832, 20, 21, 2478, 56, 63, 21, 865, 16, 3689, 286...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 good cherrypy tutorials or videos? === I am looking for a good in-depth tutorial to get me going on CherryPy (www.cherrypy.org) and haven't been able to find one on Google. The CherryPy website has a tutorial, but it is rather simple and doesn't discuss more than the basic aspects of CherryPy. I am not interested in the book at this time, as I need to get some progress in the next few days and don't have time to read the book.
0
[ 2, 186, 254, 9257, 6448, 29724, 18, 54, 6610, 60, 800, 3726, 3726, 31, 589, 699, 26, 21, 254, 19, 8, 22969, 29724, 20, 164, 55, 228, 27, 9257, 6448, 13, 5, 6483, 9, 23656, 6448, 9, 5583, 6, 17, 2933, 22, 38, 74, 777, 20, 477...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 an equivalent to Java's HashSet in vbscript? === I have to write something in vbscript that need to use a unique set. I am looking for something akin to Java's HashSet, is this already in vbscript or do I have to write my own?
0
[ 2, 25, 80, 40, 4602, 20, 8247, 22, 18, 19170, 3554, 19, 13, 20468, 8741, 60, 800, 3726, 3726, 31, 57, 20, 2757, 301, 19, 13, 20468, 8741, 30, 376, 20, 275, 21, 2619, 309, 9, 31, 589, 699, 26, 301, 21, 1767, 20, 8247, 22, 18,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unobtrusive Javascript rich text editor? === We've used the no-longer-supported RichTextBox control as part of our (ASP.NET-based) CMS for a long time, and we'd like to replace it with something lighter-weight and with better cross-browser support. We were originally looking at various ASP.NET components, but I'm wondering if we'd be better off just using an open-source, all-Javascript solution instead. I'm a recent convert to jQuery, and I've been amazed at what can be done purely on the client side with very compact add-ons like [Flexigrid](http://www.webplicity.net/flexigrid/) and of course our [the excellent WMD](http://wmd-editor.com/). I've done a little poking around for all-Javascript editors, and this is what I've found so far: - [Batiste jQueryEditor](http://batiste.dosimple.ch/blog/posts/2007-09-11-1/rich-text-editor-jquery.html) - [Xinha](http://xinha.webfactional.com/) - [YUI Rich Text Editor](http://developer.yahoo.com/yui/editor/) - [Tiny MCE](http://tinymce.moxiecode.com/) - [FCKeditor](http://www.fckeditor.net/demo/skins?skin=office2003) After a superficial review, Tiny MCE looks like a good choice; but I'd be interested in hearing from people in the SO community who have actually used these. Let me know what you think.
0
[ 2, 367, 4995, 8989, 18, 1284, 8247, 8741, 2042, 1854, 1835, 60, 800, 3726, 3726, 95, 22, 195, 147, 14, 90, 8, 2701, 106, 8, 24909, 2042, 11969, 5309, 569, 28, 141, 16, 318, 13, 5, 472, 306, 9, 2328, 8, 1281, 6, 2390, 18, 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...