unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Resetting visited status on links === Is there any way you can reset the visited status on links? The scenario is this: On an intranet-site which naturally has a lot of links we want a link to have the status of "visited" for a set period of time only. I am therefore looking for a way to manipulate the visited status of links. Is this doable? It should be cross-browser of course.
0
[ 2, 302, 19831, 3120, 1782, 27, 6271, 800, 3726, 3726, 25, 80, 186, 161, 42, 92, 23422, 14, 3120, 1782, 27, 6271, 60, 14, 12705, 25, 48, 45, 27, 40, 14369, 2328, 8, 9097, 56, 8000, 63, 21, 865, 16, 6271, 95, 259, 21, 3508, 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...
In MVP where to write validations === In Model-View-Presenter pattern where should we write validations of user input.
0
[ 2, 19, 13552, 113, 20, 2757, 27999, 18, 800, 3726, 3726, 19, 1061, 8, 4725, 8, 3914, 106, 3732, 113, 378, 95, 2757, 27999, 18, 16, 4155, 6367, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 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...
nhibernate - disbale automatic\lazy loading of child records for one to many relationsihps === Would like to know if there is a way to disable automatic loading of child records in nHibernate ( for one:may relationships). We can easily switch off lazy loading on properties but what I want is to disable any kind of automatic loading ( lazy and non lazy both ). I only want to load data via query ( ie. HQL or Criteria ) I would still like to define the relationship between parent child records in the mapping file to facilitate HQL and be able to join parent child entities , but I do not want the child records to be loaded as part of parent record unless a query on the parent record explicitly states that ( via eager fetch etc ) Example: Fetching Department record from the database should not fetch all employee records from the database because it may never be needed. One option here is to set the Employees collection on Department as lazy load. The problem with this approach is that once the object is given to the calling API it can 'touch' the lazy load property and that will fetch the entire list from the db. I tried to use 'evict' - to disconnect the object but it does not seem to be working at all times and does not do a deep evict on the object. Plus it abstracts the lazy loaded property type with a proxy class that plays havoc later in the code where we are trying to operate on the object via reflection and it encounters unexpended type on the object. I am a beginner to nHibernate, any pointers or help would be of great help.
0
[ 2, 12109, 15191, 8820, 13, 8, 1460, 3817, 62, 6715, 1, 531, 3327, 12797, 16, 850, 742, 26, 53, 20, 151, 2649, 49, 12491, 18, 800, 3726, 3726, 83, 101, 20, 143, 100, 80, 25, 21, 161, 20, 1460, 579, 6715, 12797, 16, 850, 742, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
sql union with an aggregation component === I have a query that I use for charting in reporting services that looks something like: <pre> (SELECT Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Eta, Theta, Iota, Kappa, Lambda, Mu,Nu, Xi from tbl WHERE Alpha in (@Alphas) and Beta in (@Betas) and Gamma in (@Gammas) and Delta in (@Deltas) and Epsilon in (@Epsilons) and Zeta in (@Zetas) and Eta in (@Etas) and Theta in (@Thetas) ) UNION (SELECT Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Eta, Theta, Iota, Kappa, Lambda, Mu,Nu, Omicron from tbl WHERE Alpha in (@Alphas) and Beta in (@Betas) and Gamma in (@Gammas) and Delta in (@Deltas) and Epsilon in (@Epsilons) and Zeta in (@Zetas) and Eta in (@Etas) and Theta in (@Thetas)) </pre> Alpha through Theta are to be used to in a couple of calculated fields which concatenate them (say Alpha, Beta, Gamma) into a string in one field. The select statement for Omicron will generate the same number of rows as Xi but what I really want is to aggregate Omicron, so if the Select query with Xi produces 9 legend item, the aggregate select for Omicron should only produce one legend item because the values Alpha through Theta are not important for Omicron. How should the query be structured so I can use Alpha through Theta as parameters but still aggregate Omicron?
0
[ 2, 4444, 255, 667, 29, 40, 27255, 5912, 800, 3726, 3726, 31, 57, 21, 25597, 30, 31, 275, 26, 22544, 19, 6670, 687, 30, 1879, 301, 101, 45, 13, 1, 3515, 1, 13, 5, 18, 16964, 5705, 15, 8434, 15, 14598, 15, 6395, 15, 28910, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Extract and save then output to web. === I am [searching][1] for HF50(HF$HF) for example in "MyFile.txt" so that the extracted data must save to "save.txt". The data on "save.txt" now extracted again and fill the parameters and output on my table. But when i tried the code , I've got no output and "save.txt" is blank.?<br> Var $HF is not recognized whatever I type. Please help. #! /usr/bin/perl print "Content-type:text/html\r\n\r\n"; use CGI qw(:standard); use strict; use warnings; my ($file,$line,$tester,$HF,$keyword); my ($f1,$f2,$f3,$f4,$f5,$f6,$f7,$f8,$f9,$f10,$f11,$f12,$f13,$f14,$f15,$f16,$f17,$f18,$f19); my $keyWord=param('keyword'); $HF=$keyWord; my $infile='MyFile.txt'; my $outfile='save.txt'; open (my $inhandle, '<',$infile) or die "Can't open $infile:$!"; open (my $outhandle, '>', $outfile) or die "Can't open $outfile:$!"; while (my $line=<$inhandle>){ if ($line=~ m/HF$HF/i) { print {$outhandle}$line; print $line; print "<HTML>"; print "<head>"; print "<body bgcolor='#4682B4'>"; print "<title>FUSION SHIFT REPORT</title>"; print "<div align='left'>"; print "<FORM METHOD='get' ACTION='http://Shielex.com/pe/mrigos/mainhead.html'>"; print "<b>SEACRH:</b>"; print "<INPUT TYPE='text' NAME='rec' SIZE='12' MAXLENGHT='40'>"; print "<INPUT TYPE='submit' value='go'>"; print "</form>"; print "<TABLE CELLPADDING='1' CELLSPACING='1' BORDER='1' bordercolor=black width='100%'>"; print "<TR>"; print "<td width='11%'bgcolor='#00ff00'><font size='2'>TESTER No.</td>"; print "<td width='10%'bgcolor='#00ff00'><font size='2'>DATE</td>"; print "<td width='11%'bgcolor='#00ff00'><font size='2'>DEVICE NAME</td>"; print "<td bgcolor='#00ff00'><font size='2'>TEST PROGRAM</td>"; print "<td width='10%'bgcolor='#00ff00'><font size='2'>SMSLOT</td>"; print "<td width='12%'bgcolor='#00ff00'><font size='2'>LOADBOARD</td>"; print "<td width='10%'bgcolor='#00ff00'><font size='2'>CATEGORY</td>"; print "<td width='13%'bgcolor='#00ff00'><font size='2'>ROOT CAUSE 1</td>"; print "<td width='13%'bgcolor='#00ff00'><font size='2'>ROOT CAUSE 2</td>"; print "</tr>"; print "<TR>"; $file='save.txt'; open(F,$file)||die("Could not open $file"); while ($line=<F>) { my @cells=($f1,$f2,$f3,$f4,$f5,$f6,$f7,$f8,$f9,$f10,$f11,$f12,$f13,$f14,$f15,$f16,$f17,$f18,$f19)= split ',',$line; print "<TD bgcolor='#ADD8E6'><font size='2'>$f2</TD>"; print "<TD bgcolor='#ADD8E6'><font size='2'>$f3</TD>"; print "<TD bgcolor='#ADD8E6'><font size='2'>$f5</TD>"; print "<TD bgcolor='#ADD8E6'><font size='2'>$f6</TD>"; print "<TD bgcolor='#ADD8E6'><font size='2'>$f8</TD>"; print "<TD bgcolor='#ADD8E6'><font size='2'>$f10</TD>"; print "<TD bgcolor='#ADD8E6'><font size='2'>$f17</TD>"; print "<TD bgcolor='#ADD8E6'><font size='2'>$f18</TD>"; print "<TD bgcolor='#ADD8E6'><font size='2'>$f19</TD>"; print "</tr>"; } } } close F; print "</TABLE>"; print "</body>"; print "<html>"; <br> [1]: http://stackoverflow.com/questions/211260/perl-extract-text-then-save<br> =**MyFile.txt data**=<br> 1,HF50,13-OCT-08,04:17:53,761503BZZGR-62,B2761503BP22.EVA,DWP,DWP,Calibration<br> 2,HF60,13-OCT-08,04:17:53,761503BZZGR-62,B2761503BP22.EVA,DWP,DWP,Calibration<br> 1,HF50,13-OCT-08,04:17:53,761503BZZGR-62,B2761503BP22.EVA,DWP,DWP,Calibration<br>
0
[ 2, 10962, 17, 2079, 94, 5196, 20, 2741, 9, 800, 3726, 3726, 31, 589, 636, 25136, 68, 500, 2558, 165, 500, 26, 13, 18526, 2290, 5, 18526, 4403, 18526, 6, 26, 823, 19, 13, 7, 915, 16877, 9, 38, 396, 38, 7, 86, 30, 14, 18607, 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...
GWT + Spring === Can I access spring bean that exposed using http invoker (server) from GWT application (client) ? If so is there any example / tutorial for that ? -- Yonatan
0
[ 2, 14094, 38, 2754, 1573, 800, 3726, 3726, 92, 31, 1381, 1573, 15322, 30, 5043, 568, 7775, 28371, 139, 13, 5, 10321, 106, 6, 37, 14094, 38, 3010, 13, 5, 150, 18513, 38, 6, 13, 60, 100, 86, 25, 80, 186, 823, 13, 118, 29724, 26,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
Which Javascript Ajax Framework is most powerful and very lightweight? === I’ve been using a jQuery to do the whole ajax magic in my web based applications. But I came to a decision that I don’t need all these amazing feautures jQuery has, except its ajax functions (like $.ajax(), $.get(), $.post, getJSON() and load();). Can you recommend a lightweight crossbrowser ajax library/framework (upto ~10 kb)? Thanks in advice.
0
[ 2, 56, 8247, 8741, 20624, 6596, 25, 127, 2177, 17, 253, 13613, 60, 800, 3726, 3726, 31, 1, 195, 74, 568, 21, 487, 8190, 93, 20, 107, 14, 979, 20624, 2154, 19, 51, 2741, 432, 3767, 9, 47, 31, 281, 20, 21, 1401, 30, 31, 221, 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...
Emulating a UPnP router === I want to add the option of automatic port forwarding (NAT Traversal) to an application. I know this can be done using UPnP (specifically the part that communicates with the device presenting itself as an IGD - Internet Gateway Device). I need to be able to test this port forwarding feature while developing it. And whatever big router system company traffic is routered over - Doesn't provide UPnP. - Wouldn't want me messing around with it while it's in live service. My question is: **Does anyone know of any software that acts as or emulates a UPnP compatible router?**
0
[ 2, 3579, 10038, 21, 71, 8157, 858, 139, 800, 3726, 3726, 31, 259, 20, 3547, 14, 4255, 16, 6715, 1295, 917, 68, 13, 5, 11044, 19501, 192, 6, 20, 40, 3010, 9, 31, 143, 48, 92, 44, 677, 568, 71, 8157, 13, 5, 9219, 1326, 14, 141...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Get Application exe size easily === Is there a way in Delphi to get the currect application's exe size in one or two lines of code?
0
[ 2, 164, 3010, 1396, 62, 1072, 2351, 800, 3726, 3726, 25, 80, 21, 161, 19, 23030, 20, 164, 14, 5087, 14673, 38, 3010, 22, 18, 1396, 62, 1072, 19, 53, 54, 81, 1560, 16, 1797, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Getting Language for Non-Unicode Programs === Anyone have any idea how to get the value of "Language for Non-Unicode Programs" in Control Panel Regional Settings programmatically using c#? Already tried CultureInfo, RegionInfo and getting the default encoding using the Encoding object, but I can only get the Standards and Formats value or the main code page.
0
[ 2, 1017, 816, 26, 538, 8, 8843, 9375, 1726, 800, 3726, 3726, 1276, 57, 186, 882, 184, 20, 164, 14, 1923, 16, 13, 7, 7020, 26, 538, 8, 8843, 9375, 1726, 7, 19, 569, 4113, 1254, 12410, 625, 6732, 1326, 568, 272, 5910, 60, 614, 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...
Using Linq to concatenate strings === What is the most efficient way to write the old-school: StringBuilder sb = new StringBuilder(); if (strings.Count > 0) { foreach (string s in strings) { sb.Append(s + ", "); } sb.Remove(sb.Length - 2, 2); } return sb.ToString(); ...in Linq?
0
[ 2, 568, 6294, 1251, 20, 1065, 9530, 8820, 7887, 800, 3726, 3726, 98, 25, 14, 127, 8243, 161, 20, 2757, 14, 315, 8, 7535, 45, 3724, 20904, 13, 18, 220, 800, 78, 3724, 20904, 5, 6, 73, 100, 13, 5, 11130, 18, 9, 16549, 13, 1, 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...
How can I access progress bar in an Office application's status bar. === I build VBA applications for both Word and Excel, is there any way to access the progress bar that sometimes appears in the Office status bar.
0
[ 2, 184, 92, 31, 1381, 3455, 748, 19, 40, 488, 3010, 22, 18, 1782, 748, 9, 800, 3726, 3726, 31, 1895, 566, 969, 3767, 26, 156, 833, 17, 20700, 15, 25, 80, 186, 161, 20, 1381, 14, 3455, 748, 30, 1030, 1780, 19, 14, 488, 1782, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How can I build Word fields with VBA === Apart from just inserting and parsing text into a blank Word field, is there any way to programatically build user-defined fields and field codes into my own templates with VBA? Furthermore, is there a way to make these fields show up in the list of available fields?
0
[ 2, 184, 92, 31, 1895, 833, 2861, 29, 566, 969, 800, 3726, 3726, 2629, 37, 114, 14692, 68, 17, 2017, 18, 68, 1854, 77, 21, 6463, 833, 575, 15, 25, 80, 186, 161, 20, 625, 721, 8438, 1895, 4155, 8, 13439, 2861, 17, 575, 11358, 77...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Large scrolling background in OpenGL ES === I am working on a 2D scrolling game for iPhone. I have a large image background, say 480×6000 pixels, of only a part is visible (exactly one screen’s worth, 480×320 pixels). What is the best way to get such a background on the screen? Currently I have the background split into several textures (to get around the maximum texture size limit) and draw the whole background in each frame as a textured triangle strip. The scrolling is done by translating the modelview matrix. The scissor box is set to the window size, 480×320 pixels. This is not meant to be fast, I just wanted a working code before I get to optimizing. I thought that maybe the OpenGL implementation would be smart enough to discard the invisible portion of the background, but according to some measuring code I wrote it looks like background takes 7 ms to draw on average and 84 ms at maximum. (This is measured in the simulator.) This is about a half of the whole render loop, ie. quite slow for me. Drawing the background should be as easy as copying some 480×320 pixels from one part of the VRAM to another, or, in other words, blazing fast. What is the best way to get closer to such performance?
0
[ 2, 370, 13, 28166, 2395, 19, 368, 8430, 13, 160, 800, 3726, 3726, 31, 589, 638, 27, 21, 172, 43, 13, 28166, 250, 26, 21024, 9, 31, 57, 21, 370, 1961, 2395, 15, 395, 13, 16318, 1, 379, 3993, 18146, 18, 15, 16, 104, 21, 141, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there any similar tool for Linux that works like Shark on MacOSX? === Shark on MacOSX is a great tool for profiling an app on a running system. Is there any similar tools for Linux? OProfile looks like it could be, anyone used it?
0
[ 2, 25, 80, 186, 835, 5607, 26, 13024, 30, 693, 101, 11635, 27, 1572, 759, 396, 60, 800, 3726, 3726, 11635, 27, 1572, 759, 396, 25, 21, 374, 5607, 26, 8721, 49, 802, 40, 4865, 27, 21, 946, 329, 9, 25, 80, 186, 835, 4672, 26, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
Which is the best Open source application server? === We are looking for a open source J2EE Application server for log budget deployments. We are considering JBoss and Glassfish. Which is the best open source application server? Any comparative study available?
4
[ 2, 56, 25, 14, 246, 368, 1267, 3010, 8128, 60, 800, 3726, 3726, 95, 50, 699, 26, 21, 368, 1267, 487, 135, 2851, 3010, 8128, 26, 6738, 3391, 10475, 18, 9, 95, 50, 5154, 487, 10349, 18, 17, 1350, 4934, 9, 56, 25, 14, 246, 368, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
ASP.net MVC and .Net version === I have visual studio 2008 installed on my PC. Can anyone tell me what should I get installed so that I can start with the MVC architecture. I am very much confused about the .NET versions required for MVC architecture. thanks.
0
[ 2, 28, 306, 9, 2328, 307, 8990, 17, 13, 9, 2328, 615, 800, 3726, 3726, 31, 57, 3458, 1120, 570, 4066, 27, 51, 5168, 9, 92, 1276, 494, 55, 98, 378, 31, 164, 4066, 86, 30, 31, 92, 799, 29, 14, 307, 8990, 2607, 9, 31, 589, 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...
Please wait page in ASP.NET MVC === A page executes a number of tasks and takes a long time to process. We want to give the user feedback as each task is completed. In ASP.NET webforms we used Response.Flush() What way would you a approach this in ASP.NET MVC?
0
[ 2, 2247, 1760, 2478, 19, 28, 306, 9, 2328, 307, 8990, 800, 3726, 3726, 21, 2478, 15644, 18, 21, 234, 16, 8674, 17, 1384, 21, 175, 85, 20, 953, 9, 95, 259, 20, 590, 14, 4155, 13111, 28, 206, 3005, 25, 1066, 9, 19, 28, 306, 9,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to use Hibernate @Any-related annotataions? === Could someone explain to me how Any-related annotations (`@Any`, `@AnyMetaDef`, `@AnyMetaDefs` and `@ManyToAny`) work in practice. I have a hard time finding any useful documentation (JavaDoc alone isn't very helpful) about these. I have thus far gathered that they somehow enable referencing to abstract and extended classes. If this is the case, why is there not an `@OneToAny` annotation? And is this 'any' referring to a single 'any', or multiple 'any'? A short, practical and illustrating example would be very much appreciated (doesn't have to compile).
0
[ 2, 184, 20, 275, 4148, 2102, 8820, 13, 1, 6001, 8, 6203, 40, 1270, 4375, 5757, 60, 800, 3726, 3726, 110, 737, 3271, 20, 55, 184, 186, 8, 6203, 40, 1270, 7504, 13, 5, 1, 6001, 1, 15, 13, 1, 6001, 5909, 58, 13862, 1, 15, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to create a timeline with LaTeX? === In history-books you often have timeline, where events and periods are marked on a line in the correct relative distance to each other. How is it possible to create something similar in LaTeX?
0
[ 2, 184, 20, 1600, 21, 18398, 29, 456, 396, 60, 800, 3726, 3726, 19, 447, 8, 13828, 42, 478, 57, 18398, 15, 113, 963, 17, 7302, 50, 2739, 27, 21, 293, 19, 14, 4456, 4543, 1583, 20, 206, 89, 9, 184, 25, 32, 938, 20, 1600, 301,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
.NET autogenerated web-service client: How do I avoid requesting schemas from w3.org? === I have a .NET web-service client that has been autogenerated from a wsdl-file using the wsdl.exe tool. When I first instantiate the generated class, it begins to request a bunch of documents from w3.org and others. The first one being http://www.w3.org/2001/XMLSchema.dtd Besides not wanting to cause unnecessary traffic to w3.org, I need to be able to run the application without a connection to the Internet (the web-service is a "Intra-web-service"). Anyone know the solution? If it helps, here is the stacktrace I get when I do not have Internet: "An error has occurred while opening external DTD 'http://www.w3.org/2001/XMLSchema.dtd': The remote name could not be resolved: 'www.w3.org'" at System.Net.HttpWebRequest.GetResponse() at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials) at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at System.Xml.XmlTextReaderImpl.OpenStream(Uri uri) at System.Xml.XmlTextReaderImpl.DtdParserProxy_PushExternalSubset(String systemId, String publicId) at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.DtdParserProxy_PushExternalSubset(String systemId, String publicId) at System.Xml.XmlTextReaderImpl.DtdParserProxy.System.Xml.IDtdParserAdapter.PushExternalSubset(String systemId, String publicId) at System.Xml.DtdParser.ParseExternalSubset() at System.Xml.DtdParser.ParseInDocumentDtd(Boolean saveInternalSubset) at System.Xml.DtdParser.Parse(Boolean saveInternalSubset) at System.Xml.XmlTextReaderImpl.DtdParserProxy.Parse(Boolean saveInternalSubset) at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl() at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.Schema.Parser.StartParsing(XmlReader reader, String targetNamespace) at System.Xml.Schema.Parser.Parse(XmlReader reader, String targetNamespace) at System.Xml.Schema.XmlSchemaSet.ParseSchema(String targetNamespace, XmlReader reader) at System.Xml.Schema.XmlSchemaSet.Add(String targetNamespace, XmlReader schemaDocument) at [...]WebServiceClientType..cctor() in [...]
0
[ 2, 13, 9, 2328, 3108, 25314, 2741, 8, 11449, 6819, 45, 184, 107, 31, 2658, 20033, 23874, 18, 37, 619, 240, 9, 5583, 60, 800, 3726, 3726, 31, 57, 21, 13, 9, 2328, 2741, 8, 11449, 6819, 30, 63, 74, 3108, 25314, 37, 21, 619, 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...
How can I line up my bullet images with my <li> content? === Heres a screenshot to make it clear. I'm trying to figure out a robust way of making the bullet images vertically aligned to my li content. As you can see my content is currently too high. Many thanks 'over-flowers'... http://dl.getdropbox.com/u/240752/list-example.gif
0
[ 2, 184, 92, 31, 293, 71, 51, 6812, 3502, 29, 51, 13, 1, 1210, 1, 2331, 60, 800, 3726, 3726, 235, 18, 21, 2324, 7868, 20, 233, 32, 1207, 9, 31, 22, 79, 749, 20, 1465, 70, 21, 15313, 161, 16, 544, 14, 6812, 3502, 23300, 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...
404 SysVol entries in webserver's logfiles === Our 404 error logs show a lot of /SysVol http requests on our Windows Web Server 2008 for our website. It only has a webserver role and I believe that SysVol requests are meant for Domain Controllers? What's causing this and what would be the best solution to deal with these 404 requests? I'm using code that access employee records via Active Directory (ldap) and the server is not trusted for delegaton in case this is related to the problem.
0
[ 2, 13, 23397, 10315, 18, 5847, 11399, 19, 2741, 10321, 106, 22, 18, 6738, 16877, 18, 800, 3726, 3726, 318, 13, 23397, 7019, 18893, 298, 21, 865, 16, 13, 118, 4980, 18, 5847, 7775, 12279, 27, 318, 1936, 2741, 8128, 570, 26, 318, 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...
Saving matlab sparse matrix to text file === I have a 30000x14000 sparse matrix in matlab, which I need to use in another program. calling save won't write this as ascii (not supported). calling full() on this monster gets Out of Memory. How do i export it Matlab 7
0
[ 2, 7599, 4277, 9086, 23162, 8187, 20, 1854, 3893, 800, 3726, 3726, 31, 57, 21, 712, 3993, 396, 1419, 3993, 23162, 8187, 19, 4277, 9086, 15, 56, 31, 376, 20, 275, 19, 226, 625, 9, 2555, 2079, 230, 22, 38, 2757, 48, 28, 28, 1892, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 count 1 day? === Let say today what is the start time and what is the end time? is it 2008-10-23 12:00:00 AM and finish 2008-10-23 11:59:59 PM
0
[ 2, 184, 20, 2468, 137, 208, 60, 800, 3726, 3726, 408, 395, 786, 98, 25, 14, 799, 85, 17, 98, 25, 14, 241, 85, 60, 25, 32, 570, 8, 1036, 8, 2001, 137, 21319, 45, 2032, 589, 17, 2106, 570, 8, 1036, 8, 2001, 547, 21100, 21100, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Flex DRAG_DROP Event - Is it possible to access the Image Being Dragged? === When you start a Flex drag action, you pass in a proxy image to be displayed when you drag across the screen. When the drop occurs, I want to be able to grab this proxy but I can't find a way to from the DragEvent object. Is it possible? What I want is to actually drop the dragged image when the mouse button is released... Flex automatically does a nice shrinking animation on the proxy but I don't want that.
0
[ 2, 14409, 5501, 1, 12361, 807, 13, 8, 25, 32, 938, 20, 1381, 14, 1961, 142, 7465, 60, 800, 3726, 3726, 76, 42, 799, 21, 14409, 5501, 1028, 15, 42, 1477, 19, 21, 27188, 1961, 20, 44, 6115, 76, 42, 5501, 464, 14, 2324, 9, 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...
How do you display Taskbar notifications? === How would one go about displaying taskbar notifications? I want to write an app that periodically displays a flash card esque notification, the intention to to see if a 5 second or so distraction every hour can help with language learning. Target language is c#
0
[ 2, 184, 107, 42, 3042, 3005, 1850, 52, 4634, 18, 60, 800, 3726, 3726, 184, 83, 53, 162, 88, 17418, 3005, 1850, 52, 4634, 18, 60, 31, 259, 20, 2757, 40, 4865, 30, 19886, 9412, 21, 4433, 2056, 13, 17029, 52, 4634, 15, 14, 5140, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
String Simple Substitution === What's the easiest way of me converting the simpler regex format that most user's are used to into the correct re python regex string? As an example, I need to convert this: string = "*abc+de?" to this: string = ".*abc.+de.?" Of course I could loop through the string and build up another string character by character, but that's surely an inefficient way of doing this?
0
[ 2, 3724, 1935, 19910, 800, 3726, 3726, 98, 22, 18, 14, 27237, 161, 16, 55, 19583, 14, 19120, 7953, 1706, 2595, 30, 127, 4155, 22, 18, 50, 147, 20, 77, 14, 4456, 302, 20059, 7953, 1706, 3724, 60, 28, 40, 823, 15, 31, 376, 20, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using C# to display powerpoint === Is there any good way to use a windows application written in C# to display/control a powerpoint slideshow? Ultimately I would like to show thumbnails in a form and clicking these thumbnails would advance the slides shown on a second monitor (similar to using Powerpoint itself to show a slideshow on a second monitor). I would like to be able to use Powerpoint Viewer if Powerpoint is not installed. There seems to be some ActiveX-controls that allows integration of Powerpoint in a form, but most of these seem to cost money, does anyone have experience using one of these controls?
0
[ 2, 568, 272, 5910, 20, 3042, 414, 3132, 800, 3726, 3726, 25, 80, 186, 254, 161, 20, 275, 21, 1936, 3010, 642, 19, 272, 5910, 20, 3042, 118, 12898, 21, 414, 3132, 18066, 1544, 60, 3308, 31, 83, 101, 20, 298, 5078, 325, 947, 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...
how to generate unit test code for methods === i want to write code for unit test to test my application code. I have different methods and now want to test these methods one by one in python script. but i do not how to i write. can any one give me example of small code for unit testing in python. i am thankful
0
[ 2, 184, 20, 7920, 1237, 1289, 1797, 26, 3195, 800, 3726, 3726, 31, 259, 20, 2757, 1797, 26, 1237, 1289, 20, 1289, 51, 3010, 1797, 9, 31, 57, 421, 3195, 17, 130, 259, 20, 1289, 158, 3195, 53, 34, 53, 19, 20059, 3884, 9, 47, 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...
c++ template function overloading. === Below are lines from "the c++ programming language" template<class T > T sqrt(T ); template<class T > complex<T> sqrt(complex<T>); double sqrt(double); void f(complex<double> z ) { s q r t (2 ); // sqrt<int>(int) sqrt(2.0) ; // sqrt(double) sqrt(z) ; // sqrt<double>(complex<double>) } I dont understand why sqrt(z) ; calls `sqrt<double>(complex<double>)` can any body please explain. Author says, `T sqrt<complex<T>>` is more specialized than `T sqrt <T>` but there is a seperate declaration for `template<class T > complex<T> sqrt(complex<T>);` why not use that?
0
[ 2, 272, 20512, 22894, 1990, 84, 16866, 9, 800, 3726, 3726, 1021, 50, 1560, 37, 13, 7, 124, 272, 20512, 3143, 816, 7, 22894, 1, 1898, 13, 38, 13, 1, 13, 38, 4444, 5256, 5, 38, 13, 6, 73, 22894, 1, 1898, 13, 38, 13, 1, 1502, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Reading/writing INI file in C# === Is there any class in .Net framework that can read/write standard ini files: [Section] <keyname>=<value> ... Delphi have TIniFile component and I am looking if there is anything similar for C#.
0
[ 2, 1876, 118, 12646, 19, 49, 3893, 19, 272, 5910, 800, 3726, 3726, 25, 80, 186, 718, 19, 13, 9, 2328, 6596, 30, 92, 1302, 118, 23716, 1236, 19, 49, 6488, 45, 636, 10579, 500, 13, 1, 4237, 7259, 1, 3726, 1, 15165, 1, 13, 9, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to toggle between one maven profile and another? === If I have a maven profile activated by the presence of a property, how can I define another profile that is only activated when the other profile is not activated? e.g. <profile> <activation> <property> <name>myproperty</name> <value>value</value> </property> </activation> ... </profile> <profile> <activation> <property> <name>myproperty</name> <value></value> <!-- Anything other than "value" --> </property> </activation> ... </profile>
0
[ 2, 184, 20, 20, 263, 4875, 128, 53, 1216, 3124, 5296, 17, 226, 60, 800, 3726, 3726, 100, 31, 57, 21, 1216, 3124, 5296, 9654, 34, 14, 1970, 16, 21, 1354, 15, 184, 92, 31, 9267, 226, 5296, 30, 25, 104, 9654, 76, 14, 89, 5296, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why don't C++ compilers define operator== and operator!= ? === I am a big fan of letting the compiler do as much work for you as possible. When writing a simple class the compiler can give you the following for 'free': - A default (empty) constructor - A copy constructor - An assignment operator (`operator=`) But it cannot seem to give you any comparison operators - such as `operator==` or `operator!=`. For example: class foo { public: std::string str_; int n_; }; foo f1; // Works foo f2(f1); // Works foo f3; f3 = f2; // Works if (f3 == f2) // Fails { } if (f3 != f2) // Fails { } Is there a good reason for this? Why would performing a member-by-member comparison be a problem? Obviously if the class allocates memory then you'd want to be careful, but for a simple class surely the compiler could do this for you?
0
[ 2, 483, 221, 22, 38, 272, 20512, 21486, 18, 9267, 6022, 3726, 3726, 17, 6022, 187, 3726, 13, 60, 800, 3726, 3726, 31, 589, 21, 580, 2514, 16, 4252, 14, 21486, 107, 28, 212, 170, 26, 42, 28, 938, 9, 76, 1174, 21, 1935, 718, 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...
Data-bound TextBox: can't exit === I've got a text box bound to an object's property (in fact several text boxes) on a form. This for is an editor for an object. When i'm editing some objects and modify values in the one of the text boxes i can't exit from the text box (neither by tab nor clicking on another text box). However that's not always the case - when editing other objects (of the same type) it works fine. Here's a code snipet: txtValue.DataBindings.Add("Text", _SourceObject, "PlannedValue", True, DataSourceUpdateMode.OnPropertyChanged, Nothing, "c") txtEstPlacements.DataBindings.Add("Text", _SourceObject, "EstimatedPlacementCount") txtReference.DataBindings.Add("Text", _SourceObject, "Reference") Any suggestions?
0
[ 2, 1054, 8, 7410, 1854, 5309, 45, 92, 22, 38, 4350, 800, 3726, 3726, 31, 22, 195, 330, 21, 1854, 1649, 4138, 20, 40, 3095, 22, 18, 1354, 13, 5, 108, 837, 238, 1854, 8120, 6, 27, 21, 505, 9, 48, 26, 25, 40, 1835, 26, 40, 30...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Read a picture from Access DB into PictureBox === I have been trying to read a picture saved in Access DB as a OLE object in a PictureBox in a C# windows Application. The code that does this is presented below: string connString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Rajesh\SampleDB_2003.mdb;"; OleDbConnection oConn = new OleDbConnection(connString); oConn.Open(); string commandString = "select * from employee where id = " + id + ""; OleDbCommand oCmd = new OleDbCommand(commandString, oConn); OleDbDataReader oReader = oCmd.ExecuteReader(CommandBehavior.SequentialAccess); while (oReader.Read()) { txtID.Text = ((int)oReader.GetValue(0)).ToString(); txtName.Text = (string)oReader.GetValue(1); txtAge.Text = ((int)oReader.GetValue(2)).ToString(); txtType.Text = (string)oReader.GetValue(3); byte[] imageBytes = (byte[])oReader.GetValue(4); MemoryStream ms = new MemoryStream(); ms.Write(imageBytes, 0, imageBytes.Length); Bitmap bmp = new Bitmap(ms); pbPassport.Image = bmp; } When I execute the above code, an 'Parameter is not valid' exception is thrown at the line: Bitmap bmp = new Bitmap(ms) From the exception message, it is clear that 'ms' is in a format that is not recognisable. Any suggestion to get past this?
0
[ 2, 1302, 21, 2151, 37, 1381, 13, 9007, 77, 2151, 5309, 800, 3726, 3726, 31, 57, 74, 749, 20, 1302, 21, 2151, 4377, 19, 1381, 13, 9007, 28, 21, 12116, 3095, 19, 21, 2151, 5309, 19, 21, 272, 5910, 1936, 3010, 9, 14, 1797, 30, 63...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Problem with Commons Logging / Log4j setup in spring webapp with tomcat 6 === I have a problem wih a logging setup in a apring webapp deployed under tomcat 6. The webapp uses the commons-logging api, on runtime log4j should be used. The log file is created but remains empty - no log entries occur. the setup is the following: WEB-INF/web.xml: <context-param> <param-name>log4jConfigLocation</param-name> <param-value>/WEB-INF/log4j.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> </listener> WEB-INF/classes/commons-logging.properties: org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger WEB-INF/log4j.xml: <log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'> <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> ... </appender> <appender name="FILE" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="${catalina.home}/logs/my.log"/> ... </appender> <logger name="my.package"> <level value="INFO"/> </logger> <root> <level value="ERROR"/> <appender-ref ref="CONSOLE"/> <appender-ref ref="FILE"/> </root> </log4j:configuration> The file logs/my.log is created, but no logs appear. The are info logs on the tomcat console, but not with the layout pattern configured. The commons-logging-1.1.1.jar and log4j-1.2.14.jar are included in WEB-INF/lib. Any idea what is wrong here?
0
[ 2, 1448, 29, 8322, 13, 13919, 13, 118, 6738, 300, 728, 18161, 19, 1573, 2741, 7753, 29, 2067, 5782, 400, 800, 3726, 3726, 31, 57, 21, 1448, 4807, 252, 21, 13, 13919, 18161, 19, 21, 8442, 2090, 2741, 7753, 6698, 131, 2067, 5782, 40...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Returning a 301 Redirect from a Controller Action === On ASP.net MVC, what is the "correct" way to have a controller return a 301 Redirect to an external site? The various RedirectTo-Function seem to only return either relative links or routes that i have mapped manually, but there is no way to say "Perform a 301 Redirect to http://example.com". I think I could just set Response.StatusCode or use Response.Redirect, but is that the way it should be done in MVC? Or is there an official "correct way" of performing redirects?
0
[ 2, 2485, 21, 13, 18979, 302, 14706, 37, 21, 9919, 1028, 800, 3726, 3726, 27, 28, 306, 9, 2328, 307, 8990, 15, 98, 25, 14, 13, 7, 25345, 7, 161, 20, 57, 21, 9919, 788, 21, 13, 18979, 302, 14706, 20, 40, 4886, 689, 60, 14, 617...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WCF Unknown Message Received Event === Does anywone know when a UnknownMessageReceived event on a WCF ServiceHost will be fired? I hava some code where I capture the Faulted en UnknownMessageReceived event but even when I post a wrong message to a particular service I never get the event. Jochen
0
[ 2, 11801, 410, 2562, 2802, 420, 807, 800, 3726, 3726, 630, 186, 499, 849, 143, 76, 21, 2562, 3845, 18, 1303, 27700, 807, 27, 21, 11801, 410, 365, 11694, 129, 44, 3899, 60, 31, 13, 20648, 109, 1797, 113, 31, 3683, 14, 4173, 69, 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...
ASP.NET Accordian === So I'm amending someone else's code, and they've used a data-bound Accordion control. I need to disable the Accordion functionality so that the top item is expanded and the rest are just minimized and kept that way. Also is there any way to put a class on the final item? Thanks a lot in advance.
0
[ 2, 28, 306, 9, 2328, 12270, 806, 800, 3726, 3726, 86, 31, 22, 79, 19247, 68, 737, 962, 22, 18, 1797, 15, 17, 59, 22, 195, 147, 21, 1054, 8, 7410, 20753, 569, 9, 31, 376, 20, 1460, 579, 14, 20753, 18548, 86, 30, 14, 371, 9101...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Get the current working directory for cmd.exe === How can I retrieve the current working directory of cmd.exe? This seems possible. For example using ProcessExplorer, select CMD.exe, right click, properties, Image tab, "Current Directory" relects the directory set using the CD or CHDIR commands. I've looked at the .NET Process and ProcessStartInfo classes (ProcessStartInfo.WorkingDirectory always returns "") and can't seem to find a way of determining this. Nothing at [PInvoke](http://www.pinvoke.net/) stands out either. Any solution, WinAPI or .NET?
0
[ 2, 164, 14, 866, 638, 16755, 26, 2390, 43, 9, 1706, 62, 800, 3726, 3726, 184, 92, 31, 11917, 14, 866, 638, 16755, 16, 2390, 43, 9, 1706, 62, 60, 48, 2206, 938, 9, 26, 823, 568, 953, 6899, 7386, 106, 15, 5407, 2390, 43, 9, 17...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to do a HTTP HEAD request from the windows command line? === What's the best way (or tool) on the windows (vista) command line to get size and modfication time for a file on a remote webserver without downloading it?
0
[ 2, 184, 20, 107, 21, 7775, 157, 3772, 37, 14, 1936, 1202, 293, 60, 800, 3726, 3726, 98, 22, 18, 14, 246, 161, 13, 5, 248, 5607, 6, 27, 14, 1936, 13, 5, 22034, 6, 1202, 293, 20, 164, 1072, 17, 7226, 15261, 857, 85, 26, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
How to print debug messages in the Google Chrome Javasript Console === Does anyone know how to print debug messages in the Google Chrome Javascript Console? Please note that the Javascript Console is not the same as the Javascript Debugger, they have different syntaxes AFAIK, so the **print** command in Javascript Debugger will not work here. In the Javascript Console, `print()` will send the parameter to the printer. There is a related question already on SO, but it does not solve my problem: [http://stackoverflow.com/questions/45965/how-do-i-use-the-javascript-console-in-google-chrome][1] [1]: http://stackoverflow.com/questions/45965/how-do-i-use-the-javascript-console-in-google-chrome
0
[ 2, 184, 20, 4793, 121, 16254, 7561, 19, 14, 8144, 13, 12985, 8247, 18, 16477, 38, 8650, 800, 3726, 3726, 630, 1276, 143, 184, 20, 4793, 121, 16254, 7561, 19, 14, 8144, 13, 12985, 8247, 8741, 8650, 60, 2247, 1945, 30, 14, 8247, 874...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Asp.net MVC Friendly Url === How do I generate friendly URLs within the ASP.NET MVC Framework? For example, we've got a url that looks like this: http://site/catalogue/BrowseByStyleLevel/1 The 1 is Id of the study level (Higher in this case) to browse, but I'l like to reformat the URL in the same way StackOverflow does it. For example, this url 'http://stackoverflow.com/questions/119323/nested-for-loops-in-different-languages' is the same as entering 'http://stackoverflow.com/questions/119323/'. Thanks.
0
[ 2, 28, 306, 9, 2328, 307, 8990, 4753, 287, 6362, 800, 3726, 3726, 184, 107, 31, 7920, 4753, 13, 911, 7532, 363, 14, 28, 306, 9, 2328, 307, 8990, 6596, 60, 26, 823, 15, 95, 22, 195, 330, 21, 287, 6362, 30, 1879, 101, 48, 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...
Serializing and Deserializing Expression Trees in C# === Is there a way to Deserialize Expressions in C#, I would like to store Expressions in a Database and load them at run time.
0
[ 2, 5956, 3335, 17, 1746, 106, 2815, 3335, 1803, 1913, 19, 272, 5910, 800, 3726, 3726, 25, 80, 21, 161, 20, 1746, 106, 2815, 2952, 13832, 19, 272, 5910, 15, 31, 83, 101, 20, 1718, 13832, 19, 21, 6018, 17, 6305, 105, 35, 485, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Can SSMA for migrating Access databases to SQL 2005 be automated? === I need to migrate Access databases to SQL 2005. Since this needs to be done from within a setup so that a customers' installation is transparently migrated to SQL 2005, I wonder if it is possible to automate the SSMA toolkit from Microsoft.
0
[ 2, 92, 13, 18, 18, 540, 26, 28749, 1381, 6018, 18, 20, 4444, 255, 812, 44, 14904, 60, 800, 3726, 3726, 31, 376, 20, 22985, 1381, 6018, 18, 20, 4444, 255, 812, 9, 179, 48, 2274, 20, 44, 677, 37, 363, 21, 18161, 86, 30, 21, 52...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Get all the supported Cultures from a satellite assembly === I am using a satellite assembly to hold all the localization resources in a C# application. What I need to do is create a menu in the GUI with all the available languages that exists for the application. Is there any way to get information dynamically?
0
[ 2, 164, 65, 14, 1827, 9064, 37, 21, 4958, 1475, 800, 3726, 3726, 31, 589, 568, 21, 4958, 1475, 20, 1027, 65, 14, 375, 1829, 2566, 19, 21, 272, 5910, 3010, 9, 98, 31, 376, 20, 107, 25, 1600, 21, 11379, 19, 14, 9457, 29, 65, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I get the contents of an XML element using a System.Xml.XmlSerializer? === I have an XML reader on this XML string: <?xml version="1.0" encoding="UTF-8" ?> <story id="1224488641nL21535800" date="20 Oct 2008" time="07:44"> <title>PRESS DIGEST - PORTUGAL - Oct 20</title> <text> <p> LISBON, Oct 20 (Reuters) - Following are some of the main stories in Portuguese newspapers on Monday. Reuters has not verified these stories and does not vouch for their accuracy. </p> <p>More HTML stuff here</p> </text> </story> I created an XSD and a corresponding class for deserialization. [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)] public class story { [System.Xml.Serialization.XmlAttributeAttribute()] public string id; [System.Xml.Serialization.XmlAttributeAttribute()] public string date; [System.Xml.Serialization.XmlAttributeAttribute()] public string time; public string title; public string text; } I then create an instance of the class using the `Deserialize` method of XmlSerializer. XmlSerializer ser = new XmlSerializer(typeof(story)); return (story)ser.Deserialize(xr); Now, the `text` member of `story` is always null. How do I change my `story` class so that the Xml is parsed as expected?
0
[ 2, 184, 107, 31, 164, 14, 8478, 16, 40, 23504, 4520, 568, 21, 329, 9, 396, 8184, 9, 396, 8184, 4104, 2815, 11907, 60, 800, 3726, 3726, 31, 57, 40, 23504, 7765, 27, 48, 23504, 3724, 45, 13, 1, 60, 396, 8184, 615, 3726, 7, 165, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
CSharp little endian or big endian? === In the documentation of hardware that allows us to control it via UDP/IP, I found the following fragment: > In this communication protocol, DWORD is a 4 bytes data, WORD is a 2 bytes data, > BYTE is a single byte data. The storage format is little endian, namely 4 bytes (32bits) data is stored as: d7-d0, d15-d8, d23-d16, d31-d24; double bytes (16bits) data is stored as: d7-d0 , d15-d8. I am wondering how this translates to CSharp? Do I have to convert stuff before sending it over? For example, if I want to send over a 32 bit integer, or a 4 character string?
0
[ 2, 272, 23646, 265, 241, 806, 54, 580, 241, 806, 60, 800, 3726, 3726, 19, 14, 13945, 16, 7610, 30, 2965, 182, 20, 569, 32, 1197, 287, 7431, 118, 4307, 15, 31, 216, 14, 249, 14847, 45, 13, 1, 19, 48, 3291, 8494, 15, 13, 43, 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...
Searching CStrings in C++ === I was wondering if there is a native C++ (or STL/Boost) function which will search a CString for a specified string? e.g. CString strIn = "Test number 1"; CString strQuery = "num"; bool fRet = SomeFn(strIn, StrQuery); if( fRet == true ) { // Ok strQuery was found in strIn ... I have found a small number of functions like CompareNoCase IndexOf etc... but so far they don't really do what I want them to do (or use CLR/.Net) Thanks!
0
[ 2, 5792, 272, 11130, 18, 19, 272, 20512, 800, 3726, 3726, 31, 23, 5712, 100, 80, 25, 21, 1275, 272, 20512, 13, 5, 248, 354, 255, 118, 10858, 384, 6, 1990, 56, 129, 2122, 21, 272, 11130, 26, 21, 9931, 3724, 60, 13, 62, 9, 263, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Rolling back in Git === We're using Github. I have committed, and pushed, several patches: A1-->A2-->A3-->A4 (HEAD) Everyone's pulled these changesets into their local copy. Now we want to "roll back" to A2, and continue developing from there - essentially throwing away A3 and A4. What's the best way to do this?
0
[ 2, 3929, 97, 19, 13, 10404, 800, 3726, 3726, 95, 22, 99, 568, 13, 10404, 20926, 9, 31, 57, 4164, 15, 17, 2007, 15, 238, 16359, 45, 21, 165, 8, 8, 1, 58, 135, 8, 8, 1, 58, 240, 8, 8, 1, 58, 300, 13, 5, 1743, 6, 1266, 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...
fluent interfaces in C# === I have a question with fluent interfaces. We have some objects that are used as parameter objects for a SQL interface, here's an example: using (DatabaseCommand cmd = conn.CreateCommand( "SELECT A, B, C FROM tablename WHERE ID = :ID", SqlParameter.Int32(":ID", 1234))) { ... } For some of these parameters, I'd like to enable some specialized options, but instead of adding more properties to the Int32 method (which is just one of many), I thought I'd look into fluent interfaces. Here's an example where I've added what I am looking into: using (DatabaseCommand cmd = conn.CreateCommand( "SELECT A, B, C FROM tablename WHERE ID = :ID", SqlParameter.Int32(":ID", 1234).With(SqlParameterOption .Substitute .Precision(15) ))) { ... } I know these two options doesn't make sense for this type of parameter, but that's not what the question is about. In the above case, Substitute would have to be a static property (or method if I just add some parenthesis) on the SqlParameterOption class, whereas Precision would have to be an instance method. What if I reorder them? SqlParameter.Int32(":ID", 1234).With(SqlParameterOption .Precision(15) .Substitute Then Substitute would have to be the instance property and Precision the static method. This won't compile of course, I can't have both a static and a non-static property or method with the same name. How do I do this? Am I completely on the wrong track here? Advice and some good url's would be most welcome, I've scoured over many examples, but they tend to show examples like this: order .AddFreeShipping() .IncludeItem(15) .SuppressTax(); (lifted from [this page](http://blog.troyd.net/PermaLink,guid,5cdd4862-857a-488d-a577-c6d21b548f19.aspx))
0
[ 2, 19252, 6573, 18, 19, 272, 5910, 800, 3726, 3726, 31, 57, 21, 1301, 29, 19252, 6573, 18, 9, 95, 57, 109, 3916, 30, 50, 147, 28, 18906, 3916, 26, 21, 4444, 255, 6573, 15, 235, 22, 18, 40, 823, 45, 568, 13, 5, 18768, 8436, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the difference between currying and partial application. === I'm not exactly sure how to word this question. I learnt what currying was in the first year of university, and have been using it where applicable ever since. However, I quite often see on the Internet various complaints that other peoples examples of currying are not currying, but are actually just partial application. I've not found a decent explanation of what partial application is, or how it differs from currying. There seems to be a general confusion, with equivalent examples being described as currying in some places, and partial application in others. Could someone provide me with a definition of both terms, and details of how they differ?
0
[ 2, 98, 25, 14, 2841, 128, 18239, 68, 17, 7284, 3010, 9, 800, 3726, 3726, 31, 22, 79, 52, 1890, 562, 184, 20, 833, 48, 1301, 9, 31, 2484, 38, 98, 18239, 68, 23, 19, 14, 64, 159, 16, 155, 15, 17, 57, 74, 568, 32, 113, 14535,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
A keyboard shortcut in VS2005/8 for "Exit Current Method" === When debugging, a trick I do whenever I want to exit the current method without running of its any statements, I move the current execution pointer to the end of the method, then click F10/11. Is there a keyboard shortcut (or can I program one) to accomplish this? (I don't mean shift-F11 (step out) - that does run all the code until the method's end, which I do not want).
0
[ 2, 21, 8896, 502, 4118, 19, 4611, 2835, 21701, 26, 13, 7, 1706, 242, 866, 2109, 7, 800, 3726, 3726, 76, 121, 16254, 2762, 15, 21, 5514, 31, 107, 6634, 31, 259, 20, 4350, 14, 866, 2109, 366, 946, 16, 82, 186, 9015, 15, 31, 780,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a performance diff between javac debug on and off? === If I switch on the generating of debug info with Javac then the class files are 20-25% larger. Has this any performance effects on running the Java program? If yes on which conditions and how many. I expect a little impact on loading the classes because the files are larger but this should be minimal.
0
[ 2, 25, 80, 21, 956, 20811, 128, 8247, 150, 121, 16254, 27, 17, 168, 60, 800, 3726, 3726, 100, 31, 5521, 27, 14, 13500, 16, 121, 16254, 15404, 29, 8247, 150, 94, 14, 718, 6488, 50, 434, 8, 135, 1933, 1662, 9, 63, 48, 186, 956, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MFC: Changing the colour of CEdit === Guys, can someone give me a brief run through of how to change the background colour of a CEdit control at runtime? I want to be able to change the background to red if the field is zero length and the normal white otherwise.
0
[ 2, 307, 7061, 45, 4226, 14, 4609, 16, 13, 11014, 242, 800, 3726, 3726, 2776, 15, 92, 737, 590, 55, 21, 2698, 485, 120, 16, 184, 20, 753, 14, 2395, 4609, 16, 21, 13, 11014, 242, 569, 35, 485, 891, 60, 31, 259, 20, 44, 777, 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...
When using click-once deployment, is their a 'publish date' property available. === I'm wanting to show this date on the About dialog.
0
[ 2, 76, 568, 10840, 8, 13120, 10475, 15, 25, 66, 21, 13, 22, 17848, 18491, 1231, 22, 1354, 904, 9, 800, 3726, 3726, 31, 22, 79, 4638, 20, 298, 48, 1231, 27, 14, 88, 28223, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Issue with IE Selection and Range === I'm trying to get the start element and the end element of a selection and the offset of the selection in each, i do this in firefox as follows: var delselection = window.getSelection(); var startOffset = delselection.anchorOffset; var endOffset = delselection.focusOffset; var startNode = delselection.anchorNode.parentNode; var endNode = delselection.focusNode.parentNode; However i have no idea how to do this in IE6, anyone able to point me in the right direction?
0
[ 2, 1513, 29, 13, 660, 3155, 17, 978, 800, 3726, 3726, 31, 22, 79, 749, 20, 164, 14, 799, 4520, 17, 14, 241, 4520, 16, 21, 3155, 17, 14, 17493, 16, 14, 3155, 19, 206, 15, 31, 107, 48, 19, 535, 18219, 28, 2415, 45, 4033, 1506,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
mod_php5 uses temporary files for parsing? === I've noticed that most of my more annoying errors generate parse errors similar to this one in my logs: PHP Parse error: syntax error, unexpected T_FUNCTION in d:\docume~1\***\locals~1\temp\tmpwvpo4p on line 5. This is annoying to say the least, because I have not a clue what exactly that is supposed to be, and like a good program, PHP cleans up the temporary files after itself properly. Anyone have any ideas what is happening here, or how I can figure out what's actually going on?
2
[ 2, 7226, 1, 26120, 264, 2027, 4700, 6488, 26, 2017, 18, 68, 60, 800, 3726, 3726, 31, 22, 195, 2711, 30, 127, 16, 51, 91, 17610, 11908, 7920, 2017, 870, 11908, 835, 20, 48, 53, 19, 51, 18893, 45, 13, 26120, 2017, 870, 7019, 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 login systems, what is good? === I am starting a a new web development project and I am tired of coding login systems. This is the kind of thing that must have been done dozens of times before. I really want to use someone else's code, because it is easier than rolling my own, and it will likely be better. I prefer open source for all the usual reasons, but mostly I want the ability to change it if I don't like something and bugfixes are easier than designing a whole thing. I just need a login system, something that manages the username/password stuff and user registration. I don't need a whole CMS. I am already looking at openid.net, but What open source login systems have you worked with? What other login systems have you heard of?
0
[ 2, 368, 1267, 6738, 108, 1242, 15, 98, 25, 254, 60, 800, 3726, 3726, 31, 589, 1422, 21, 21, 78, 2741, 522, 669, 17, 31, 589, 4117, 16, 13, 15458, 6738, 108, 1242, 9, 48, 25, 14, 825, 16, 584, 30, 491, 57, 74, 677, 10273, 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...
Tools for SVN Merging === SVN merging is very time consuming (especially on large code bases) and error prone. Eclipse and Netbeans plugins don't serve me very well. At the moment I'm using a combination of manual "svn merge" and the graphical diff [Meld][1]. Are there better alternatives (non-win32)? [1]: http://meld.sourceforge.net/
0
[ 2, 4672, 26, 13, 18, 16578, 18842, 800, 3726, 3726, 13, 18, 16578, 18842, 25, 253, 85, 13, 17601, 13, 5, 12183, 27, 370, 1797, 8426, 6, 17, 7019, 15957, 9, 11652, 17, 4275, 863, 5950, 10922, 108, 18, 221, 22, 38, 1884, 55, 253, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Visual Studio debugger tips&tricks (for C/C++ projects) === I'm interested in tips and tricks regarding debugging a C/C++ project in Visual Studio's debugger. I recently found out that if you have a pointer to a certain data type, let's say char* ptr, then you can see it as an array in the watch window using a syntax such as: <pre> ptr,10 </pre> This will display the first 10 elements from the ptr address, in the same way as it would be displayed if the definition would be: <pre> char ptr[10]; </pre> What other tips and tricks do you know about Visual Studio debugger? PS: I hope this subject wasn't already discussed. Should you find a similar post, please let me know.
0
[ 2, 3458, 1120, 121, 2345, 11356, 11034, 1569, 15294, 18, 13, 5, 1106, 272, 118, 150, 20512, 2314, 6, 800, 3726, 3726, 31, 22, 79, 3158, 19, 11034, 17, 13747, 3467, 121, 16254, 2762, 21, 272, 118, 150, 20512, 669, 19, 3458, 1120, 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...
HttpContext.Current.Session is null when routing requests === Without routing, `HttpContext.Current.Session` is there so I know that the `StateServer` is working. When I route my requests, `HttpContext.Current.Session` is `null` in the routed page. I am using .NET 3.5 sp1 on IIS 7.0, without the MVC previews. It appears that `AcquireRequestState` is never fired when using the routes and so the session variable isn't instantiated/filled. When I try to access the Session variables, I get this error: `base {System.Runtime.InteropServices.ExternalException} = {"Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>.` While debugging, I also get the error that the `HttpContext.Current.Session` is not accessible in that context. -- My `web.config` looks like this: <configuration> ... <system.web> <pages enableSessionState="true"> <controls> ... </controls> </pages> ... </system.web> <sessionState cookieless="AutoDetect" mode="StateServer" timeout="22" /> ... </configuration> Here's the IRouteHandler implementation: public class WebPageRouteHandler : IRouteHandler, IRequiresSessionState { public string m_VirtualPath { get; private set; } public bool m_CheckPhysicalUrlAccess { get; set; } public WebPageRouteHandler(string virtualPath) : this(virtualPath, false) { } public WebPageRouteHandler(string virtualPath, bool checkPhysicalUrlAccess) { m_VirtualPath = virtualPath; m_CheckPhysicalUrlAccess = checkPhysicalUrlAccess; } public IHttpHandler GetHttpHandler(RequestContext requestContext) { if (m_CheckPhysicalUrlAccess && !UrlAuthorizationModule.CheckUrlAccessForPrincipal( m_VirtualPath, requestContext.HttpContext.User, requestContext.HttpContext.Request.HttpMethod)) { throw new SecurityException(); } string var = String.Empty; foreach (var value in requestContext.RouteData.Values) { requestContext.HttpContext.Items[value.Key] = value.Value; } Page page = BuildManager.CreateInstanceFromVirtualPath( m_VirtualPath, typeof(Page)) as Page;// IHttpHandler; if (page != null) { return page; } return page; } } I've also tried to put `EnableSessionState="True"` on the top of the aspx pages but still, nothing. Any insights? Should I write another `HttpRequestHandler` that implements `IRequiresSessionState`? Thanks.
0
[ 2, 7775, 1126, 11969, 9, 17657, 9, 7202, 5991, 25, 16203, 76, 19880, 12279, 800, 3726, 3726, 366, 19880, 15, 13, 1, 21127, 1126, 11969, 9, 17657, 9, 7202, 5991, 1, 25, 80, 86, 31, 143, 30, 14, 13, 1, 3859, 10321, 106, 1, 25, 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...
Random Gaussian Variables === does someone of you know if there is a class in the standard library of .net, that gives me the functionality to create random variables that follow a gaussian distribution? Greets Sebastian
0
[ 2, 5477, 6540, 18, 10760, 12157, 800, 3726, 3726, 630, 737, 16, 42, 143, 100, 80, 25, 21, 718, 19, 14, 1236, 1248, 16, 13, 9, 2328, 15, 30, 2352, 55, 14, 18548, 20, 1600, 5477, 12157, 30, 1740, 21, 6540, 18, 10760, 2523, 60, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Get the application's path === I've recently searched how I could get the application's directory in Java. I've finally found the answer but I've needed surprisingly long because searching for such a generic term isn't easy. I think it would be a good idea to compile a list of how to achieve this in multiple languages. Feel free to up/downvote if you (don't) like the idea and **please contribute** if you like it.
0
[ 2, 164, 14, 3010, 22, 18, 2013, 800, 3726, 3726, 31, 22, 195, 1989, 9036, 184, 31, 110, 164, 14, 3010, 22, 18, 16755, 19, 8247, 9, 31, 22, 195, 722, 216, 14, 1623, 47, 31, 22, 195, 851, 11701, 175, 185, 5792, 26, 145, 21, 12...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[css] Overflow to left instead of right === I have a div with overflow:hidden, inside which I show a phone number as the user types it. The text inside the div is aligned to right and incoming characters are added to right as the text grows to left. But once the text is big enough not to fit in the div, last characters of the number is automatically cropped and the user cannot see the new characters she types. What I want to do is crop the left characters, like the div is showing the rightmost of its content and overflowing to the left side. How can I create this effect? ![overflowing phone number to left][1] [1]: http://img161.imageshack.us/img161/2351/phonenumfx6.jpg
0
[ 2, 636, 6824, 18, 500, 20285, 20, 225, 700, 16, 193, 800, 3726, 3726, 31, 57, 21, 13, 12916, 29, 20285, 45, 1822, 43, 817, 15, 572, 56, 31, 298, 21, 1132, 234, 28, 14, 4155, 2551, 32, 9, 14, 1854, 572, 14, 13, 12916, 25, 13,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JAXB - influencing generated typesafe enum class and members === When compiling the following simpleType with JAXB... <xs:simpleType name="test"> <xs:annotation> <xs:appinfo> <jaxb:typesafeEnumClass/> </xs:appinfo> </xs:annotation> <xs:restriction base="xs:string"> <xs:enumeration value="4"> <xs:annotation> <xs:appinfo> <jaxb:typesafeEnumMember name="FOUR"/> </xs:appinfo> </xs:annotation> </xs:enumeration> <xs:enumeration value="6"> <xs:annotation> <xs:appinfo> <jaxb:typesafeEnumMember name="SIX"/> </xs:appinfo> </xs:annotation> </xs:enumeration> </xs:restriction> </xs:simpleType> I end up with the following enum in Java (import statements and comments removed) @XmlEnum public enum Test { @XmlEnumValue("4") FOUR("4"), @XmlEnumValue("6") SIX("6"); private final String value; Test(String v) { value = v; } public String value() { return value; } public static Test fromValue(String v) { for (Test c: Test.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v.toString()); } } This is all hunky dory, except for the `public String value()` method. I would expect the method to be called `public String getValue()`. That way I can easily use it in a JSP-page using EL. Now I have to work my way around it. Does anybody have any experience in further tweaking the XJC compilation to a more useful enumeration?
0
[ 2, 11712, 220, 13, 8, 27023, 6756, 1001, 18166, 1957, 723, 718, 17, 443, 800, 3726, 3726, 76, 24378, 14, 249, 1935, 4474, 29, 11712, 220, 9, 9, 9, 13, 1, 396, 18, 45, 24629, 4474, 204, 3726, 7, 10543, 7, 1, 13, 1, 396, 18, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Simple C++ MIME parser === I want to digest a multipart response in C++ sent back from a PHP script. Anyone know of a very lightweight MIME parser which can do this for me? Regards Robert
0
[ 2, 1935, 272, 20512, 26193, 2017, 4104, 800, 3726, 3726, 31, 259, 20, 14779, 21, 1889, 3091, 1627, 19, 272, 20512, 795, 97, 37, 21, 13, 26120, 3884, 9, 1276, 143, 16, 21, 253, 13613, 26193, 2017, 4104, 56, 92, 107, 48, 26, 55, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to avoid File Blocking === We are monitoring the progress of a customized app (whose source is not under our control) which writes to a XML Manifest. At times , the application is stuck due to unable to write into the Manifest file. Although we are covering our traces by explicitly closing the file handle suing File.Close and also creating the file variables in Using Blocks. But some how it keep happening. ( Our application is multithreaded and at most three threads might be accessing the file. ) Another interesting thing is that their app updates this manifest at three different events(add items, deleting tiems, completion of items) but we only suffering because of one event (complettion of items). My code is listed here using (var st = new FileStream(MenifestPath, FileMode.Open, FileAccess.Read)) { using (TextReader r = new StreamReader(st)) { var xml = r.ReadToEnd(); r.Close(); st.Close(); ................ Rest of our operations } }
0
[ 2, 184, 20, 2658, 3893, 11828, 800, 3726, 3726, 95, 50, 8984, 14, 3455, 16, 21, 28779, 4865, 13, 5, 21409, 1267, 25, 52, 131, 318, 569, 6, 56, 6215, 20, 21, 23504, 13160, 9, 35, 436, 13, 15, 14, 3010, 25, 4549, 397, 20, 2343, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ORM support for compound primary keys === I've read that compound primary keys will [confuse the hell out of typical ORM code generators][1]. Which ORMs work best with compound PKs and which to avoid? (I've a particular interest in .NET) [1]: http://stackoverflow.com/questions/107404/what-are-the-down-sides-of-using-a-compositecompound-primary-key#108337
0
[ 2, 54, 79, 555, 26, 6089, 1256, 5534, 800, 3726, 3726, 31, 22, 195, 1302, 30, 6089, 1256, 5534, 129, 636, 1126, 13072, 14, 1094, 70, 16, 3874, 54, 79, 1797, 20495, 500, 2558, 165, 500, 9, 56, 54, 79, 18, 170, 246, 29, 6089, 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...
C# and VB.NET operator precedence === Looking at the C# and VB.NET language specs I think it says that the logical Xor/Or/And operations have different precendence in the two languages. Am I reading that right? I was expecting them to have the same precendence. For example in C# 100 | 200 ^ 300 & 400 is the same as... 100 | (200 ^ (300 & 400)) But the equivalent VB.NET 100 Or 200 Xor 300 And 400 as far as I can tell is the same as... (100 Or 200) Xor (300 And 400) Am I reading that right?
0
[ 2, 272, 5910, 17, 13, 20468, 9, 2328, 6022, 24720, 800, 3726, 3726, 699, 35, 14, 272, 5910, 17, 13, 20468, 9, 2328, 816, 12737, 18, 31, 277, 32, 898, 30, 14, 11545, 993, 248, 118, 248, 118, 290, 1311, 57, 421, 782, 8172, 43, 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...
Logging PrepardStatements in Java === One thing that always been a pain is to log SQL (JDBC) errors when you have a PrepardStatement instead of the query itself. You always end up with messages like: 2008-10-20 09:19:48,114 ERROR LoggingQueueConsumer-52 [Logger.error:168] Error executing SQL: [INSERT INTO private_rooms_bans (room_id, name, user_id, msisdn, nickname) VALUES (?, ?, ?, ?, ?) ON DUPLICATE KEY UPDATE room_id = ?, name = ?, user_id = ?, msisdn = ?, nickname = ?] Of course I could write a helper method for retrieving the values and parsing/substitute the question marks with real values (and probably will go down that path if I don't get an outcome of this question), but I just wanted to know if this problem was resolved before by someone else and/or if is there any generic logging helper that would do that automagically for me. Thanks!
0
[ 2, 13, 13919, 15884, 1514, 3859, 6601, 19, 8247, 800, 3726, 3726, 53, 584, 30, 550, 74, 21, 1257, 25, 20, 6738, 4444, 255, 13, 5, 728, 43, 7229, 6, 11908, 76, 42, 57, 21, 15884, 1514, 3859, 1130, 700, 16, 14, 25597, 1145, 9, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How cache memory works? === Today when I was in computer organization class, teacher talked about something interesting to me. When it comes to talk about Why cache memory works, he said that: for (i=0; i<M; i++) for(j=0; j<N; j++) X[i][j] = X[i][j] + K; //X is double(8 bytes) it is not good to change the first line with the second. What is your opinions on this? And why it is like that?
0
[ 2, 184, 16522, 1912, 693, 60, 800, 3726, 3726, 786, 76, 31, 23, 19, 1428, 1165, 718, 15, 2197, 4599, 88, 301, 4883, 20, 55, 9, 76, 32, 1624, 20, 930, 88, 483, 16522, 1912, 693, 15, 24, 87, 30, 45, 26, 13, 5, 49, 3726, 387, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Xaml not WPF === I am interested in using Xaml with expression blend for creating user interfaces in an application. However, because of the limitations of the target architecture, I cannot use WPF or C#. So, what I am interested in is in any examples / existing projects or advice from anyone who has experiance of this technology on the use of Xaml in it's "Pure" form as a specification language not tied to WPF. Specific questions: 1) Is it possible to use Blend + Xaml without the WPF elements, or without C# backing classes? 2) Are there any other implementations of Xaml parsers etc. which use different architectures, and can they work with blend or similar tools. 3) Are there alternative editor / designer tools which can help in this situation? I am aware of the MyXaml and MycroXaml projects, and have found a lot of resources on the web about Xaml, but 99% of it relates directly to WPF. This is fine for understanding the concepts of Xaml, but doesn't help with the implimentation I need. Many thanks!
0
[ 2, 13, 6791, 8184, 52, 619, 7721, 800, 3726, 3726, 31, 589, 3158, 19, 568, 13, 6791, 8184, 29, 1803, 11138, 26, 2936, 4155, 6573, 18, 19, 40, 3010, 9, 207, 15, 185, 16, 14, 14070, 16, 14, 2935, 2607, 15, 31, 1967, 275, 619, 77...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dynamically assigning master pages using MVC === When using webforms the appropriate place to assign master pages to a page dynamically seems to be the pages PreInit event: this.Master.MasterPageFile = "~/leaf.Master" If nessasary, master pages in a hierarchy of nested master pages may be set here too: this.Master.MasterPageFile = "~/leaf.Master" this.Master.Master.MasterPageFile = "~/root.Master" Using the MVC framework you can set a single master page name dynamically using the controllers View method by passing the *masterName*, but how do you set other master pages higher up in the hierarchy?
0
[ 2, 7782, 1326, 13952, 68, 1129, 4434, 568, 307, 8990, 800, 3726, 3726, 76, 568, 2741, 4190, 18, 14, 4593, 209, 20, 13952, 1129, 4434, 20, 21, 2478, 7782, 1326, 2206, 20, 44, 14, 4434, 782, 108, 242, 807, 45, 48, 9, 4594, 9, 4594...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 was the strangest coding standard rule that you were forced to follow? === What was the strangest coding standard rule that you were ever forced to follow? And by strangest I mean funniest, or worst, or just plain odd. Please mention which language in each answer and team size.
4
[ 2, 98, 23, 14, 2578, 384, 13, 15458, 1236, 1828, 30, 42, 46, 1292, 20, 1740, 60, 800, 3726, 3726, 98, 23, 14, 2578, 384, 13, 15458, 1236, 1828, 30, 42, 46, 462, 1292, 20, 1740, 60, 17, 34, 2578, 384, 31, 884, 2414, 17065, 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...
C# BinaryFormatter - How can I find out the class of the binary data? === I want to deserialize an object but don't know the class up front. So, consider the following code... > IFormatter formatter = new > BinaryFormatter(); Stream stream = new > FileStream("MyFile.bin", > FileMode.Open, FileAccess.Read, > FileShare.Read); MyObject obj = > (MyObject) > formatter.Deserialize(stream); What could I do if I don't know the class up front? Say, for example "MyFile.bin" was a MyObject or a MyFoo. How do I determine which object to instantiate? Something like... > if (magic happens here == > typeof(MyObject)) > MyObject obj = (MyObject) formatter.Deserialize(stream); > else > if (more magic happens here == typeof(MyFoo)) > MyFoo foo = (MyFoo) > formatter.Deserialize(stream);
0
[ 2, 272, 5910, 14171, 23588, 815, 13, 8, 184, 92, 31, 477, 70, 14, 718, 16, 14, 14171, 1054, 60, 800, 3726, 3726, 31, 259, 20, 1746, 106, 2815, 2952, 40, 3095, 47, 221, 22, 38, 143, 14, 718, 71, 431, 9, 86, 15, 3563, 14, 249,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Wicket + Javascript === I'm wrapping up a Javascript widget in a Wicket component. I want to let the JS side talk to the component. What I've got so far: Component in question goes like talker = new GridAjaxBehavior(); this.add(talker); in constructor and then, later on, puts something like "var MyGridTalker = new talker(" + this.talker.getCallbackUrl(); into the JS. where GridAjaxBehavior extends AbstractDefaultAjaxBehavior. I want GridAjaxBehavior to spit back some XML when the JS calls it. Am I doing this the right way? What should GridAjaxBehaviour do to spit back the XML? Thanks
0
[ 2, 14414, 2754, 8247, 8741, 800, 3726, 3726, 31, 22, 79, 13437, 71, 21, 8247, 8741, 4807, 43, 3060, 19, 21, 14414, 5912, 9, 31, 259, 20, 408, 14, 487, 18, 270, 930, 20, 14, 5912, 9, 98, 31, 22, 195, 330, 86, 463, 45, 5912, 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...
Which built-in .net exceptions can I throw from my application? === If I need to throw an exception from within my application which of the built-in .net exception classes can I use? Are they all fair-game? When should I derive my own?
0
[ 2, 56, 392, 8, 108, 13, 9, 2328, 13392, 92, 31, 3814, 37, 51, 3010, 60, 800, 3726, 3726, 100, 31, 376, 20, 3814, 40, 5391, 37, 363, 51, 3010, 56, 16, 14, 392, 8, 108, 13, 9, 2328, 5391, 2684, 92, 31, 275, 60, 50, 59, 65, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Embedding extra styles with noscript === I have an XHTML strict page that has an invisible div that is controlled by Javascript. The div is set to transparent and visible by the script and a mouseover event to make the div opaque on hover. When someone using a browser (or firefox with noscript) without javascript the div simply remains invisible. The problem with this is that I do not want the content to be inaccessible. I also do not want to leave the div visible then use the script to make it transparent as the div is located at the bottom of the document and it causes a noticeable flicker whenever a page loads. I have tried using noscript tags to embed an additional style sheet that is only loaded for people without the luxury of Javascript but this fails the XHTML strict validation. Is there any other way to include extra styling information inside a noscript block that is XHTML valid?
0
[ 2, 11911, 69, 3258, 2230, 6443, 29, 90, 8741, 800, 3726, 3726, 31, 57, 40, 993, 15895, 8170, 2478, 30, 63, 40, 8874, 13, 12916, 30, 25, 3959, 34, 8247, 8741, 9, 14, 13, 12916, 25, 309, 20, 14862, 17, 4560, 34, 14, 3884, 17, 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...
Combining php arrays === I have the following arrays in PHP (okay they are a bit bigger but the idea is what counts). $array1 = array(1 => 'a', 2 => 'b'); $array2 = array(3 => 'c', 4 => 'd'); Essentially I want to combine the two arrays as if it were something like this $array3 = array(1 => 'a', 2 => 'b', 3 => 'c', 4 => 'd'); Thanks
0
[ 2, 12803, 13, 26120, 7718, 18, 800, 3726, 3726, 31, 57, 14, 249, 7718, 18, 19, 13, 26120, 13, 5, 4779, 59, 50, 21, 1142, 6197, 47, 14, 882, 25, 98, 9927, 6, 9, 5579, 8576, 93, 165, 800, 7718, 5, 165, 800, 1, 13, 22, 58, 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 Rhino Mocks Write My Expect Statements For Me? === I have a set of Visual Studio Team System unit (integration really) tests that talk to a remote database. The tests are getting too slow and unwieldy. I'd like to replace the entire set of tests with mocked out versions. The problem is it's painful to write all the expect statements that mimic what an entire database does. Does anyone know of a tool or add-on that will run an existing test, figure out what the non-mocked version actually returns and write out the Expect.Call's to duplicate the functionality? I know this is a long shot, but I feel like it should be possible.
0
[ 2, 92, 18642, 10506, 18, 2757, 51, 4186, 9015, 26, 55, 60, 800, 3726, 3726, 31, 57, 21, 309, 16, 3458, 1120, 173, 329, 1237, 13, 5, 12370, 857, 510, 6, 4894, 30, 930, 20, 21, 5388, 6018, 9, 14, 4894, 50, 1017, 266, 2276, 17, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I URL encode a string in Excel VBA? === Is there a built-in way to URL encode a string in Excel VBA or do I need to hand roll this functionality?
0
[ 2, 184, 92, 31, 287, 6362, 20523, 21, 3724, 19, 20700, 566, 969, 60, 800, 3726, 3726, 25, 80, 21, 392, 8, 108, 161, 20, 287, 6362, 20523, 21, 3724, 19, 20700, 566, 969, 54, 107, 31, 376, 20, 224, 3001, 48, 18548, 60, 3, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
how to change character typed in Firefox === I need to change in a text input the character '.' in ',' while typing. In IE I change the keyCode event property in the keypress event, like this document.getElementById('mytext').onkeypress = function (evt) { var e = evt || window.event; if (e.keyCode && e.keyCode==46) e.keyCode = 44; else if (e.which && e.which==46) { e.which = 44; } }; but it seemes that in Firefox it's impossible to change characters typed in key events. Any suggestions?
0
[ 2, 184, 20, 753, 925, 1001, 43, 19, 535, 18219, 800, 3726, 3726, 31, 376, 20, 753, 19, 21, 1854, 6367, 14, 925, 13, 22, 9, 22, 19, 13, 22, 15, 22, 133, 25266, 9, 19, 13, 660, 31, 753, 14, 1246, 9375, 807, 1354, 19, 14, 124...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Visual C++ 2008 'Release' build contains debug information === I've noticed that when generating a new C++ project using MS Visual Studio 2008, the **Release** build contains debugging symbols - specifically the following settings are enabled: - The C++/General/Debug Information Format is set to **Program Database**. - The Linker/Debugging/Generate Debug Info setting is set to **Yes**. I have never noticed this on earlier releases of Visual Studio. So, other than generating a larger EXE file, is there any downside to leaving these settings enabled?
0
[ 2, 3458, 272, 20512, 570, 13, 22, 15202, 22, 1895, 1588, 121, 16254, 676, 800, 3726, 3726, 31, 22, 195, 2711, 30, 76, 13500, 21, 78, 272, 20512, 669, 568, 4235, 3458, 1120, 570, 15, 14, 13, 1409, 15202, 1409, 1895, 1588, 121, 1625...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Ruby support verbatim strings? === Is there support in Ruby for (for lack of a better word) non-escaped (verbatim) strings? Like in C#: @"c:\Program Files\" ...or in Tcl: {c:\Program Files\}
0
[ 2, 630, 10811, 555, 9504, 5166, 79, 7887, 60, 800, 3726, 3726, 25, 80, 555, 19, 10811, 26, 13, 5, 1106, 1792, 16, 21, 574, 833, 6, 538, 8, 13944, 3631, 13, 5, 2304, 4900, 1660, 6, 7887, 60, 101, 19, 272, 5910, 45, 13, 1, 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...
Is there a way to place a pin into the google maps iphone app using openURL? === I would like to create an iPhone app that can open the google maps app and place a pin on the map. I have the exact location of the pin, specified by its longitute and latitude. I also have a name for the pin e.g. 'location 1' that should be displayed along with the pin. I know that UIApplication:openURL can be used for this but I don't know the exact url format. So, is there a way to do what I described above? If, yes, what is the correct url format?
0
[ 2, 25, 80, 21, 161, 20, 209, 21, 3459, 77, 14, 8144, 6867, 21024, 4865, 568, 368, 911, 255, 60, 800, 3726, 3726, 31, 83, 101, 20, 1600, 40, 21024, 4865, 30, 92, 368, 14, 8144, 6867, 4865, 17, 209, 21, 3459, 27, 14, 2942, 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 "Pastie" alternatives are there? === I want to install a "pastie" in our local intranet. What are the alternatives to **[RaPaste][1]** and [pastie.org][2]? (the latter can't even be installed locally b/c it doesn't seem to be open source?) [1]: http://p.ramaze.net [2]: http://pastie.org
0
[ 2, 98, 13, 7, 19802, 660, 7, 2676, 18, 50, 80, 60, 800, 3726, 3726, 31, 259, 20, 16146, 21, 13, 7, 19802, 660, 7, 19, 318, 375, 14369, 2328, 9, 98, 50, 14, 2676, 18, 20, 13, 1409, 2558, 525, 19802, 62, 500, 2558, 165, 500, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Keeping shell configurations in sync across multiple machines === I'm a pretty active command line user and I have shell accounts all over the place. MacBooks, Linux desktop machines, Linux servers, Cygwin on XP, you name it. How can I keep my shell configuration (`.bashrc`, `.vimrc` etc.) in sync across all these machines using the limited tools available across all platforms? I have been using `rsync` in a pretty limited manner that involves manually copying some files over when I need them, but I want a standard way for setting up the same basic shell environment across all my machines. Tell me your shell account management strategy.
0
[ 2, 2882, 3593, 8091, 18, 19, 6063, 150, 464, 1886, 6035, 800, 3726, 3726, 31, 22, 79, 21, 1772, 1348, 1202, 293, 4155, 17, 31, 57, 3593, 5310, 65, 84, 14, 209, 9, 1572, 13828, 15, 13024, 17404, 6035, 15, 13024, 17595, 15, 6728, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Strongly typed actionlink with asp.net mvc beta? === I used to be able to do the following in Preview 3 <%=Html.BuildUrlFromExpression<AController>(c => c.AnAction(par1, par2)%> How am I supposed to create urls in a strongly typed way with the MVC Beta? The only thing so far I have found is <%= Html.ActionLink("aName", "ActionName", "ControllerName")%> This is not strongly typed off course.
0
[ 2, 5020, 1001, 43, 1028, 6258, 29, 28, 306, 9, 2328, 307, 8990, 8434, 60, 800, 3726, 3726, 31, 147, 20, 44, 777, 20, 107, 14, 249, 19, 16121, 203, 13, 1, 11881, 3726, 15895, 9, 29361, 911, 255, 2665, 28993, 1, 58, 12898, 1252, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 can I find a good template for a software application user guide? === Looking for links to resources that will help me write a user guide for a software application. I'm after something that will help me to structure my guide, give it an appropriate writing style, and ensure that it has an excellent look and feel throughout.
0
[ 2, 113, 92, 31, 477, 21, 254, 22894, 26, 21, 2306, 3010, 4155, 3378, 60, 800, 3726, 3726, 699, 26, 6271, 20, 2566, 30, 129, 448, 55, 2757, 21, 4155, 3378, 26, 21, 2306, 3010, 9, 31, 22, 79, 75, 301, 30, 129, 448, 55, 20, 141...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 detect & survive being "Slashdotted" === What's a good way to survive abnormally high traffic spikes? My though is that at some trigger, my website should temporarily switch into a "low bandwidth" mode: switch to basic HTML pages, minimal graphics, disable widgets that might put unnecessary load on the database, and so-on. My thoughts are: - Monitor CPU usage - Monitor bandwidth - Monitor requests / minute
0
[ 2, 184, 20, 9092, 279, 4563, 142, 13, 7, 18, 9545, 12527, 1427, 7, 800, 3726, 3726, 98, 22, 18, 21, 254, 161, 20, 4563, 17804, 102, 183, 2227, 6734, 18, 60, 51, 362, 25, 30, 35, 109, 7286, 15, 51, 2271, 378, 7866, 5521, 77, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Which is the simplest and least dependant AOP framework in Java? === I want to use an AOP framework, but I have two constraints. Any framework that I choose 1. Must be fairly independent. I plan to use this in a legacy code base, and hence cannot upgrade prospective dependencies like commons-logging-XXX.jar to commons-logging-newest.jar. 2. Must be fairly well documented, should not be too complex to understand and integrate.
0
[ 2, 56, 25, 14, 24384, 17, 639, 12547, 1830, 21, 2594, 6596, 19, 8247, 60, 800, 3726, 3726, 31, 259, 20, 275, 40, 21, 2594, 6596, 15, 47, 31, 57, 81, 16747, 9, 186, 6596, 30, 31, 3538, 137, 9, 491, 44, 6647, 1124, 9, 31, 944,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SSRS Sharepoint Integrated Mode: Where's my recursive parameter? === Could someone tell me why the SSRS web service ReportService2005.asmx has a recursive parameter on ListChildren while the Sharepoint integrated mode version ReportService2006.asmx does not? **ReportService2005:** public CatalogItem[] ListChildren ( string Item, bool Recursive ) ***Ref:** http://technet.microsoft.com/en-us/library/reportservice2005.reportingservice2005.listchildren.aspx* **ReportService2006:** public CatalogItem[] ListChildren ( string Item ) ***Ref:** http://technet.microsoft.com/en-us/library/reportservice2006.reportingservice2006.listchildren.aspx* If I want to ListChildren in sharepoint integrated mode, I assume I have to recurse myself? Reasoning behind the removal of this parameter? Google showing nothing...
0
[ 2, 22118, 18, 1891, 3132, 5547, 3740, 45, 113, 22, 18, 51, 302, 24244, 18906, 60, 800, 3726, 3726, 110, 737, 494, 55, 483, 14, 22118, 18, 2741, 365, 1330, 11449, 2835, 9, 472, 79, 396, 63, 21, 302, 24244, 18906, 27, 968, 17853, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C# custom event handlers === If I have a property: public list<String> names { get; set; } How can I generate and handle a custom Event for arguments sake called 'onNamesChanged' whenever a name gets added to the list?
0
[ 2, 272, 5910, 5816, 807, 24641, 18, 800, 3726, 3726, 100, 31, 57, 21, 1354, 45, 317, 968, 1, 11130, 1, 1817, 13, 1, 164, 73, 309, 73, 13, 1, 184, 92, 31, 7920, 17, 3053, 21, 5816, 807, 26, 10553, 8132, 227, 13, 22, 218, 7259...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Getting String Sets into Presentation Layer === We're working on an hospital information system that is being written on C# and using NHibernate to map objects to database. MVC pattern is being used to separate business logic from UI. Here is the problem, How do you get variable sized different set of strings to UI? For example a `Contact` object have a property named `City` that holds which city contact lives. In country that the app is written for has more than 80 cities. How could you write those cities to a combo box? (or a data grid, tables, ...) In this example the city number is fixed. There is no need to add another city for a long time. (If the city list changes, recompiling is not a problem) For example a `Contact` object have another property named `FooBar` which is going to be hold 1000 different string values and these values is going to be selected from a combo box for that property. And this set can be grown if users want. How do you load the combo box with these values? (If the string list statically written to combo box object, recompiling is a problem) I have different solutions as below 1. All string values statically written to combo box in code or designer 2. Get the values from a resource file 3. Write those values to an XML file (Actually same as above, but no need to recompile) 3. Make a `City` object and get the values into a list from `CITY` table with NHibernate 4. Make a class named `StringHolder` which has a `Type` and `Value` property. All string values(including `City` and `FooBar`) would be written in just one table named `STRINGHOLDER`. And get those values with a key like "CITY" or "FOOBAR" with NHibernate. Which one would you choose? Or could you suggest me another one? Thanks all
0
[ 2, 1017, 3724, 3415, 77, 6364, 5385, 800, 3726, 3726, 95, 22, 99, 638, 27, 40, 980, 676, 329, 30, 25, 142, 642, 27, 272, 5910, 17, 568, 12109, 15191, 8820, 20, 2942, 3916, 20, 6018, 9, 307, 8990, 3732, 25, 142, 147, 20, 1725, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Differences in prepared vs. direct statements using Oracle ODBC === I'm using an Oracle database with a collation different to my OS language. I'm accessing the database using the ODBC driver. When I prepare a statement (e.g. a "select * from x where=?"), that involves special non-ASCII characters supported by the DB's collation, I'm finding the data row with the characters. When I execute the select directly with the argument in the sql string, the data row isn't found.
0
[ 2, 4921, 19, 3268, 4611, 9, 1744, 9015, 568, 15759, 12340, 7229, 800, 3726, 3726, 31, 22, 79, 568, 40, 15759, 6018, 29, 21, 9470, 857, 421, 20, 51, 13, 759, 816, 9, 31, 22, 79, 1381, 68, 14, 6018, 568, 14, 12340, 7229, 2425, 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...
database add-in === Is is possible to write MS SQL add-in? I'm thinking of some application integrated with database server available form SQL Server Enterprise Manager. If it is not possible with MS SQL maybe some other database servers supports add-ins.
0
[ 2, 6018, 3547, 8, 108, 800, 3726, 3726, 25, 25, 938, 20, 2757, 4235, 4444, 255, 3547, 8, 108, 60, 31, 22, 79, 1440, 16, 109, 3010, 5547, 29, 6018, 8128, 904, 505, 4444, 255, 8128, 6002, 1382, 9, 100, 32, 25, 52, 938, 29, 4235,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Mapping multiple Values to a Value Object in NHibernate === i'm fairly new to NHibernate and although I'm finding tons of infos on NHibernate mapping on the web, I am too silly to find this piece of information. So the problem is, i've got the following Model: ![Datamodel][1] this is how I'd like it to look. One clean person that has two Address Properties. In the database I'd like to persist this in one table. So the Person row would have a ShippingStreetname and a Streetname Column, the one mapped to ShippingAddress.Streetname and the other to Address.StreetName I found an article on fluent interfaces, but still haven't figured out how to do this through the XML Configuration. Thanks in advance! [1]: http://www.tigraine.at/model.jpg
0
[ 2, 13305, 1886, 4070, 20, 21, 1923, 3095, 19, 12109, 15191, 8820, 800, 3726, 3726, 31, 22, 79, 6647, 78, 20, 12109, 15191, 8820, 17, 419, 31, 22, 79, 3007, 5278, 16, 15404, 18, 27, 12109, 15191, 8820, 13305, 27, 14, 2741, 15, 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...
Quick/Easy generation of CRUD pages & Data Access Layer in CMS === I have a database that I would like class files generated from, and also a .aspx page generated which contains a listview to interface with the classfile for create/read/update/delete. I have started to use Subsonic but am not sure how flexible the scaffold control is. Also, LINQ seems like an option, but it would be nice if that was generated. Ideally, I would have a DAL which was a set of database classes so I could fine-tune anything I wanted to, and also it would output a web form for the web interface with listview/datagrid that I could incorporate into the back-end but would be generated output so I could fine-tune it myself if I wanted to. Thanks in advance. The reason I am asking is because I'm working on a project independently and the data access operations are always the most time consuming part of it.
0
[ 2, 2231, 118, 18385, 2782, 16, 11498, 43, 4434, 279, 1054, 1381, 5385, 19, 2390, 18, 800, 3726, 3726, 31, 57, 21, 6018, 30, 31, 83, 101, 718, 6488, 6756, 37, 15, 17, 67, 21, 13, 9, 472, 306, 396, 2478, 6756, 56, 1588, 21, 968,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...