unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Is there an attribute I can add to a class so it will be edited as code, not in the designer? === I've made a class which inherits from UserControl, but which I only want to use as a base for subclasses. Is there a way I can stop VS2008 from trying to edit it in the designer, that won't stop the subclasses from being edited in the designer?
0
[ 2, 25, 80, 40, 35, 14755, 31, 92, 3547, 20, 21, 718, 86, 32, 129, 44, 4802, 28, 1797, 15, 52, 19, 14, 4742, 60, 800, 3726, 3726, 31, 22, 195, 117, 21, 718, 56, 17569, 18, 37, 4155, 12898, 15, 47, 56, 31, 104, 259, 20, 275,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
New Web App Project does not recognize the <asp: tag space === Visual Studio 2008 w/Sp1 To reproduce my problem I simply create a new .Net 2.0 web application and add a page with the following markup: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication5._Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:button id="button1" runat="server" /> </div> </form> </body> </html> what happens is that a line is drawn under :button with the statement "Validation (): Element 'button' is not supported." I've tried repairing the .net framework; however, that had no impact. This started happening on two different machines, one is vista the other is XP within the past week.
2
[ 2, 78, 2741, 4865, 669, 630, 52, 5844, 14, 13, 1, 472, 306, 45, 3383, 726, 800, 3726, 3726, 3458, 1120, 570, 619, 118, 3401, 165, 20, 21509, 51, 1448, 31, 1659, 1600, 21, 78, 13, 9, 2328, 172, 9, 387, 2741, 3010, 17, 3547, 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...
Page.Load issue in ASP.NET 2.0 === I am trying to aid another programmer with a page called Default.aspx with a code-behind section, and unfortunately I am at a bit of a loss. Partial Class _Default Inherits OverheadClass 'A bunch of global variables here' Private Sub page_load(ByVal sender As Object, ByVal e As System.Eventarts) Handles Me.Load 'Function goes here' And in the OverheadClass we have Public Sub Sub_OverheadClass_Load(ByVal sender As Object, ByVal e as System.EventArgs) Handles MyClass.Load The desired effect is when the OverheadClass is inherited, we want it's load to run before the load event on the page runs. There is probably a very simple answer to this that I am missing.
0
[ 2, 2478, 9, 8294, 1513, 19, 28, 306, 9, 2328, 172, 9, 387, 800, 3726, 3726, 31, 589, 749, 20, 3096, 226, 17968, 29, 21, 2478, 227, 12838, 9, 472, 306, 396, 29, 21, 1797, 8, 24878, 1050, 15, 17, 6200, 31, 589, 35, 21, 1142, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What can you not do on the Dalvik VM (Android's VM) that you can in Sun VM? === I know that you can run almost all Java in Dalvik's VM that you can in Java's VM but the limitations are not very clear. Has anyone run into any major stumbling blocks? Any major libraries having trouble? Any languages that compile to Java bytecode (Scala, Jython etc...) not work as expected?
0
[ 2, 98, 92, 42, 52, 107, 27, 14, 6868, 8280, 13, 20147, 13, 5, 290, 18524, 22, 18, 13, 20147, 6, 30, 42, 92, 19, 939, 13, 20147, 60, 800, 3726, 3726, 31, 143, 30, 42, 92, 485, 557, 65, 8247, 19, 6868, 8280, 22, 18, 13, 2014...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 a subquery instead of a table name in an Oracle Update Statement === I need write an update statement that used multiple tables to determine which rows to update, since in Oracle, multiple tables aren't allowed. The following query will return a "ORA-00971: Missing SET keyword" error UPDATE TABLE1 a, TABLE2 b SET a.COL1 = 'VALUE' WHERE a.FK = b.PK AND b.COL2 IN ('SET OF VALUES') Looking up the UPDATE statement syntax on oracle, I found the following <a href="http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/update_statement.htm">link</a>, which shows that you can use a subquery in place of a table name. When I tried to write the query like this, I got a "ORA-01779: Cannot modify a column which maps to a non key-preserved table" UPDATE ( SELECT a.COL1 FROM TABLE1 a, TABLE2 b WHERE a.FK = b.PK AND b.COL2 IN ('SET OF VALUES') ) update_tbl SET update_tbl.COL1 = 'VALUE' I did rewrite the query (show below) using an EXISTS statement instead and it works fine, but would still like to know how this is done. UPDATE TABLE1 update_tbl SET update_tbl.COL1 = 'VALUE' WHERE EXISTS ( SELECT 1 FROM TABLE1 a TABLE2 b WHERE a.FK = b.PK AND b.COL2 IN ('SET OF VALUES') AND update_tbl.PK = a.PK ) Thanks! -Nate
0
[ 2, 568, 21, 972, 8190, 93, 700, 16, 21, 859, 204, 19, 40, 15759, 11100, 3331, 800, 3726, 3726, 31, 376, 2757, 40, 11100, 3331, 30, 147, 1886, 7484, 20, 3746, 56, 11295, 20, 11100, 15, 179, 19, 15759, 15, 1886, 7484, 4847, 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...
Filtering warnings in eclipse by filename === We use Eclipse for our Java development, and we've got Maven compiling our JSPs into servlets to be used in our embedded Jetty instance. This means that to run the project from Eclipse, I have to include ./target/jsp-source as a source folder, which works great. The warnings that show up for that generated code are everywhere though, and I want to filter them out. mainMenu_jsp.java has a warning about a local variable not being used. It's generated code, so I don't care about it, but I can't figure out how to filter out any warnings by filename pattern. I haven't liked the idea of defining working sets to exclude the folder because I'm always opening and closing projects and so the working set would have to change all the time
0
[ 2, 25272, 3590, 18, 19, 11652, 34, 3893, 7259, 800, 3726, 3726, 95, 275, 11652, 26, 318, 8247, 522, 15, 17, 95, 22, 195, 330, 1216, 3124, 24378, 318, 487, 18, 1919, 77, 13, 10321, 11045, 20, 44, 147, 19, 318, 12138, 17341, 93, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can Print Preview be called from Javascript? === I have a page that is supposed to launch the Print Preview page onload. I found this: var OLECMDID = 7; /* OLECMDID values: * 6 - print * 7 - print preview * 1 - open window * 4 - Save As */ var PROMPT = 1; // 2 DONTPROMPTUSER var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>'; document.body.insertAdjacentHTML('beforeEnd', WebBrowser); WebBrowser1.ExecWB(OLECMDID, PROMPT); WebBrowser1.outerHTML = ""; But... 1. it does not work in FireFox. 2. it's kind of ugly. Is there a better way for IE or a way that works for FireFox?
0
[ 2, 184, 92, 4793, 16121, 44, 227, 37, 8247, 8741, 60, 800, 3726, 3726, 31, 57, 21, 2478, 30, 25, 2293, 20, 3394, 14, 4793, 16121, 2478, 27, 8294, 9, 31, 216, 48, 45, 4033, 12116, 9095, 3052, 800, 453, 73, 13, 118, 2483, 12116, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Colors in Visual Studio 2008 === I'm struggling with Visual Studio 2008. I've used some form of "Zen" colors for more than I can remember. In VS2008 I keep getting one color that I cannot read and I have been unable to identify it; the purpose of the question is to avoid trial an error (the VS color interface is really ugly with no "real time" apply button). If you look at the following picture, I'm debugging and the function on top has called the function below. The problem is that the calling line in upper function turns white (background) and is hard to read. The question is: Does anybody know what exact setting will allow me to change that? Thanks in advance. ![Sshot][1] [1]: http://img139.imageshack.us/img139/4501/picture3my4.jpg
0
[ 2, 5268, 19, 3458, 1120, 570, 800, 3726, 3726, 31, 22, 79, 7587, 29, 3458, 1120, 570, 9, 31, 22, 195, 147, 109, 505, 16, 13, 7, 4257, 7, 5268, 26, 91, 119, 31, 92, 1518, 9, 19, 4611, 2753, 31, 643, 1017, 53, 1665, 30, 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...
Mysterious assets used in swf, not found anywhere in fla? === near the top of the code i see things like, btn_dropdown._visible = false; mcMenuBkg._visible = false; but I can't find these assets anywhere in the library or in any code, how does this make any sense? The movie clips in the library that look the same have different names and I can delete them entirely and they still show up when I compile and run, or I can add trace statements into their code and they never get called. where on earth are these assets defined?
0
[ 2, 6896, 6223, 147, 19, 13, 18, 15263, 15, 52, 216, 4922, 19, 13, 9165, 60, 800, 3726, 3726, 424, 14, 371, 16, 14, 1797, 31, 196, 564, 101, 15, 334, 38, 103, 1, 12361, 2968, 9, 1, 3762, 3426, 800, 4997, 73, 1324, 755, 4502, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does MS access(2003) have anything comparable to Stored procedure. I want to run a complex query in MS acceess === I have a table, call it TBL. It has two columns,call them A and B. Now in the query I require one column as A and other column should be a comma seprated list of all B's which are against A in TBL. e.g. TBL is like this 1 Alpha 2 Beta 1 Gamma 1 Delta Result of query should be 1 Alpha,Gamma,Delta 2 Beta This type of thing is very easy to do with cursors in stored procedure. But I am not able to do it through MS Access, because apparently it does not support stored procedures. Is there a way to run stored procedure in MS access? or is there a way through SQL to run this type of query
0
[ 2, 630, 4235, 1381, 5, 3325, 6, 57, 602, 14109, 20, 8214, 7004, 9, 31, 259, 20, 485, 21, 1502, 25597, 19, 4235, 7602, 10102, 18, 800, 3726, 3726, 31, 57, 21, 859, 15, 645, 32, 13, 38, 6287, 9, 32, 63, 81, 7498, 15, 9200, 105...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
__destruct visibility for PHP === Should the "visibility" for the __destruct function be public or something else? I'm trying to write a standards doc for my group and this question came up.
0
[ 2, 13, 1, 20137, 19476, 26, 13, 26120, 800, 3726, 3726, 378, 14, 13, 7, 3762, 14264, 7, 26, 14, 13, 1, 20137, 1990, 44, 317, 54, 301, 962, 60, 31, 22, 79, 749, 20, 2757, 21, 3364, 9765, 26, 51, 214, 17, 48, 1301, 281, 71, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How to read the PL/SQL code in an Oracle Forms .FMT file ? === Oracle Forms10g provides a tool to convert the Oracle Forms modules, from the binary format (.FMB) that Oracle Forms Builder works with, to text format (.FMT). For example, if you create a module called *mymodule.fmb* with Oracle Forms Builder, and then invoke frmcmp module=mymodule.fmb script=yes batch=yes logon=no from the command line, the Oracle Forms Convert utility will create a file named *mymodule.fmt* from the file *mymodule.fmb*. This text file is supposed to be "readable" by humans, except for the PL/SQL code of triggers and program units, which is codified. For example, this is a snippet of a .FMT file with a chunk of codified PL/SQL code DEFINE F50P BEGIN PP = 10 PI = 3 PN = 464 PL = 1138 PV = (BLONG) <<" 00000049 00800000 00440000 00000000 00000031 0000000d 00000002 a0011519 00002420 0000045e 001f0000 00165030 5f32335f 4f43545f 32303038 31365f33 375f3039 00000006 42454749 4e0a0000 0042676f 5f626c6f 636b2820 27504149 53455327 20293b0a 69662066 6f726d5f 73756363 65737320 7468656e 0a096578 65637574 655f7175 6572793b 0a656e64 2069663b 00000005 0a454e44 3b000000 1d574845 4e2d4e45 572d464f 524d2d49 4e535441 4e434520 28466f72 6d290000 Have you ever tried to decode this kind of files, to be able to extract the PL/SQL code of a form ? It would be very useful to be able to search a string in the PL/SQL code of a lot of .FMT files, instead of using Oracle Forms Builder to manually open each of the corresponding .FMB files, and search the string in each one of them. Thanks!
0
[ 2, 184, 20, 1302, 14, 12443, 118, 18, 22402, 1797, 19, 40, 15759, 1997, 13, 9, 5223, 38, 3893, 13, 60, 800, 3726, 3726, 15759, 1997, 1036, 263, 1927, 21, 5607, 20, 8406, 14, 15759, 1997, 17113, 15, 37, 14, 14171, 2595, 13, 5, 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...
SelectedValue is invalid - doesn't exist in list - C#/ASP.NET === Exception is: 'Country' has a SelectedValue which is invalid because it does not exist in the list of items. Parameter name: value UserService.DsUserAttributes dsCountry = us_service.GetUserAttributeDropDown(systemId, "Country"); Country.DataSource = dsCountry.tblDropDownValues; Country.DataTextField = "AttrValue"; Country.DataValueField = "Id"; Country.DataBind(); The values held within dsCountry.tblDropDownValues are: Id AttrValue AttrName aefa28e0-a118-11dd-ad8b-080c210c9a66 PLEASE SELECT Country 213a743e-ea0b-419c-bd44-03b1c35241b3 USA Country eefa1387-8dc0-11d8-975f-13da67a41a5d CANADA Country
0
[ 2, 1704, 15165, 25, 16671, 13, 8, 1437, 22, 38, 3182, 19, 968, 13, 8, 272, 5910, 118, 472, 306, 9, 2328, 800, 3726, 3726, 5391, 25, 45, 13, 22, 10741, 22, 63, 21, 1704, 15165, 56, 25, 16671, 185, 32, 630, 52, 3182, 19, 14, 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...
Java 1.6 SDK on Mac OS 10.5 === Has Java 1.6 SDK been released for mac? I can't seem to find it...
0
[ 2, 8247, 137, 9, 379, 13, 18, 43, 197, 27, 1572, 13, 759, 332, 9, 264, 800, 3726, 3726, 63, 8247, 137, 9, 379, 13, 18, 43, 197, 74, 261, 26, 1572, 60, 31, 92, 22, 38, 2260, 20, 477, 32, 9, 9, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Is there an XML language for defining/authoring SQL database schemas? === Is there a dialect of XML for defining the tables, indexes and relations of a relational database, and a "compiler" or stylesheet to transform that definition into SQL CREATE statements? EG, something that might look like: <Table Name="orders"> <Column Name="order_id" Type="varchar" Size="20"/> ... etc ... </Table> I'd like to keep the configuration of a service and its dependencies all in one place, and XML is looking like the best choice because of its wide support and its ability to mix namespaces. With it, I could write an installation program that can install this service and create the database, its tables, indexes, relations, etc. without being tied to a specific SQL implementation.
0
[ 2, 25, 80, 40, 23504, 816, 26, 14684, 118, 10007, 68, 4444, 255, 6018, 23874, 18, 60, 800, 3726, 3726, 25, 80, 21, 8069, 16, 23504, 26, 14684, 14, 7484, 15, 4348, 160, 17, 2649, 16, 21, 5827, 192, 6018, 15, 17, 21, 13, 7, 1110...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Vi/Vim: How to pipe visually selected text to a UNIX command and append output to current file === Using Vim, I'm trying to pipe visually selected text to a UNIX command and have the output appended to the end of the current file. For example, say we have a SQL command such as: SELECT * FROM mytable; I want to do something like the following: <ESC> V # select text :'<,'>!mysql -uuser -ppass mydb But instead of having the output overwrite the currently selected text, I would like to have the output appended to the end of the file. You probably see where this is going. I'm working on using VIM as a simple SQL editor. That way, I don't have to leave VIM to edit, tweak, test SQL code. Thanks!
0
[ 2, 1790, 118, 1755, 79, 45, 184, 20, 7642, 20747, 1704, 1854, 20, 21, 22540, 1202, 17, 4865, 2451, 5196, 20, 866, 3893, 800, 3726, 3726, 568, 1790, 79, 15, 31, 22, 79, 749, 20, 7642, 20747, 1704, 1854, 20, 21, 22540, 1202, 17, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PHP syntax highlighting === I'm searching for a **PHP syntax highlighting engine** that can be customized (i.e. I can provide my **own tokenizers** for new languages) and that can handle several languages *simultaneously* (i.e. on the same output page). This engine has to work well together with **CSS classes**, i.e. it should format the output by inserting `<span>` elements that are adorned with `class` attributes. Bonus points for an extensible schema. I do *not* search for a client-side syntax highlighting script (JavaScript). So far, I'm stuck with [GeSHi][geshi]. Unfortunately, GeSHi fails abysmally for several reasons. The main reason is that the different language files define completely different, inconsistent styles. I've worked hours trying to refactor the different language definitions down to a common denominator but since most definition files are in themselves quite bad, I'd finally like to switch. Ideally, I'd like to have an API similar to [CodeRay][cr], [Pygments][py] or the JavaScript [SyntaxHighlighter][dp.sh] from Google Code. [geshi]: http://qbnz.com/highlighter/ [cr]: http://coderay.rubychan.de/ [py]: http://pygments.org/ [dp.sh]: http://code.google.com/p/syntaxhighlighter/
0
[ 2, 13, 26120, 22649, 23102, 800, 3726, 3726, 31, 22, 79, 5792, 26, 21, 13, 1409, 26120, 22649, 23102, 1406, 1409, 30, 92, 44, 28779, 13, 5, 49, 9, 62, 9, 31, 92, 1181, 51, 13, 1409, 16620, 20, 2853, 11907, 18, 1409, 26, 78, 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...
What value should AutoEventWireup be set to in the page directive in ASP.Net? === I am using C#. By default, when I add a web form in Visual Studio 2008 with or without a master page, the AutoEventWireup attribute is set to true in the page directive. This attribute is also set to true inside the master page master directive. What value should I have AutoEventWireup set to (true/false)? What are the pros and cons of both values? Any help is greatly appreciated. Thank you.
0
[ 2, 98, 1923, 378, 3108, 4943, 38, 13482, 576, 44, 309, 20, 19, 14, 2478, 15626, 19, 28, 306, 9, 2328, 60, 800, 3726, 3726, 31, 589, 568, 272, 5910, 9, 34, 12838, 15, 76, 31, 3547, 21, 2741, 505, 19, 3458, 1120, 570, 29, 54, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Suggestions for workflow architecture? === We built a grant application system for a client. They've now asked for some simple workflow functionality (two approvals needed before the application is submitted). I've given some thought to the database design that I'd use to encode the workflow requirements in a way that would offer maximum flexibility and reusability, and I'd be interested to know if there are any existing design patterns or best practices out there for this type of system. Any suggestions? **Note:** This is a custom ASP.NET application, and we'll definitely be rolling our own workflow solution. I'm not interested in buying into a component, or much less moving this whole thing to a platform like SharePoint.
0
[ 2, 18389, 26, 170, 9990, 2607, 60, 800, 3726, 3726, 95, 392, 21, 2048, 3010, 329, 26, 21, 6819, 9, 59, 22, 195, 130, 411, 26, 109, 1935, 170, 9990, 18548, 13, 5, 3734, 4988, 18, 851, 115, 14, 3010, 25, 7368, 6, 9, 31, 22, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Strategies for multicore builds (/MP) that use #import === I'm working on a new solution configuration for our large VC++ project using VS 2008. I'd like this configuration to use the multicore build flag [/MP][1]. However, the "#import" feature of generating COM wrapper classes is sprinkled through-out the code base and this feature is not supported when using /MP. I understand why #import won't work, **I want to know if anyone has faced this issue and how they worked around it?** I am doing the following: - Not use the /MP flag on projects that are small or ***beyond*** help. (maybe I'll come back to them later) - Removed the #import and replaced it with a more standard MIDL-generated header (#include). This is only an option in a few places that are easy to convert to old school COM. - Make a new project that #imports the remaining libraries. Make that build first. #Include the .tlh files it creates in all the places that #imported previously. I'm curious if anyone has **any other suggestions?** Also, on the **last point** (making a new project and using #import only there) - if you did something like this, **how did you do it?** What type of project, what did the "source" look like, where did you output files? How did you include them? (you know, do all the thinking for me!) [1]: http://msdn.microsoft.com/en-us/library/bb385193.aspx
0
[ 2, 10272, 26, 1889, 10375, 1895, 18, 13, 5, 118, 2554, 6, 30, 275, 6926, 1660, 1993, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 78, 4295, 8091, 26, 318, 370, 13, 8990, 20512, 669, 568, 4611, 570, 9, 31, 22, 43, 101, 48, 8091, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 position .net's (Forms) Message box or Common dialogs? === I am trying to get center of parent form, not center of screen behavior. Passing in the parent form seems to only control the ownership of the window. These classes are sealed, so I do not see how I can do any WinProc tricks. Rewriting the classes is not an appealing option. Any other ideas?
0
[ 2, 92, 31, 649, 13, 9, 2328, 22, 18, 13, 5, 4190, 18, 6, 2802, 1649, 54, 757, 28223, 18, 60, 800, 3726, 3726, 31, 589, 749, 20, 164, 459, 16, 4766, 505, 15, 52, 459, 16, 2324, 3257, 9, 2848, 19, 14, 4766, 505, 2206, 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...
Under what situations are regular expressions really the best way to solve the problem? === I'm not sure if Jeff coined it but it's the joke/saying that people who say "oh, I know I'll use regular expressions!" now have [two problems][1]. I've always taken this to mean that people use regular expressions in very [inappropriate contexts][2]. However, under what circumstances are regular expressions really the best answer? What problems are they really the best or maybe only way to solve a situation? [1]: http://www.codinghorror.com/blog/archives/001016.html [2]: http://thedailywtf.com/Articles/The-Clbuttic-Mistake-.aspx
0
[ 2, 131, 98, 8329, 50, 1290, 13832, 510, 14, 246, 161, 20, 8402, 14, 1448, 60, 800, 3726, 3726, 31, 22, 79, 52, 562, 100, 3292, 15048, 32, 47, 32, 22, 18, 14, 8186, 118, 6366, 68, 30, 148, 72, 395, 13, 7, 1134, 15, 31, 143, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 "contact us" recipes for Cherrypy? === I'm looking to implement a "Contact Us" form with Cherrypy and was wondering: Is there a good recipe (or a BSD licensed set of code) that I could use instead of reinventing the wheel? Ideally, this would be Cherrpy 3.1 compatible.
0
[ 2, 186, 254, 13, 7, 29912, 182, 7, 22229, 26, 9257, 6448, 60, 800, 3726, 3726, 31, 22, 79, 699, 20, 8713, 21, 13, 7, 29912, 182, 7, 505, 29, 9257, 6448, 17, 23, 5712, 45, 25, 80, 21, 254, 20510, 13, 5, 248, 21, 334, 18, 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, 1, 1, 1, 1, 1, 1...
Is there any way to trick the .net JIT compiler into running another method? === Ok, say that my application is emitting (x86) instructions into memory, making the page executable, etc. Is there any way of altering the method stub of an un-JITted method to point to my emitted instruction stream? E.g.: Suppose I have created an instruction stream in memory, which does something arbitrary. Now, further suppose that I have a method 'int Target()'. I haven't called it yet, so it hasn't been compiled. Is there any way to: 1. Get the pointer to Target's stub 2. Make it point to my emitted instruction stream. I realise that practically every single security feature of .Net is designed to _prevent_ hijacking like this. But is it possible through, say, the hosting API?
0
[ 2, 25, 80, 186, 161, 20, 5514, 14, 13, 9, 2328, 13, 13803, 21486, 77, 946, 226, 2109, 60, 800, 3726, 3726, 5854, 15, 395, 30, 51, 3010, 25, 13, 28741, 13, 5, 396, 3274, 6, 7650, 77, 1912, 15, 544, 14, 2478, 1396, 17194, 5924, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 the maximum width and height of a font === So I have an NSFont, and I want to get the maximum dimensions for any characters, ie. the pitch and letter height. [font maximumAdvancement] seems to return an NSSize of {0, 0}, so that's not helping. Bounding rect doesn't seem to work either, and the suggestion from [jwz's similar question](http://jwz.livejournal.com/628853.html) of creating a bezier path, appending a glyph and getting the bounding rectange is also giving me back {0, 0}. What gives here?
0
[ 2, 12114, 14, 2979, 9456, 17, 2947, 16, 21, 9978, 800, 3726, 3726, 86, 31, 57, 40, 13, 2172, 21931, 15, 17, 31, 259, 20, 164, 14, 2979, 9913, 26, 186, 1766, 15, 13, 660, 9, 14, 5678, 17, 1748, 2947, 9, 636, 21931, 2979, 1283, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why doesn't my Rails application / mind fit into a RESTful architecture === **The Background** I started a Rails project recently and decided to use RESTful controllers. I created controllers for my key entities (such as Country) and added index, new, edit, create, show, update, delete. I added my map.resources :country to my routes file and life was good. After development progressed a little, I started to encounter problems... I sometimes needed extra actions in my controller. First there was the ***search*** action that returned the options for my fancy autocompleting search box. Then came the need to display the countries in two different ways in different places in the application (the data displayed was different too, so it wasn't just two views) - I added the ***index\_full*** action. Then I wanted to show a country by name in the URL, not by id so I added the ***show\_by\_name*** action. **The Question** What do you do when you need actions beyond the standard index, new, edit, create, show, update, delete in a RESTful controller in Rails? Do I need to add (and maintain) manual routes in the routes.rb file (which is a pain), do they go in a different controller, do I become unRESTful or am I missing something fundamental?
0
[ 2, 483, 1437, 22, 38, 51, 2240, 18, 3010, 13, 118, 594, 2742, 77, 21, 760, 1566, 2607, 800, 3726, 3726, 13, 1409, 124, 2395, 1409, 31, 373, 21, 2240, 18, 669, 1989, 17, 868, 20, 275, 760, 1566, 9919, 18, 9, 31, 679, 9919, 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...
focus lost after making another app's window topmost === I'm making another app's window topmost to ensure that a click in my app brings the other's dialog into views. The problem I'm having is that I don't get focus back to my app after the call. If the other app has more windows one of them ends up with focus, and otherwise no window (looking at the taskbar only) gets focus. Where should I start investigating the issue? My code for making the other app topmost is: Process p = Process.GetProcessById(trackedProcessID); IntPtr h = p.MainWindowHandle; uint TOPMOST_FLAGS = SWP_NOMOVE | SWP_NOSIZE | SWP_ASYNCWINDOWPOS; SetWindowPos(h, HWND_TOPMOST, 0, 0, 0, 0, TOPMOST_FLAGS); with constants as public static readonly uint SWP_NOMOVE = 0x0002; public static readonly uint SWP_NOSIZE = 0x0001; public static readonly uint SWP_ASYNCWINDOWPOS = 0x4000; public static readonly IntPtr HWND_TOPMOST = new IntPtr(-1);
0
[ 2, 1776, 529, 75, 544, 226, 4865, 22, 18, 1463, 371, 4630, 800, 3726, 3726, 31, 22, 79, 544, 226, 4865, 22, 18, 1463, 371, 4630, 20, 4062, 30, 21, 10840, 19, 51, 4865, 7620, 14, 89, 22, 18, 28223, 77, 4146, 9, 14, 1448, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to Get End-User (Client) Feedback on Custom Development Projects === My company is a custom development shop for a number of projects, some larger and some smaller. Currently we handle all of our client communication through email. So we email a design doc, they mark it up and send it back. Then we roll out a beta version of their product and they email us with any bugs, new features, etc. And so on.... As I am working on implementing a new bug tracking system (it looks like it will be Mantis right now), I got to wondering how we could best allow our customers an interface with our development process that would provide better tracking of feature requests and client submitted bugs as well as communicate our responses back to the client. If anyone is aware of a a bug tracking system that does this exceptionally well I'd be interested to hear of that. Otherwise I'm just looking for some general guidelines or good business practices that have allowed your companies to interface effectively and efficiently with your clients.
0
[ 2, 184, 20, 164, 241, 8, 16704, 13, 5, 150, 18513, 38, 6, 13111, 27, 5816, 522, 2314, 800, 3726, 3726, 51, 237, 25, 21, 5816, 522, 2546, 26, 21, 234, 16, 2314, 15, 109, 1662, 17, 109, 2012, 9, 871, 95, 3053, 65, 16, 318, 681...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 difference between "AS" and "IS" in an Oracle stored procedure? === I see Oracle procedures sometimes written with "AS", and sometimes with "IS" keyword. CREATE OR REPLACE Procedure TESTUSER.KILLINSTANCE (INSTANCEID integer) **AS** ... vs. CREATE OR REPLACE Procedure TESTUSER.KILLINSTANCE (INSTANCEID integer) **IS** ... Is there any difference between the two?
0
[ 2, 98, 25, 14, 2841, 128, 13, 7, 472, 7, 17, 13, 7, 403, 7, 19, 40, 15759, 8214, 7004, 60, 800, 3726, 3726, 31, 196, 15759, 8876, 1030, 642, 29, 13, 7, 472, 7, 15, 17, 1030, 29, 13, 7, 403, 7, 1246, 9587, 9, 1600, 54, 39...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 should I consider when selecting a data type for my primary key? === When I am creating a new database table, what factors should I take into account for selecting the primary key's data type?
0
[ 2, 98, 378, 31, 3563, 76, 20764, 21, 1054, 1001, 26, 51, 1256, 1246, 60, 800, 3726, 3726, 76, 31, 589, 2936, 21, 78, 6018, 859, 15, 98, 4776, 378, 31, 247, 77, 2176, 26, 20764, 14, 1256, 1246, 22, 18, 1054, 1001, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How to get RPATH with $ORIGIN to work on Code::Blocks GCC? === I'm trying to link an RPATH containing the special string $ORIGIN into an executable built using GCC with the Code::Blocks IDE. I've specified -Wl,-R$ORIGIN in the linker options for the project, but the command line output to GCC is wrong (stripped for clarity): g++ -Wl,-R What is the correct way to specify this argument for Code::Blocks?
0
[ 2, 184, 20, 164, 761, 8353, 29, 5579, 28486, 20, 170, 27, 1797, 45, 45, 12048, 18, 489, 3384, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 3508, 40, 761, 8353, 3503, 14, 621, 3724, 5579, 28486, 77, 40, 1396, 17194, 5924, 392, 568, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 print faster in Excel VBA? === The print functionality of Excel is extremely slow, I hoping someone has a way of speeding the printing up (without using the Excel 4 Macro trick). Here's how I do it now: <pre> Application.ScreenUpdating = False With ActiveSheet.PageSetup -various setup statements which I've already minimized- End With ActiveSheet.PrintOut Application.ScreenUpdating = True </pre>
0
[ 2, 184, 20, 4793, 4233, 19, 20700, 566, 969, 60, 800, 3726, 3726, 14, 4793, 18548, 16, 20700, 25, 3898, 2276, 15, 31, 3935, 737, 63, 21, 161, 16, 1362, 68, 14, 7312, 71, 13, 5, 14506, 568, 14, 20700, 268, 9069, 5514, 6, 9, 235...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 is Jmock used with HttpSession and HttpServletRequest === I am new to jmock and trying to mock an HttpSession. I am getting: java.lang.AssertionError: unexpected invocation: httpServletRequest.getSession() no expectations specified: did you... - forget to start an expectation with a cardinality clause? - call a mocked method to specify the parameter of an expectation? the test method: @Test public void testDoAuthorization(){ final HttpServletRequest request = context.mock(HttpServletRequest.class); final HttpSession session = request.getSession(); context.checking(new Expectations(){{ one(request).getSession(true); will(returnValue(session)); }}); assertTrue(dwnLoadCel.doAuthorization(session)); } I have done a bit of searching and it isn't clear to me still how this is done. Feels like I am missing some small piece. Anyone with experience in this can just point me in the right direction. thanks
0
[ 2, 184, 25, 487, 79, 5668, 147, 29, 7775, 7202, 5991, 17, 7775, 10321, 1336, 99, 10351, 800, 3726, 3726, 31, 589, 78, 20, 487, 79, 5668, 17, 749, 20, 10506, 40, 7775, 7202, 5991, 9, 31, 589, 1017, 45, 8247, 9, 9949, 9, 22220, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 clean T-SQL query I can use to verify an index has the right columns? === I am writing a DB upgrade script that will check to see if an index has the right two columns defined. If it doesn't, or if it only has one of them, then I will DROP it (is there a way to ALTER an index?) and then recreate it with both.
0
[ 2, 25, 80, 21, 2745, 13, 38, 8, 18, 22402, 25597, 31, 92, 275, 20, 21012, 40, 4348, 63, 14, 193, 7498, 60, 800, 3726, 3726, 31, 589, 1174, 21, 13, 9007, 9483, 3884, 30, 129, 2631, 20, 196, 100, 40, 4348, 63, 14, 193, 81, 749...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 use jQuery to call an asp.net web service? === I'm trying to use jQuery to get data from an ASP.NET web service (SharePoint Server 2007 lists.asmx) but any call to a web service will really help as a first step in that direction.
0
[ 2, 184, 20, 275, 487, 8190, 93, 20, 645, 40, 28, 306, 9, 2328, 2741, 365, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 275, 487, 8190, 93, 20, 164, 1054, 37, 40, 28, 306, 9, 2328, 2741, 365, 13, 5, 16608, 3132, 8128, 624, 7227,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 a MulitpleLookupField in MOSS '07 Layout Page === I have a page layout for my MOSS '07 site that I want put a MultipleLookupField in. The field will point to a multiple lookup column in my custom content type that points back to the pages library so I can have a "Related Articles" field. I've gotten the field to show up correctly--it's even editable when the page is in edit mode! But when you click on the link that shows up there, it display the page's properties view instead of the page itself. There's lots of properties on the control, but there's little documentation at MSFT as to what they do. Does anyone know how to change the link's URL to the actual page instead of the properties view? Here's the tag I'm using: > &lt;SharePointWebControls:MultipleLookupField > ID="MultipleLookupField1" > FieldName="RelatedIssues" > runat="server">&lt;/SharePointWebControls:MultipleLookupField> The link takes me to here: /Pages/Forms/DispForm.aspx?ID=6&RootFolder=* I want it to take me here: /Pages/faq1.aspx
0
[ 2, 568, 21, 6633, 242, 5106, 5810, 576, 1109, 19, 8188, 13, 22, 2984, 9106, 2478, 800, 3726, 3726, 31, 57, 21, 2478, 9106, 26, 51, 8188, 13, 22, 2984, 689, 30, 31, 259, 442, 21, 1886, 5810, 576, 1109, 19, 9, 14, 575, 129, 454,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 unix command to see how much disk space there is and how much is remaining? === I'm looking for the equivalent of right clicking on the drive in windows and seeing the disk space used and remaining info.
0
[ 2, 98, 25, 22540, 1202, 20, 196, 184, 212, 8582, 726, 80, 25, 17, 184, 212, 25, 1846, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 14, 4602, 16, 193, 25590, 27, 14, 1493, 19, 1936, 17, 2078, 14, 8582, 726, 147, 17, 1846, 15404, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Database-wide equivalent of SET IDENTITY_INSERT OFF === In my [eternal][1] [saga][2] to insert 1.4 million rows of data from a SQL script, I've written a basic WinForms app that takes each line of the script and executes it individually. However, because the original script contained SET IDENTITY_INSERT [Table] OFF and SET is a session-wide command, this setting is getting lost on every SQL call, meaning that each line is failing. Is there a way to set IDENTITY_INSERT off for the whole table, database-wide just so I can make these individual calls without them failing? Or perhaps I can tell it to ignore the identity specification by appending a command to each line? [1]: http://stackoverflow.com/questions/222442/sql-server-running-large-script-files [2]: http://stackoverflow.com/questions/224830/how-do-i-set-a-sql-server-scripts-timeout-from-within-the-script
0
[ 2, 6018, 8, 8077, 4602, 16, 309, 3270, 1, 108, 18, 6767, 168, 800, 3726, 3726, 19, 51, 636, 12382, 5025, 500, 2558, 165, 500, 636, 18, 5193, 500, 2558, 135, 500, 20, 14692, 137, 9, 300, 507, 11295, 16, 1054, 37, 21, 4444, 255, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Deleting Sql Ce system tables programmatically? === i`m using sql server ce together with sync framework. however, sync framework creates some system tables when calling the CreateSchema() method of the SqlCeClientSyncProvider. (e.g. __sysSyncArticle, __sysSyncSubscription, ...). i'm not able to delete these tables with sql statements within Visual Studio. (states that "drop table is not supported") and when trying to just create a SqlCeCommand i get a message that the specified tables does not exist. what does it take to delete sql ce system tables programmatically? thanks
0
[ 2, 121, 1336, 68, 4444, 255, 4000, 329, 7484, 625, 6732, 1326, 60, 800, 3726, 3726, 31, 1, 79, 568, 4444, 255, 8128, 4000, 429, 29, 6063, 150, 6596, 9, 207, 15, 6063, 150, 6596, 9695, 109, 329, 7484, 76, 2555, 14, 1600, 7526, 54...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Promoting MOSS '07 Sites From Dev To Production === So, maybe I'm a bit old-school, but when created websites in the past, we'd develop the site on a development server, then publish or promote the pages and files to the production server. This has always seemed to be a good way to go so that users didn't see messed up pages or (God forbid) a downed server because of a scripting error or something. But it doesn't seem that Microsoft had this idea in mind when they created SharePoint...at least, I haven't been able to find a way to do this in the infrastructure as it's defined. Does anyone know if there's a management strategy for SharePoint development? I've read online that we can make a backup of the development environment and restore to the production server. That might work the first time, but any updates to the production server can't do that without risking data loss on the production server. I've seen some tools out there for migrating list contents, pages and documents from one server to another--although, admittedly, I've not yet investigated them. But, another concern of mine is custom content types. It seems that once a list is using a content type, you can't update it without deleting the items from the list, disassociating the content type, and reassociating the content type. Shouldn't there be some way to UPGRADE a content type? Anyway, if you have any suggestions for any of these current dilemas, I would LOVE to hear from you. Thanks in advance, Dan
0
[ 2, 7248, 8188, 13, 22, 2984, 3259, 37, 9664, 20, 637, 800, 3726, 3726, 86, 15, 913, 31, 22, 79, 21, 1142, 315, 8, 7535, 15, 47, 76, 679, 13931, 19, 14, 640, 15, 95, 22, 43, 2803, 14, 689, 27, 21, 522, 8128, 15, 94, 10824, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Calling a Stored Proc from within a Stored Proc and returning a recordset. === I have a Stored Procedure that rolls-back a series of operations. I want to call this from within another SP. The problem is that the inner SP returns a record set with a single value that indicates the degree of success. <Digression> This approach worked well and has some advantages in our context, but in retrospect, I would have done it the conventional way with a Return value or an Output parameter. I *could* always change this SP to use this approach and modify the calling code, but a) I don't want to dabble with any more code than I have to, and b) at an intellectual level, I'm curious to see what alternative solution there may be, if any.</digression> How (if at all) can I call this SP and determine the value of the singleton recordset returned? Thanks
0
[ 2, 2555, 21, 8214, 13, 15617, 37, 363, 21, 8214, 13, 15617, 17, 2485, 21, 742, 1198, 9, 800, 3726, 3726, 31, 57, 21, 8214, 7004, 30, 10081, 8, 1958, 21, 231, 16, 1311, 9, 31, 259, 20, 645, 48, 37, 363, 226, 3782, 9, 14, 1448...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 i can fill an array from user input C# === how i can Allows the user to fill an array. like showing him a prompt MSG and then get the values from him
0
[ 2, 184, 31, 92, 3509, 40, 7718, 37, 4155, 6367, 272, 5910, 800, 3726, 3726, 184, 31, 92, 2965, 14, 4155, 20, 3509, 40, 7718, 9, 101, 3187, 61, 21, 11443, 4417, 4235, 263, 17, 94, 164, 14, 4070, 37, 61, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Best method to scroll a ScrollPane by mouse hover location in actionscript? === When mouse nears top edge of scrollpane, it scrolls up until it reaches the top only interrupted if the mouse leaves the top edge area. Same for bottom edge.
0
[ 2, 246, 2109, 20, 12159, 21, 12159, 16660, 34, 7567, 21350, 1474, 19, 1028, 8741, 60, 800, 3726, 3726, 76, 7567, 424, 18, 371, 1407, 16, 12159, 16660, 15, 32, 12159, 18, 71, 163, 32, 5539, 14, 371, 104, 6354, 100, 14, 7567, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Are regex tools (like RegexBuddy) a good idea? === One of my developers has started using RegexBuddy for help in interpreting legacy code, which is a usage I fully understand and support. What concerns me is using a regex tool for writing new code. I have actually discouraged its use for new code in my team. Two quotes come to mind: > **Some people, when confronted with a > problem, think "I know, I’ll use > regular expressions." Now they have > two problems.** - Jamie Zawinski And: > **Debugging is twice as hard as writing the code in the first place. > Therefore, if you write the code as > cleverly as possible, you are, by > definition, not smart enough to debug > it.** - Brian Kernighan My concerns are (respectively:) - That the tool may make it possible to solve a problem using a complicated regular expression that really doesn't need it. (See also [this question][1]). - That my one developer, using regex tools, will start writing regular expressions which (even with comments) can't be maintained by anyone who doesn't have (and know how to use) regex tools. Should I encourage or discourage the use of regex tools, specifically with regard to producing new code? Are my concerns justified? Or am I being paranoid? [1]: http://stackoverflow.com/questions/230304/under-what-situations-are-regular-expressions-really-the-best-way-to-solve-the
0
[ 2, 50, 7953, 1706, 4672, 13, 5, 1403, 7953, 1706, 220, 28085, 6, 21, 254, 882, 60, 800, 3726, 3726, 53, 16, 51, 10168, 63, 373, 568, 7953, 1706, 220, 28085, 26, 448, 19, 11584, 68, 7780, 1797, 15, 56, 25, 21, 7514, 31, 2337, 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 create a simple 2-screen iPhone app? === I've gone through most of the example code and I still need some help. I want to make an uber-simple app: show one screen at startup with a label and a button. click the button and we slide over to another screen (I suppose these are called views) which has another label and the "back" button in the top menu bar. I just want to click back and forth between the two screens. How to do this?
0
[ 2, 184, 107, 31, 1600, 21, 1935, 172, 8, 7187, 21024, 4865, 60, 800, 3726, 3726, 31, 22, 195, 1042, 120, 127, 16, 14, 823, 1797, 17, 31, 174, 376, 109, 448, 9, 31, 259, 20, 233, 40, 13, 8866, 8, 24629, 4865, 45, 298, 53, 232...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Conditionally submit forms === I have a table with multiple rows. Each row is a form. I want to use JQuery to submit all the forms that have the check box checked. The form is posting to an IFrame so there is not much need for AJAX. So far I have: $("form").submit(); which submits the form. but all forms. There is arbritary number of rows, could be 80-100.
0
[ 2, 487, 8190, 93, 2874, 1326, 12298, 1997, 800, 3726, 3726, 31, 57, 21, 859, 29, 1886, 11295, 9, 206, 3131, 25, 21, 505, 9, 31, 259, 20, 275, 487, 8190, 93, 20, 12298, 65, 14, 1997, 30, 57, 14, 2631, 1649, 6505, 9, 14, 505, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Telling bugs and features apart? === Have you ever been in the situation when looking at the code you couldn’t tell if something is a bug or poorly implemented feature? Or you simply didn’t dare to fix something that looked like a definite bug to you, but were not sure if anyone already relies on the functionality behaving in a certain way? What are your best heuristics for telling bugs and features apart? Any good stories?
4
[ 2, 2497, 13925, 17, 967, 2629, 60, 800, 3726, 3726, 57, 42, 462, 74, 19, 14, 1858, 76, 699, 35, 14, 1797, 42, 711, 1, 38, 494, 100, 301, 25, 21, 6256, 54, 10614, 6807, 1580, 60, 54, 42, 1659, 223, 1, 38, 7024, 20, 6098, 301,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mongrel::DirHandler equivalent for Passenger === I'm using Mongrel::DirHandler to control response headers for static files - this works great on my dev machine. My production machine uses Passenger so my headers aren't getting set. How do I control headers for static files when using Passenger? snippet from my environment.rb: if defined? Mongrel::DirHandler module Mongrel class DirHandler def send_file_with_expires(req_path, request, response, header_only=false) if req_path =~ /((\/images)|javascripts|stylesheets)/ response.header['Cache-Control'] = 'max-age=315360000' response.header['Expires'] = (Time.now + 10.years).rfc2822 else response.header["Last-Modified"] = Time.now.httpdate response.header["Expires"] = 0 # HTTP 1.0 response.header["Pragma"] = 'no-cache' # HTTP 1.1 ‘pre-check=0, post-check=0′ (IE specific) response.header["Cache-Control"] = 'no-store, no-cache, must-revalidate, max-age=0, pre-check=0, post-check=0' end send_file_without_expires(req_path, request, response, header_only) end alias_method :send_file_without_expires, :send_file alias_method :send_file, :send_file_with_expires end end end
0
[ 2, 21028, 7256, 45, 45, 9035, 3203, 1252, 4602, 26, 3093, 800, 3726, 3726, 31, 22, 79, 568, 21028, 7256, 45, 45, 9035, 3203, 1252, 20, 569, 1627, 157, 445, 26, 12038, 6488, 13, 8, 48, 693, 374, 27, 51, 9664, 1940, 9, 51, 637, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
NetBeans IDE === I'm new to using the NetBeans IDE. When I try to look at the documentation for say the java API (example, System class), it says that the javadoc is not installed. How do I install the documentation?
0
[ 2, 4275, 863, 5950, 13, 3448, 800, 3726, 3726, 31, 22, 79, 78, 20, 568, 14, 4275, 863, 5950, 13, 3448, 9, 76, 31, 1131, 20, 361, 35, 14, 13945, 26, 395, 14, 8247, 21, 2159, 13, 5, 29041, 15, 329, 718, 6, 15, 32, 898, 30, 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, 0, 0...
Is the automated testing still referred to as smoke testing? === If not, is [smoke testing][1] still used? [1]: http://en.wikipedia.org/wiki/Smoke_test#Smoke_testing_in_software_development
0
[ 2, 25, 14, 14904, 4431, 174, 1870, 20, 28, 3371, 4431, 60, 800, 3726, 3726, 100, 52, 15, 25, 636, 26499, 4431, 500, 2558, 165, 500, 174, 147, 60, 636, 165, 500, 45, 7775, 6903, 219, 9, 17375, 26132, 9, 5583, 118, 17375, 118, 264...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Javascript classes and DWR === I've been playing with DWR and converters for a while and I really wanted to map my Java classes to JavaScript classes. Using DWR converters, I have the option to point out what is the name of my JS constructor given a Java class. So far so good... The problem arises when my JS constructor is within a JS package-like name (just like YUI's package system, eg `my.beautiful.package.MyClass`). DWR's current implementation doesn't allow me to use this kind of construct, giving me a `SyntaxError` when I try to use it. Is there an elegant way arround this limitation?
0
[ 2, 8247, 8741, 2684, 17, 13, 43, 7127, 800, 3726, 3726, 31, 22, 195, 74, 791, 29, 13, 43, 7127, 17, 25893, 18, 26, 21, 133, 17, 31, 510, 417, 20, 2942, 51, 8247, 2684, 20, 8247, 8741, 2684, 9, 568, 13, 43, 7127, 25893, 18, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Do you find Scrum Nokia Test useful? === It seems Scrum and Agile tests/assertions are becoming popular this year. For example, [Nokia test for Scrum][1]. [I don't think it is a good idea to have such tests at all][2]. What do you think? [1]: http://www.cedur.se/nokia_test2.html [2]: http://www.targetprocess.com/blog/2008/10/are-we-agile-yet-grrrrr.html
0
[ 2, 107, 42, 477, 26562, 24294, 1289, 4811, 60, 800, 3726, 3726, 32, 2206, 26562, 17, 27475, 4894, 118, 22220, 3309, 18, 50, 1535, 844, 48, 159, 9, 26, 823, 15, 636, 251, 13017, 1289, 26, 26562, 500, 2558, 165, 500, 9, 636, 49, 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...
HashSet problem -- equals and hashCode with contains working differently than I'd expect === I have the following code: class IncidentTag: def __init__(self,tag): self.tag = tag def equals(self,obj): return self.tag.equals(obj.tag) def hashCode(self): return self.tag.hashCode() from java.lang import String from java.util import HashMap from java.util import HashSet tag1 = IncidentTag(String("email")) tag1copy = IncidentTag(String("email")) tag2 = IncidentTag(String("notemail")) print tag1.equals(tag1copy) print tag2.equals(tag2) print "Now with HashSet:" hSet = HashSet() hSet.add(tag1) hSet.add(tag2) print hSet.contains(tag1) print hSet.contains(tag2) print hSet.contains(tag1copy) The output is: 1 1 Now with HashSet: 1 1 0 However, I would have expected the last line to be true (1) as well. Is there something obvious that I am missing. (yes, I know that my equals method and hashcode methods do not take some issues into account... they are deliberately simple, but do let me know if the issues there are causing this problem)
0
[ 2, 19170, 3554, 1448, 13, 8, 8, 2747, 18, 17, 19170, 9375, 29, 1588, 638, 12670, 119, 31, 22, 43, 4186, 800, 3726, 3726, 31, 57, 14, 249, 1797, 45, 718, 3246, 8628, 45, 6312, 13, 1, 108, 242, 1, 5, 8411, 15, 8628, 6, 45, 111...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Problem sorting lists using delgates === I am trying to sort a list using delegates but I am getting a signature match error. The compiler says I cannot convert from an 'anonymous method' List<MyType> myList = GetMyList(); myList.Sort( delegate (MyType t1, MyType t2) { return (t1.ID < t2.ID); } ); What am I missing? Here are some references I found and they do it the same way. [Developer Fusion Reference][1] [Microsoft Reference][2] [1]: http://www.developerfusion.com/code/5513/sorting-and-searching-using-c-lists/ [2]: http://blogs.msdn.com/devdev/archive/2006/06/30/652802.aspx
0
[ 2, 1448, 2058, 68, 7227, 568, 1506, 3322, 18, 800, 3726, 3726, 31, 589, 749, 20, 2058, 21, 968, 568, 10845, 47, 31, 589, 1017, 21, 7810, 730, 7019, 9, 14, 21486, 898, 31, 1967, 8406, 37, 40, 13, 22, 210, 14016, 1291, 2109, 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...
XPath query with PHP === Here's the XML code i'm working with: <inventory> <drink> <lemonade supplier="mother" id="1"> <price>$2.50</price> <amount>20</amount> </lemonade> <lemonade supplier="mike" id="4"> <price>$3.00</price> <amount>20</amount> </lemonade> <pop supplier="store" id="2"> <price>$1.50</price> <amount>10</amount> </pop> </drink> </inventory> Then i wrote a simple code to practice working with XPath: <?php $xmldoc = new DOMDocument(); $xmldoc->load('sample.xml'); $xpathvar = new Domxpath($xmldoc); $queryResult = $xpathvar->query('//lemonade/price'); foreach($queryResult as $result){ echo $result->textContent; } ?> That code is working well, outputting all the lemonade price values as expected. Now when i change the query string to select only the elements with an attribute set to a certain value, like > //lemonade[supplier="mother"]/price or > //lemonade[id="1"]/price it won't work, no output at all. What am i doing wrong?
0
[ 2, 993, 8353, 25597, 29, 13, 26120, 800, 3726, 3726, 235, 22, 18, 14, 23504, 1797, 31, 22, 79, 638, 29, 45, 13, 1, 108, 6645, 7159, 1, 13, 1, 43, 10603, 1, 13, 1, 413, 13951, 546, 13078, 3726, 7, 8995, 7, 4924, 3726, 7, 165,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Redirect depending on the Country? === We basically have 2 sites ( Java /JSP / Apache Webserver) : something.ca & something.com The .ca is canadian content, and the .com is american content. We need users to be redirected based on the ip addreess. We want US users to get the .com site and Canadian users get the .ca site. What is the best way to do this (at a webserver level or otherwise ) ? Please elaborate.
0
[ 2, 302, 14706, 4758, 27, 14, 475, 60, 800, 3726, 3726, 95, 11374, 57, 172, 3259, 13, 5, 8247, 13, 118, 728, 3401, 13, 118, 17140, 2741, 10321, 106, 6, 13, 45, 301, 9, 793, 279, 301, 9, 960, 14, 13, 9, 793, 25, 1155, 2331, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What artifacts to save for a nightly build? === Assume that I set up an [automatic nightly build][1]. What artifacts of the build should I save? For example: - Input source code - output binaries Also, how long to save them for, and where to save them? Do your answers change if I do Continuous Integration? [1]: http://stackoverflow.com/questions/204603/nightly-builds-why-should-i-do-it
0
[ 2, 98, 10996, 20, 2079, 26, 21, 343, 102, 1895, 60, 800, 3726, 3726, 7158, 30, 31, 309, 71, 40, 636, 23465, 343, 102, 1895, 500, 2558, 165, 500, 9, 98, 10996, 16, 14, 1895, 378, 31, 2079, 60, 26, 823, 45, 13, 8, 6367, 1267, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Implementing wait for condition or cancel with threading === I am trying to implement the following functionality: class WeightResolver { WeightMonitor _source; bool _cancelled; Weight _threshold; public Cancel() { _cancelled = true; } public Weight Resolve(){ _cancelled = false; while(_source.CurrentWeight < threshold ) { if(_cancelled) throw new CancelledOperationException(); // Wait until one of the above conditions is met } return _source.CurrentWeight } } However I am running into trouble managing my threads. For example, the Cancel method is registered via an event and Resolve invoked as follows: _activity_timeout_manager.TimeoutHandler += new Action(_weight_resolver.Cancel())l try { var weight = _weight_resolver.Resolve(); } catch(CancelledOperationException) { .... } where the activity manager is running a timer on tick of which it invokes events using TimeoutHandler.Invoke(); The problem is that even though it is properly registered with the event, Cancel() never gets called. I believe this is because the thread it is calling to is currently spinning and therefore it never gets a chance at the CPU. What can I do to remedy the situation short of making the call to Resolve() asynchronous? It is extremely preferable for WeightResolver.Resolve() to stay synchronous because the code calling it should spin unless some return is provided anyways.
0
[ 2, 17333, 1760, 26, 2874, 54, 14815, 29, 9322, 68, 800, 3726, 3726, 31, 589, 749, 20, 8713, 14, 249, 18548, 45, 718, 1763, 99, 5594, 2304, 13, 1, 1763, 2111, 242, 248, 13, 1, 12097, 73, 1607, 1823, 13, 1, 1245, 9725, 69, 73, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Multiple rail apps using Apache and Mongrel === I am actually developing and application that has around 15 modules, all of them using the same database. I am using Apache + Mongrel, I cannot use Passenger because I am working on Windows (please forgive me for this deadly sin!) Which of the following is a better approach? 1. Deploy multiple small rails applications using a virtual server and a pair of mongrels for each application. 2. Deploy only a big rails application I am worried about the number of running mongrels and the memory/cpu load.
0
[ 2, 1886, 2240, 4865, 18, 568, 17140, 17, 21028, 7256, 800, 3726, 3726, 31, 589, 1121, 3561, 17, 3010, 30, 63, 140, 357, 17113, 15, 65, 16, 105, 568, 14, 205, 6018, 9, 31, 589, 568, 17140, 2754, 21028, 7256, 15, 31, 1967, 275, 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...
CREATE TRIGGER is taking more than 30 minutes on SQL Server 2005 === On our live/production database I'm trying to add a trigger to a table, but have been unsuccessful. I have tried a few times, but it has taken more than 30 minutes for the create trigger statement to complete and I've cancelled it. The table is one that gets read/written to often by a couple different processes. I have disabled the scheduled jobs that update the table and attempted at times when there is less activity on the table, but I'm not able to stop everything that accesses the table. I do not believe there is a problem with the create trigger statement itself. The create trigger statement was successful and quick in a test environment, and the trigger works correctly when rows are inserted/updated to the table. Although when I created the trigger on the test database there was no load on the table and it had considerably less rows, which is different than on the live/production database (100 vs. 13,000,000+). Here is the create trigger statement that I'm trying to run CREATE TRIGGER [OnItem_Updated] ON [Item] AFTER UPDATE AS BEGIN SET NOCOUNT ON; IF update(State) BEGIN /* do some stuff including for each row updated call a stored procedure that increments a value in table based on the UserId of the updated row */ END END Can there be issues with creating a trigger on a table while rows are being updated or if it has many rows? In SQLServer triggers are created enabled by default. Is it possible to create the trigger disabled by default? Any other ideas?
0
[ 2, 1600, 7286, 25, 741, 91, 119, 712, 902, 27, 4444, 255, 8128, 812, 800, 3726, 3726, 27, 318, 515, 118, 11386, 6018, 31, 22, 79, 749, 20, 3547, 21, 7286, 20, 21, 859, 15, 47, 57, 74, 7225, 9, 31, 57, 794, 21, 310, 436, 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...
Android API for detecting new media from inbuilt camera & mic === Is there any elegant way in the Android API for detecting new media when it is written to the device? I’m mainly interested in photos taken by the camera, video taken by the camera and audio recorded from the mic. My current thinking is to periodically scan each media content provider and filter based on last scan time. I’m just wondering if there is some service I can hook into to get realtime notifications.
0
[ 2, 13005, 21, 2159, 26, 9092, 68, 78, 941, 37, 19, 8607, 3336, 279, 13, 5410, 800, 3726, 3726, 25, 80, 186, 11614, 161, 19, 14, 13005, 21, 2159, 26, 9092, 68, 78, 941, 76, 32, 25, 642, 20, 14, 3646, 60, 31, 1, 79, 2011, 3158...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 connect my tomcat app to apache 2 so the paths aren't lame? === I've got a tomcat instance with several apps running on it... I want the root of my new domain to go to one of these apps (context path of blah).. so I have the following set up: <Location /> ProxyPass ajp://localhost:8025/blah ProxyPassReverse ajp://localhost:8025/blah </Location> it kinda works... going to mydomain.com/index.jsp works except the app still thinks it needs to add the /blah/ to everything like css and js.. is there something I can do without deploying the app to ROOT or changing the tomcat server config? I'd like to keep all this kind of thing on the apache side, if it's possible. I'm thinking I may not be understanding the proxypassreverse directive..
0
[ 2, 184, 107, 31, 6379, 51, 2067, 5782, 4865, 20, 17140, 172, 86, 14, 12074, 4847, 22, 38, 17182, 60, 800, 3726, 3726, 31, 22, 195, 330, 21, 2067, 5782, 4851, 29, 238, 4865, 18, 946, 27, 32, 9, 9, 9, 31, 259, 14, 5900, 16, 51...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Insert default value when parameter is null === I have a table that has a column with a default value: create table t ( value varchar(50) default ('something') ) I'm using a stored procedure to insert values into this table: create procedure t_insert ( @value varchar(50) = null ) as insert into t (value) values (@value) The question is, how do I get it to use the default when `@value` is `null`? I tried: insert into t (value) values ( isnull(@value, default) That obviously didn't work. Also tried a `case` statement, but that didn't fair well either. Any other suggestions? Am I going about this the wrong way?
0
[ 2, 14692, 12838, 1923, 76, 18906, 25, 16203, 800, 3726, 3726, 31, 57, 21, 859, 30, 63, 21, 4698, 29, 21, 12838, 1923, 45, 1600, 859, 13, 38, 13, 5, 1923, 4033, 5433, 5, 2290, 6, 12838, 13, 5, 22, 9099, 22, 6, 13, 6, 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...
Stored Procedures vs Parameterized Queries === Do you prefer to use stored procedures or parameterized queries? What is your argument supporting your choice? Is one method really any better than the other in terms of performance, security, maintainability... etc?
4
[ 2, 8214, 8876, 4611, 18906, 1333, 9386, 2829, 800, 3726, 3726, 107, 42, 6369, 20, 275, 8214, 8876, 54, 18906, 1333, 9386, 2829, 60, 98, 25, 154, 5476, 3134, 154, 1837, 60, 25, 53, 2109, 510, 186, 574, 119, 14, 89, 19, 1663, 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, 0, 0, 0, 0, 0, 0, 0, 0...
Mapping strongly-typed DataSets in a generic FillDataSet method in C#? === I'm working on a project where I need to fill a number of strongly-typed data sets with information from stored procedures. Right now, I have a generic method in my data access layer: public static DataSet FillDataSet(DataSet dataSet, string storedProcedureName, Dictionary<string, string> parameters); The problem with this is that I need to establish mappings between the returned recordsets from the stored procedure and the tables in my data sets. I have come up with two options for doing this: - Add a new formal to my `FillDataSet` method (`KeyValuePair<string, string>[] mappings`) that would provide the information for the table mappings. - Create a `DataSetMappingFactory` that would take a DataSet as a parameter and then add the appropriate mappings based on its type. If it were an unknown type, then it wouldn't add any mappings. Then, it would return the `DataSet` to the `FillDataSet` method. Do any of you have other thoughts about how I could approach this problem? Also, does anyone want to weigh in on an approach that would be best in terms of object-oriented design?
0
[ 2, 13305, 5020, 8, 4474, 43, 1054, 3554, 18, 19, 21, 12733, 3509, 18768, 3554, 2109, 19, 272, 5910, 60, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 669, 113, 31, 376, 20, 3509, 21, 234, 16, 5020, 8, 4474, 43, 1054, 3415, 29, 676...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Counterpart of PHP's isset() in C/C++ === PHP has a very nice function, isset($variableName). It checks if $variableName is already defined in the program or not. Can we build similar feature for C/C++ (some kind of symbol table lookup)?
0
[ 2, 14661, 16, 13, 26120, 22, 18, 25, 3554, 5, 6, 19, 272, 118, 150, 20512, 800, 3726, 3726, 13, 26120, 63, 21, 253, 2210, 1990, 15, 25, 3554, 5, 4403, 8220, 579, 7259, 6, 9, 32, 16602, 100, 5579, 8220, 579, 7259, 25, 614, 2811...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 throw exceptions in JNI code? === I'd like a consistent and simple way to throw exceptions in JNI code; something that handles chained exceptions (implicitly from the env->ExceptionOccurred method, or explicitly by parameters, either way is good) and saves me looking up constructors every time I want to do this. All of the above is preferably in C, although I could translate it from C++ at need. Does anyone on SO have something like this that they can share?
0
[ 2, 246, 161, 20, 3814, 13392, 19, 487, 889, 1797, 60, 800, 3726, 3726, 31, 22, 43, 101, 21, 8224, 17, 1935, 161, 20, 3814, 13392, 19, 487, 889, 1797, 73, 301, 30, 3053, 18, 2858, 69, 13392, 13, 5, 8983, 16927, 38, 102, 37, 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...
Best XSLT Tool === I need a tool to execute XSLTs against **very large** XML files. The transforms that I am using are already well optimized.
0
[ 2, 246, 993, 18, 255, 38, 5607, 800, 3726, 3726, 31, 376, 21, 5607, 20, 15644, 993, 18, 255, 38, 18, 149, 13, 1409, 7864, 370, 1409, 23504, 6488, 9, 14, 8007, 18, 30, 31, 589, 568, 50, 614, 134, 22864, 43, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Explaining refactoring === ### Question ### My question is how can you teach the methods and importance of tidying-up and refactoring code? ### Background ### I was recently working on a code review for a colleague. They had made some modifications to a long-gone colleagues work. During the new changes, my colleague had tried to refactor items but gave up as soon as they hit a crash or some other problem, rather than chasing the rabbit down the hole to find the root of the issue, and so reimplemented the problem code and built more code on top of that. This left the resulting code in a tangle of workarounds and magic numbers so I sat down with them to go through refactoring the code. I tried to explain how I was seeing the places we could refactor and how each refactoring can often highlight new areas. For example, there were two variables that stored the same information - why? I guessed it was a workaround for a bigger issue so I took out one variable and chased the rabbit down the hole, discovering other problems as we went. This eventually led to finding a problem where we were looping over the same things several times. This was due in no small part to the use of arrays of magic number sizes that obfuscated what was being done - fixing the initial "double-variable" problem led to this discovery (and others). As I went on this refactoring journey with my colleague, it was evident that she wasn't always able to grasp why we made certain changes and how we could be sure the new functionality matched the original, so I took the time to explain and prove each change by comparing with earlier versions and stepping through the changes on paper. I also explained, through examples, how to tell if a refactoring choice was a bad idea, when to choose comments instead of code changes, and how to select good variable names. I felt that the process of sitting together to do this was worthwhile for both myself (I got to learn a bit more about how best to explain things to others) and my colleague (they got to understand more of our code and our coding practices) but, the experience led me to wonder if there was a better way to teach the refactoring process. ### ...and finally... ### I understand that what does or does not need refactoring, and how to refactor it are very subjective so I want to steer clear of that discussion, but I am interested to learn how others would tackle the challenge of teaching this important skill, and if others here have had similar experiences and what they learned from them (either as the teacher or the student).
0
[ 2, 10225, 302, 17455, 68, 800, 3726, 3726, 6926, 5910, 5910, 1301, 6926, 5910, 5910, 51, 1301, 25, 184, 92, 42, 5348, 14, 3195, 17, 3728, 16, 28028, 68, 8, 576, 17, 302, 17455, 68, 1797, 60, 6926, 5910, 5910, 2395, 6926, 5910, 591...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Mode Library and CRT Dependencies - HELP === Alright, after doing a ton of research and trying almost every managed CPP Redist I can find as well as trying to copy my DLLs locally to the executing directory of the app I cannot figure out what dependencies i'm missing for this mixed mode library. Basically I have a large C# application and I'm trying to use a mixed mode library I made. On the development machine it works perfect (of course) but deployed when the library needs to be loaded for use it exceptions out because of missing CRT dependencies (I assume). I have used dependency walker to check all the DLLs referenced and ensured they exist on the deployment machine with no luck, I'm wondering if maybe it's some dependencies that need to be registered that I am missing, but i can't figure out what. I get the following exception when code tries to instantiate a class from the mixed mode library. > Exception Detail: > System.IO.FileLoadException: Could not > load file or assembly 'USADSI.MAPI, > Version=1.0.3174.25238, > Culture=neutral, PublicKeyToken=null' > or one of its dependencies. This > application has failed to start > because the application configuration > is incorrect. Reinstalling the > application may fix this problem. > (Exception from HRESULT: 0x800736B1) I am compiling the library using VS2008 SP1 with /clr:oldSyntax specified. The intermediate manifest looks like this: <?xml version='1.0' encoding='UTF-8' standalone='yes'?> <assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLevel level='asInvoker' uiAccess='false' /> </requestedPrivileges> </security> </trustInfo> <dependency> <dependentAssembly> <assemblyIdentity type='win32' name='Microsoft.VC90.CRT' version='9.0.21022.8' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' /> </dependentAssembly> </dependency> </assembly> I can provide any more information as needed, unfortunately i'm not well versed in making mixed mode libraries so this has thrown me off. If anyone can offer any advice I would greatly appreciate it!
0
[ 2, 2198, 3740, 1248, 17, 6186, 38, 29411, 13, 8, 448, 800, 3726, 3726, 11885, 15, 75, 845, 21, 13, 444, 16, 527, 17, 749, 557, 352, 1471, 272, 3421, 402, 702, 31, 92, 477, 28, 134, 28, 749, 20, 4344, 51, 13, 43, 211, 18, 668...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Difference between lock(locker) and lock(variable_which_I_am_using) === I'm using C# & .NEt 3.5. What is the difference between the OptionA and OptionB ? class MyClass { private object m_Locker = new object(); private Dicionary<string, object> m_Hash = new Dictionary<string, object>(); public void OptionA() { lock(m_Locker){ // Do something with the dictionary } } public void OptionB() { lock(m_Hash){ // Do something with the dictionary } } } I'm starting to dabble in threading (primarly for creating a cache for a multi-threaded app, NOT using the HttpCache class, since it's not attached to a web site), and I see the OptionA syntax in a lot of the examples I see online, but I don't understand what, if any, reason that is done over OptionB.
0
[ 2, 2841, 128, 3991, 5, 3966, 106, 6, 17, 3991, 5, 8220, 579, 1, 2140, 1, 49, 1, 765, 1, 12655, 6, 800, 3726, 3726, 31, 22, 79, 568, 272, 5910, 279, 13, 9, 2328, 203, 9, 264, 9, 98, 25, 14, 2841, 128, 14, 4255, 58, 17, 42...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cancel a webform submit with PHP === I'm using a small site to experiment with the uploading of pictures and displaying them. When someone clicks "add a picture", they get taken to a page with a form on it. They can select a file and click the submit button. But what I want to do now is this: put a second submit button labeled "Cancel" next to the normal confirmation button. If someone then chooses to upload, selects and hits submit, if they press the cancel button before the file is fully uploaded, PHP should stop the uploading of the file and delete it. And then just go back to the overview. No Javascript used whatsoever. I only have localhost, so testing this in kindof impossible, since I just copy a file the millisecond I press the submit button. There's no upload-time with a localhost and I'm not going to buy a server somewhere just for this. Basically what's happening now is that the PHP detects which button was sent. If the submit button was sent, the file is uploaded, if the cancel button is sent, it just goes back to the overview. But PHP does its tasks one in a row. So I don't think this will work. How do I tell PHP to stop doing the upload?
0
[ 2, 14815, 21, 2741, 4190, 12298, 29, 13, 26120, 800, 3726, 3726, 31, 22, 79, 568, 21, 284, 689, 20, 5737, 29, 14, 71, 16866, 16, 3104, 17, 17418, 105, 9, 76, 737, 10840, 18, 13, 7, 14854, 21, 2151, 7, 15, 59, 164, 658, 20, 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...
Can C# generics have a specific base type? === Is it possible for a generic interface's type to be based on a specific parent class? For example: public interface IGenericFace<T : BaseClass> { } Obviously the above code doesn't work but if it did, what I'm trying to tell the compiler is that `T` must be a sub-class of `BaseClass`. Can that be done, are there plans for it, etc.? I think it would be useful in terms of a specific project, making sure a generic interface/class isn't used with unintended type(s) at compile time. Or also to sort of self-document: show what kind of type is intended.
0
[ 2, 92, 272, 5910, 12733, 18, 57, 21, 1903, 1000, 1001, 60, 800, 3726, 3726, 25, 32, 938, 26, 21, 12733, 6573, 22, 18, 1001, 20, 44, 432, 27, 21, 1903, 4766, 718, 60, 26, 823, 45, 317, 6573, 31, 17083, 596, 6413, 1, 38, 13, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to flush output of Python print? === I would like to force Python's print function to output to the screen.
0
[ 2, 184, 20, 15017, 5196, 16, 20059, 4793, 60, 800, 3726, 3726, 31, 83, 101, 20, 558, 20059, 22, 18, 4793, 1990, 20, 5196, 20, 14, 2324, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Control Reuse and UpdatePanel === I have a user control that is pretty basic. It contains several TextBox controls, a few DropDownList controls, a save Button and a cancel Button. I would like to use this control in two different modes. The first mode is in the normal postback mode to do the save and cancel actions. The second mode would use AJAX to do the save and cancel actions. Is it possible to wrap the contents of the control in an UpdatePanel and then be able to turn on/off whether or not the UpdatePanel does AJAX or PostBack for the control events? Or would I be better served by just creating two new controls (1 with UpdatePanel, 1 without) to house the one old control?
0
[ 2, 569, 302, 3699, 17, 11100, 3206, 532, 800, 3726, 3726, 31, 57, 21, 4155, 569, 30, 25, 1772, 2125, 9, 32, 1588, 238, 1854, 5309, 8671, 15, 21, 310, 2804, 2968, 5739, 8671, 15, 21, 2079, 5167, 17, 21, 14815, 5167, 9, 31, 83, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Analyzing web application usage and user patterns using DB/application server logs? === I assume that most of the analyzing and tracking is done based on the data gathered from browser actions like page requests. Tools like AWStats, Google Analytics and Omniture take place in this. But there is also good amount of data available in databases or service level logs. For example GWT based application might be a bit tricky to analyze. Or in case of a financial application customer might be interested in suspicious transfers. So, please share your best practices: - What kind of approaches you have implemented for DB or log analysis? - Do you use some existing tools or your own in-house products? - Are you happy just to follow which functionality is the used most one and how fast it is processed? - Or do you actually store user action paths and use those to spot unusual patterns?
0
[ 2, 23543, 2741, 3010, 7514, 17, 4155, 6282, 568, 13, 9007, 118, 2552, 20669, 8128, 18893, 60, 800, 3726, 3726, 31, 7158, 30, 127, 16, 14, 23543, 17, 10353, 25, 677, 432, 27, 14, 1054, 4744, 37, 16495, 3078, 101, 2478, 12279, 9, 46...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Getting template text from FreeMarker in Spring app === In my Spring app, I'd like to use FreeMarker to generate the text of emails that will be sent by my application. The generated text will never be returned to the view so I don't need to configure a FreeMarker view resolver. The documentation seems to indicate that I should configure a FreeMarkerConfigurationFactoryBean like this <bean id="freemarkerConfiguration" class="org.springframework.ui.freemarker.FreeMarkerConfigurationFactoryBean"> <property name="templateLoaderPath" value="/WEB-INF/freemarker/"/> </bean> Once I have this bean configured how do I actually get the text that is generated for a particular template, with a particular Map of variables. In other words, what code comes after: String tempalteName = "email" Map templateVariables = new HashMap(); templateVariables.put("firstName", "john"); templateVariables.put("surname", "doe"); // Now how do I get the template text? [Spring modules][1] seems to provide an alternative integration between Spring and FreeMarker which makes retrieving the template text very obvious, but I'd prefer not to add an additional dependency to my app unless it's absolutely necessary. Also, do I need to add some extra configuration to the FreeMarkerConfigurationFactoryBean to ensure that the templates are cached? Cheers, Don [1]: https://springmodules.dev.java.net/
0
[ 2, 1017, 22894, 1854, 37, 551, 4527, 106, 19, 1573, 4865, 800, 3726, 3726, 19, 51, 1573, 4865, 15, 31, 22, 43, 101, 20, 275, 551, 4527, 106, 20, 7920, 14, 1854, 16, 8517, 18, 30, 129, 44, 795, 34, 51, 3010, 9, 14, 6756, 1854, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Keeping track of opensource/freeweare/plugins/etc. === Howdy. I'm a converting mainframe programmer with less than a year of PC programming experience (same company) with VS 2K5. I'm digging the new 'freedom' to try new tools on my PC and have become maybe what you'd call a utility packrat. I have all sorts of open source utilities, freeware utilities, VS plugins/add-ins/snippet collections and the like. What I don't have is a good system for ensuring I give each one a proper evaluation an making sure I only keep the good and throw out the bad. To be sure there are a handful if items that have worked their way into daily/weekly use - but for the most part I'll come across an older (couple of months?) downloaded installer and just wonder "WTF did I download this for" and never get around to checking it out. Surely I can't be the only one who grabs something from a link posted in forums(like this one) and makes a mental note to 'check it out later" but "later" never comes. Anyone got any good suggestions for how to manage a stable of not-necessarily-related utilities and how to keep track of what works, what doesn't, and why?
0
[ 2, 2882, 792, 16, 368, 12097, 118, 4639, 458, 1509, 118, 18527, 17040, 118, 1198, 150, 9, 800, 3726, 3726, 184, 1851, 9, 31, 22, 79, 21, 19583, 407, 8361, 17968, 29, 787, 119, 21, 159, 16, 5168, 3143, 1496, 13, 5, 18, 8357, 237,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 initialization list in constructors be used in template classes? === The question is simple: I find out that most books concerning c++ templates don`t tell anything about whether it`s possible or not to use initialization list in constructor of a template class. For example, I have code like this: template <class T> class Stack { T* data; std::size_t count; std::size_t capacity; enum {INIT = 5}; public: Stack() { count = 0; capacity = INIT; data = new T [INIT]; } can I replace the constructor with Stack(): count(0), capacity(INIT), data(new T [INIT])?
0
[ 2, 92, 2104, 1829, 968, 19, 6960, 248, 18, 44, 147, 19, 22894, 2684, 60, 800, 3726, 3726, 14, 1301, 25, 1935, 45, 31, 477, 70, 30, 127, 964, 6477, 272, 20512, 22894, 18, 221, 1, 38, 494, 602, 88, 1472, 32, 1, 18, 938, 54, 52...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Getting Precies Times in PHP === I have noticed that regardless of a given script's execution time, every date() call will return the same timestamp regardless of where the function is called within the script. It looks like it just returns the time at which the script first started executing. For logging purposes, it would be extremely useful to be able to get incremental timestamps from within a script. Is this possible? Is there a way to do this that is relatively lightweight?
0
[ 2, 1017, 782, 10807, 436, 19, 13, 26120, 800, 3726, 3726, 31, 57, 2711, 30, 7148, 16, 21, 504, 3884, 22, 18, 5769, 85, 15, 352, 1231, 5, 6, 645, 129, 788, 14, 205, 436, 38, 10158, 7148, 16, 113, 14, 1990, 25, 227, 363, 14, 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...
What's the difference between recycling an app pool manually vs automatically? === I've noticed that you can manually recycle an application pool via IIS and that doing so seems to slow down my web app significantly less than making changes to files in App_Code or the web.config file. Is this because recycling the application pool via IIS doesn't force a recompilation of the temporary internet files, but changing App_Code or web.config does?
0
[ 2, 98, 22, 18, 14, 2841, 128, 20777, 40, 4865, 3067, 23671, 4611, 7499, 60, 800, 3726, 3726, 31, 22, 195, 2711, 30, 42, 92, 23671, 302, 12467, 40, 3010, 3067, 1197, 595, 18, 17, 30, 845, 86, 2206, 20, 2276, 125, 51, 2741, 4865, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 resolution .ico files do XP and Vista show on the desktop? === There's loads of choices for .ico files but I can't see any logic in how Windows chooses which resolution/bit depth to show
0
[ 2, 98, 4302, 13, 9, 7776, 6488, 107, 23045, 17, 13520, 298, 27, 14, 17404, 60, 800, 3726, 3726, 80, 22, 18, 19069, 16, 10978, 26, 13, 9, 7776, 6488, 47, 31, 92, 22, 38, 196, 186, 7085, 19, 184, 1936, 3538, 18, 56, 4302, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do I ensure a column contains one of a set of values? === I'm creating a table that looks something like this. CREATE TABLE products ( productCode char(2) , name nvarchar(100) , ... ) I want to make sure the productCode is always one of two values: XJ or XD. How do I do that?
0
[ 2, 184, 107, 31, 4062, 21, 4698, 1588, 53, 16, 21, 309, 16, 4070, 60, 800, 3726, 3726, 31, 22, 79, 2936, 21, 859, 30, 1879, 301, 101, 48, 9, 1600, 859, 1985, 13, 5, 2374, 9375, 4892, 5, 135, 6, 13, 15, 204, 13, 103, 3311, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Design for scalability/performance/security etc.. === Most of the design articles and books are focused on getting loosely coupled and highly cohesive software.. A general guideline not to design for performance but just write code that is efficient. The performance can later be fixed at hot-spots. I am talking in term of rich-domain applications.. What about scalability and security? When do you start considering theses criterion? I am not talking in general about SQL injection.. For ex: If I have to start serving millions of users from say few hundred... When I have to put my internally used website on internet? etc etc..
0
[ 2, 704, 26, 18957, 4091, 118, 22528, 118, 17749, 2722, 9, 9, 800, 3726, 3726, 127, 16, 14, 704, 3376, 17, 964, 50, 2604, 27, 1017, 13166, 13420, 17, 2157, 29611, 2306, 9, 9, 21, 297, 3378, 1143, 52, 20, 704, 26, 956, 47, 114, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is a good non-WYSIWYG editor for HTML? === I don't like WYIWYG editors, I want to be responsible for the selection and placement of each tag and attribute! Is there a good editor out there that allows you complete control over the HTML but offers useful features such as: - syntax highlighting (of course) - suggestions of tags, attributes etc. e.g. as dropdown lists - validation and accessibility checking - previewing the HTML Currently I use TextPad with syntax highlighting, but feel I could do better.
0
[ 2, 98, 25, 21, 254, 538, 8, 7913, 18, 49, 7913, 263, 1835, 26, 13, 15895, 60, 800, 3726, 3726, 31, 221, 22, 38, 101, 5809, 49, 7913, 263, 12149, 15, 31, 259, 20, 44, 1864, 26, 14, 3155, 17, 10774, 16, 206, 3383, 17, 35, 1475...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 is Wikipedia's example of an unbalanced AVL tree really unbalanced? === ![alt text][1] The image above is from ["Wikipedia's entry on AVL trees"][2] which Wikipedia indicates is unbalanced. How is this tree not balanced already? Here's a quote from the article: > The balance factor of a node is the height of its right subtree minus the height of its left subtree and a node with balance factor 1, 0, or -1 is considered balanced. A node with any other balance factor is considered unbalanced and requires rebalancing the tree. The balance factor is either stored directly at each node or computed from the heights of the subtrees. Both the left and right subtrees have a height of 4. The right subtree of the left tree has a height of 3 which is still only 1 less than 4. Can someone explain what I'm missing? [1]: http://upload.wikimedia.org/wikipedia/commons/thumb/a/a9/Unbalanced_binary_tree.svg/251px-Unbalanced_binary_tree.svg.png [2]: http://en.wikipedia.org/wiki/AVL_tree/
0
[ 2, 184, 25, 20169, 22, 18, 823, 16, 40, 367, 24140, 43, 21, 15143, 1541, 510, 367, 24140, 43, 60, 800, 3726, 3726, 13, 187, 2558, 192, 38, 1854, 500, 2558, 165, 500, 14, 1961, 784, 25, 37, 636, 7, 17375, 26132, 22, 18, 2792, 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...
Does foreach always create a copy on a none reference in PHP? === I'm wondering if PHP has this optimization built in. Normally when you call foreach without using a reference it copies the passed array and operates on it. What happens if the reference count to that array is only 1? Say for example if getData returns some array of data. foreach(getData() as $data) echo $data; Since the array returned by getData() only has one reference shouldn't it just be used by reference and not copied first or does php not have this optimization? This seems like a simple optimization that could help a lot of badly written code.
0
[ 2, 630, 26, 14322, 550, 1600, 21, 4344, 27, 21, 2369, 2801, 19, 13, 26120, 60, 800, 3726, 3726, 31, 22, 79, 5712, 100, 13, 26120, 63, 48, 21597, 392, 19, 9, 4147, 76, 42, 645, 26, 14322, 366, 568, 21, 2801, 32, 3298, 14, 1100,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 have multiple cases that do the same thing? === The first one is definitely something that works, but which one below is the efficient way? switch($type) { case 1: print 'success'; break; case 2: print 'success'; break; case 3: print 'success'; break; case 4: print 'success for type 4'; break; } Since 1, 2 and 3 print do the same, can I do this? switch($type) { case 1, 2, 3: print 'success'; break; case 4: print 'success for type 4'; break; } or switch($type) { case 1: case 2: case 3: print 'success'; break; case 4: print 'success for type 4'; break; }
0
[ 2, 92, 31, 57, 1886, 1871, 30, 107, 14, 205, 584, 60, 800, 3726, 3726, 14, 64, 53, 25, 4939, 301, 30, 693, 15, 47, 56, 53, 1021, 25, 14, 8243, 161, 60, 5521, 5, 4403, 4474, 6, 13, 1, 610, 6352, 4793, 13, 22, 29245, 22, 73,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Make python enter password when running a csh script === I'm writing a python script that executes a csh script in Solaris 10. The csh script prompts the user for the root password (which I know) but I'm not sure how to make the python script answer the prompt with the password. Is this possible? Here is what I'm using to execute the csh script: import commands commands.getoutput('server stop')
0
[ 2, 233, 20059, 2830, 20884, 76, 946, 21, 272, 1635, 3884, 800, 3726, 3726, 31, 22, 79, 1174, 21, 20059, 3884, 30, 15644, 18, 21, 272, 1635, 3884, 19, 4535, 403, 332, 9, 14, 272, 1635, 3884, 11443, 13531, 14, 4155, 26, 14, 5900, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
type casting in c++ === May be the question will be a little bit nubie, but can anybody advice me some books/sites/articles about how and when it`s better to use typecasting in c++ style and when it`d be better to prefer c-style? I`ve read a few books (Shildt, Eckel) and haven`t found good material on this theme though I think it`s one of the strongest C++ abilities.
0
[ 2, 1001, 9087, 19, 272, 20512, 800, 3726, 3726, 123, 44, 14, 1301, 129, 44, 21, 265, 1142, 3152, 5893, 15, 47, 92, 11181, 4978, 55, 109, 964, 118, 18, 6359, 118, 20360, 18, 88, 184, 17, 76, 32, 1, 18, 574, 20, 275, 1001, 6146,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 post-build script error calling gacutil. === I'm on vista, with VS2005 running as admin. Both vs2005 and vs2008 are installed. If I explicitedly use the path to gacutil, it works, but not if I only call gacutil like this: if NOT $(ConfigurationName) == Release gacutil /f /i "$(TargetPath)" I would just update the post-build script, but I've been asked to leave it alone. It's a project for a sister company. The path to gacutil is in Visual Studio environment variables, so it should be able to find it. (Tools -> Options -> Projects and Solutions -> VC++ Directories) Is there some way to tweak visual studio or windows environment variable to get the above post-build script to work? I need to it to build, because it's a dependency of a project I need to code. TIA, -j
0
[ 2, 3458, 1120, 678, 8, 29361, 3884, 7019, 2555, 4369, 150, 14255, 9, 800, 3726, 3726, 31, 22, 79, 27, 13520, 15, 29, 4611, 2835, 946, 28, 21, 43, 2160, 9, 156, 4611, 2835, 17, 4611, 2753, 50, 4066, 9, 100, 31, 14990, 69, 102, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 tell a ScrollPane to scroll up or down using actionscript? === I want to trigger an event that causes the ScrollPane to start scrolling up or down. Ideally the ScrollPane would scroll continue to scroll all the way up or down unless canceled by another event.
0
[ 2, 184, 107, 42, 494, 21, 12159, 16660, 20, 12159, 71, 54, 125, 568, 1028, 8741, 60, 800, 3726, 3726, 31, 259, 20, 7286, 40, 807, 30, 4047, 14, 12159, 16660, 20, 799, 13, 28166, 71, 54, 125, 9, 5628, 102, 14, 12159, 16660, 83, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
What is the advantage of this peculiar formatting? === I've seen this format used for comma-delimited lists in some C++ code (although this could apply to any language): void function( int a , int b , int c ) I was wondering why would someone use that over a more common format such as: void function (int a, int b, int c )
0
[ 2, 98, 25, 14, 3314, 16, 48, 13193, 2595, 1203, 60, 800, 3726, 3726, 31, 22, 195, 541, 48, 2595, 147, 26, 11951, 58, 8, 546, 23012, 7227, 19, 109, 272, 20512, 1797, 13, 5, 8655, 48, 110, 5645, 20, 186, 816, 6, 45, 11364, 1990,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Membership and Role Providers in ASP.NET 2.0 with non SQL Server provider? === I have quickly read (and will read with more care soon) the article of Scott Allen concerning the possibility to use an other provider of the default SQL Express or SQL Server database to use the "[Membership and Role Providers][1]" for ASP.NET. We will soon need to open a part of our project to some client via the web and I thought about using the "[Membership and Role Providers][2]" but our database is PostGreSql. Does any one have some experience with "[Membership and Role Providers][2] and an other database type (not SQL Server)? Is it worth it or it's a pain? [1]: http://weblogs.asp.net/scottgu/archive/2006/02/24/ASP.NET-2.0-Membership_2C00_-Roles_2C00_-Forms-Authentication_2C00_-and-Security-Resources-.aspx [2]: http://weblogs.asp.net/scottgu/archive/2006/02/24/ASP.NET-2.0-Membership_2C00_-Roles_2C00_-Forms-Authentication_2C00_-and-Security-Resources-.aspx
0
[ 2, 4363, 17, 597, 13488, 19, 28, 306, 9, 2328, 172, 9, 387, 29, 538, 4444, 255, 8128, 11747, 60, 800, 3726, 3726, 31, 57, 976, 1302, 13, 5, 290, 129, 1302, 29, 91, 781, 651, 6, 14, 2002, 16, 1824, 3675, 6477, 14, 4813, 20, 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...
Loading flatfiles into a normalized MySQL database === What is the fastest way to load data from flatfiles into a MySQL database, and then create the relations between the tables via foreign keys? For example... I have a flat file in the format: "INDIVIDUAL1", "CEU", "rs55555","AA" "INDIVIDUAL1", "CEU", "rs535454","GA" "INDIVIDUAL1", "CEU", "rs555566","AT" "INDIVIDUAL1", "CEU", "rs12345","TT" ... "INDIVIDUAL2", "JPT", "rs55555","AT" Which I need to load into four tables: IND (id,fk_pop,name) POP (id,population) MARKER (id,rsid) GENOTYPE (id,fk_ind,fk_rsid) Specifically, how does one populate the foreign keys in a way that scales?
0
[ 2, 12797, 1844, 16877, 18, 77, 21, 1826, 1333, 51, 18, 22402, 6018, 800, 3726, 3726, 98, 25, 14, 7518, 161, 20, 6305, 1054, 37, 1844, 16877, 18, 77, 21, 51, 18, 22402, 6018, 15, 17, 94, 1600, 14, 2649, 128, 14, 7484, 1197, 1228,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Given a list of variables in Python, how do I a create a dictionary with the variable names as keys? === I have a list of variables, like this: [foo, bar, baz] How do I convert this to a dictionary where the keys are the variable names (as strings) and the values are the variables? {'foo': foo, 'bar': bar, 'baz': baz}
0
[ 2, 504, 21, 968, 16, 12157, 19, 20059, 15, 184, 107, 31, 21, 1600, 21, 9186, 29, 14, 7612, 1817, 28, 5534, 60, 800, 3726, 3726, 31, 57, 21, 968, 16, 12157, 15, 101, 48, 45, 636, 4120, 111, 15, 748, 15, 19674, 500, 184, 107, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WebControl in website project === I have created a website project in VS2008 and in the appcode folder I have created a class deriving from System.Web.UI.WebControls.WebControl. I need to use this control in one of my webforms. I can't figure out how to.
0
[ 2, 2741, 12898, 19, 2271, 669, 800, 3726, 3726, 31, 57, 679, 21, 2271, 669, 19, 4611, 2753, 17, 19, 14, 4865, 9375, 19294, 31, 57, 679, 21, 718, 121, 9655, 68, 37, 329, 9, 14113, 9, 5661, 9, 14113, 12898, 18, 9, 14113, 12898, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
retrieve xml doc comments programmatically === Visual Studio does it; Reflector does it; and now I want to as well :) I want to retrieve the xml documentation for some members in some framework assemblies (i.e. `mscorlib.dll`, `System.dll`, etc). I assume this would involve: * finding the xml file for the assembly, * navigating to the appropriately named child element, and * retrieving the desired items (`<summary>`, `<remarks>`, etc) <br/> Where are the xml files kept for framework assemblies? Any points on deciphering the xmldoc naming scheme? Are there any libraries out there that will make this process easier?
0
[ 2, 11917, 23504, 9765, 7534, 625, 6732, 1326, 800, 3726, 3726, 3458, 1120, 630, 32, 73, 6907, 248, 630, 32, 73, 17, 130, 31, 259, 20, 28, 134, 13, 45, 6, 31, 259, 20, 11917, 14, 23504, 13945, 26, 109, 443, 19, 109, 6596, 21066, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What would be the most convenient way to connect Visual Studio 2005 (C#) to Oracle8? === I'm looking for best practices for establishing connections between Oracle 8 and Visual Studio 2005 applications. The target would be a Windows Forms application written in C# that hits the database once a second to monitor tables looking for their last inserted record. I'm considering using "Application settings" to store the connection string there, but I'd love to hear from you guys. Thanks in advance!
0
[ 2, 98, 83, 44, 14, 127, 12845, 161, 20, 6379, 3458, 1120, 812, 13, 5, 150, 5910, 6, 20, 15759, 457, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 246, 5242, 26, 6814, 6760, 128, 15759, 469, 17, 3458, 1120, 812, 3767, 9, 14, 2935, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Need an example explaining why use of comparision operands != and == is considered bad practice in JavaScript. === As I've read somewhere it is advised to use !== and === instead.
0
[ 2, 376, 40, 823, 10225, 483, 275, 16, 6479, 14688, 872, 1877, 706, 18, 13, 187, 3726, 17, 800, 3726, 25, 724, 896, 1345, 19, 8247, 8741, 9, 800, 3726, 3726, 28, 31, 22, 195, 1302, 3493, 32, 25, 10017, 20, 275, 13, 187, 3726, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...