unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
break whenever a file (or class) is entered === In Visual Studio, is there any way to make the debugger break whenever a certain file (or class) is entered? Please don't answer "just set a breakpoint at the beginning of every method" :)
0
[ 2, 1442, 6634, 21, 3893, 13, 5, 248, 718, 6, 25, 1297, 800, 3726, 3726, 19, 3458, 1120, 15, 25, 80, 186, 161, 20, 233, 14, 121, 2345, 11356, 1442, 6634, 21, 1200, 3893, 13, 5, 248, 718, 6, 25, 1297, 60, 2247, 221, 22, 38, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to set the working directory for a <junit> task to something other than the basedir? === I have an Ant script with a junit target where I want it to start up the VM with a different working directory than the basedir. How would I do this? Here's a pseudo version of my target. <target name="buildWithClassFiles"> <mkdir dir="${basedir}/UnitTest/junit-reports"/> <junit fork="true" printsummary="yes"> <classpath> <pathelement location="${basedir}/UnitTest/bin"/> <path refid="classpath.compile.tests.nojars"/> </classpath> <jvmarg value="-javaagent:${lib}/jmockit/jmockit.jar=coverage=:html"/> <formatter type="xml" /> <test name="GlobalTests" todir="${basedir}/UnitTest/junit-reports" /> </junit> </target>
0
[ 2, 184, 20, 309, 14, 638, 16755, 26, 21, 13, 1, 8753, 242, 1, 3005, 20, 301, 89, 119, 14, 432, 1523, 60, 800, 3726, 3726, 31, 57, 40, 40, 38, 3884, 29, 21, 7446, 242, 2935, 113, 31, 259, 32, 20, 799, 71, 14, 13, 20147, 29,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Which language for a quick GUI app + sqlite database CRUD (2-4 tables) === Which language for quick GUI app + sqlite database CRUD (2-4 tables). Java, Python? (Please no jokes like VBasic), some reference, source code to look on?
0
[ 2, 56, 816, 26, 21, 2231, 9457, 4865, 2754, 4444, 10601, 6018, 11498, 43, 13, 5, 135, 8, 300, 7484, 6, 800, 3726, 3726, 56, 816, 26, 2231, 9457, 4865, 2754, 4444, 10601, 6018, 11498, 43, 13, 5, 135, 8, 300, 7484, 6, 9, 8247, 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...
Outlook Redemption : GetNamesFromIDs === I'm trying to get all property names / values from an Outlook item. I have custom properties in addition to the default outlook item properties. I'm using redemption to get around the Outlook warnings but I'm having some problems with the GetNamesFromIDs method on a Redemption.RDOMail Item.... I'm using my redemption session to get the message and trying to use the message to get the names of all the properties. Dim rMessage as Redemption.RDOMail = _RDOSession.GetMessageFromID(EntryID, getPublicStoreID()) Dim propertyList As Redemption.PropList = someMessage.GetPropList(Nothing) For i As Integer = 1 To propertyList.Count + 1 Console.WriteLine(propertyList(i).ToString()) Console.WriteLine(someMessage.GetNamesFromIDs(________, propertyList(i))) Next I'm not totally sure what to pass in as the first parameter to getNamesFromIDs. The definition of GetNamesFromIDs is as follows: GetNamesFromIDs(MAPIProp as Object, PropTag as Integer) As Redemption.NamedProperty I'm not totally sure what should be passed in as the MAPIProp object. I don't see this property referenced in the documentation. http://www.dimastr.com/redemption/rdo/MAPIProp.htm#properties Any help or insight would be greatly appreciated.
0
[ 2, 19837, 20793, 13, 45, 164, 7259, 18, 2665, 9178, 800, 3726, 3726, 31, 22, 79, 749, 20, 164, 65, 1354, 1817, 13, 118, 4070, 37, 40, 19837, 9101, 9, 31, 57, 5816, 3704, 19, 848, 20, 14, 12838, 19837, 9101, 3704, 9, 31, 22, 79...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 add icons next to the nodes in a WPF TreeView? === I have a WPF TreeView with just 1 level of items. The TreeView is data bound to an ObservableCollection of strings. How can I ensure that the same icon appears to the left of each node in the TreeView?
0
[ 2, 184, 107, 31, 3547, 9801, 18, 328, 20, 14, 16272, 19, 21, 619, 7721, 1541, 4725, 60, 800, 3726, 3726, 31, 57, 21, 619, 7721, 1541, 4725, 29, 114, 137, 662, 16, 3755, 9, 14, 1541, 4725, 25, 1054, 4138, 20, 40, 5122, 10321, 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...
MySqlCommand Parameter not Working === In the following code, used to get a list of products in a particular line, the command only returns results when I hard code (concatenate) `productLine` into the SQL. The parameter substitution never happens. + "lineName = '@productLine' " + "and isVisible = 1 "; MySqlDataAdapter adap = new MySqlDataAdapter(sql, msc); adap.SelectCommand.Parameters.Add("@productLine", productLine);
0
[ 2, 51, 18, 22402, 16239, 18906, 52, 638, 800, 3726, 3726, 19, 14, 249, 1797, 15, 147, 20, 164, 21, 968, 16, 1985, 19, 21, 1498, 293, 15, 14, 1202, 104, 4815, 1736, 76, 31, 552, 1797, 13, 5, 1126, 9530, 8820, 6, 13, 1, 14086, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Forcing TargetControl Textbox to use a value in the AutocompleteExtender === I'm sure I'm going to have to write supporting javascript code to do this. I have an autocomplete extender set up that selects values from a database table, when a selection is made, i would like it to set the ID of the value selected to a hidden control. I can do that by handling a value change on the text box and making a select call to the database, Select idCompany from Companies Where CompanyName = "the text box value"; The most important thing is to constrain the values of the text box that is the targetcontrol for the autocomplete extender to ONLY use values from the autocomplete drop down. Is this possible with that control, is there examples somewhere? is there a better control to use (within the ajax control toolkit or standard .net framework - not a third party control)? I'm going to be trying to work out some javascript, but I'll be checking back to this question to see if anyone has some useful links. I've been googling this last night for quite a while.
0
[ 2, 6135, 2935, 12898, 1854, 5309, 20, 275, 21, 1923, 19, 14, 3108, 15990, 1706, 38, 13630, 800, 3726, 3726, 31, 22, 79, 562, 31, 22, 79, 228, 20, 57, 20, 2757, 3134, 8247, 8741, 1797, 20, 107, 48, 9, 31, 57, 40, 3108, 15990, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
HtmlEncode UTF-8 === I'm using Server.HtmlEncode on a utf-8 string in asp-classic, which works fine until there are some accents in the string e.g. Rüstü Recber, which appears as Rüstü Recber (R&amp;#195;&amp;#188;st&amp;#195;&amp;#188; Recber in the source). I've tried setting the Response.Charset property to utf-8 but this doesn't make any difference.
0
[ 2, 13, 15895, 219, 9375, 287, 11720, 8, 457, 800, 3726, 3726, 31, 22, 79, 568, 8128, 9, 15895, 219, 9375, 27, 21, 287, 11720, 8, 457, 3724, 19, 28, 306, 8, 19824, 15, 56, 693, 1123, 163, 80, 50, 109, 7980, 18, 19, 14, 3724, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
When do/should I use __construct(), __get(), __set(), and __call() in PHP? === A [similar question discusses `__construct`][1], but I left it in my title for people searching who find this one. Apparently, __get and __set take a parameter that is the variable being gotten or set. However, you have to know the variable name (eg, know that the age of the person is $age instead of $myAge). So I don't see the point if you HAVE to know a variable name, especially if you are working with code that you aren't familiar with (such as a library). I found some pages that explain [`__get()`][2], [`__set()`][3], and [`__call()`][4], but I still don't get why or when they are useful. [1]: http://stackoverflow.com/questions/217618/construct-vs-sameasclassname-for-constructor-in-php [2]: http://www.hudzilla.org/phpbook/read.php/6_14_2 [3]: http://www.hudzilla.org/phpbook/read.php/6_14_3 [4]: http://www.hudzilla.org/phpbook/read.php/6_14_4
0
[ 2, 76, 107, 118, 14941, 31, 275, 13, 1, 1126, 10346, 5, 6, 15, 13, 1, 3060, 5, 6, 15, 13, 1, 3554, 5, 6, 15, 17, 13, 1, 9200, 5, 6, 19, 13, 26120, 60, 800, 3726, 3726, 21, 636, 19107, 1301, 18272, 13, 1, 1126, 10346, 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...
ComboBox MouseOver highlighting (Caused by Aero?) === I'd trying to style my ComboBoxes to match the rest of the UI but I'm having problems with the IsMouseOver highlighting. It highlights with the color I specify for a second and then fades back to the default color, kind of a cool effect but not what I'm going for. Here is my style: <Style TargetType="ComboBox"> <Style.Triggers> <Trigger Property="ComboBox.IsMouseOver" Value="True"> <Setter Property = "Background" Value="Red"/> </Trigger> </Style.Triggers> </Style> What can I do to make the background color stay?
0
[ 2, 22621, 5309, 7567, 2549, 23102, 13, 5, 17560, 43, 34, 8914, 60, 6, 800, 3726, 3726, 31, 22, 43, 749, 20, 1034, 51, 22621, 5309, 160, 20, 730, 14, 760, 16, 14, 13, 5661, 47, 31, 22, 79, 452, 1716, 29, 14, 25, 14002, 62, 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...
JQuery-bound event handlers === I want to attach a 'click' event handler to the first child of an element with ID 'foo' using JQuery. I understand that the syntax for doing this is: $('#foo:first-child').bind('click', function(event) { // I want to access the first child here }) Within the handler body I want to access the element which caused the event to be fired. I've read somewhere that you can't simply refer to it via 'this', so how can I access it? Cheers, Don
0
[ 2, 487, 8190, 93, 8, 7410, 807, 24641, 18, 800, 3726, 3726, 31, 259, 20, 19514, 21, 13, 22, 150, 10129, 22, 807, 24641, 20, 14, 64, 850, 16, 40, 4520, 29, 4924, 13, 22, 4120, 111, 22, 568, 487, 8190, 93, 9, 31, 1369, 30, 14,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
VIM initial settings: change backgound color for line number on the left side? === I use _vimrc to configure my vim 7.2 (windows) default settings. One setting "set number" will display line numbers on the left side. My vim background color is white (I cannot find setting for this. Maybe the default is white. Anyway I accept this setting). I would like the background color for line numbers to be Grey or dimmed color. What is the command I can put in my _vimrc to configure this default setting?
0
[ 2, 1790, 79, 2104, 12410, 45, 753, 97, 839, 8724, 1665, 26, 293, 234, 27, 14, 225, 270, 60, 800, 3726, 3726, 31, 275, 13, 1, 1755, 79, 5453, 20, 1065, 15951, 51, 1790, 79, 453, 9, 135, 13, 5, 27508, 18, 6, 12838, 12410, 9, 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...
Is it possible to attach a workflow to a task list on MOSS 2007? === I have tried but for some reason the workflow is not triggered.
0
[ 2, 25, 32, 938, 20, 19514, 21, 170, 9990, 20, 21, 3005, 968, 27, 8188, 624, 60, 800, 3726, 3726, 31, 57, 794, 47, 26, 109, 1215, 14, 170, 9990, 25, 52, 15164, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Best way to parse RSS/Atom feeds with PHP === I'm currently using [Magpie RSS][1] but it sometimes falls over when the RSS or Atom feed isn't well formed. Are there any other options for parsing RSS and Atom feeds with PHP? [1]: http://magpierss.sourceforge.net/
0
[ 2, 246, 161, 20, 2017, 870, 13, 1224, 18, 118, 58, 6015, 17058, 29, 13, 26120, 800, 3726, 3726, 31, 22, 79, 871, 568, 636, 9473, 9903, 13, 1224, 18, 500, 2558, 165, 500, 47, 32, 1030, 2564, 84, 76, 14, 13, 1224, 18, 54, 14571,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 method on state change with AASM === How do I go about calling a method on state change in AASM? I'd like to call update_foo when the state transitions to paid in the following model: class Foo < ActiveRecord::Base include AASM # State Machine aasm_initial_state :incomplete aasm_state :incomplete aasm_state :paid aasm_event :pay do transitions :from => :incomplete, :to => :paid end def update_foo ... end end
0
[ 2, 2555, 21, 2109, 27, 146, 753, 29, 21, 472, 79, 800, 3726, 3726, 184, 107, 31, 162, 88, 2555, 21, 2109, 27, 146, 753, 19, 21, 472, 79, 60, 31, 22, 43, 101, 20, 645, 11100, 1, 4120, 111, 76, 14, 146, 4513, 18, 20, 2192, 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...
Including ~/opt/lib libraries in a Passenger Rails App === I'm having trouble getting a rails app on Dreamhost's Passenger to see compiled libraries in my ~/opt/lib directory. I have to put them here because I don't have root access. I can boot up my app in ./script/console and it sees them libraries just fine because I updated my .bash_profile's `LD_LIBRARY_PATH` environment variable to include ~/opt/lib. I've tried putting `ENV['LD_LIBRARY_PATH'] = '~/opt/lib'` in my environment.rb file but it doesn't seem too help. I get the following error from Passenger when I navigate to my site: libodbcinst.so.1: cannot open shared object file: No such file or directory - /home/username/opt/lib/odbc.so Anyone have experience with this? Thanks
0
[ 2, 215, 13, 1, 118, 2594, 38, 118, 8326, 8649, 19, 21, 3093, 2240, 18, 4865, 800, 3726, 3726, 31, 22, 79, 452, 2572, 1017, 21, 2240, 18, 4865, 27, 1868, 11694, 22, 18, 3093, 20, 196, 9316, 8649, 19, 51, 13, 1, 118, 2594, 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...
count immediate child elements using Query === I have the following HTML node structure: <div id="foo"> <div id="bar"></div> <div id="baz"> <div id="biz"> </div> <span><span> </div> How do I count the number of immediate children of "foo", that are of type "div". In the example above, the result should be two ("bar" and "baz"). Cheers, Don
0
[ 2, 2468, 5231, 850, 2065, 568, 25597, 800, 3726, 3726, 31, 57, 14, 249, 13, 15895, 15421, 1411, 45, 13, 1, 12916, 4924, 3726, 7, 4120, 111, 7, 1, 13, 1, 12916, 4924, 3726, 7, 1850, 7, 1, 118, 12916, 1, 13, 1, 12916, 4924, 3726...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JS Regex For Human Names === I'm looking for a good JavaScript RegEx to convert names to proper cases. For example: John SMITH = John Smith Mary O'SMITH = Mary O'Smith E.t MCHYPHEN-SMITH = E.T McHyphen-Smith John Middlename SMITH = John Middlename SMITH Well you get the idea. Anyone come up with a comprehensive solution?
0
[ 2, 487, 18, 7953, 1706, 26, 585, 1817, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 254, 8247, 8741, 7953, 1706, 20, 8406, 1817, 20, 4119, 1871, 9, 26, 823, 45, 239, 1167, 800, 239, 1167, 1044, 635, 22, 7017, 800, 1044, 635, 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...
How do you unit test private method? === I'm Building a class library that will have some public & private methods. I want to be able to unit test the private methods (mostly while developing, but also it could be useful for future refactoring) What is the best way to do this?
0
[ 2, 184, 107, 42, 1237, 1289, 932, 2109, 60, 800, 3726, 3726, 31, 22, 79, 353, 21, 718, 1248, 30, 129, 57, 109, 317, 279, 932, 3195, 9, 31, 259, 20, 44, 777, 20, 1237, 1289, 14, 932, 3195, 13, 5, 18397, 133, 3561, 15, 47, 67,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JOGL -Does it work? -- Questions + Comments and experiences === ##The story: I been googling for some way of displaying computer graphics over the web using acceleration from video cards (*no software renders)*. I know it is possible to write and activeX module for *IE* but that is *not a complete solution* as that would alinate a good amount of users (*firefox + macOS fans*). Here is an example of more less what I have in mind: [Example of a hardware acceleration on top of browser link][1] ---------- ##The query: I recently found out that you can bind opengl calls with java from a browser using **JOGL**. So I was wondering some things: > **A)** Is **JOGL** the best solution for my story? </br> > **B)** Can i query opengl extensions from JOGL? </br> > **C)** How do i load textures from JOGL? ---------- ##The comments: If you have used JOGL from a browser please please let me know what problems/experiences you had from it. ---------- #Many Thanks! As always **everything is welcome**. <br/> [1]: http://tribaltrouble2.com/
0
[ 2, 21160, 255, 13, 8, 10739, 32, 170, 60, 13, 8, 8, 2346, 2754, 7534, 17, 5513, 800, 3726, 3726, 6926, 5910, 124, 609, 45, 31, 74, 162, 5598, 802, 26, 109, 161, 16, 17418, 1428, 8351, 84, 14, 2741, 568, 17661, 37, 763, 4092, 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...
Is it possible to communicate with a sub subprocess with subprocess.Popen? === I'm trying to write a python script that packages our software. This script needs to build our product, and package it. Currently we have other scripts that do each piece individually which include csh, and perl scripts. One such script is run like: sudo mod args so in python I would do proc = Popen(['sudo', 'mod', '-p', '-c', 'noresource', '-u', 'dtt', '-Q'], stderr=PIPE, stdout=PIPE, stdin=PIPE) The problem is that this mod script needs a few questions answered. For this I thought that the traditional (stdout, stderr) = proc.communicate(input='y') would work. I don't think it's working because the process that Popen is controlling is sudo, not the mod script that is asking the question. Is there any way to communicate with the mod script and still run it through sudo?
0
[ 2, 25, 32, 938, 20, 8709, 29, 21, 972, 972, 16835, 29, 972, 16835, 9, 6057, 219, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 2757, 21, 20059, 3884, 30, 16875, 318, 2306, 9, 48, 3884, 2274, 20, 1895, 318, 2374, 15, 17, 6030, 32, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SqlDataAdapter.Fill method slow === Why would a stored procedure that returns a table with 9 columns, 89 rows using this code take 60 seconds to execute (.NET 1.1) when it takes < 1 second to run in SQL Server Management Studio? It's being run on the local machine so little/no network latency, fast dev machine Dim command As SqlCommand = New SqlCommand(procName, CreateConnection()) command.CommandType = CommandType.StoredProcedure command.CommandTimeout = _commandTimeOut Try Dim adapter As new SqlDataAdapter(command) Dim i as Integer For i=0 to parameters.Length-1 command.Parameters.Add(parameters(i)) Next adapter.Fill(tableToFill) adapter.Dispose() Finally command.Dispose() End Try my paramter array is typed (for this SQL it's only a single parameter) parameters(0) = New SqlParameter("@UserID", SqlDbType.BigInt, 0, ParameterDirection.Input, True, 19, 0, "", DataRowVersion.Current, userID) The Stored procedure is only a select statement like so: ALTER PROC [dbo].[web_GetMyStuffFool] (@UserID BIGINT) AS SELECT Col1, Col2, Col3, Col3, Col3, Col3, Col3, Col3, Col3 FROM [Table]
0
[ 2, 4444, 255, 18768, 27576, 106, 9, 19971, 2109, 2276, 800, 3726, 3726, 483, 83, 21, 8214, 7004, 30, 4815, 21, 859, 29, 561, 7498, 15, 9787, 11295, 568, 48, 1797, 247, 2083, 2582, 20, 15644, 13, 5, 9, 2328, 137, 9, 165, 6, 76, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
syntax to remove permissions previously granted via GRANT EXECUTE? === If I grant execute permissions to a role via GRANT EXECUTE ON [DBO].[MYPROC] TO MY_ROLE what's the equivalent syntax to remove them?
0
[ 2, 22649, 20, 4681, 5572, 18, 1343, 2743, 1197, 2048, 15644, 60, 800, 3726, 3726, 100, 31, 2048, 15644, 5572, 18, 20, 21, 597, 1197, 2048, 15644, 27, 636, 43, 1192, 500, 9, 2558, 915, 15617, 500, 20, 51, 1, 661, 413, 98, 22, 18,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Lean Software (Webapplication) Release Engineering === I'm looking to re-organize the way we release our internal software. All of the code (PHP webapps, some Java apps and Perl scripts) is checked into Subversion repositories but there are no branches or tags, everything is checked into trunk (only around 1-3 devs per app). On the production linux servers, the software is just directly run from a working svn copy (actually most of the changes happen there as well). Since we have a lot of small apps and release very often small changes to the running system, I'm looking for a very lean or transparent way to do some release engineering and to clean up this mess abit. Are there any tools out there that may help me to do so in a heterogenous environment (language-wise) like that? Or has anyone an idea how to do this in a proper way? Otherwise I'd thought of writing some release (shell) scripts that automatically create subversion tags from trunk and then do a checkout of the corresponding tag to the production servers. But that sounds kinda hack'ish as well to me. Thanks, Haes.
0
[ 2, 6349, 2306, 13, 5, 14113, 2552, 20669, 6, 830, 1552, 800, 3726, 3726, 31, 22, 79, 699, 20, 302, 8, 6826, 2952, 14, 161, 95, 830, 318, 3117, 2306, 9, 65, 16, 14, 1797, 13, 5, 26120, 2741, 7753, 18, 15, 109, 8247, 4865, 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...
Which Inversion of control (IoC) containers support .NET 1.1? === (see title)
0
[ 2, 56, 19, 10898, 16, 569, 13, 5, 49, 2499, 6, 18988, 555, 13, 9, 2328, 137, 9, 165, 60, 800, 3726, 3726, 13, 5, 1798, 581, 6, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 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...
Nant - Get Newest Folder === Is there a relatively simple way in nant, without writing a custom task, to get the name of the newest folder in a certain directory? Recursion is not needed. I have been trying to do it with directory::get-creation-time and a foreach loop and if statements, yada yada. It's too complex, and I'm about to create a custom task instead. However, I suspect there is some simpler way to do it via existing nant features.
0
[ 2, 13, 11028, 13, 8, 164, 17175, 19294, 800, 3726, 3726, 25, 80, 21, 3109, 1935, 161, 19, 13, 11028, 15, 366, 1174, 21, 5816, 3005, 15, 20, 164, 14, 204, 16, 14, 17175, 19294, 19, 21, 1200, 16755, 60, 26604, 5991, 25, 52, 851, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 anyone aware of any Donet OpenID Provider sample code that might exist. === I need to implement an OpenID Provider in .Net and wondered....Is there's any OpenSource code already written and available?
0
[ 2, 25, 1276, 3854, 16, 186, 677, 38, 368, 1340, 11747, 5717, 1797, 30, 530, 3182, 9, 800, 3726, 3726, 31, 376, 20, 8713, 40, 368, 1340, 11747, 19, 13, 9, 2328, 17, 3519, 9, 9, 9, 9, 403, 80, 22, 18, 186, 368, 12097, 1797, 61...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Maintaining releases/branches in an "agile" rhythm ? === We have a software product that evolves at the rhythm of clients' needs and of a more general roadmap. Because we are in a SCRUM project environment, it happens very regurlarly that a new feature makes its way to the product, and then we are confronted with the choice of: - implementing this feature in an already released branch (not really the point of having a branch, then) - making a new branch - but then we have a branch every three weeks, and it is just not maintanable anymore Not releasing the new feature is not an option, the clients don't want to wait for a long term milestone plan to get the features they want, and it's not always faisible to move the feature in a client module - sometimes we need to change the core of the product... Has anyone any feedback on a good practice given those kind of constraints ?
0
[ 2, 8215, 7073, 118, 23014, 160, 19, 40, 13, 7, 14482, 413, 7, 4568, 13, 60, 800, 3726, 3726, 95, 57, 21, 2306, 2374, 30, 19664, 18, 35, 14, 4568, 16, 7421, 22, 2274, 17, 16, 21, 91, 297, 383, 15022, 9, 185, 95, 50, 19, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why do I get a "Failed to export the report" error when I try to export a Crystal Report to an HTML file? === I'm trying to export a Crystal Report to an HTML file, but when I call the Export method, I immediately get this error: > **Source**: Crystal Reports ActiveX Designer > > **Description**: Failed to export the report. I have tried both crEFTHTML40 and crEFTHTML32Standard as export format types - and both result in the same error. Here is a highly simplified version of what I'm doing: Dim objCRReport As CRAXDRT.Report [...] objCRReport.ExportOptions.FormatType = 32 'crEFTHTML40 objCRReport.ExportOptions.DestinationType = 1 'crEDTDiskFile objCRReport.ExportOptions.DiskFileName = "C:\reportInHtmlFormat.html" objCRReport.Export False '<--- "Failed to export the report" error here Please note that I am referencing the "Crystal Reports 9 ActiveX Designer Runtime Library" specifically.
0
[ 2, 483, 107, 31, 164, 21, 13, 7, 24910, 69, 20, 7487, 14, 1330, 7, 7019, 76, 31, 1131, 20, 7487, 21, 4282, 1330, 20, 40, 13, 15895, 3893, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 7487, 21, 4282, 1330, 20, 40, 13, 15895, 389...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Blocking a Qt application during downloading a short file === I'm writing an application using Qt4. I need to download a very short text file from a given http address. The file is short and is needed for my app to be able to continue, so I would like to make sure the download is blocking (or will timeout after a few seconds if the file in not found/not available). I wanted to use QHttp::get(), but this is a non-blocking method. I thought I could use a thread : my app would start it, and wait for it to finish. The thread would handle the download and quit when the file is downloaded or after a timeout. But I cannot make it work : class JSHttpGetterThread : public QThread { Q_OBJECT public: JSHttpGetterThread(QObject* pParent = NULL); ~JSHttpGetterThread(); virtual void run() { m_pHttp = new QHttp(this); connect(m_pHttp, SIGNAL(requestFinished(int, bool)), this, SLOT(onRequestFinished(int, bool))); m_pHttp->setHost("127.0.0.1"); m_pHttp->get("Foo.txt", &m_GetBuffer); exec(); } const QString& getDownloadedFileContent() const { return m_DownloadedFileContent; } private: QHttp* m_pHttp; QBuffer m_GetBuffer; QString m_DownloadedFileContent; private slots: void onRequestFinished(int Id, bool Error) { m_DownloadedFileContent = ""; m_DownloadedFileContent.append(m_GetBuffer.buffer()); } }; In the method creating the thread to initiate the download, here is what I'm doing : JSHttpGetterThread* pGetter = new JSHttpGetterThread(this); pGetter->start(); pGetter->wait(); But that doesn't work and my app keeps waiting. It looks lit the slot 'onRequestFinished' is never called. Any idea ? Is there a better way to do what I'm trying to do ?
0
[ 2, 11828, 21, 2593, 38, 3010, 112, 7121, 68, 21, 502, 3893, 800, 3726, 3726, 31, 22, 79, 1174, 40, 3010, 568, 2593, 38, 300, 9, 31, 376, 20, 7121, 21, 253, 502, 1854, 3893, 37, 21, 504, 7775, 3218, 9, 14, 3893, 25, 502, 17, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Installing PHP extensions on Windows === I am using a Windows XP Home Edition. I need to install a few extensions to PHP -- memcache, APC, .etc. And I would very much like to use PECL to make this happen. The problem is PECL takes it for granted that I will have certain programs on my computer. On another post, I read, for instance, that you need to have Microsoft Visual Studio C++ installed on your machine. However, the new version of Visual Studio, which I downloaded, does not have msdev.exe and instead uses vcbuild.exe, which has a completely different api and fails to compile the .dsp files that come with these modules. So I tried to find a script that would upgrade the dsp to work with vcbuild.exe...and it turns out vcbuild.exe can do that, but of course that didn't pan out. Another thing I tried was to find a make script for Windows (nmake2make). But there was no make file in the module's root folder. I tried also downloading Cygwin and MinGW in hopes of finding a build script that would work as simply as in *nix operating systems, but to no avail. How else do I use install PHP extensions on a Windows machine? Can anyone help me out of this predicament?
0
[ 2, 25429, 13, 26120, 17529, 27, 1936, 800, 3726, 3726, 31, 589, 568, 21, 1936, 23045, 213, 1322, 9, 31, 376, 20, 16146, 21, 310, 17529, 20, 13, 26120, 13, 8, 8, 55, 4829, 9616, 15, 21, 5779, 15, 13, 9, 1198, 150, 9, 17, 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...
Lucene.net with IndexSearcher/IndexWriter in a Web Application === I'm currently running Lucene.net in a web application and am wondering about the best method, performance-wise. I currently have it set up so that all index writes get processed together in a scheduled process, along with optimizing the index. However for searching - I'm currently opening and closing the searcher per search, which I know isn't ideal. What do you think would be the best approach in this situation? I'll need to close and reopen the index searcher once the updates/optimization is processed so the scheduled process (which is a windows console app) needs to communicate it's finished to the web application.
0
[ 2, 18515, 556, 9, 2328, 29, 4348, 25136, 106, 118, 25671, 9657, 19, 21, 2741, 3010, 800, 3726, 3726, 31, 22, 79, 871, 946, 18515, 556, 9, 2328, 19, 21, 2741, 3010, 17, 589, 5712, 88, 14, 246, 2109, 15, 956, 8, 10474, 9, 31, 87...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Are regression tests the entire test suite or a sample of tests? === I was taught that a regression test was a small (only enough to prove you didn't break anything with the introduction of a change or new modules) sample of the overall tests. However, [this article][1] by Ron Morrison and Grady Booch makes me think differently: > The desired strategy would be to bring each unit in one at a time, perform an extensive regression test, correct any defects and then proceed to the next unit. The same document also says: > As soon as a small number of units are added, a test version is generated and "smoke tested," wherein a small number of tests are run to gain confidence that the integrated product will function as expected. The intent is neither to thoroughly test the new unit(s) nor to completely regression test the overall system. When describing smoke testing, the authors say this: > It is also important that the Smoke Test perform a quick check of the entire system, not just the new component(s). I've never seen "extensive" and "regression test" used together nor a regression test described as "completely regression test the overall system". Regression tests are supposed to be as light and quick as possible. And the definition of smoke test is what I learned a regression test was. Did I misunderstand what I was taught? Was I taught incorrectly? Or are there multiple interpretations of "regression test"? [1]: http://www.iceincusa.com/16csp/content/16_smoke/smkrgt.htm
0
[ 2, 50, 27369, 4894, 14, 1078, 1289, 6160, 54, 21, 5717, 16, 4894, 60, 800, 3726, 3726, 31, 23, 2359, 30, 21, 27369, 1289, 23, 21, 284, 13, 5, 4965, 511, 20, 4220, 42, 223, 22, 38, 1442, 602, 29, 14, 3445, 16, 21, 753, 54, 78...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I export a Crystal Report to a Unicode text file? === I'm trying to export a Crystal Report to a text file, while preserving any Unicode characters that are found within. By default, Crystal Reports seems to export to an ANSI text file. Here is a highly simplified version of what I'm doing: Dim objCRReport As CRAXDRT.Report [...] objCRReport.ExportOptions.FormatType = 8 'crEFTText objCRReport.ExportOptions.DestinationType = 1 'crEDTDiskFile objCRReport.ExportOptions.DiskFileName = "C:\reportInTextFormat.txt" objCRReport.Export blnPromptUser Since it creates a file in ANSI format, I lose any special characters that were found within the report. These characters are all fine when you view the Crystal Report directly. Please note that I am referencing the "Crystal Reports 9 ActiveX Designer Runtime Library" specifically.
0
[ 2, 184, 107, 31, 7487, 21, 4282, 1330, 20, 21, 28010, 1854, 3893, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 7487, 21, 4282, 1330, 20, 21, 1854, 3893, 15, 133, 17936, 186, 28010, 1766, 30, 50, 216, 363, 9, 34, 12838, 15, 4282, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 modify Expander button background only? WPF === I have an Expander placed on a window with a blue background and I would like to make the button for the expander another color than the default (blue, which it is receiving from the window). When I modify the background property of the expander it changes the entire expander, header and all to the new color. However, I would like only the button itself to change. Could anyone point me to the right property that I am looking for? Thank you
0
[ 2, 184, 20, 17579, 6073, 106, 5167, 2395, 104, 60, 619, 7721, 800, 3726, 3726, 31, 57, 40, 6073, 106, 1037, 27, 21, 1463, 29, 21, 705, 2395, 17, 31, 83, 101, 20, 233, 14, 5167, 26, 14, 6073, 106, 226, 1665, 119, 14, 12838, 13,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Ruby and FasterCSV: converting uneven rows to columns === I have a CSV data file with rows that may have lots of columns 500+ and some with a lot less. I need to transpose it so that each row becomes a column in the output file. The problem is that the rows in the original file may not all have the same number of columns so when I try the transpose method of array I get an `transpose': element size differs (12 should be 5) (IndexError) Is there an alternative to transpose that works with uneven array lenghts?
0
[ 2, 10811, 17, 4233, 6824, 710, 45, 19583, 19407, 11295, 20, 7498, 800, 3726, 3726, 31, 57, 21, 272, 18, 710, 1054, 3893, 29, 11295, 30, 123, 57, 7503, 16, 7498, 3033, 2430, 17, 109, 29, 21, 865, 787, 9, 31, 376, 20, 2982, 15690,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 log Oracle stored procedure calls with parameter values? === We're looking for a way to log any call to stored procedures in Oracle, and see what parameter values were used for the call. We're using Oracle 10.2.0.1 We can log SQL statements and see the bound variables, but when we track stored procedures we see bind variables B1, B2, etc. but no values. We'd like to see the same kind of information we've seen in MS SQL Server Profiler. Thanks for any help
0
[ 2, 184, 107, 31, 6738, 15759, 8214, 7004, 3029, 29, 18906, 4070, 60, 800, 3726, 3726, 95, 22, 99, 699, 26, 21, 161, 20, 6738, 186, 645, 20, 8214, 8876, 19, 15759, 15, 17, 196, 98, 18906, 4070, 46, 147, 26, 14, 645, 9, 95, 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...
Can you rename the App_Code folder? === I realize this would violate convention, but I'm curious to know if you can do this through configuration.
0
[ 2, 92, 42, 302, 7259, 14, 4865, 1, 9375, 19294, 60, 800, 3726, 3726, 31, 4007, 48, 83, 21957, 3087, 15, 47, 31, 22, 79, 7686, 20, 143, 100, 42, 92, 107, 48, 120, 8091, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How do you rate Oracle Portals as a platform? === A client has asked whether or not I can provide some support for his intranet which runs on Oracle Application Server Portal. Not having used this technology before I thought I'd ask if anyone else has and what they thought of developing for it. I'm a c#/ASP.NET developer so I note with apprehension that there's no mention of .NET in the developers guide. Anyone tried to make the two work together and lived to tell the tale?
0
[ 2, 184, 107, 42, 1684, 15759, 8281, 18, 28, 21, 2452, 60, 800, 3726, 3726, 21, 6819, 63, 411, 1472, 54, 52, 31, 92, 1181, 109, 555, 26, 33, 14369, 2328, 56, 1461, 27, 15759, 3010, 8128, 8281, 9, 52, 452, 147, 48, 1099, 115, 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...
Find Sybase stored procedure in db given a text string that appears in the proc === How do I find a stored procedure in a Sybase database given a text string that appears somewhere in the proc? I want to see if any other proc in the db has similar logic to the one I'm looking at, and I think I have a pretty unique search string (literal)
0
[ 2, 477, 10315, 8436, 8214, 7004, 19, 13, 9007, 504, 21, 1854, 3724, 30, 1780, 19, 14, 13, 15617, 800, 3726, 3726, 184, 107, 31, 477, 21, 8214, 7004, 19, 21, 10315, 8436, 6018, 504, 21, 1854, 3724, 30, 1780, 3493, 19, 14, 13, 156...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dotfuscator community edition === I tried to use this on my class library "mylib.core.data.dll" and got a successful obfuscation, however, when I import this dll into another project via "Reference" and tried imports --- My library "mylib.core.data.dll", doesn't show except for "e" and "h". Can someone tell me what I missed during the obfuscation process? Thanks
0
[ 2, 14123, 13735, 150, 3457, 514, 1322, 800, 3726, 3726, 31, 794, 20, 275, 48, 27, 51, 718, 1248, 13, 7, 915, 8326, 9, 10375, 9, 18768, 9, 43, 211, 7, 17, 330, 21, 1300, 5122, 13735, 16893, 15, 207, 15, 76, 31, 9010, 48, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Convert POST array back to POST string data === When you do the following in an HTML form: <input name="one[]" value="foo" /> <input name="one[]" value="bar" /> <input name="two[key]" value="something" /> and submit the form to a PHP page, The $_POST array will look as follows: array( 'one' => array( 0 => 'foo', 1 => 'bar' ), 'two' => array( 'key' => 'something' ), ), If you look at the header data, though, it will look as follows: one[]=foo&one[]=bar&two[key]=something Does anyone have a script with which to convert the PHP array back into the POST data string? [urlencode][1] doesn't work as it can't acces arrays... ---------- [1]: http://php.net/urlencode
0
[ 2, 8406, 678, 7718, 97, 20, 678, 3724, 1054, 800, 3726, 3726, 76, 42, 107, 14, 249, 19, 40, 13, 15895, 505, 45, 13, 1, 108, 4881, 204, 3726, 7, 849, 2558, 500, 7, 1923, 3726, 7, 4120, 111, 7, 13, 118, 1, 13, 1, 108, 4881, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 this a bug in DirectoryInfo.GetDirectories(string searchPattern)? === When calling [DirectoryInfo.GetDirectories(".")][1] on an instance of a DirectoryInfo class which points to a valid folder (excluding drive roots), the result is a DirectoryInfo array whose first (and only) element points to a invalid directory named the same as itself, below itself. For example: static void Main(string[] args) { DirectoryInfo di = new DirectoryInfo("c:\\temp"); DirectoryInfo[] dis = di.GetDirectories("."); Console.WriteLine(dis[0].FullName); } Prints out a non-existent directory: c:\temp\temp I understand that in Windows, a "." refers to the current directory. That might be acceptable to me if the method returned "c:\temp", but returning a fake subdirectory with the same name seems like absolutely the wrong behavior. **I should be able to assert that any DirectoryInfo object returned from this function actually exists.... right?!** FYI - a "*" works as expected, before someone asks. [1]: http://msdn.microsoft.com/en-us/library/f3e2f6e5.aspx
0
[ 2, 25, 48, 21, 6256, 19, 16755, 108, 4120, 9, 3060, 10197, 1596, 5, 11130, 2122, 5972, 8766, 6, 60, 800, 3726, 3726, 76, 2555, 636, 10197, 93, 108, 4120, 9, 3060, 10197, 1596, 5, 7, 9, 7, 6, 500, 2558, 165, 500, 27, 40, 4851, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 bind the TextWrapping property of a TextBox to the IsChecked value of a MenuItem? === The TextWrapping property of the TextBox has three possible values: - Wrap - NoWrap - WrapWithOverflow I would like to bind to the IsChecked property of a MenuItem. If the MenuItem is checked, I want to set the TextWrapping property of a TextBox to Wrap. If the MenuItem is not checked, I want to set the TextWrapping property of the TextBox to NoWrap. To sum up, I am trying to bind a control that has two states to two values of an enumeration that has more than two values.
0
[ 2, 184, 107, 42, 10193, 14, 1854, 499, 525, 5574, 1354, 16, 21, 1854, 5309, 20, 14, 25, 12542, 69, 1923, 16, 21, 11379, 2119, 79, 60, 800, 3726, 3726, 14, 1854, 499, 525, 5574, 1354, 16, 14, 1854, 5309, 63, 132, 938, 4070, 45, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Open Source Project Analytics Sites? === I have seen at least one site in the past that had analytics on Open Source projects, describing lines of code, hours worked, number of check-ins, all sorts of stuff. Does anyone know of any of those sites?
4
[ 2, 368, 1267, 669, 26320, 3259, 60, 800, 3726, 3726, 31, 57, 541, 35, 639, 53, 689, 19, 14, 640, 30, 41, 26320, 27, 368, 1267, 2314, 15, 7153, 1560, 16, 1797, 15, 974, 577, 15, 234, 16, 2631, 8, 108, 18, 15, 65, 14357, 16, 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, 0, 0, 0, 0, 0, 0...
How can I enable Full-Text indexing using SQL Server Management Studio in SQL Server 2008 Express? === I did it using the commands as described [here][1] and it works but **I want to do it using the SQL Management Studio**. SQL Server 2008 Books Online says this: > To create a full-text catalog: > >1. In Object Explorer, expand the server, > expand **Databases**, and expand the > database in which you want to create > the full-text catalog. > > 2. Expand > **Storage**, and then right-click > Full Text Catalogs. > > Select **New Full-Text Catalog**. > > In the New **Full-Text Catalog** dialog > box, specify the information for the > catalog that you are re-creating. For > more information, see New Full-Text > Catalog (General Page). > > Click **OK**. There's no such option as Storage in my SQL Server Management Studio. Am I missing something? [1]: http://www.wherecanibuyit.co.uk/ASP/full-text-search.html [2]: http://msdn.microsoft.com/en-us/library/ms142536(SQL.90).aspx
0
[ 2, 184, 92, 31, 9240, 503, 8, 11969, 4348, 68, 568, 4444, 255, 8128, 1097, 1120, 19, 4444, 255, 8128, 570, 2999, 60, 800, 3726, 3726, 31, 144, 32, 568, 14, 14294, 28, 745, 636, 6836, 500, 2558, 165, 500, 17, 32, 693, 47, 13, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Leveraging SOAP in Classic ASP === I have applications that are midway through a transition from Classic ASP to ASP.NET. There are a half million lines of code, so a complete rewrite of everything at once was simply not plausible, or frankly prudent considering that the vast majority of Classic ASP pages work just fine. We translate pages and functionality as they come up for revision *anyway*, not just because it is "cool". Now that about half the pages have been converted we have moved some of the key functionality over to ASP.NET. Instead of keeping the legacy versions of this functionality (which means two places to maintain instead of one) I have been moving towards using SOAP to expose this functionality. Well... not really. Instead, we have been using what I used to call "Poor Man's SOAP", although today it is trendy to call it REST. I have been using ServerXMLHTTP to contact the destination page, bundling up a ball of XML and POSTing it over to the ASP.NET side. For the result I have been bundling up some XML and using XPATH to tear it down into variables. All of this works surprisingly well. However, I have been contemplating the built in ASP.NET SOAP features, which would seem to remove the need to custom write landing pages for my cross platform calls... but when I look at consuming SOAP from Classic ASP most suggest using the seemingly depreciated Soap Toolkit. The question is; do any of you have experience with this kind of setup and if so are there any better ways to do it than custom REST pages or Soap Toolkit? I think being able to expose more of the ASP.NET functionality quicker would help with the migration, but I don't want to get myself mired in legacy technology like Soap Toolkit unnecessarily.
0
[ 2, 12785, 7426, 6447, 19, 2732, 28, 306, 800, 3726, 3726, 31, 57, 3767, 30, 50, 13486, 120, 21, 4513, 37, 2732, 28, 306, 20, 28, 306, 9, 2328, 9, 80, 50, 21, 519, 507, 1560, 16, 1797, 15, 86, 21, 1279, 27891, 16, 796, 35, 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...
Passing-through unknown XML elements in a SAX parser === I am loading some data from an XML document, modifying it, and writing back out to XML. The reading is done using a SAX parser library and the writing is done with a piece of custom code. Sometimes, the file is modified externally, and extra elements are added (such as references to stylesheets). Rather than losing these extra elements when I load and save the file, I would like to pass through any unknown tags so that they appear When unknown elements are separate from interpreted elements, it should be straightforward to save unknown elements and attributes as strings and output these afterwards, but when they are interspersed and nested inside interpreted elements, it becomes less obvious. Can anybody suggest a succinct way to do this? Would it be simpler to switch to a DOM parser? Performance is not an issue. *NB.* I am working in C++ with the Gnome Glib::Markup::Parser, but would prefer language/library agnostic answers.
0
[ 2, 2848, 8, 11639, 2562, 23504, 2065, 19, 21, 16070, 2017, 4104, 800, 3726, 3726, 31, 589, 12797, 109, 1054, 37, 40, 23504, 4492, 15, 17579, 68, 32, 15, 17, 1174, 97, 70, 20, 23504, 9, 14, 1876, 25, 677, 568, 21, 16070, 2017, 41...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Thumbs up/Thumbs Down Rating Implementation === Similar to the one here on StackOverFlow, I would be needing to implement a way for people to vote up and vote down comments in a forum like site. However instead of having a generic overall score, we will display the total amount of "thumbs up" and "thumbs down". The overall score will be needed for filtering purposes, such as "sort by highest rated", "show only ratings with + 3" What is the best implementation strategy?
0
[ 2, 5078, 18, 71, 118, 96, 723, 4562, 125, 4647, 6123, 800, 3726, 3726, 835, 20, 14, 53, 235, 27, 7566, 2549, 9990, 15, 31, 83, 44, 12210, 20, 8713, 21, 161, 26, 148, 20, 2018, 71, 17, 2018, 125, 7534, 19, 21, 5691, 101, 689, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
right approach to handling bad xml data === I've got a little c# windows service that periodically pulls xml from a web service and stores the data in a database table. Unfortunately it's failing because the web service has occasional bad data in it - strings instead of decimals. I don't have any control over the web service (unvalidated user input from software we can't change) but I would like to log the bad data so that it can be re-input. It's simple data that looks something like this: <ROWS> <ROW> <COL1>5405</COL1> <COL2>102.24</COL1> </ROW> <ROW> <COL1>5406</COL1> <COL2>2.25</COL1> </ROW> </ROWS> The table just has two columns, COL1 (NUMBER, 10), COL2 (NUMBER, 10,2). I was using a validating XmlReader and this XSD: <?xml version="1.0" encoding="utf-8"?> <xs:schema id="ROWS" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xs:element name="ROWS" msdata:IsDataSet="true" msdata:Locale="en-US"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="ROW"> <xs:complexType> <xs:sequence> <xs:element name="COL1" type="xs:decimal" minOccurs="0" /> <xs:element name="COL2" type="xs:decimal" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> </xs:choice> </xs:complexType> </xs:element> </xs:schema> then a dataset.ReadXml() and Update()ing the dataset. Whenever it hits bad data I get the following exception: > System.Xml.Schema.XmlSchemaValidationException > was unhandled > Message="The 'COL1' > element is invalid - The value 'A40' > is invalid according to its datatype > 'http://www.w3.org/2001/XMLSchema:decimal' > - The string 'A40' is not a valid Decimal value." I can think of several ways of ways of getting around the problem but they all feel like a bit of a kludge and I'd like to learn something more elegant, and improve my knowledge. Here's what I've come up with so far: - Pre-process the XML provided by the web service before loading into the validating XML reader, removing any bad nodes entirely. - Catch the XmlSchemaValidationExceptions and try to continue from them gracefully (not sure about that one) - Don't use a validating XML reader, but instead catch exceptions when loading the unvalidated xml into the dataset. (again not sure about that) - have string columns in the dataset, and ignore bad data until I update it, and catch anything the database rejects. - go and stand over the users with a large mallet until they learn to get it right first time (too time consuming) - something else?
0
[ 2, 193, 2141, 20, 7988, 896, 23504, 1054, 800, 3726, 3726, 31, 22, 195, 330, 21, 265, 272, 5910, 1936, 365, 30, 19886, 8071, 23504, 37, 21, 2741, 365, 17, 4134, 14, 1054, 19, 21, 6018, 859, 9, 6200, 32, 22, 18, 7250, 185, 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...
What metadata repository tools are used in industry? === For logical data model mapping, do we have some tools in the market. Any open source or relatively cheap tool?
0
[ 2, 98, 28057, 24869, 4672, 50, 147, 19, 1230, 60, 800, 3726, 3726, 26, 11545, 1054, 1061, 13305, 15, 107, 95, 57, 109, 4672, 19, 14, 1135, 9, 186, 368, 1267, 54, 3109, 9148, 5607, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
PHP Load Testing framework === Anyone know of an opensource PHP Load Testing Framework similar to the Grinder " "http://grinder.sourceforge.net/".
0
[ 2, 13, 26120, 6305, 4431, 6596, 800, 3726, 3726, 1276, 143, 16, 40, 368, 12097, 13, 26120, 6305, 4431, 6596, 835, 20, 14, 16913, 106, 13, 7, 13, 7, 21127, 6903, 23244, 1157, 9, 12097, 1106, 834, 9, 2328, 118, 7, 9, 3, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
"Most popular" GROUP BY in LINQ? === Assuming a table of tags like the stackoverflow question tags: > TagID (bigint), QuestionID (bigint), Tag (varchar) What is the most efficient way to get the 25 most used tags using LINQ? In SQL, a simple GROUP BY will do: SELECT Tag, COUNT(Tag) FROM Tags GROUP BY Tag I've written some LINQ that works: var groups = from t in DataContext.Tags group t by t.Tag into g select new { Tag = g.Key, Frequency = g.Count() }; return groups.OrderByDescending(g => g.Frequency).Take(25); Like, really? Isn't this mega-verbose? The sad thing is that I'm doing this to save a massive number of queries, as my Tag objects already contain a Frequency property that would otherwise need to check back with the database for every Tag if I actually used the property. So I then parse these anonymous types *back* into Tag objects: groups.OrderByDescending(g => g.Frequency).Take(25).ToList().ForEach(t => tags.Add(new Tag() { Tag = t.Tag, Frequency = t.Frequency })); I'm a LINQ newbie, and this doesn't seem right. Please show me how it's really done.
0
[ 2, 13, 7, 4630, 844, 7, 214, 34, 19, 6294, 1251, 60, 800, 3726, 3726, 11704, 21, 859, 16, 3383, 18, 101, 14, 7566, 2549, 9990, 1301, 3383, 18, 45, 13, 1, 3383, 1340, 13, 5, 6407, 6391, 6, 15, 1301, 1340, 13, 5, 6407, 6391, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible to write code to write code? === I've heard that there are some things one cannot do as a computer programmer, but I don't know what they are. One thing that occurred to me recently was: wouldn't it be nice to have a class that could make a copy of the source of the program it runs, modify that program and add a method to the class that it is, and then run the copy of the program and terminate itself. Is it possible for code to write code? As usual, thanks! z.
0
[ 2, 25, 32, 938, 20, 2757, 1797, 20, 2757, 1797, 60, 800, 3726, 3726, 31, 22, 195, 752, 30, 80, 50, 109, 564, 53, 1967, 107, 28, 21, 1428, 17968, 15, 47, 31, 221, 22, 38, 143, 98, 59, 50, 9, 53, 584, 30, 2437, 20, 55, 1989,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Iterator Pattern VB.net ( C# would use yield!) === Hello I want to implement the iterator pattern but I am using vb.net thus not got yield, any ideas or links please? Many Thanks
0
[ 2, 32, 106, 3457, 3732, 13, 20468, 9, 2328, 13, 5, 272, 5910, 83, 275, 11537, 187, 6, 800, 3726, 3726, 10975, 31, 259, 20, 8713, 14, 32, 106, 3457, 3732, 47, 31, 589, 568, 13, 20468, 9, 2328, 1086, 52, 330, 11537, 15, 186, 347...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Is there any CMS better than WordPress? === I'm developing a small business website and want to give some control over content to the client but also allow myself control over the outputted code. Indeed allow the user to fill in the content gaps while not creating havoc. I'm leaning towards WordPress rather than reinventing the wheel in asp.net, which would be my code of choice, or possibly just html. Any recommendations either way? Or with a different CMS?
0
[ 2, 25, 80, 186, 2390, 18, 574, 119, 833, 5890, 60, 800, 3726, 3726, 31, 22, 79, 3561, 21, 284, 508, 2271, 17, 259, 20, 590, 109, 569, 84, 2331, 20, 14, 6819, 47, 67, 1655, 992, 569, 84, 14, 5196, 1427, 1797, 9, 4057, 1655, 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...
Using QSortFilterProxyModel with a tree model === I have a QDirModel whose current directory is set. Then I have a QListView which is supposed to show the files in that directory. This works fine. Now I want to limit the files shown, so it only shows png files (the filename ends with .png). The problem is that using a QSortFilterProxyModel and setting the filter regexp will try to match every parent of the files as well. According to the documentation: > For hierarchical models, the filter is > applied recursively to all children. > If a parent item doesn't match the > filter, none of its children will be > shown. So, how do I get the QSortFilterProxyModel to only filter the files in the directory, and not the directories it resides in?
0
[ 2, 568, 2593, 22843, 11924, 815, 4899, 9229, 13998, 29, 21, 1541, 1061, 800, 3726, 3726, 31, 57, 21, 2593, 9035, 13998, 1196, 866, 16755, 25, 309, 9, 94, 31, 57, 21, 2593, 5739, 4725, 56, 25, 2293, 20, 298, 14, 6488, 19, 30, 167...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 best way to relocate an entire (versioned) Eclipse workspace? === I was wondering what would be the best approach you guys would take to relocate an entire Eclipse workspace? Assuming it's either versioned and exported, what would you do? Import the file? Checkout the whole thing from the repo? Thanks much in advance!
0
[ 2, 98, 83, 44, 14, 246, 161, 20, 21761, 40, 1078, 13, 5, 10898, 69, 6, 11652, 170, 5582, 60, 800, 3726, 3726, 31, 23, 5712, 98, 83, 44, 14, 246, 2141, 42, 2776, 83, 247, 20, 21761, 40, 1078, 11652, 170, 5582, 60, 11704, 32, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Java application failing on special characters. === An application I am working on reads information from files to populate a database. Some of the characters in the files are non-English, for example accented French characters. The application is working fine in Windows but on our Solaris machine it is failing to recognise the special characters and is throwing an exception. For example when it encounters the accented e in "Gérer" it says :- <pre> Encountered: "\u0161" (353), after : "\'G\u00c3\u00a9rer les mod\u00c3"</pre> (an exception which is thrown from our application) I suspect that in order to stop this from happening I need to change the file.encoding property of the JVM. I tried to do this via System.setProperty() but it has not stopped the error from occurring. Are there any suggestions for what I could do? I was thinking about setting the basic locale of the solaris platform in /etc/default/init to be UTF-8. Does anyone think this might help? Any thoughts are much appreciated.
0
[ 2, 8247, 3010, 7250, 27, 621, 1766, 9, 800, 3726, 3726, 40, 3010, 31, 589, 638, 27, 11137, 676, 37, 6488, 20, 1675, 12383, 21, 6018, 9, 109, 16, 14, 1766, 19, 14, 6488, 50, 538, 8, 6024, 15, 26, 823, 7980, 69, 484, 1766, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best way to parse HTML from a Rich Text Editor in Perl? === Is there a Perl module out there that can take **bad HTML** (such as what is copied from Microsoft Word) and parse it into **nicely formatted HTML**? I have looked at **HTML::Tidy**, but it has gotten [horrible reviews on CPAN][1]. We have a custom legacy module that's basically a wrapper for the command line version of tidy (which seems to be pretty much what HTML::Tidy is), but it writes files to disk and reads them back in, which can be a big performance penalty. Certainly with Perl's awesome text parsing abilities, there's a better way to do this right? [1]:http://cpanratings.perl.org/dist/HTML-Tidy
0
[ 2, 98, 25, 14, 246, 161, 20, 2017, 870, 13, 15895, 37, 21, 2042, 1854, 1835, 19, 416, 255, 60, 800, 3726, 3726, 25, 80, 21, 416, 255, 12613, 70, 80, 30, 92, 247, 13, 1409, 5989, 13, 15895, 1409, 13, 5, 4289, 28, 98, 25, 1822...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
HTML Table columns height; Works in Firefox not in IE === I have some HTML that displays fine on FireFox3/Opera/Safari but not with IE7. The snippet is as follows: <body bgcolor="#AA5566" > <table width="100%"> <tr> <td height="37" valign="top"><img style="float:right;" border="0" src="foo.png" width="37" height="37"/></td> <td width="600" rowspan="2" > <table width="600" height="800"><tr><td><img src="bar.jpg" width="600" height="800"/></td></tr></table> </td> <td height="37" valign="top"><img style="float:left;" border="0" src="foo.png" width="37" height="37"/></td> </tr> <!-- This row doesnt fill the vertical space on IE7 //--> <tr> <td valign="top" bgcolor="#112233">&nbsp;</td> <td valign="top" bgcolor="#112233">&nbsp;</td> </tr> </table> </body> The second row wont fill the vertical space created by the first rows middle column (notice the rowspan="2") correctly. Instead the first rows 1st and 3rd columns expand down even though I set their height to 37. Any help appreciated, thanks :)
0
[ 2, 13, 15895, 859, 7498, 2947, 73, 693, 19, 535, 18219, 52, 19, 13, 660, 800, 3726, 3726, 31, 57, 109, 13, 15895, 30, 9412, 1123, 27, 535, 18219, 9280, 9477, 58, 118, 18, 2565, 2905, 47, 52, 29, 13, 660, 465, 9, 14, 13, 29061,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Password protected hyper link with target=_blank === I have a hyper link like this : <A Href=My_Java_Servlet?User_Action=Admin_Download_Records&User_Id=Admin onClick=\"Check_Password();\" target=_blank>Download Records</A> When a user clicks on it, a password window will open, the user can try 3 times for the right password. The Javascript looks like this : <Script Language="JavaScript"> function Check_Password() { var testV=1; var pass1=prompt('Password',''); while (testV<3) { if (!pass1) history.go(-1); if (pass1=="password") { return true; } testV+=1; var pass1=prompt('Access Denied - Password Incorrect.',''); } return "false"; } </Script> If user enters the wrong password 3 times, it's supposed to not do anything, but it still opens a new window and displays the protected info, how to fix the javascript or my html hyper link so only the right password will open a new target window, a wrong password will make it do nothing ?
0
[ 2, 20884, 3803, 5443, 3508, 29, 2935, 3726, 1, 10754, 5719, 800, 3726, 3726, 31, 57, 21, 5443, 3508, 101, 48, 13, 45, 13, 1, 58, 746, 14057, 3726, 915, 1, 1004, 1385, 1, 10321, 1336, 60, 16704, 1, 8645, 3726, 1283, 2160, 1, 2968...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WPF ComboBox Item tabbing behaviour === I am migrating some win forms panels to WPF. In WinForms, you can tab into to the combo box using the keyboard, select an item by typing the first character and then hit tab again and the combo to lose focus. In WPF the second tab will move the focus rectangle down the list, instead of moving onto the next control. Is there a way to get the old behavior? Or has anyone implemented an ItemTemplate that achieves this behvaiour? thanks
0
[ 2, 619, 7721, 22621, 5309, 9101, 6523, 8136, 7727, 800, 3726, 3726, 31, 589, 28749, 109, 628, 1997, 9449, 20, 619, 7721, 9, 19, 628, 4190, 18, 15, 42, 92, 6523, 77, 20, 14, 22621, 1649, 568, 14, 8896, 15, 5407, 40, 9101, 34, 252...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Format columns for ASP.Net GridView based on data type. === I have a very simple ASP.Net page that acts as a front end for a stored procedure. It just runs the procedure and shows the output using a gridview control: less than 40 lines of total code, including aspx markup. The stored procedure itself is very... volatile. It's used for a number of purposes and the output format changes regularly. The whole thing works great, because the gridview control doesn't really need to care what columns the stored procedure returns: it just shows them on the page, which is exactly what I want. However, the database this runs against has a number of datetime columns all over the place where the time portion isn't really important- it's always zeroed out. What I would like to be able to do is control the formatting of just the datetime columns in the gridview, without ever knowing precisely which columns those will be. Any time a column in the results has a datetime type, just apply a given format string that will trim off the time component. I know I could convert to a varchar at the database, but I'd really don't want to have to make developers care about formatting in the query and this belongs at the presentation level anyway. Any other ideas?
0
[ 2, 2595, 7498, 26, 28, 306, 9, 2328, 7354, 4725, 432, 27, 1054, 1001, 9, 800, 3726, 3726, 31, 57, 21, 253, 1935, 28, 306, 9, 2328, 2478, 30, 3167, 28, 21, 431, 241, 26, 21, 8214, 7004, 9, 32, 114, 1461, 14, 7004, 17, 1285, 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...
Re-installing MYSQL(windows) - How to get to the old data with the new install? === I needed to re-install my computer but I didn't think about exporting the data from mysql 5. How do I get the data from the old installation into the new installation, is this just copying the data directory or do I have to take other steps to get to the data?
0
[ 2, 302, 8, 108, 21300, 68, 51, 18, 22402, 5, 27508, 18, 6, 13, 8, 184, 20, 164, 20, 14, 315, 1054, 29, 14, 78, 16146, 60, 800, 3726, 3726, 31, 851, 20, 302, 8, 108, 21300, 51, 1428, 47, 31, 223, 22, 38, 277, 88, 7487, 68, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 find the length (size) of a binary blob in sqlite === I have an sqlite table that contains a BLOB file, but need to do a size/length check on the blob, how do I do that? According to some documentation I did find, using length(blob) won't work, because length() only works on texts and will stop counting after the first NULL. My empirical tests have shown this to be true. I'm using SQLite 3.4.2
0
[ 2, 184, 107, 31, 477, 14, 1476, 13, 5, 10454, 6, 16, 21, 14171, 334, 10904, 19, 4444, 10601, 800, 3726, 3726, 31, 57, 40, 4444, 10601, 859, 30, 1588, 21, 334, 10904, 3893, 15, 47, 376, 20, 107, 21, 1072, 118, 6325, 2631, 27, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Testing Functions for ASP.net === Is there a way to test your functions in ASP.net without needing to create a web page and click on a button. For example, if I create a controller that returns a JSON result, I end up having to create a web page, create some javascript to call the method, starting the website and then clicking the button. What would be really great is to just type the name of the command into the **Immediate Window** and just provide the parameters at that point to see how they behave, but all my efforts there seem to have a problem by getting messages like <em>The expression cannot be evaluated while in run mode.</em> or whatever (I think there is another message for interactive mode as well). Are there any tricks to just run a method and see the results without needing to create any UI to make the calls?
0
[ 2, 4431, 3719, 26, 28, 306, 9, 2328, 800, 3726, 3726, 25, 80, 21, 161, 20, 1289, 154, 3719, 19, 28, 306, 9, 2328, 366, 12210, 20, 1600, 21, 2741, 2478, 17, 10840, 27, 21, 5167, 9, 26, 823, 15, 100, 31, 1600, 21, 9919, 30, 48...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does schema_search_path in database.yml for Postgre Rails app ignores case? === I have to connect to a legacy DB wich has a schema called "Financeiro". I setup my database.yml to: ... schema_search_path: Financeiro ... when activerecord tries to find something I get the following error: ActiveRecord::StatementInvalid: RuntimeError: ERROR C3F000 Mschema "financeiro" does not exist F.\src\backend\catalog\namespace.c L2898 Rassign_search_path: SET search_path TO Financeiro from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract_adapter.rb:147:in `log' Note that in the error message I get financeiro (downcase). If I rename the schema to financeiro downcase it works well. But it is not possible in the production environment. Thanks.
0
[ 2, 630, 23874, 1, 25136, 1, 8353, 19, 6018, 9, 93, 8184, 26, 678, 6879, 2240, 18, 4865, 7174, 18, 610, 60, 800, 3726, 3726, 31, 57, 20, 6379, 20, 21, 7780, 13, 9007, 13, 13583, 63, 21, 23874, 227, 13, 7, 25519, 8412, 7, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Justifying a faster development machine === I'd like to re-ask the [How to justify a workstation upgrade][1] question that [Garry Shutler][2] asked with the context of some of the excellent answers given. I believe that quantifying the productivity increase (extra working hours) is the most effective way to do this. My case in point: I have a fast machine at home and a slow one at work. My estimate is that I would gain about 30 minutes a day of extra productivity at work if I had my home machine at work. This productivity would come from less waiting to do all the tasks that I do. (An extra 30 minutes a day is about 3 weeks a year.) Problem: I need to measure this. Is there a software utility that can monitor and scientifically quantify time taken by tasks on a machine? [1]: http://stackoverflow.com/questions/109462/how-to-justify-a-workstation-upgrade [2]: http://stackoverflow.com/users/6369/garry-shutler
0
[ 2, 114, 10874, 21, 4233, 522, 1940, 800, 3726, 3726, 31, 22, 43, 101, 20, 302, 8, 20310, 14, 636, 1544, 20, 17829, 21, 170, 10839, 9483, 500, 2558, 165, 500, 1301, 30, 636, 2063, 622, 2218, 1252, 500, 2558, 135, 500, 411, 29, 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...
detect a 'Error: Object doesn't support this property or method' === The object I'm working on is instantiated in javascript, but used in VBSctipt. In one code path the variable M.DOM.IPt is defined and has a value, however, in the other it is not. I need to detect if it has been defined or not. I checked that M.DOM is defined and accessable in both code paths. Every test I have tried simply results in `Error: Object doesn't support this property or method`. I have tried: * `IsEmpty(M.DOM.IPt)` * `M.DOM.IPt is Nothing` * `isNull(M.DOM.IPt)` Is there any way to detect the variable isn't defined and avoid the error? note: I can put `On Error Resume Next` in and it will simply ignore the error, but I actually need to detect it and conditionally do something about it.
0
[ 2, 9092, 21, 13, 22, 29992, 45, 3095, 1437, 22, 38, 555, 48, 1354, 54, 2109, 22, 800, 3726, 3726, 14, 3095, 31, 22, 79, 638, 27, 25, 6322, 49, 1669, 19, 8247, 8741, 15, 47, 147, 19, 13, 20468, 18, 14468, 4417, 9, 19, 53, 179...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Function Name during PreBuild === I wanted to write a Visual Studio Macro or something similar which can fetch function name and insert into preset location in the error report part. It's clearer if you look at the example Class SampleClass { public void FunctionA() { try { //Do some work here } catch (Exception ex) { Logger.WriteLine(LogLevelEnum.Error, "SampleClass", "FunctionA Failed"); Logger.WriteLine(LogLevelEnum.Error, "FunctionA", ex.ToString()); } finally { } } } So, I followed the similar pattern of most of the critical functions of my common library. I would like to be able to insert "FunctionA" into the logging section during pre-built so that I don't have to remember to type in the right name or forgetting to rename it after copy and paste. Either that can be invoke manually from the toolbar or via shortcut key. So, where should I start? NOTE: I'm considered intermediate in .Net, been writting in C# and VB for more than 3 years, but I'm fresh on Macro, don't mind to learn though. Don't worry about the code itself and the exception, this is just an example.
0
[ 2, 14692, 1990, 204, 112, 782, 29361, 800, 3726, 3726, 31, 417, 20, 2757, 21, 3458, 1120, 9069, 54, 301, 835, 56, 92, 18312, 1990, 204, 17, 14692, 77, 782, 3554, 1474, 19, 14, 7019, 1330, 141, 9, 32, 22, 18, 1207, 106, 100, 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...
How can one open a PNG (image) file with VB6 into an RGB array, or R, G, B arrays === How can one open a PNG formatted image file with VB6? Ideally, I (that is my customer) would like to have the PNG file open and placed into seperate R(ed), G(reen) and B(lue) arrays. VB6 is not my tool of choice (for lack of knowledge) and I be thrilled if some one could point me in the right direction for a VB6 solution.
0
[ 2, 184, 92, 53, 368, 21, 351, 2723, 13, 5, 22039, 6, 3893, 29, 13, 20468, 379, 77, 40, 761, 11400, 7718, 15, 54, 761, 15, 489, 15, 334, 7718, 18, 800, 3726, 3726, 184, 92, 53, 368, 21, 351, 2723, 13, 29850, 1961, 3893, 29, 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 difficult is it to turn a "Java School" programmer into a C or C++ programmer? === My company, a C++ house, is always looking to hire recent grads. However due to the Java Schools phenomenon, we typically end up interviewing strong Java programmers with maybe a minute smattering of C++. Often the C++ classes don't really prepare students for working in C++. Nevertheless, often these are bright kids, eager to learn and do there best. Every interview, I struggle with this fundamental question: How hard is it to turn a "Java School" programmer into a C or C++ programmer? Has your company had experience turning the stereotypical "Java Schools" programmer into a strong C++ programmer? Is it worth the effort? One of the reasons I struggle with this is not just due to a C or C++ vs Java language difference, its the fundamental skills that come with learning C or C++ that I think often get lost at the Java School. These include data structures, computational complexity, manual memory management, really everything Joel Spolsky says [here][1]. Often, as far as I can tell, a student will have some of those fundamental skills (be able to answer a few questions), but I'll still have this large part of my mind that's extremely skeptical with how well someone can learn these skills without getting there hands dirty in some C or C++. Maybe I need to be disabused of this stereotype. Am I just being unfair? Anyway whats your experience with turning the "Java School" programmer into a C or C++ programmer? [1]: http://www.joelonsoftware.com/articles/ThePerilsofJavaSchools.html
0
[ 2, 184, 1956, 25, 32, 20, 805, 21, 13, 7, 1004, 1385, 116, 7, 17968, 77, 21, 272, 54, 272, 20512, 17968, 60, 800, 3726, 3726, 51, 237, 15, 21, 272, 20512, 191, 15, 25, 550, 699, 20, 10039, 1764, 13, 7691, 18, 9, 207, 397, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I change a SharePoint 2007's URL === I created a new SharePoint portal for testing purposes using a manually added HOSTS record. I have it all tested and want to expose it to the outside world using a URL from our DNS. I can't seem to find a straight forward way to change the URL of a SharePoint portal. Does anyone know where this setting is? Thanks.
0
[ 2, 184, 107, 31, 753, 21, 1891, 3132, 624, 22, 18, 287, 6362, 800, 3726, 3726, 31, 679, 21, 78, 1891, 3132, 8281, 26, 4431, 4612, 568, 21, 23671, 905, 5397, 571, 9, 31, 57, 32, 65, 7631, 17, 259, 20, 13833, 32, 20, 14, 719, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Share Styling Between CSS Classes === In [this question][1], I was given a really cool answer to alternating an image and its description between left and right, respectively. Now I want to apply styling to both, e.g. padding-top, padding-bottom etc. Forgive a total CSS noob for asking how do I apply a style to both the RowStyle and AlternatingRowStyle in this scenario. <AlternatingRowStyle CssClass="ProductAltItemStyle" /> <RowStyle CssClass="ProductItemStyle" /> <Columns> <asp:TemplateField> <ItemTemplate> <div class="Image"><asp:Image runat="server" ID="productImage" ImageUrl='<%# Eval("imageUrl") %>' /></div> <div class="Description"><asp:Label runat="server" ID="lblProductDesc" Width="100%" Text='<%# Eval("productDesc") %>'></asp:Label></div> </ItemTemplate> </asp:TemplateField> [1]: http://stackoverflow.com/questions/226206/alternating-item-style
0
[ 2, 1891, 23020, 128, 272, 18, 18, 2684, 800, 3726, 3726, 19, 636, 1565, 1301, 500, 2558, 165, 500, 15, 31, 23, 504, 21, 510, 2700, 1623, 20, 17572, 40, 1961, 17, 82, 5318, 128, 225, 17, 193, 15, 2820, 9, 130, 31, 259, 20, 5645...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I convert a varchar field of the form: YYYYMMDD to a datetime in T-SQL? === How can I convert a varchar field of the form YYYYMMDD to a datetime in T-SQL? Thank you.
0
[ 2, 184, 92, 31, 8406, 21, 4033, 5433, 575, 16, 14, 505, 45, 13, 93, 93, 93, 93, 3363, 8096, 20, 21, 1231, 891, 19, 13, 38, 8, 18, 22402, 60, 800, 3726, 3726, 184, 92, 31, 8406, 21, 4033, 5433, 575, 16, 14, 505, 13, 93, 93,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 synchronisation strategy === I have a simple app which is writing to an xml file on every button click. Once this is done, I read the Xml file soon after (as in, a couple of lines below with no methods to be stepped in to in between). When the app runs for the first time, the xml file is written to/read from fine, but if I press the button again I get a "File is in use by another process". I am doing the whole flush, close, dispose thing with my streams and intend on using ProcessMon to check what process is holding the file. Programatically, what is the best strategy to avoid this problem? Thanks
0
[ 2, 246, 13, 16023, 4330, 4427, 800, 3726, 3726, 31, 57, 21, 1935, 4865, 56, 25, 1174, 20, 40, 23504, 3893, 27, 352, 5167, 10840, 9, 382, 48, 25, 677, 15, 31, 1302, 14, 23504, 3893, 651, 75, 13, 5, 472, 19, 15, 21, 1335, 16, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible to execute SQL commands and send MSMQ messages in a TransactionScope? === I'm investigating using MSMQ for my team's new project but I need to know if I can send MSMQ messages and execute SQL commands within a System.Transactions.TransactionScope and have them commit or rollback together. I can't find a reliable source online that says "yes" with code examples. I need to send some messages to a single queue and insert some records in a single database, but I need to to succeed or fail together.
0
[ 2, 25, 32, 938, 20, 15644, 4444, 255, 14294, 17, 2660, 4235, 79, 1251, 7561, 19, 21, 12799, 11555, 60, 800, 3726, 3726, 31, 22, 79, 12490, 568, 4235, 79, 1251, 26, 51, 173, 22, 18, 78, 669, 47, 31, 376, 20, 143, 100, 31, 92, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Do you think Microsoft will ever not support classic asp in IIS === We are trying to make big decisions about our support for classic asp. Does anyone see a reason why Microsoft can't drop support for IIS. Any examples of technologies like this that have had their support dropped would help.
0
[ 2, 107, 42, 277, 7099, 129, 462, 52, 555, 2732, 28, 306, 19, 595, 18, 800, 3726, 3726, 95, 50, 749, 20, 233, 580, 6003, 88, 318, 555, 26, 2732, 28, 306, 9, 630, 1276, 196, 21, 1215, 483, 7099, 92, 22, 38, 2804, 555, 26, 595,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
comparison sort problem === Does a comparison sort have to compare the A[i] largest and A[i+1] largest values? I think any comparison sort must, but I'm not sure. I've checked out mergesort, insertion sort, and quicksort and in each of them the A[i] largest and A[i+1] largest values have to be compared.
0
[ 2, 6050, 2058, 1448, 800, 3726, 3726, 630, 21, 6050, 2058, 57, 20, 11590, 14, 21, 2558, 49, 500, 1075, 17, 21, 2558, 49, 16628, 500, 1075, 4070, 60, 31, 277, 186, 6050, 2058, 491, 15, 47, 31, 22, 79, 52, 562, 9, 31, 22, 195, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 to look for when downgrading from Oracle 10g to 9i? === I having to downgrade my Oracle instance from 10g (10.1.0.2.0) to 9i (9.2.x.x.x). Not having planned on ever doing this, I didn't document 10g dependencies. What are some of the dependencies on 10g that I will have to address? Is there any type of query that I could perform to detect dependencies? By the way, we are not downgrading the database in place, we are migrating from a 10g instance to a separate 9i instance.
0
[ 2, 98, 20, 361, 26, 76, 125, 7691, 68, 37, 15759, 332, 263, 20, 561, 49, 60, 800, 3726, 3726, 31, 452, 20, 125, 8031, 51, 15759, 4851, 37, 332, 263, 13, 5, 1036, 9, 165, 9, 387, 9, 135, 9, 387, 6, 20, 561, 49, 13, 5, 518...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Enterprise service bus and Message Brokers === Ok guys its time to be stupid, I want to start looking at WCF but to be honest before I do I would like to understand more about SOA in general. I dont really understand the concept of a "Enterprise service bus", and am not sure whether it is a pattern/methodology or piece of software. Additionally, the sam can be said of a "Message Broker". On top of which how do the big SOA frameworks fit in here i.e. BizTalk, WebSphere etc? For that matter how does WCF fit in? Im really not up on this stuff so can you please make your answers as simple as possible, and restrain from trying to baffle with science.
0
[ 2, 6002, 365, 1683, 17, 2802, 14930, 18, 800, 3726, 3726, 5854, 2776, 82, 85, 20, 44, 3553, 15, 31, 259, 20, 799, 699, 35, 11801, 410, 47, 20, 44, 6964, 115, 31, 107, 31, 83, 101, 20, 1369, 91, 88, 86, 58, 19, 297, 9, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
wsdl.exe results in "SOAP 1.1 binding was not found" === I'm trying to implement an HTML Parsing web service as described in Chapter 23 of <i>ASP.NET Unleashed</i> (1st ed.) and <a href="http://msdn.microsoft.com/en-us/library/xxb0bsdh.aspx">this MSDN article</a>. So far, so good! However, I do get an annoying warning when using wsdl.exe to generate the class: Microsoft (R) Web Services Description Language Utility [Microsoft (R) .NET Framework, Version 2.0.50727.3038] Copyright (C) Microsoft Corporation. All rights reserved. Warning: This web reference does not conform to WS-I Basic Profile v1.1. SOAP 1.1 binding was not found: WS-I's Basic Profile 1.1 consists of implementat ion guidelines that recommend how a set of core Web services specifications shou ld be used together to develop interoperable Web services. For the 1.1 Profile, those specifications are SOAP 1.1, WSDL 1.1, UDDI 2.0, XML 1.0 and XML Schema. For more details on the WS-I Basic Profile v1.1, see the specification at http://www.ws-i.org/Profiles/BasicProfile-1.1.html. I'd like to conform to the specification if possible. I looked at the <a href="http://www.ws-i.org/Profiles/BasicProfile-1.1.html">recommended page</a> and found a couple pages on w3.org, but didn't find a concrete example of what xml elements I need to include in order to conform. In lieu of posting my xml, I'll just say the wsdl roughly conforms to what is used in the MSDN article (except I fixed the invalid URL for the XMLSchema on w3.org by adding ".dtd"). Thanks!
0
[ 2, 619, 18, 8643, 9, 1706, 62, 1736, 19, 13, 7, 656, 2552, 137, 9, 165, 8728, 23, 52, 216, 7, 800, 3726, 3726, 31, 22, 79, 749, 20, 8713, 40, 13, 15895, 2017, 18, 68, 2741, 365, 28, 745, 19, 1260, 1137, 16, 13, 1, 49, 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...
VIM visual mode: highlight last 2 chars in each line? === I like vim's visual mode. v for highlight/select chars or lines, Ctrl-v for rectangle highlighting, as far as I know (I am a beginner). Is there any way to use visual mode to highlight last two chars, for exmaple, on each line for some selected lines? The selected lines are in different length. Basically, I would like to find a quick way to remove the last two chars for some selected lines. Not sure I can use visual mode to highlight irregular area.
0
[ 2, 1790, 79, 3458, 3740, 45, 14373, 236, 172, 4892, 18, 19, 206, 293, 60, 800, 3726, 3726, 31, 101, 1790, 79, 22, 18, 3458, 3740, 9, 566, 26, 14373, 118, 18, 16964, 4892, 18, 54, 1560, 15, 13, 4812, 6362, 8, 710, 26, 27181, 23...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
GridView/ObjectDataSource inside runat=server container does not bind === I've got a small web form with 2 radio buttons, call them PickFromList and EnterValue. When PickFromList is checked I want to show a GridView that I've configured to bind to an ObjectDataSource. When EnterValue is checked I want the GridView to disappear. This form is laid out using a table and want to hide/show the appropriate rows based on appropriate data and user input. Unfortunately the GridView doesn't bind when the trPickFromList2 row specifies the runat="server" attribute. If I remove runat="server" from the trPickFromList2 row it binds successfully. Any ideas? <table id="tblOptions" runat="server"> <tr id="trPickFromList1" runat="server"> <td> <asp:RadioButton ID="rbFromList" runat="server" GroupName="Selection" Text="Get Data From Existing Item" AutoPostBack="True" oncheckedchanged="rbromList_CheckedChanged" /> </td> </tr> <tr id="trPickFromList2" runat="server"> <td style="padding-left:20px"> <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" DataSourceID="odsList" Width="400px" onrowdatabound="gvList_RowDataBound"> <Columns> ... </Columns> </asp:GridView> </td> </tr> <tr id="trEnterValue1" runat="server"> <td> <asp:RadioButton ID="rbEnterValue" runat="server" GroupName="Selection" Text="Create a New Item" AutoPostBack="True" oncheckedchanged="rbEntered_CheckedChanged" /> ...
0
[ 2, 7354, 4725, 118, 23793, 18768, 12097, 572, 485, 721, 3726, 10321, 106, 12147, 630, 52, 10193, 800, 3726, 3726, 31, 22, 195, 330, 21, 284, 2741, 505, 29, 172, 603, 12861, 15, 645, 105, 2036, 2665, 5739, 17, 2830, 15165, 9, 76, 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...
Turning on Presentation Mode in Windows? === Windows Vista has "Presentation Mode", which you can turn on with the Mobility Center. How can I turn it on programmatically?
0
[ 2, 2101, 27, 6364, 3740, 19, 1936, 60, 800, 3726, 3726, 1936, 13520, 63, 13, 7, 3914, 857, 3740, 7, 15, 56, 42, 92, 805, 27, 29, 14, 14806, 459, 9, 184, 92, 31, 805, 32, 27, 625, 6732, 1326, 60, 3, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
TortoiseSvn and Windows Server 2008 user account control. === Here is the question: **Can TortoiseSvn work on Windows 2008 without turning off User Account Control?** Here is the story: I just moved my test server to Windows 2008 and I am having problems with TortoiseSvn. I am logged on as an administrator, but when I go to update some code from the Subversion repository, I get a message saying: **Error Can't set file 'C:\dev\trunk\.svn\entries' read-write: Access is denied** So I have seen messages like that and I know to run cleanup. But when I run cleanup I get: **Cleanup failed to process the following paths: C:\dev\trunk** So further investigation convinces me that I have a permissions problem. Running **svn status** from a command prompt shows me that the directories are locked and running **svn cleanup** fails just like the tortoise cleanup did. But when I launch the command prompt as an administrator, I can run **svn cleanup** with out a problem and I can run **svn up** and get my files updated. So it is obviously a windows UAC permissions problem. But Tortoise is a windows shell extension, so I think my only options are to turn UAC off or not use Tortoise. Any other suggestions? How do I turn UAC off?
0
[ 2, 25691, 18, 16578, 17, 1936, 8128, 570, 4155, 2176, 569, 9, 800, 3726, 3726, 235, 25, 14, 1301, 45, 13, 1409, 1245, 25691, 18, 16578, 170, 27, 1936, 570, 366, 2101, 168, 4155, 2176, 569, 60, 1409, 235, 25, 14, 609, 45, 31, 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...
How to remove a field from SQLServer2005 table === I tried this: ALTER TABLE My.Table DROP MyField and got this error: -MyField is not a constraint. -Could not drop constraint. See previous errors. There is just one row of data in the table and the field was just added.
0
[ 2, 184, 20, 4681, 21, 575, 37, 4444, 255, 10321, 106, 2835, 859, 800, 3726, 3726, 31, 794, 48, 45, 7835, 859, 51, 9, 5924, 2804, 51, 1109, 17, 330, 48, 7019, 45, 13, 8, 915, 1109, 25, 52, 21, 28804, 9, 13, 8, 13431, 52, 2804...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Approaches to a Wiki - Database hybrid === I need a database where one (or more) fields behave like a wiki. I want the free-form content creation aspects of a wiki bolstered by the strict semantic structure of a database. Specifically, I need this database field to hold wiki-style markup, track multi-user changes, allow reverts, etc... I've come at this from a few directions: - Wedging a wiki into a database by having this field point to a page from a separate wiki system. - Building the database around the wiki (creating extra fields per page for my structured data). - Or build it from scratch with my own system for tracking changes in this field (can this really necessary given how much wiki software there is out there?) Does anyone have any experience or insight on approaching the construction of this? Or can anyone point me to a framework that would get me on my way? I've looked into the structured wikis like TikiWiki and TWiki but it's not clear to me how to accomplish what I'd like.
0
[ 2, 7501, 20, 21, 13, 17375, 13, 8, 6018, 6957, 800, 3726, 3726, 31, 376, 21, 6018, 113, 53, 13, 5, 248, 91, 6, 2861, 14149, 101, 21, 13, 17375, 9, 31, 259, 14, 551, 8, 4190, 2331, 2502, 4842, 16, 21, 13, 17375, 23259, 69, 34...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Where in an Eclipse workspace is the list of projects stored? === I use eclipse with "external" projects - i.e. projects created from existing source. Poking around in the workspace files, I cannot find any reference to these projects. My question is: how does eclipse keep track of these projects? I'd like to be able to add such a project to the workspace automatically (by generating `.project` and `.classpath` files)..
0
[ 2, 113, 19, 40, 11652, 170, 5582, 25, 14, 968, 16, 2314, 8214, 60, 800, 3726, 3726, 31, 275, 11652, 29, 13, 7, 1706, 8766, 192, 7, 2314, 13, 8, 31, 9, 62, 9, 2314, 679, 37, 3149, 1267, 9, 24149, 140, 19, 14, 170, 5582, 6488,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 memory manage UIViewControllers with a navigation controller? === So yeah, I'm a Java guy in this crazy iPhone world. When it comes to memory management I stiill don't have a very good idea of what I'm doing. I have an app that uses a navigation controller, and when it's time to go on to the next view I have code that looks like this: UIViewController *myController = [[MyViewController alloc] initWithNibName:@"MyView" bundle:[NSBundle mainBundle]; [[self navigationController] pushViewController:myController animated:YES]; Now according to Apple's fundamental rule on memory management > You take ownership of an object if you create it using a method whose name begins with “alloc” or “new” or contains “copy” (for example, alloc, newObject, or mutableCopy), or if you send it a retain message. You are responsible for relinquishing ownership of objects you own using release or autorelease. Any other time you receive an object, you must not release it. To me that means that I should be releasing myController, or giving it an autorelease message. But, whenever I try doing that my application winds up crashing as I push and pop views off of the stack. This didn't smell right to me, but in running Instruments it claims that I don't have any memory leaks. So I my question is 1. Am I doing this right? 2. Is the Navigation Controller taking ownership of MyViewController, explaining the lack of a memory leak? 3. Should I assign myController to an instance variable in my root ViewController? In that case it would be marked retain and I would release in the root's dealloc method
0
[ 2, 184, 107, 31, 1912, 4705, 13, 5661, 4725, 12898, 1252, 18, 29, 21, 8368, 9919, 60, 800, 3726, 3726, 86, 3979, 15, 31, 22, 79, 21, 8247, 1244, 19, 48, 3328, 21024, 126, 9, 76, 32, 1624, 20, 1912, 1097, 31, 13, 5509, 6049, 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...
Find the ip address of a remote object in .net remoting === I have a client-server application that uses .net remoting. The clients are in a LAN and i do not know their location in advance. Sometimes we do file transfers and as an optimization I want to determine if a client is in fact on the same machine as the server (it is quite possible). In this case, I only need to do a File.Copy. Let's say that a client calls the remote method: RemoteFile server.GetFile(string path); how can I determine if the client (the requester) is on the same machine?
0
[ 2, 477, 14, 15735, 3218, 16, 21, 5388, 3095, 19, 13, 9, 2328, 302, 7662, 68, 800, 3726, 3726, 31, 57, 21, 6819, 8, 10321, 106, 3010, 30, 2027, 13, 9, 2328, 302, 7662, 68, 9, 14, 7421, 50, 19, 21, 6178, 17, 31, 107, 52, 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...
Persisting Dates to SQLITE3 in an iPhone Application === I am developing an iphone application that persists data to a SQLITE3 database. For each row I persist I wish to include a 'created date' and a 'last modified date' My question is what is the recommend approach for storing this information in a table? The properties are represented as NSDate in my application but I am unsure how to represent this information in my table. It appears that SQLITE3 provides a DATETIME type but does not have a native understanding of how to parse this information. Any help would be much appreciated. Thanks in Advance.
0
[ 2, 22084, 68, 4076, 20, 4444, 10601, 240, 19, 40, 21024, 3010, 800, 3726, 3726, 31, 589, 3561, 40, 21024, 3010, 30, 22084, 18, 1054, 20, 21, 4444, 10601, 240, 6018, 9, 26, 206, 3131, 31, 22084, 31, 2536, 20, 468, 21, 13, 22, 184...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the use of const overloading in C++? === In C++, a function's signature depends partly on whether or not it's const. This means that a class can have two member functions with identical signatures except that one is const and the other is not. If you have a class like this, then the compiler will decide which function to call based on the object you call it on: if it's a const instance of the class, the const version of the function will be called; if the object isn't const, the other version will be called. In what circumstances might you want to take advantage of this feature?
0
[ 2, 98, 25, 14, 275, 16, 11608, 38, 84, 16866, 19, 272, 20512, 60, 800, 3726, 3726, 19, 272, 20512, 15, 21, 1990, 22, 18, 7810, 9597, 5794, 27, 1472, 54, 52, 32, 22, 18, 11608, 38, 9, 48, 1108, 30, 21, 718, 92, 57, 81, 322, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
When should an application honor case sensitivity from input? === I recently rolled an application that automatically encrypted a file output from another internal system using PGP and then sftp’d to a foreign target server directory where it was to be consumed by a third-party application. I have been trying to trouble shoot the whole process for about a week and was getting no response from the third-party until this morning in an email.... “*Turns out, the file is named incorrectly so the system didn’t think you submitted it. There was a capital “T” that should have been lower cased.*” Ok. After an aggravated sigh (since nobody else has access to that directory and no other files named in a similar fashion), I started to wonder, “**When should an application honor case sensitivity from user input *outside of passwords*?**” I am running through my brain here trying to think of a time when I would want "fileName" and "FileName" to mean something different intentionally. [I am not talking about in-application variable naming conventions here, btw.][1] I'm actually very much for case-sensitive in-language. [1]: http://www.codinghorror.com/blog/archives/000458.html
0
[ 2, 76, 378, 40, 3010, 1853, 610, 17018, 37, 6367, 60, 800, 3726, 3726, 31, 1989, 2958, 40, 3010, 30, 7499, 29403, 21, 3893, 5196, 37, 226, 3117, 329, 568, 351, 13321, 17, 94, 15025, 13726, 1, 43, 20, 21, 1228, 2935, 8128, 16755, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
alter index across schemas === I am synchronizing tables using a stored PL/SQL procedure as part of a web application - when they hit a button it does the sync. The PL/SQL is executing as user A, but needs to disable indexes and sync a couple of tables in schema B. I can't get user A to 'alter index B.indexName unusable' despite granting it 'alter any index', and in desperation even DBA. The error is ORA-01418: specified index does not exist. This is working on another developer's sandbox but I can't figure out why. Any suggestions will be appreciated.
0
[ 2, 7835, 4348, 464, 23874, 18, 800, 3726, 3726, 31, 589, 13, 16023, 3335, 7484, 568, 21, 8214, 12443, 118, 18, 22402, 7004, 28, 141, 16, 21, 2741, 3010, 13, 8, 76, 59, 770, 21, 5167, 32, 630, 14, 6063, 150, 9, 14, 12443, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I drop a table if it exists in SQL Server 2000? === I have a DTS package that drops a table then creates it and populates it but sometimes something happens and the package fails after the drop table. If it's rerun it fails cuz the table hasn't been created yet. Is there something like "if exists" for SQLServer 2000 like in MySQL? thanks.
0
[ 2, 184, 92, 31, 2804, 21, 859, 100, 32, 5636, 19, 4444, 255, 8128, 824, 60, 800, 3726, 3726, 31, 57, 21, 13, 43, 38, 18, 6030, 30, 9458, 21, 859, 94, 9695, 32, 17, 1675, 12383, 18, 32, 47, 1030, 301, 5531, 17, 14, 6030, 1361...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Resetting Waitable Timers === From MSDN: > The [CancelWaitableTimer][1] function does not change the signaled state of the timer. It stops the timer before it can be set to the signaled state and cancels outstanding APCs. Therefore, threads performing a wait operation on the timer remain waiting until they time out or the timer is reactivated and its state is set to signaled. *If the timer is already in the signaled state, it remains in that state.* (Emphasis mine) So: How do I set a manual-reset waitable timer to the non-signalled state, if I can't call CancelWaitableTimer? I don't want to use SetWaitableTimer, because (at this point) I don't know what duration to set it to. [1]: http://msdn.microsoft.com/en-us/library/ms681985.aspx
0
[ 2, 302, 19831, 1760, 579, 85, 1224, 800, 3726, 3726, 37, 4235, 43, 103, 45, 13, 1, 14, 636, 1245, 11040, 8195, 579, 891, 139, 500, 2558, 165, 500, 1990, 630, 52, 753, 14, 2800, 69, 146, 16, 14, 85, 139, 9, 32, 6604, 14, 85, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
TechNet or MSDN Subscription? === I'm just a one-man software shop, and I currently have an MSDN subscription. It is coming up for renewal soon, and it looks like it's going to cost a small fortune. I see that TechNet subscriptions cost significantly less money, and seem to include all of the same software. Am I missing something here? What is the difference between these 2 packages? Update: The price of Visual Studio and a TechNet subscription is still less than the cost of an MSDN subscription.
0
[ 2, 6145, 2328, 54, 4235, 43, 103, 14213, 60, 800, 3726, 3726, 31, 22, 79, 114, 21, 53, 8, 177, 2306, 2546, 15, 17, 31, 871, 57, 40, 4235, 43, 103, 14213, 9, 32, 25, 880, 71, 26, 16508, 651, 15, 17, 32, 1879, 101, 32, 22, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to restrict the CPU usage a C# program takes? === I am developing a C# program, and i have one function that consumes too much CPU. I would like to know a way to control this by code (not with any external application) and restrict the percentage of CPU usage. For example, if it uses 90% of the CPU usage, to make my app consume only a 20%, even if it becomes slower. It must be done automatically and from within the app. If you provide a class, it would be fantastic.
0
[ 2, 184, 20, 15436, 14, 17578, 7514, 21, 272, 5910, 625, 1384, 60, 800, 3726, 3726, 31, 589, 3561, 21, 272, 5910, 625, 15, 17, 31, 57, 53, 1990, 30, 16447, 18, 266, 212, 17578, 9, 31, 83, 101, 20, 143, 21, 161, 20, 569, 48, 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...