text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I have a website that a client requires to be XHTML valid. They check it using the W3C validator. I want to add my own namespace and attributes so I can do things like this: ``` <div my:userid="123"> ... </div> ``` From what I understand, defining custom namespaces is perfectly valid XHTML, as long as I do this: `...
[ 0.6372988224029541, 0.586444616317749, 0.4142836034297943, -0.09913478046655655, -0.2249046117067337, -0.4963584840297699, 0.13532504439353943, -0.14726106822490692, -0.32429417967796326, -0.3198218047618866, -0.011212939396500587, 0.43929964303970337, -0.19173653423786163, 0.0086389109492...
solve this problem? For XHTML 1.0 you are restricted to XHTML 1.0 elements and attributes: [Normative Definition of XHTML 1.0](http://www.w3.org/TR/xhtml1/#normative) > This version of XHTML provides a definition of strictly conforming XHTML 1.0 documents, which are restricted to elements and attributes from the XML ...
[ 0.2831740379333496, 0.14268189668655396, 0.2637207508087158, 0.002750096144154668, -0.16694045066833496, -0.4699331521987915, 0.10411196202039719, -0.1937027871608734, -0.19198326766490936, -0.18515701591968536, -0.25754502415657043, 0.587802529335022, -0.8004016876220703, -0.2653705179691...
How do patches or service packs work? I don't know how to explain my question but I will give a try Take Windows for example. It has files which altogether consume 100s of MB. Now a single service pack (may be 300 MB file) updates the whole windows OS. Similarly I have seen updates happening for softwares like adobe ...
[ 0.39930862188339233, 0.1304548978805542, 0.48437774181365967, -0.13243268430233002, -0.04106192663311958, -0.11739187687635422, 0.19394265115261078, -0.01863713748753071, -0.46515607833862305, -0.8536784052848816, -0.23543080687522888, 0.5122861266136169, -0.11087357997894287, -0.006001293...
exe? Patches and service packs usually only need to update core shared libraries of the system. These libraries are replaced or patched from a compressed archive, hence their size. Once the libraries are updated the rest of the software of the OS can continue using the new versions. Applications nowadays are designed ...
[ 0.39460793137550354, -0.1646188497543335, 0.08555574715137482, 0.053344838321208954, 0.27822989225387573, -0.2325623780488968, 0.018740681931376457, 0.010093453340232372, -0.22607573866844177, -0.7253062129020691, -0.5880745053291321, 0.5169930458068848, -0.4713018834590912, -0.00052096025...
Well i have a byte array, and i know its a xml serilized object in the byte array is there any way to get the encoding from it? Im not going to deserilize it but im saving it in a xml field on a sql server... so i need to convert it to a string? You could look at the first 40-ish bytes1. They *should* contain the docu...
[ 0.46850109100341797, 0.2983936071395874, 0.19809922575950623, 0.054156605154275894, -0.08574794977903366, -0.06455140560865402, 0.19606345891952515, -0.16451312601566315, -0.2490844875574112, -0.5329864025115967, -0.006971935275942087, 0.5878546237945557, -0.2263069450855255, 0.06981041282...
check for both patterns.) Realistically, do you expect you'll ever get anything other than UTF-8 or UTF-16? If not, you could check for the patterns you get at the start of both of those and throw an exception if it doesn't follow either pattern. Alternatively, if you want to make another attempt, you could always try...
[ 0.37246736884117126, 0.07759249210357666, 0.2674872875213623, 0.2781012952327728, 0.221942737698555, -0.25183653831481934, 0.3771090805530548, 0.10156545042991638, -0.38693493604660034, -0.7201538681983948, -0.27156591415405273, 0.253754198551178, -0.3995886445045471, -0.15472327172756195,...
this. I figure 20 characters should be enough, which is 40 bytes in UTF-16.
[ -0.052191607654094696, 0.2959026098251343, 0.49450740218162537, -0.0903661698102951, -0.01580030657351017, 0.21835142374038696, 0.055007204413414, -0.24572959542274475, -0.19616010785102844, -0.46506887674331665, -0.12835370004177094, 0.3275451064109802, 0.04423370212316513, -0.18898472189...
Blend tends to create its XAML in very long lines. Is there a way to reformat it so that the properties of each element are lined up vertically under each other? You can do it by using Visual Studio: > Change the default settings for XAML documents, and then use CTRL+E,D (Edit | Advanced | Format Document) or CTRL+E,...
[ 0.1429777443408966, -0.060030385851860046, 0.6276363730430603, -0.3169150650501251, 0.23070168495178223, -0.06615950912237167, 0.024539098143577576, -0.569355309009552, -0.09952442348003387, -0.550173819065094, -0.369989812374115, 0.5702853798866272, -0.3879438042640686, -0.229850292205810...
I've created a windows service in c# and I'm trying to install it for debug using the installutil as recommended here: <http://msdn.microsoft.com/en-us/library/sd8zc8ha.aspx> The installutil says Install completed. However, nothing appears in the service control manager. I've tried this on Server 2008 and XP with the...
[ 0.5041471123695374, 0.08221133798360825, 0.17882589995861053, -0.18229496479034424, -0.20948940515518188, -0.278580904006958, 0.5464260578155518, 0.25191840529441833, -0.07852186262607574, -0.9397217631340027, -0.10000549256801605, 0.7369158864021301, -0.11203654855489731, 0.07183644175529...
right click the design area and select Add Installer. This will add a file ProjectInstaller.cs with itself contains a ServiceInstaller object and a ServiceProcessInstaller object. With the installer added you can set the Service Name, Description and other options that will be used when installing the service. If you ...
[ 0.5755463242530823, -0.060802195221185684, 0.4082612991333008, -0.07488908618688583, 0.001640979666262865, -0.426395058631897, 0.4834781289100647, 0.13727420568466187, -0.028953107073903084, -0.9417868852615356, -0.37748807668685913, 0.5442228317260742, -0.14231343567371368, 0.252595305442...
I'm writing a front end to a database, presenting options as comboboxes. And I need to be able to return nulls to the database. I have a solution at the moment which involves 'fudging' a record into the query to populate the Datatable, then detecting the selection and hard coding `null` into my update statement if th...
[ 0.4345081150531769, -0.06508855521678925, 0.32641246914863586, 0.24725773930549622, 0.16112880408763885, -0.14995694160461426, 0.2577052116394043, -0.049933042377233505, -0.039315540343523026, -0.7560592293739319, -0.12793588638305664, 0.4514605700969696, -0.3937409222126007, 0.38811004161...
tblLEMSCredentials AS aLEMSCreds UNION ALL SELECT '99999' AS Expr1, '<NONE>' AS Expr2 ``` . ``` //populate combo box BV_LEMSHIPDataSet.tblLEMSCredentialsDataTable dtAvailableTechs = taLEMSCreds.GetDataByAvailableTechs(selectedSerial); cboTechNumber.D...
[ -0.03203390911221504, 0.10540339350700378, 0.5808411836624146, 0.22570957243442535, 0.2147611826658249, 0.3664945065975189, 0.1298861801624298, -0.2776292860507965, -0.04103729501366615, -0.6367024779319763, -0.5174837112426758, 0.3323202431201935, -0.14665785431861877, 0.3778727948665619,...
to DB if (lemsCredsID == 99999) { taDevice.UpdateQuery_Restage(null, selectedSerial); } else { taDevice.UpdateQuery_Restage(lemsCredsID, selectedSerial);
[ 0.010352241806685925, -0.038533031940460205, 0.2404254823923111, -0.3925076723098755, -0.05603500455617905, 0.38378700613975525, 0.4861701428890228, -0.6848575472831726, 0.44432583451271057, -0.3817763030529022, -0.4196406602859497, 0.24970406293869019, -0.5331214666366577, 0.4658320844173...
} ``` Can anyone suggest a better way of doing this please? I need to make the application cope with another 5 similar fields and don't want to create a multitude of if else versions of my update. G In the past I've used a similar approach but used minus numbers for the NULL values - that way you can you treat anyt...
[ 0.21719256043434143, 0.22656048834323883, 0.14416621625423431, -0.04403609037399292, -0.0383310504257679, -0.2053493857383728, 0.15808604657649994, 0.2664024531841278, 0.04535022750496864, -0.5902640223503113, 0.23705148696899414, 0.6830317974090576, -0.35508784651756287, 0.183165937662124...
The question's pretty self-explanatory really. I know vaguely about vectors in maths, but I don't really see the link to C++ vectors. Mathematical definition of a vector is a member of the set `S``n`, which is an ordered sequence of values in a specific set (`S`). This is what a C++ `vector` stores.
[ 0.22649554908275604, -0.031249647960066795, 0.017368091270327568, 0.21806341409683228, -0.23945201933383942, 0.11331764608621597, -0.30488041043281555, 0.09486182034015656, -0.19244031608104706, -0.3433086574077606, 0.012496370822191238, 0.2988952100276947, -0.3816165626049042, 0.160799309...
If I have a table ``` CREATE TABLE users ( id int(10) unsigned NOT NULL auto_increment, name varchar(255) NOT NULL, profession varchar(255) NOT NULL, employer varchar(255) NOT NULL, PRIMARY KEY (id) ) ``` and I want to get all unique values of `profession` field, what would be faster (or recommended): ``...
[ 0.18430374562740326, 0.4029020071029663, 0.31726235151290894, 0.05415954068303108, 0.1660243719816208, 0.1122278943657875, -0.21654534339904785, -0.14410008490085602, -0.24275994300842285, -0.5597751140594482, 0.17953486740589142, 0.5765393972396851, 0.13623885810375214, 0.418028861284256,...
a query optimizer would have to catch the fact that your `GROUP BY` is not taking advantage of any group members, just their keys. `DISTINCT` makes this explicit, so you can get away with a slightly dumber optimizer. When in doubt, test!
[ -0.04852815344929695, -0.08111865073442459, -0.40057632327079773, 0.19010323286056519, -0.28413888812065125, -0.2724328935146332, 0.3493848741054535, -0.2783409655094147, 0.0023666361812502146, -0.19778110086917877, -0.19397880136966705, 0.30517131090164185, -0.2742076516151428, 0.05429882...
i want to perform analysis on SQL code. In this i would like to separate the blocks in SQL code. for example, in the code below ``` for condition1 loop stmt1; for condition2 loop stmt2; end loop; end loop; ``` i want to separate these two blocks and create a data structure which will contain outer loop block and wil...
[ -0.043703243136405945, 0.12231720983982086, -0.008719803765416145, -0.04490621015429497, -0.018424535170197487, 0.09765302389860153, 0.03215888515114784, -0.20137979090213776, -0.006519193295389414, -0.7774518132209778, 0.21137908101081848, 0.25059300661087036, -0.559289276599884, 0.067458...
{ } public class Column: IObjectEntity { public string name; public System.Data.DbType type; } public class Table: IObjectEntity { public List<Column> columns = new List<Column>(); public string alias; } public class Where : ICodeEntity { } public class GroupBy : ICodeEntity { } public class OrderBy : I...
[ -0.2694272994995117, -0.0639791190624237, 0.30267688632011414, -0.09370546042919159, 0.25987866520881653, 0.5435249209403992, 0.09458713978528976, -0.062130410224199295, -0.268193781375885, -0.6525084376335144, -0.14243939518928528, 0.5317954421043396, -0.30703797936439514, 0.3181330263614...
condition; public List<ICodeEntity> codeList = new List<ICodeEntity>(); } ``` and somewhere in the program: ``` If if1 = new If(); if1.codeList.Add(new If()); ``` see related links: [CodeProject: Illustrated GOF Design Patterns in C#](http://www.codeproject.com/KB/architecture/csdespat_2.aspx#Composite) ...
[ 0.02738749049603939, -0.03059946373105049, 0.12563854455947876, -0.2551964819431305, 0.24173465371131897, 0.368054062128067, 0.11948531121015549, -0.3330194056034088, -0.5436037182807922, -0.9152703285217285, -0.2942350208759308, 0.31497156620025635, -0.4824197590351105, 0.2199263423681259...
I am getting a random web part error, it works one refresh and then not the next: > **Web Part Error**: One of the properties of the web part has an > incorrect format. Windows SharePoint > services cannot deserialize the Web > Part. Check the format of the > properties and try again. The web parts have been on t...
[ 0.2802099287509918, 0.07783359289169312, 0.1644262969493866, 0.09215141832828522, -0.20829392969608307, -0.13424402475357056, 0.5800639986991882, 0.021489975973963737, 0.018030263483524323, -0.7124165892601013, 0.13707897067070007, 0.5344999432563782, -0.03466016799211502, 0.40673735737800...
Site settings > Web Parts > New and selected some webparts that were not in the list and I think I also Checked the ones that are having this random error and clicked "Populae Gallery". Any body have a clue? but try doing this: Go the central administration > operations > service accounts > Web application pool ...
[ 0.2601674497127533, 0.24120447039604187, 0.6806514263153076, 0.06878307461738586, 0.31899094581604004, -0.0730101466178894, 0.5450068712234497, -0.0523998886346817, -0.4069209396839142, -0.8823491334915161, -0.247177854180336, 0.7886192202568054, -0.187222421169281, -0.06244242936372757, ...
used during sharepoint post installation configuration > password: at last type in the password. hope it helps
[ 0.32093095779418945, -0.19271081686019897, 0.25944095849990845, 0.027788884937763214, 0.3440946042537689, -0.43517738580703735, 0.3430008590221405, 0.2431170642375946, 0.13670623302459717, -0.971390426158905, -0.2779706120491028, 0.3359397053718567, 0.13312114775180817, -0.0644825547933578...
In Java I have a SortedSet that may have 100,000 elements. I would like to efficiently and elegantly get the last 25 elements. I'm a bit puzzled. To get the *first* 25 I'd iterate and stop after 25 elements. But I don't know how to iterate in reverse order. Any ideas? ``` SortedSet<Integer> summaries = getSortedSet(...
[ -0.2645413875579834, 0.11145993322134018, 0.050974588841199875, -0.19376181066036224, 0.03323681652545929, -0.0077326493337750435, 0.22469346225261688, -0.21228669583797455, -0.47841396927833557, -0.8475835919380188, -0.11712890863418579, 0.08039789646863937, -0.5970937609672546, -0.179923...
I have an application where the majority of the database tables have a strong relationship to one other table. Currently I am enforcing referential integrity with foreign keys, but I'm wondering if this is really the best approach. Data in the primary table can be deleted from an admin interface by business users, whic...
[ 0.2578180730342865, 0.46688899397850037, 0.31452086567878723, 0.1412191092967987, 0.050772376358509064, -0.3659079968929291, 0.3219136595726013, 0.04687310382723808, -0.19199545681476593, -0.273998886346817, -0.11779497563838959, 0.4511997401714325, -0.22737447917461395, 0.3154576122760772...
maybe?). However, the data in the secondary tables is basically useless to the application itself unless the relationship exists with the primary table. Given the option, I always keep data around. And since you already have foreign keys in place, you have some built-in protection from integrity violations. If what yo...
[ 0.1364261507987976, 0.25516289472579956, 0.37330588698387146, 0.05932964012026787, 0.24068953096866608, -0.025224419310688972, 0.34380942583084106, 0.07232898473739624, -0.32415688037872314, -0.4546142816543579, -0.18962103128433228, 0.5667736530303955, -0.12884898483753204, 0.400677233934...
true/1 by default; "deletes" are marked as false/0.
[ -0.19806940853595734, 0.1341119259595871, 0.016895467415452003, -0.19197148084640503, -0.007656806148588657, 0.01990962214767933, 0.8380820155143738, 0.4176184833049774, 0.22035519778728485, -0.047477006912231445, -0.507300853729248, 0.6115878820419312, 0.012295183725655079, 0.052931379526...
I came across a recent Audit report in our company for the code we maintain which says that we should not use Get in the method (not properties) naming like in GetSearchResults or GetXyzInformation. I looked up the [MS guidelines](http://msdn.microsoft.com/en-us/library/4df752aw(VS.71).aspx) (<http://msdn.microsoft.com...
[ 0.44110971689224243, -0.10181278735399246, 0.22315822541713715, 0.4230421781539917, -0.17574697732925415, -0.5300300121307373, 0.061881132423877716, -0.2316780835390091, -0.020012125372886658, -0.17388784885406494, 0.11120215803384781, 0.33258235454559326, 0.025263454765081406, 0.372966498...
so clearly properties are not ideal options. It is perfectly legal (it is even legal to write methods of the form "get\_Foo" which would collide with the compiler synthesized get method if you were to declare a property Foo with a getter). As to Whether it is a **good** thing: 1. If the method does serious work, has ...
[ 0.2690727114677429, 0.17132991552352905, -0.09000762552022934, -0.0033269303385168314, -0.04982908070087433, -0.5358787775039673, 0.4878383278846741, -0.1633480042219162, -0.11255992203950882, -0.29771965742111206, -0.1967846155166626, 0.6107746362686157, -0.2548021376132965, 0.03376361355...
good thing since it will make it easier to work with in calling code. 3. if the method does not actually 'Get' anything the name is bad and should be changed The above points are *subjective* but the reason that hard rules like 'never' 'always' can be a bad idea is that the balancing of multiple subjective and competi...
[ 0.3266957700252533, -0.01895434409379959, -0.13974720239639282, 0.24317307770252228, -0.17183150351047516, -0.5594674944877625, 0.6237088441848755, -0.03548051789402962, -0.07201726734638214, -0.34877097606658936, 0.12081286311149597, 0.5141061544418335, -0.1823539435863495, 0.182729467749...
I am using the M-V-VM pattern in a WPF app. I am binding a ViewModel to a ContentControl and using a data template defined in the window resources to render the view (a UserControl) for that ViewModel. In the ViewModel, I have a collection of items. I'm binding that collection to the data grid provided in the WPF tool...
[ 0.4027387201786041, -0.1926417499780655, 0.75897616147995, -0.11258286237716675, -0.18736253678798676, 0.04466065391898155, -0.0981314480304718, -0.4963572025299072, -0.15314379334449768, -0.7437660694122314, -0.11111389100551605, 0.45443370938301086, -0.475050151348114, 0.1195805594325065...
Path=RemoveCommand}" CommandParameter="{Binding Path=id}">X</Button> ``` doesn't work - it can't find the command. I think I need to do RelativeSource binding, but what would that look like? Would the Ancestor type be UserControl, or the ContentControl? Where is my ViewModel residing as the DataContext? Or am I way...
[ -0.3956228494644165, -0.026123203337192535, 0.5725434422492981, -0.10942292213439941, 0.004463663790374994, -0.14724865555763245, 0.049760591238737106, -0.33285054564476013, 0.017503634095191956, -0.876185953617096, 0.1401319056749344, 0.5254837870597839, -0.43724164366722107, 0.1593127697...
its knickers in a knot when it comes to element names and scoping in controls, so you may need to resort to a `RelativeSource`: ``` <DataGrid x:Name="_grid"> ... <Button Command="{Binding DataContext.RemoveItem, RelativeSource={RelativeSource FindAncestor, ...
[ -0.6156662702560425, -0.3422984182834625, 0.2619171738624573, 0.03782631829380989, 0.32098451256752014, 0.08369582146406174, -0.07570227235555649, -0.21177980303764343, -0.1112552136182785, -0.4872302711009979, 0.21207734942436218, 0.010442015714943409, -0.3656114637851715, 0.3026109635829...
}"/> ... </DataGrid> ``` You only need to search up until the data context will be your view model. You could search for a `UserControl` if you wanted to - not sure it really matters. Both are pretty fragile bindings, which is why I prefer the `ElementName` approach.
[ -0.019383195787668228, -0.05260664224624634, 0.38215315341949463, -0.10866525769233704, 0.06311988830566406, -0.3677692115306854, 0.05789097771048546, 0.04928198084235191, 0.13008086383342743, -0.6399579048156738, -0.18261249363422394, 0.618813157081604, -0.2623169720172882, 0.157228857278...
My web application parses data from an uploaded file and inserts it into a database table. Due to the nature of the input data (bank transaction data), duplicate data can exist from one upload to another. At the moment I'm using hideously inefficient code to check for the existence of duplicates by loading all rows wit...
[ 0.3234691619873047, 0.4883626103401184, 0.06379591673612595, 0.11733903735876083, 0.2258443981409073, 0.03744300454854965, 0.08183073997497559, 0.27727484703063965, -0.2739013433456421, -0.5885800719261169, 0.38122984766960144, 0.198023721575737, -0.3025360405445099, 0.5355936288833618, ...
MySQL database) which checks for the existence of duplicate data, e.g. ``` SELECT count(*) FROM transactions WHERE desc = ? AND dated_on = ? AND amount = ? ``` This works fine, but my real-world case is a little bit more complicated. The description of a transaction in the input data can sometimes contain erroneous ...
[ 0.21844373643398285, 0.31155017018318176, 0.19039686024188995, 0.20444528758525848, -0.0017040390521287918, -0.15747930109500885, -0.01020763348788023, -0.13779975473880768, -0.38140490651130676, -0.6335241198539734, 0.24662229418754578, 0.4256921708583832, -0.17575767636299133, 0.39223906...
move this matching logic to the database, something like: ``` SELECT count(*) FROM transactions WHERE CLEAN_ME(desc) = ? AND dated_on = ? AND amount = ? ``` Where CLEAN\_ME is a proc which strips the field of the erroneous data. Obviously the cleanest (no pun intended!) solution would be to store the *already clean...
[ 0.5581297278404236, 0.16320352256298065, 0.33920055627822876, -0.03127716854214668, -0.03617324307560921, -0.1953616738319397, 0.20131033658981323, -0.22807934880256653, -0.31024736166000366, -0.6669031977653503, -0.055308301001787186, 0.5391190052032471, -0.24009162187576294, 0.2215136438...
to do it in the database layer: ``` mysql> CREATE FUNCTION clean_me (s VARCHAR(255)) -> RETURNS VARCHAR(255) DETERMINISTIC -> RETURN REPLACE(s, '.', ' '); mysql> SELECT clean_me('BANK.12323.DESCRIPTION'); BANK 12323 DESCRIPTION ``` This will perform very poorly across a large table though. > Obviously the...
[ 0.2133851796388626, 0.13933159410953522, 0.16611213982105255, 0.11769618839025497, 0.030805107206106186, -0.23061032593250275, 0.4966408610343933, -0.11377400904893875, -0.12992355227470398, -0.7822989821434021, -0.1858752965927124, 0.3644700050354004, -0.21680419147014618, 0.1178309172391...
the cleverest way (as long as performance isn't awful). Do that, and add indexes to the columns you're doing bulk compares on, to improve performance. If it's actually intrinsic to the type of data that desc/dated-on/amount are always unique, then express that in the schema by making it a UNIQUE index constraint.
[ 0.46382132172584534, 0.033825408667325974, -0.006440893746912479, 0.6259542107582092, -0.20252038538455963, -0.07064947485923767, -0.09909842163324356, -0.13307435810565948, -0.11979832500219345, -0.7167164087295532, 0.337926983833313, 0.6459488272666931, -0.13357290625572205, -0.217731252...
I use Apache + Passenger to host some Rails applications. Something seems to go in a sleep mode when there is no request for a longer time. It then takes 10-20 seconds for the site to load. Feels like there is something that has to wake up when there have been no requests for a longer time. How can I fix that? I have ...
[ -0.06446436792612076, -0.14664533734321594, 0.12730471789836884, 0.12332052737474442, -0.21150103211402893, -0.2254827320575714, 0.5683919787406921, -0.24031414091587067, -0.1276223510503769, -0.5757865905761719, 0.22317756712436676, 0.5533967018127441, 0.05817591771483421, -0.095663368701...
before it shuts down to conserve memory. The default is 300, but you could try to set a higher number and see if that helps.
[ 0.24495773017406464, -0.11914508789777756, 0.4519079327583313, 0.033068619668483734, 0.26064857840538025, 0.02832120656967163, 0.1500224769115448, 0.22529858350753784, -0.1257166862487793, -0.569689929485321, -0.0655595064163208, 0.5267302393913269, 0.07411718368530273, 0.10235606878995895...
I'm experiencing an error when using the windows installer to install an event source in a product I am deploying. The error message I receive states the following ... > Unable to get installer types in the > c:\temp\program.exe assembly. --> > Unable to load one or more of the > requested types. Retrieve the > L...
[ 0.12282960116863251, -0.023183101788163185, 0.23946139216423035, -0.17899557948112488, 0.20633772015571594, -0.11856190115213394, 0.3811206519603729, 0.049605466425418854, -0.053507961332798004, -0.7003763914108276, -0.36319994926452637, 0.8788586854934692, -0.28901058435440063, 0.21516048...
public EventSourceInstaller() { InitializeComponent(); string eventSourceName = "MyAppSourceName"; if (!EventLog.SourceExists(eventSourceName)) { EventSourceCreationData data = new EventSourceCreationData(eventSourceName, "Application");
[ -0.40906161069869995, -0.4053182005882263, 0.19732172787189484, -0.15776440501213074, 0.36380234360694885, 0.046464499086141586, 0.167516827583313, -0.12555958330631256, -0.09697457402944565, -0.6485380530357361, -0.6474476456642151, 0.580498456954956, -0.31225934624671936, 0.2105548530817...
EventLog.CreateEventSource(data); EventLog.WriteEntry(eventSourceName, "Source Added."); } } } } ``` In the installer project I've added a custom action on Install named "Primary output from MyApplication (Active)" to run the event source installer. I have the following questi...
[ 0.05806542932987213, -0.256386399269104, 0.22177058458328247, -0.22379572689533234, -0.14051733911037445, -0.32283836603164673, 0.31307968497276306, 0.011278555728495121, -0.09828659892082214, -0.7397551536560059, -0.010681710205972195, 0.9006338715553284, -0.27291741967201233, -0.12750959...
c:\temp\program.exe is very strange. Are you trying to run the installer from the c:\temp\ directory? Are you certain the output of all projects and all third-party DLLs you use are included in the Deployment project? Click on all included files in the Deployment project and check their SourcePath property; are they t...
[ 0.5301655530929565, -0.0012522701872512698, -0.08487371355295181, 0.09160162508487701, 0.23399066925048828, -0.24405795335769653, 0.06444020569324493, 0.34765926003456116, -0.26091548800468445, -0.48072531819343567, -0.29796648025512695, 0.62061607837677, -0.48226121068000793, -0.065346866...
When working on a project - I always estimate my tasks and calculate how long it will take me to finish. So in the end I get a time-span in which the project should be finished (it rarely is). My question is - do you record your data and assumptions use in your estimates during a project and use them for later project...
[ 0.39613649249076843, 0.17573393881320953, -0.16516444087028503, 0.3189678490161896, 0.11296198517084122, 0.19396217167377472, -0.014093240723013878, -0.22549311816692352, -0.1986643522977829, -0.5352427363395691, 0.2816855311393738, 0.4403810501098633, 0.44231778383255005, -0.0870457291603...
fill in new assumptions or gained information. On the other hand it is not really readable or useful for evaluating my predictions after finishing the project - to learn from it for the next project. Sounds like what Joel wrote [FogBugz](http://www.fogcreek.com/FogBUGZ/) for.
[ 0.30841636657714844, 0.0645359456539154, 0.28273409605026245, 0.12990431487560272, -0.0818900391459465, -0.25518375635147095, 0.37218427658081055, 0.4126269817352295, 0.13072903454303741, -0.22052812576293945, 0.3309735655784607, -0.026385057717561722, -0.02205928973853588, 0.1450677067041...
I know Java pretty well. I know now most of the Basics in Objective-C. I know nothing about Photoshop. I know how to use TurboCAD 10 Professional, so I do have some experience in 3D object modelling. Although not much. What do I have to learn step-by-step, to come to 3D game Development for iPhone? What Tools do I nee...
[ 0.49033766984939575, 0.055171966552734375, 0.18412534892559052, -0.1016363650560379, 0.16685469448566437, -0.14469559490680695, 0.3437187075614929, -0.04810590296983719, -0.0006195904570631683, -0.6981895565986633, 0.28816255927085876, 0.9137827754020691, 0.31426841020584106, -0.4657932221...
uses OpenGL ES, is available [here](http://www.sunsetlakesoftware.com/2008/10/02/molecules-source-code-now-available). Maybe you'll be able to find something useful in that example. However, there's nothing in there that deals with textures, which you'll probably need for your game. Bill Dudney has [posted source code]...
[ 0.20678873360157013, 0.2549193203449249, 0.5914702415466309, 0.10039978474378586, -0.046088725328445435, 0.10689854621887207, 0.13105811178684235, 0.2183588147163391, -0.4736636281013489, -0.6354590058326721, 0.2076268047094345, 0.7304450869560242, 0.024635395035147667, -0.1804422587156295...
with it, although that was in the more complex Mac desktop environment. I post some resources for learning Cocoa [here](http://www.sunsetlakesoftware.com/2009/02/13/resources-getting-started-cocoa), although that's by no means an exhaustive list. I agree with diciu, this is a bit much for someone just starting out on ...
[ 0.18227556347846985, 0.05730409920215607, -0.02285957522690296, 0.054307859390974045, 0.3050967752933502, -0.5269702076911926, 0.028015078976750374, 0.2974712550640106, -0.46315959095954895, -0.18100109696388245, 0.16715742647647858, 0.7074241042137146, 0.21812763810157776, -0.118936561048...
I was wondering if it was ever ok not to have a submit button (Ok, Go or Search for example) near a search box in Web pages. I know that hitting enter is much faster and that it will perform the search. However, **is it an accepted convention for the average non tech savvy user or only for the tech community?** For ...
[ 0.4348077178001404, 0.041249830275774, 0.19737999141216278, 0.09756319969892502, 0.04258114844560623, -0.23421800136566162, 0.10481704771518707, 0.2629019320011139, -0.4527774453163147, -0.627277672290802, 0.10486039519309998, 0.41711074113845825, 0.030915411189198494, 0.11410985141992569,...
just started reading **[Don't Make Me Think](https://rads.stackoverflow.com/amzn/click/com/0321344758)** by *Steve Krug* and he mentions that every search box should have something that tells me I can click on it to launch the search. Your thoughts? Why you should have a button: * Not everyone knows they can hit ente...
[ 0.43546169996261597, -0.055105168372392654, 0.3375626504421234, 0.2347889393568039, -0.010234896093606949, -0.5892536044120789, 0.27294135093688965, 0.2813843786716461, -0.6157976984977722, -0.5832133293151855, 0.00804060511291027, -0.0518767423927784, 0.07056526839733124, 0.28702014684677...
satisfied): * Your audience is tech savvy (as on SO) * You provide a visual cue that the search box actually is a search box + By adding text inside it mentioning it should be used to search + By adding an icon inside the box Generally I would think that hitting enter is a shortcut to submit rather than the primary...
[ 0.6597294211387634, -0.0269315168261528, 0.42488861083984375, 0.19606362283229828, 0.007189735770225525, -0.19096794724464417, 0.4123479425907135, -0.09784629195928574, 0.02814522385597229, -0.2884048521518707, -0.28920623660087585, 0.8645710945129395, -0.006790200248360634, -0.21362060308...
We have a business application that basically runs on an os-independent stack (tomcat+java+mysql) but we have always run it redhat or centos. There is a customer that is insisting to run it on opensolaris for his own reasons (an expensive everything-is-included support agreement with Sun). How painful can such a mig...
[ 0.3810008466243744, 0.3245667517185211, 0.2954496145248413, 0.05438849702477455, 0.23901504278182983, 0.08337614685297012, 0.014666268602013588, -0.11151861399412155, -0.1599641591310501, -0.47064363956451416, -0.14562606811523438, 0.656413197517395, -0.22549283504486084, 0.098738953471183...
shell scripts that edit all the os-configuration files. Any previous experience on this. The biggest issues will be with the non-POSIX (non-standard) options you've used to the GNU tools provided on Linux that are not in the Solaris standard commands. You might decide that porting the relevant tools from the GNU set i...
[ 0.3129284977912903, -0.01788102090358734, -0.02232888713479042, 0.048019636422395706, 0.025523316115140915, -0.2962169647216797, 0.17006826400756836, 0.2333890050649643, -0.03803177550435066, -0.8608155846595764, -0.18143761157989502, 1.112747311592102, -0.5138835906982422, 0.0205272845923...
know when you would break something that the system relies on. So, you would put the GNU commands in a separate directory - probably not `/usr/local` because that is for the machine owners to populate, not you as an application-monger - and arrange for that to be used in place of the system commands. (Note: on Solaris,...
[ 0.3181167542934418, -0.12932585179805756, 0.2657516896724701, 0.1141587570309639, 0.12356080114841461, -0.26644620299339294, 0.14848844707012177, 0.21891190111637115, -0.26715540885925293, -0.7835909128189087, -0.4442336857318878, 0.8654587268829346, -0.5702753663063049, 0.0587473325431346...
on your code base.
[ 0.586108922958374, 0.15184813737869263, -0.2893948256969452, 0.09457039833068848, 0.24907855689525604, -0.18729464709758759, 0.11875656247138977, 0.306537389755249, -0.07487545162439346, -0.4521450400352478, -0.009481332264840603, 0.2458018809556961, -0.2546042799949646, -0.067900978028774...
I'm using ASP MVC RC1. A form I'm using contains a dropdownlist which I have put in a view with this code. ``` <%= Html.DropDownList("areaid", (SelectList)ViewData["AreaId"], "Select Area Id")%> ``` However, when rendered, this is what I get ``` <select id="areaid" name="areaid"> <option value="">Select Area Id...
[ 0.0038919446524232626, -0.15450099110603333, 0.7314476370811462, -0.4353780448436737, -0.012158430181443691, 0.028526173904538155, 0.09171920269727707, -0.3322431743144989, -0.22400107979774475, -0.7598352432250977, -0.3219220042228699, 0.3228328227996826, -0.11176691949367523, -0.11133251...
integer so when I currently click the form without touching the dropdownlist at all, MVC complains that "" is not an integer and gives me a binding error. SO how do I set a value for the default option and then make it selected on the form? Thanks, Dan I think you have three four options. First when you are building ...
[ 0.14678554236888885, -0.1674119085073471, 0.6198922991752625, -0.04529636353254318, 0.04261084645986557, 0.35466980934143066, -0.0831008031964302, -0.3611812889575958, -0.42895790934562683, -0.45670872926712036, 0.07478250563144684, 0.7882971167564392, -0.2349843978881836, -0.0247757248580...
(and options) "by hand" in the view using a loop to create the options. Again, prepending your default selection if one isn't supplied in the model. Third, use the DropDownList extension, but modify the value of the first option using javascript after the page is loaded. It doesn't seem to be possible to use the DropD...
[ 0.047342829406261444, -0.6649056077003479, 0.4809607267379761, -0.06563214957714081, 0.11005707085132599, 0.015506291761994362, -0.03414183109998703, -0.049234237521886826, -0.25220492482185364, -0.83333420753479, -0.41825252771377563, 0.669674813747406, -0.16425082087516785, -0.1794343292...
listItemBuilder.AppendLine(ListItemToOption(new SelectListItem() { Text = optionLabel, Value = String.Empty, Selected = false })); } ``` **EDIT**: Finally, the best way is to have your model take a Nullable value and mark it as required using the RequiredAttribute. I would recommend using a view-specific model ra...
[ 0.18513531982898712, -0.2822844982147217, 0.5919587016105652, -0.20224958658218384, -0.17162099480628967, -0.17427121102809906, 0.4654656648635864, -0.2168731391429901, -0.345498651266098, -0.5592477321624756, -0.23948092758655548, 0.7024375796318054, -0.4229467213153839, -0.04953749105334...
allow you to use the DropdownList helper as is. ``` public AreaViewModel { [Required] public int? AreaId { get; set; } public IEnumerable<SelectListItem> Areas { get; set; } ... } @Html.DropDownListFor( model => model.AreaId, Model.Areas, "Select Area Id" ) ```
[ 0.010141263715922832, -0.3541584610939026, 0.9134232997894287, 0.04282095283269882, 0.16368749737739563, -0.06592152267694473, 0.13607004284858704, -0.23328231275081635, -0.47370272874832153, -0.7053146362304688, -0.42087647318840027, 0.27299752831459045, -0.2283639907836914, 0.02242339588...
Let's say you have a database with a lot of products/customers/orders and the codebase (java/c#) contains all the business logic. During the night several batches are needed to export data to flat files and then ftp them to a proprietary system. How should we do this "write-database-into-a-flat-file? What are the best...
[ 0.7886400818824768, 0.044838204979896545, 0.1427944153547287, 0.06117714196443558, 0.14515754580497742, 0.03390544280409813, 0.017485741525888443, -0.07884755730628967, -0.3713550269603729, -0.5166759490966797, 0.1776197999715805, 0.633064329624176, 0.03813621774315834, 0.17641018331050873...
repositories / business logic as the rest of the domain? (this could be a slow process compared to the stored procedure solution) * What if the only interface for the domain-services are web services (which could take "long" time for each request), will the "best practices" change ? I personally prefer to use normal (m...
[ 0.43995893001556396, 0.060433048754930496, 0.35989728569984436, 0.45835158228874207, 0.06337067484855652, -0.30646437406539917, 0.1755928099155426, 0.034173768013715744, -0.35953325033187866, -0.6201854944229126, 0.03855655714869499, 0.5633292198181152, -0.22677187621593475, 0.313669323921...
use for normal business logic (its beneficial even if you just reference the same projects, etc.) 4) Often you need to enrich data with some information from other systems and this again is much easier to do from managed code. 5) Its much easier to test managed code, have all the unit tests, automated builds, etc. I a...
[ 0.18330536782741547, 0.007522741332650185, 0.07459387928247452, 0.2608543336391449, 0.18399709463119507, -0.14586655795574188, 0.00037444490590132773, -0.27686408162117004, -0.0875290185213089, -0.6384406089782715, -0.07949228584766388, 0.7283298373222351, -0.004116171505302191, -0.4186724...
the comment: I don't think it is possible to say if you should reuse the existing stored procs, tweak them, or create new ones. I think that is the performance hit or needed changes are not too big than I would try to use one set of procs, to avoid duplication of logic. But if the differences are substantial, then pro...
[ 0.23646609485149384, 0.3207651376724243, -0.07801901549100876, 0.04359807074069977, 0.05154082924127579, 0.4506741464138031, 0.24210584163665771, 0.06778380274772644, -0.24540743231773376, -0.397482305765152, 0.024428464472293854, 0.5908334851264954, 0.03738134354352951, -0.171070575714111...
I have a web.sitemap like this: ``` <siteMapNode url="~/Default.aspx" title="Home" description="" > <siteMapNode title="Node 1" description=""> <siteMapNode url="" title="Node 1-1" description="" /> <siteMapNode url="" title="Node 1-2" description="" /> </siteMapNode> <siteMapNode title="No...
[ 0.015943704172968864, 0.05735968425869942, 0.5724314451217651, -0.3959159553050995, 0.19957497715950012, -0.30795666575431824, 0.26633045077323914, -0.21071241796016693, 0.017720621079206467, -1.0996637344360352, -0.16508010029792786, 0.13514751195907593, -0.02117561362683773, 0.3463914990...
| Node 2 | Is there a property for skipping "Home" and get this menu (from that sitemap): > | Node 1 | Node 2 | ? If you are using a SiteMapsDataSource you can skip the root node by setting the ShowStartingNode property to false.
[ 0.13668060302734375, -0.2291584014892578, 0.1780843585729599, -0.30069291591644287, -0.00819087028503418, -0.3494006097316742, 0.6631503105163574, 0.0017544685397297144, -0.24533502757549286, -0.5090382695198059, -0.01720767468214035, 0.22833450138568878, -0.2600107192993164, 0.23516607284...
Let say a company are building a brand new application. The application are following the DDD principles. The old codebase has alot of products (or another "entity" for the company) that they want to convert to the new codebase. How should this work be done? normally it is faster and easier to import using for example...
[ 0.5412589311599731, 0.14426997303962708, 0.14556069672107697, 0.19592797756195068, 0.06811416894197464, -0.5688828229904175, 0.16560211777687073, -0.4083259701728821, -0.25715962052345276, -0.41517016291618347, -0.22580361366271973, 0.4510757029056549, -0.2172836810350418, 0.36911123991012...
we import the managed code libraries into the SQL Server (atleast this is possible in .NET and MS SQL Server)? Or should we we create a import script in managed code so all the layers in the domain are traversed when the entity are saved in the database?... (can take many hours..) What are your thoughts? I would sugge...
[ 0.32046180963516235, 0.1155603677034378, 0.11472621560096741, 0.32297810912132263, 0.08215947449207306, -0.2771257162094116, -0.01757100038230419, -0.0047632246278226376, -0.2133968472480774, -0.6994020342826843, 0.21200701594352722, 0.8278641700744629, -0.07632588595151901, -0.29397484660...
to be multi-threaded - if possible. and no it is not good enough - if anyone says "I have it under control" - this is a buzz-sentence and all my alarm-bells go off. some detail will always be forgotten and this is mostly a little catastrophe ;)
[ 0.40184658765792847, 0.06255986541509628, 0.45130395889282227, 0.14560821652412415, 0.24884825944900513, -0.18640552461147308, 0.6369069218635559, 0.00507364934310317, -0.5660350322723389, -0.041154541075229645, -0.0563356988132, 0.47853806614875793, -0.31089237332344055, 0.209083378314971...
I have a couple of websites that I want to extract data from and based on previous experiences, this isn't as easy as it sound. Why? Simply because the HTML pages I have to parse aren't properly formatted (missing closing tag, etc.). Considering that I have no constraints regarding the technology, language or tool tha...
[ 0.05889458209276199, 0.010104690678417683, 0.15254470705986023, 0.37325283885002136, -0.1641198843717575, -0.1953054517507553, 0.3875582218170166, 0.04219003766775131, -0.18712708353996277, -0.6204632520675659, 0.1673423796892166, 0.48474496603012085, -0.07978507876396179, -0.1767872720956...
to it). You can use pretty much any language you like **just don't try and parse HTML with regular expressions.** So let me rephrase that and say: you can use any language you like that has a HTML parser, which is pretty much everything invented in the last 15-20 years. If you're having issues with particular pages I...
[ 0.19256055355072021, 0.21259190142154694, 0.266207218170166, -0.023069286718964577, -0.09418776631355286, -0.19131723046302795, 0.5823848247528076, 0.36723220348358154, -0.3574170768260956, -0.7015490531921387, -0.14053033292293549, 0.4898252785205841, -0.28641700744628906, -0.151691347360...
I am trying to sort a xml using linq queries using the following code ``` Dim SortedFields = From field In feedXML.Descendants("fields") Dim sFieldList = From field In SortedFields.Descendants("field") Order By field.@position ``` The xml is shown below, but the issue is it is ordering it in the following order 1,10...
[ 0.10292335599660873, -0.038431353867053986, 0.6782938838005066, -0.24259807169437408, 0.00483180396258831, 0.2983640432357788, -0.007570277433842421, -0.33644115924835205, -0.09034048765897751, -0.7417351603507996, -0.2291174829006195, 0.24356941878795624, -0.05045955628156662, 0.014510639...
<field position="'10'" tablename="Students" headername="10" fieldreference="ClientField5" orderbydirection="ASC" displaycolumn="T" /> <field position="'1'" tablename="Students" headername="1" fieldreference="ClientField6" orderbydirection="ASC" displaycolumn="T" /> <field position="'2'" tablename="Students" hea...
[ -0.20246325433254242, 0.2865774631500244, 0.2930110692977905, -0.48862361907958984, 0.03516155481338501, 0.5465289950370789, 0.13516876101493835, -0.07250314205884933, -0.34874483942985535, -0.5825682282447815, -0.5049991011619568, 0.5955833792686462, 0.24754135310649872, -0.06959889084100...
<field position="'14'" tablename="Students" headername="14" fieldreference="ClientField14" orderbydirection="ASC" displaycolumn="T" /> <field position="'15'" tablename="Students" headername="15" fieldreference="ClientField15" orderbydirection="ASC" displaycolumn="T" /> <field position="'16'" tablename="Students...
[ -0.08042487502098083, 0.13514173030853271, 0.4385376274585724, -0.4461041986942291, 0.051361821591854095, 0.5858169794082642, -0.18580277264118195, -0.2342344969511032, -0.4903375208377838, -0.507290780544281, -0.5716887712478638, 0.32923588156700134, -0.0509195402264595, 0.175794318318367...
Dim sFieldList = From field In SortedFields.Descendants("field") Order By (int?)field.@position ```
[ 0.10084669291973114, -0.2127751260995865, 0.5500352382659912, -0.3716399073600769, 0.05047234147787094, -0.003966167569160461, -0.023307479918003082, -0.4746497869491577, -0.2941492795944214, -0.21240995824337006, -0.42433854937553406, 0.3799966275691986, -0.2591245472431183, 0.25159898400...
On my computer, the environment variables %TMP% and %TEMP% both point to the same location. Are those for backward compatibility issues only, or is there a real difference? It is for compatibility. It goes all the way back to DOS. Since there were no standards, some DOS (and Win 3.x) applications would look for the %...
[ 0.44836944341659546, 0.13049060106277466, 0.13983038067817688, 0.014410275034606457, 0.05950796976685524, 0.0089717460796237, 0.22244571149349213, 0.13395024836063385, -0.004417962394654751, -0.48499858379364014, 0.20561708509922028, 0.43120720982551575, -0.2528446614742279, -0.00933419726...
now, but %TMP% lives on. EDIT: Looks like Richard already mentioned the DOS aspect in a comment.
[ -0.011772979982197285, 0.1910589337348938, 0.12232284247875214, 0.14297319948673248, 0.03813808038830757, -0.24275028705596924, 0.3737736642360687, 0.18664303421974182, -0.15766622126102448, -0.22703534364700317, 0.10617411136627197, 0.6330632567405701, 0.07729490846395493, 0.1172220110893...
My data table looks something like this (first row = column names): > Name; Number; Group 1; Group 2; Group 3; ``` Leslie; 555-555-5555; Y; N; Y; John; 555-555-1234; N; Y; N; Mary; 555-555-2222; Y; Y; N; James; 555-555-3333; N; N; Y; Sue; 555-555-4444; Y; Y; Y; ``` I want my report to look like this: > Group Name ...
[ -0.07457837462425232, 0.49927571415901184, 0.5612068772315979, 0.11610144376754761, 0.14377759397029877, 0.12806224822998047, 0.21667593717575073, -0.13307398557662964, -0.3998025953769684, -0.6979661583900452, 0.14674687385559082, 0.14857208728790283, -0.030380448326468468, 0.090060785412...
best way to group my report based on multiple boolean fields (and allow the report to repeat details as necessary)? Thanks in advance, Leslie Waters You either have to change your record source to group them the way you want. Example: ``` SELECT 'Group 1' as GroupName, Name, Number FROM Table WHERE Group1 = 'Y' UN...
[ 0.2853412926197052, -0.04738304018974304, -0.07807759195566177, 0.24126876890659332, -0.09369680285453796, 0.09070947766304016, 0.04163900017738342, -0.3980814814567566, -0.4074527323246002, -0.4680618941783905, 0.2131337821483612, 0.1277136504650116, -0.13864120841026306, 0.03259541466832...
We occasionally need to notify users about warnings or problems. But often times, especially if it's a common problem, users will just dismiss the warning and continue. Often times users won't even remember seeing the warning, but we check their logs and see that several were displayed. So, how do you get users to pay ...
[ 0.6998251676559448, 0.1379934400320053, 0.00523317139595747, 0.30449339747428894, 0.16269706189632416, -0.423983633518219, 0.5174978971481323, 0.3495565950870514, -0.33194345235824585, -0.2559581696987152, 0.048146508634090424, 0.4398484528064728, -0.2464173585176468, 0.029704047366976738,...
that can't be solved right away, or at all). We've got a better warning/error handling system in mind that I think will help a lot, but I want to see what others have done. If you want users to pay attention to warnings, use them in moderation! The big problem with the UAC in Vista is that people are getting so many ...
[ 0.14610284566879272, 0.11442802846431732, 0.21983620524406433, 0.10627933591604233, 0.023117490112781525, -0.628147542476654, 0.43723592162132263, 0.03344817832112312, -0.29551246762275696, -0.4962536096572876, -0.2675405740737915, 0.6000499725341797, -0.2133762538433075, 0.297978341579437...
after pressing 'delete', that I missed the fact that the dialog was telling me that the file would not be moved to the bin, but deleted immediately, for whatever reason. My personal fix: I disabled the delete confirmation for the recycle bin. If something can not be moved to the bin, I still get a message, and this t...
[ 0.29984143376350403, 0.13115854561328888, 0.24934101104736328, 0.015615434385836124, -0.0544477179646492, -0.10089793801307678, 0.7111760377883911, 0.2545633614063263, -0.41074660420417786, -0.23551930487155914, -0.22328926622867584, 0.608982264995575, -0.0665813684463501, 0.17530778050422...
> **Possible Duplicate:** > > [Getting method parameter names in python](https://stackoverflow.com/questions/218616/getting-method-parameter-names-in-python) Is there an easy way to be inside a python function and get a list of the parameter names? For example: ``` def func(a,b,c): print magic_that_does_what_...
[ 0.09941557794809341, 0.1620871126651764, 0.45400258898735046, 0.04827519878745079, -0.13175950944423676, -0.17184928059577942, 0.27658188343048096, -0.285055547952652, -0.28492534160614014, -0.47624385356903076, 0.0614277608692646, 0.6594186425209045, -0.21717391908168793, -0.1017921194434...
Here is the code ``` $i=0; while ($row = mysql_fetch_array($result)) { $output.="idno".$i."=".urlencode($row['usr_id']). '&'."res".$i."=".urlencode($row['responce']). '&'."sex".$i."=".urlencode($row['sex']). '&'."com1".$i."=".urlencode($row['com1']). '&'."com2".$i."=".urlencode($row['com2'...
[ -0.2154136300086975, 0.06452284008264542, 0.5643703937530518, -0.3932509422302246, 0.15320926904678345, 0.24411369860172272, 0.08848360925912857, -0.27194973826408386, -0.08752920478582382, -0.5498241186141968, -0.30788367986679077, 0.5583798885345459, -0.11069627851247787, 0.2370459437370...
'&'."res".$i."=".urlencode($row['responce']). '&'."sex".$i."=".urlencode($row['sex']). '&'."com1".$i."=".urlencode($row['com1']). '&'."com2".$i."=".urlencode($row['com2']); $i++; } ```
[ 0.14303486049175262, 0.4181615710258484, 0.8041993379592896, -0.19160792231559753, 0.3527679443359375, 0.26827049255371094, 0.32771557569503784, -0.11200612038373947, -0.15782855451107025, -0.6624578833580017, -0.588782787322998, 0.8257544636726379, -0.3117108941078186, 0.4557320773601532,...
I have little problem with databinding in my current project. I have an ObservableCollection I want to bind to an ListBox. ``` public ObservableCollection<GeoDataContainer> geoList = new ObservableCollection<GeoDataContainer>(); ``` ...later... ``` geoListBox.ItemsSource = geoList; ``` This code works fine. The L...
[ 0.10221092402935028, 0.20047074556350708, 0.6234832406044006, 0.07221764326095581, -0.17564037442207336, -0.2650817334651947, 0.026282964274287224, -0.08726479858160019, -0.3168337643146515, -0.8669428825378418, 0.03337332233786583, 0.2786366939544678, -0.4968582093715668, 0.21809656918048...
easy way to do it? Another good way would be instantiating geoList as a resource ``` <WindowResources> <l:GeoCollection x:Key="geoList"/> </WindowResources> ``` Then you have ``` GeoCollection geoList = FindResource("geoList") as GeoCollection; ``` Of course, this is for cases when the data is related to the vi...
[ -0.2706683278083801, -0.2844332456588745, 0.3365490436553955, 0.33134666085243225, -0.013111933134496212, -0.26496797800064087, -0.22068938612937927, -0.12228679656982422, -0.22110651433467865, -0.8490116000175476, -0.3308226466178894, 0.7911251783370972, -0.24885576963424683, -0.211829796...
In my continuing quest to try and wrap my mind around RESTful-ness, I've come to another place where I'm not sure how to proceed. I set up a thought expiriment for myself where I'd design a simple voting system for a resource, much like how SO allows voting on questions. So, say my resource is an image, and I can get a...
[ 0.13295988738536835, -0.003392821876332164, 0.5206135511398315, 0.15035955607891083, -0.12981189787387848, 0.414882093667984, -0.22213304042816162, -0.42198440432548523, -0.1928960680961609, -0.5774805545806885, -0.00536828488111496, 0.25052350759506226, -0.18661968410015106, -0.2417787313...
client shouldn't know how much weight each carries, because I'd like to have the award for an up-vote/down-vote be decided at the server level so I can change it anytime I like. My first idea was to have something like this: ``` http://www.mysite.com/vote/images?image=123123 ``` To that URL, one could POST somethin...
[ 0.34317776560783386, -0.060423728078603745, 0.6522039175033569, -0.13498885929584503, -0.19250112771987915, 0.11892455071210861, -0.16742105782032013, -0.20735310018062592, -0.49922361969947815, -0.3485294580459595, 0.0019062242936342955, 0.5505838394165039, -0.024349812418222427, -0.14195...
what the format of the links are. As long as your client knows that it is supposed to do POST to the "UpVoteLink" or "DownVoteLink" it couldn't care less what the format of the URL is. Also, if you decide in two weeks that you don't like the URLs you picked, you can change them and no-one will care! Ok, ok, if you re...
[ 0.7832489013671875, 0.0017292160773649812, 0.5808426737785339, 0.256550133228302, -0.4580411911010742, -0.3070071339607239, -0.36842647194862366, 0.2662801146507263, -0.4478726387023926, -0.4979892373085022, 0.2530003786087036, 0.18717631697654724, -0.07126351445913315, -0.0273289550095796...
I'm currently working on a j2ee project that's been in beta for a while now. Right now we're just hammering out some of the issues with the deployment process. Specifically, there are a number of files embedded in the war (some xml-files and .properties) that need different versions deploying depending on whether you a...
[ 0.7642218470573425, 0.14558272063732147, -0.05598697438836098, 0.2387523055076599, 0.04101094976067543, -0.2545347511768341, -0.08876673132181168, -0.03784942626953125, -0.3214762806892395, -0.5721989870071411, -0.02990308590233326, 0.5105132460594177, 0.01660054177045822, 0.06663662195205...
deploying? Pick a version during build process? Manually edit the wars? Also how far do you go in providing dependencies through the application servers' static libraries and how much do you put in the war themselves? All this just to get some ideas of what the common (or perhaps best) practice is at the moment. I wor...
[ 0.7025624513626099, 0.15213552117347717, 0.25309377908706665, 0.021262723952531815, -0.1580304056406021, 0.2724764943122864, 0.12238761782646179, -0.30901873111724854, -0.29310351610183716, -0.38763293623924255, -0.09368693083524704, 0.6084664463996887, -0.10093092173337936, 0.064412206411...
minimize the amount of configuration required on the server by putting as much configuration as possible in the war (or ear). This makes server configuration easier and also minimizes the chance that the server team will incorrectly configure the server. We don't have machine-specific configuration, but we do have env...
[ 0.4010278284549713, 0.33305245637893677, -0.011332230642437935, -0.10882216691970825, 0.13488060235977173, 0.29462188482284546, 0.1287868767976761, -0.4233582615852356, 0.07878965139389038, -0.9079506397247314, -0.15736877918243408, 0.7923528552055359, -0.16720865666866302, 0.0142984297126...
property and use it to determine the name of the properties file to use. I suppose if you have a small number of machine-specific properties then you could specify them as -D properties as well. Commons Configuration provides an easy way to combine properties files with system properties. We configure connection pool...
[ 0.2818048298358917, -0.032580796629190445, 0.4316190481185913, 0.5046114325523376, 0.15468597412109375, -0.3575601279735565, -0.2058630734682083, -0.33574753999710083, -0.31047266721725464, -0.9743457436561584, 0.062384698539972305, 0.605873703956604, 0.11362537741661072, 0.459402501583099...
Ok, I've got a strange problem. I am testing a usercontrol and have code like this: ``` [TestFixture] public myTestClass : UserControl { MyControl m_Control; [Test] public void TestMyControl() { m_Control = new MyControl(); this.Controls.Add(m_Control); Assert.That(/*Something...
[ 0.4104090631008148, 0.16440537571907043, 0.11432990431785583, -0.05855608731508255, 0.2938098907470703, -0.2580583691596985, 0.4502776563167572, -0.256545752286911, -0.06113646924495697, -0.7975398898124695, -0.10714619606733322, 0.5627859234809875, -0.25948694348335266, 0.2978163659572601...
m_Control = new MyControl(); this.Controls.Add(m_Control); } [TearDown] public void TearDown() { this.Controls.Clear(); } [Test] public void TestMyControl() { Assert.That(/*SomethingOrOther*/); } } ``` I get an Object Reference Not Set To An Instance of an...
[ 0.09449627995491028, -0.04298178851604462, 0.48468732833862305, -0.21595437824726105, 0.3947124183177948, -0.18575303256511688, 0.5882515907287598, -0.34236666560173035, -0.014574372209608555, -0.5291659832000732, -0.44020652770996094, 0.738126814365387, -0.2917845547199249, 0.193019807338...
the correct times, and they were... but still it isn't newing up the usercontrols. edit> The exact code is: ``` [TestFixture] public class MoneyBoxTests : UserControl { private MoneyBox m_MoneyBox; private TextBox m_TextBox; #region "Setup/TearDown" [SetUp] public void Setup() { Money...
[ -0.03663914278149605, -0.16753032803535461, 0.41881635785102844, -0.06543932855129242, 0.44480761885643005, -0.05277729406952858, 0.3160788118839264, -0.4207105040550232, -0.1921956092119217, -0.6275867819786072, -0.0198814794421196, 0.4634033739566803, -0.4466499090194702, 0.0171671435236...
[TearDown] public void TearDown() { this.Controls.Clear(); } #endregion [Test] public void AmountConvertsToDollarsOnLeave() { m_MoneyBox.Focus(); m_MoneyBox.Text = "100"; m_TextBox.Focus(); Assert.That(m_MoneyBox.Text, Is.EqualTo("$100.00"), "Text is...
[ 0.07527372986078262, -0.17484033107757568, 0.9697564244270325, -0.23000717163085938, 0.20179742574691772, 0.18879717588424683, 0.22857944667339325, -0.3185058534145355, 0.02240828052163124, -0.4897376000881195, -0.05639192834496498, 0.8733987212181091, -0.025832727551460266, 0.080123923718...