text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
Say I have 5 strong elements, and I want to wrap them in div elements, in groups of 2 using jQuery. Example: ``` <!--original markup--> <strong>I AM STRONG</strong> <strong>I AM STRONG</strong> <strong>I AM STRONG</strong> <strong>I AM STRONG</strong> <strong>I AM STRONG</strong> ``` Becomes ``` <!-- new markup -...
[ -0.033795636147260666, 0.13085922598838806, 0.29968804121017456, -0.14306139945983887, -0.2908947467803955, 0.13089478015899658, 0.4059302508831024, -0.547393262386322, 0.037092696875333786, -0.44194239377975464, -0.19831882417201996, 0.015392580069601536, -0.0007251118659041822, -0.082713...
would I write a jQuery loop to do this? Thank you **Edit** There is not a fixed number of elements. I'd probably just loop two at a time, wrapping each pair as i go... ``` var elems = $("strong"); for (var i=0; i<elems.length; i+=2) { elems.slice(i,i+2) // split off a pair .wrapAll("<div>"); // wrap it } ``...
[ 0.22244444489479065, -0.2559553384780884, 0.23173293471336365, -0.30409175157546997, -0.01386304572224617, 0.1098470538854599, 0.44196295738220215, -0.7723023891448975, -0.14796730875968933, -0.5401527881622314, -0.10708695650100708, 0.40681466460227966, -0.3287031948566437, -0.22493694722...
HTML and CSS are showing their age. SASS generates CSS (because CSS isn't clean enough). Graphic Designers don't work in HTML, they work in graphics tools then have to translate it to HTML/CSS. JavaScript has to have abstractions like jQuery, and CSS has a bunch of hacks to even start approaching consistent predictabl...
[ 0.2975381016731262, 0.18458354473114014, 0.22444896399974823, 0.2825077772140503, -0.2622588872909546, -0.2726544737815857, 0.08756927400827408, 0.18384678661823273, -0.4608553946018219, -1.1901808977127075, 0.165831059217453, 0.18462267518043518, -0.17904409766197205, 0.08125846087932587,...
Designers don't work in HTML DTP designers don't produce paper and ink either. Design something and produce something, these are separable tasks - when you have an idea for a tv spot you still need lots of technology between your creativeness and the result, the same applies for the web. > Javascript has to have abst...
[ 0.9204308986663818, -0.00529994023963809, 0.03206673637032509, 0.4323531687259674, -0.43370378017425537, -0.1591337025165558, 0.03819922357797623, 0.2614733576774597, -0.28399091958999634, -0.9654548764228821, 0.09899990260601044, 0.6552067995071411, -0.4630008935928345, 0.0123579381033778...
has to have django. Frameworks and libraries are over the language, they are not a must. CSS 'has a bunch of hacks' because some browser producers don't give a damn about something called "standards", not because the language is badly designed. > Surely there is a better way?!? > Something more closely aligned with >...
[ 0.36878588795661926, 0.40592843294143677, 0.043692316859960556, 0.18226505815982819, -0.07449672371149063, -0.5265442132949829, 0.118866465985775, 0.17363138496875763, -0.2461879849433899, -0.5506588220596313, 0.15727365016937256, 0.3232744634151459, -0.3427512049674988, -0.044511407613754...
know, you need flash for something or whatever', start getting interested in [canvas](http://stairwellblog.com/2009/03/is-canvas-the-end-of-flash/).
[ 0.495305597782135, -0.25633564591407776, 0.3235352039337158, 0.08893860131502151, -0.023133620619773865, -0.24110379815101624, 0.3241467773914337, 0.39198601245880127, -0.6554781198501587, -0.3787558078765869, -0.018129432573914528, 0.28280743956565857, 0.0006351027986966074, -0.2367692589...
What is the correct way to solve this problem in ANTLR: I have a simple grammar rule, say for a list with an arbitrary number of elements. ``` list : '[]' | '[' value (COMMA value)* ']' ``` If I wanted to assign a return value for list, and have that value be the actual list of returned values from the production,...
[ 0.008004827424883842, 0.059540823101997375, 0.1622549295425415, 0.12842004001140594, -0.2116178721189499, 0.0035016671754419804, 0.2787174880504608, -0.22044499218463898, -0.4320932924747467, -0.6164454221725464, 0.14158104360103607, 0.3572140038013458, -0.41281336545944214, -0.11639618128...
slick and cool way that I'm hoping to find out about in which I can get easy access to such a list from within the action associated with the rule. I guess the question is: How do the cool kids do it? (FYI I'm using the python API for ANTLR, but if you hit me with another language, I can handle that) In C# it might l...
[ 0.5087212324142456, -0.1779666543006897, 0.4213285446166992, 0.45405155420303345, 0.05930140241980553, -0.6922913193702698, -0.10264230519533157, 0.15726813673973083, -0.46700072288513184, -0.2114693820476532, 0.30349135398864746, 0.7966833710670471, -0.0067767915315926075, -0.288567543029...
| '[' value {$ValueList.Add(value);} (COMMA value {$ValueList.Add(value);})* ']' ; ```
[ -0.005838883109390736, 0.13951599597930908, 0.49890628457069397, -0.5324841141700745, 0.21238015592098236, 0.1756337285041809, 0.09380121529102325, -0.29831287264823914, -0.13344806432724, -0.2133004516363144, -0.5465530753135681, 0.7501705288887024, -0.48444515466690063, 0.140896826982498...
I am working on a building a gallery and the goal is a low barrier of entry. My user is someone who takes pictures using their digital camera so file size would be between 200 - 400 KB per image. The problem I am running into using the GD library is that each image when resized and uploaded use about 90MB of memory+ ...
[ 0.45965516567230225, 0.1821376085281372, 0.4230525493621826, 0.006990539841353893, -0.09805458039045334, -0.03970086947083473, 0.03554844111204147, -0.149880513548851, -0.2673982083797455, -0.804018497467041, 0.2643479108810425, 0.4529646635055542, -0.18197359144687653, 0.2721588611602783,...
me some pointers. Thanks, Levi edit: Here is my code to upload ``` /** Begin Multiple Image Upload**/ $numberImages = count($_FILES['galFile']['name'])-1; for($i=1;$i<=$numberImages;$i++) { $imageName = $_FILES['galFile']['name'][$i]; $imageType = $_FILES['galFile']['type'][$i]; ...
[ 0.3026497960090637, -0.12338604032993317, 0.6370832324028015, -0.053249016404151917, -0.4396115243434906, 0.13526757061481476, 0.38924604654312134, -0.5152086019515991, -0.09173759818077087, -0.879409909248352, 0.011973739601671696, 0.7903404235839844, -0.5826340913772583, -0.1065318658947...
//Make sure it is an image if(in_array(end(explode(".", $imageName)), $allowed)) { //Where to upload image to $uploadFile = $uploadDir . $imageName; if (file_exists($uploadFile))
[ 0.17578701674938202, 0.019987644627690315, 0.54510098695755, -0.22364875674247742, 0.38075485825538635, -0.12982571125030518, 0.23931430280208588, -0.26894524693489075, -0.1686919927597046, -0.48242780566215515, -0.30252477526664734, 0.6783997416496277, -0.3280314803123474, 0.0025408624205...
{ //What to do if file already exists //Append random number to the end $front = explode(".", $imageName); $randomNum = rand(1,100); $front[0] = $front[0].$randomNum; $imageName = $front[0].".".$front[1];
[ 0.16919353604316711, -0.07073824107646942, 0.08219552040100098, -0.10229097306728363, 0.16531401872634888, 0.21058914065361023, -0.029130559414625168, -0.5010823011398315, 0.024075493216514587, -0.12019892036914825, -0.14735518395900726, 0.5982037782669067, -0.20633313059806824, 0.09531364...
$uploadFile = $uploadDir . $imageName; } if(move_uploaded_file($imageTemp,$uploadFile)) { //Add $imageName to DB $query = "INSERT INTO galleryImages
[ 0.29168370366096497, -0.14006789028644562, 0.652235209941864, -0.13420918583869934, -0.15158838033676147, 0.0550207644701004, 0.01096317544579506, -0.41410839557647705, -0.06477613747119904, -0.5847766399383545, 0.018057333305478096, 0.584132194519043, -0.6138417720794678, 0.11612663418054...
VALUES(\"0\",\"$lastInsert\",\"$imageName\",\"$i\")"; mysql_query($query); reSizePic($uploadFile); } } } ``` Here is the GD code I had been using to resize: ``` function reSizePic($image) { $source_pic = $image; $destination_pic = $image; $max_width = 660; ...
[ 0.16245625913143158, -0.23091702163219452, 1.0643901824951172, -0.34514299035072327, 0.14779067039489746, 0.2884227931499481, -0.20583587884902954, -0.6340498328208923, -0.1700124889612198, -0.2806183397769928, 0.11659188568592072, 0.7537721991539001, -0.11954919248819351, -0.0845582336187...
= $width; $tn_height = $height; } elseif (($x_ratio * $height) < $max_height) { $tn_height = ceil($x_ratio * $height); $tn_width = $max_width; } else { $tn_width = ceil($y_ratio * $width); $tn_height = $max_height; } $tmp = imagecreatetruecolor($tn_width,$tn_height); imagecopyresampled($tmp,$src,0...
[ -0.00856747105717659, -0.24073663353919983, 0.7265570163726807, -0.2388157695531845, 0.2359391450881958, 0.25091543793678284, -0.00530123058706522, -0.5773006677627563, -0.21817518770694733, -0.5845645070075989, -0.21675944328308105, 0.6918457746505737, 0.03267274424433708, 0.0667470768094...
bytes = Width \* > Height \* Bytes per pixel \* Overhead > fudge factor Where Bytes per pixel = > Bit depth/8, or Bits per channel \* Num > channels / 8. That's about the GD part. Now the ImageMagick: have you tried a simpler approach: ``` $thumb = new Imagick('image.jpg'); $thumb->resizeImage($w,$h,Imagick::FILT...
[ 0.2728938162326813, -0.2816319167613983, 0.5712422132492065, 0.048761315643787384, -0.19307881593704224, -0.15930451452732086, 0.12130691111087799, -0.42068666219711304, -0.28461524844169617, -0.7721095085144043, -0.10862187296152115, 0.5812858939170837, -0.4504561126232147, 0.061058688908...
We're using query interceptors in ADO.NET Data Services in our application to filter the result set for each entity based on the data that a user has access to. However I'm getting the following exception thrown from one of our query interceptors: > Internal .NET Framework Data Provider error 1004, 0, Related Entitie...
[ 0.2699333429336548, 0.106559157371521, 0.3896006643772125, -0.058906398713588715, -0.16561095416545868, -0.21172335743904114, 0.07525043934583664, -0.11294026672840118, -0.07118053734302521, -0.7416598200798035, 0.06881285458803177, 0.3347671627998352, -0.46504801511764526, 0.2760696113109...
[QueryInterceptor("OnlineItems")] public Expression<Func<OnlineItems, bool>> QueryOnlineItems() { return item => (item.Products.Any(p => p.Price > 10)); } ``` As a stab in the dark I would imagine it would be the combination of filtering on Products as well as expanding on Products...
[ -0.1911083310842514, -0.07397809624671936, 0.6772554516792297, -0.013975007459521294, -0.1251048445701599, -0.011818109080195427, 0.04428444430232048, -0.2493162304162979, -0.30325865745544434, -0.6034618020057678, -0.23649552464485168, 0.4702497720718384, -0.2943161129951477, 0.2030360251...
=> p.Price > 10) > 0); } ``` Does anyone know why this would work and not the "Any" case?
[ 0.40314653515815735, 0.19854316115379333, 0.4090419411659241, -0.17353306710720062, 0.24914227426052094, -0.1024312973022461, 0.11565113812685013, -0.15449115633964539, 0.10766363143920898, -0.1991117149591446, -0.17080101370811462, 0.8551812767982483, -0.3431856632232666, 0.25060722231864...
HI, How do I move (drag) a Grid Panel inside a WPF Window? The Grid Panel does not have a Position or Location or X and Y coordinate porperty. All I am looking at is to move the Grid Panel from its current location to a new location using Mouse so that the controls that are "burried" underneath it will show up. Any p...
[ 0.04019394516944885, -0.18596869707107544, 0.689342200756073, -0.09779037535190582, -0.066729836165905, -0.00934151466935873, -0.18065805733203888, -0.3621244728565216, 0.0025785595644265413, -0.6699404716491699, 0.0638389140367508, 0.4354080855846405, -0.1727207601070404, 0.06298758089542...
<Grid.RenderTransform> <TranslateTransform x:Name="tt"/> </Grid.RenderTransform> </Grid> ``` Name the control that you want the grid to move within: ``` <Window x:Name="window" ...> <Grid x:Name="grid"... </Window> ``` In code behind: ``` Point m_start; Vector m_startOffset; private void Grid_Mou...
[ -0.3055151104927063, -0.5469958782196045, 0.7219752073287964, -0.22982163727283478, 0.20704308152198792, 0.1694881170988083, -0.11000502854585648, -0.39405307173728943, -0.17193925380706787, -0.7659410238265991, -0.5284852981567383, 0.6383073329925537, -0.4569235146045685, -0.0057562803849...
tt.Y = m_startOffset.Y + offset.Y; } } private void Grid_MouseUp(object sender, MouseButtonEventArgs e) { grid.ReleaseMouseCapture(); } ```
[ 0.17173942923545837, -0.26428619027137756, 0.3505125641822815, -0.18212755024433136, 0.33583489060401917, -0.07009339332580566, 0.15617531538009644, -0.013878361321985722, -0.2692646086215973, -0.334316611289978, -0.2292368859052658, 0.9937061667442322, -0.46200641989707947, 0.001660445239...
How do I/(what is the best way to) implement composition and aggregation in C#? Thanks 123Developer That's a pretty abstract question, given that both composition & aggregation are pretty similar & really only different conceptually and not necessarily at the code level. (i.e. you might consider a Car having an Engine...
[ 0.6276118755340576, 0.16752883791923523, -0.24233217537403107, 0.32533788681030273, -0.058643486350774765, -0.08647862076759338, -0.06683997064828873, -0.2208092361688614, 0.03782125934958458, -0.4926011860370636, 0.3191533088684082, 0.49405932426452637, -0.17745466530323029, -0.1648243069...
could do something like this... taking [an example from Wikipedia](http://en.wikipedia.org/wiki/Object_composition#Aggregation): > Aggregation differs from ordinary composition in that it does not imply ownership. In composition, when the owning object is destroyed, so are the contained objects. In aggregation, this i...
[ 0.32936736941337585, 0.2843303084373474, -0.15837979316711426, 0.5754964351654053, 0.05219651386141777, -0.32313913106918335, -0.03530779108405113, -0.0046693324111402035, -0.2798835337162018, -0.31053900718688965, -0.5586895942687988, -0.2485438734292984, -0.13942326605319977, 1.013943433...
Professor could work in more than one department, but a department could not be part of more than one university. You might build this code to represent it (with as many contrived indications of composition/aggregation): ``` public class University : IDisposable { private IList<Department> departments = new List<...
[ 0.13956333696842194, -0.10827291011810303, 0.26026415824890137, 0.16860345005989075, -0.005101516377180815, 0.0595233216881752, -0.13101109862327576, -0.054058708250522614, -0.06097828224301338, -0.47636204957962036, -0.6461653709411621, 0.286976158618927, -0.3115788698196411, 0.8547832965...
} public void Dispose() { //destroy the university... //destroy the departments too... (composition) foreach (var department in departments) { department.Dispose(); } } } public class Department : IDisposable { //Department makes no sense if it isn't...
[ 0.2674420177936554, -0.11665493249893188, 0.021604493260383606, 0.2806641161441803, 0.3318865895271301, -0.21080052852630615, 0.2202877253293991, 0.02113567478954792, -0.09462426602840424, -0.6324544548988342, -0.4729619026184082, 0.43322065472602844, -0.24492301046848297, 0.58952134847640...
(composition) private University uni; private string name; //list of Professors can be added to, meaning that one professor could //be a member of many departments (aggregation) public IList<Professor> Professors { get; set; } // internal constructor since a Department makes no sense on its ow...
[ -0.01719541661441326, -0.028470266610383987, 0.2142781913280487, 0.16739997267723083, 0.029933564364910126, 0.05490124598145485, -0.05651254579424858, -0.10159546136856079, 0.015046642161905766, -0.43832671642303467, -0.46645474433898926, -0.0034961868077516556, -0.2720675766468048, 0.5784...
this.name = name; } public void Dispose() { //destroy the department, but let the Professors worry about //themselves (aggregation) } } public class Professor { } ```
[ 0.28614872694015503, 0.16148535907268524, -0.03193201869726181, -0.010252631269395351, 0.1445467323064804, -0.5536192059516907, 0.3303620517253876, -0.06294375658035278, -0.10349918901920319, -0.4970875680446625, -0.5957111120223999, 0.4439113438129425, -0.5116182565689087, 0.9481548070907...
I have wpf datagrid, in one of columns, I checkboxes added in it, now the problem is how do I get "IsChecked" propoerties of it ? Note: I have not bind that column to any datacontext, and its a Template Column Thanks You need to either 1. Record those checkboxes using variables or identifiers in XAML. Or, 2. Iterate...
[ 0.10410373657941818, -0.07327201962471008, 0.372877836227417, -0.07767614722251892, -0.29122933745384216, -0.17824798822402954, 0.3357711136341095, -0.598736047744751, -0.1476493924856186, -0.767099142074585, 0.17042994499206543, 0.24174541234970093, -0.2535138428211212, 0.0295640397816896...
I develop software that stores a lot of data in one of its database tables (SQL Server version 8, 9 or 10). Let's say, about 100,000 records are inserted into that table per day. This is about 36 million records per year. For fear that I would lose on performance, I decided to create a new table everyday (a table with ...
[ 0.4162457287311554, 0.3554338216781616, 0.2619018256664276, 0.2854093313217163, 0.34533101320266724, -0.18233343958854675, -0.16026628017425537, 0.21594807505607605, -0.7829857468605042, -0.37572553753852844, 0.35685211420059204, 0.09506435692310333, 0.032492801547050476, 0.603728234767913...
(more or less) can be stored in a table before performance is lowered significantly? It's hard to give a generic answer to this. It really depends on number of factors: * what size your row is * what kind of data you store (strings, blobs, numbers) * what do you do with your data (just keep it as archive, query it reg...
[ 0.27130675315856934, 0.15072759985923767, 0.4407137632369995, 0.39213329553604126, 0.011321485973894596, 0.06304120272397995, -0.047229208052158356, 0.049063149839639664, -0.7430146336555481, -0.6745210886001587, 0.1701492965221405, 0.15831035375595093, 0.18251000344753265, 0.3088587522506...
maintenance/query nightmare it will become.
[ 0.3295225501060486, 0.1684924066066742, 0.7111555337905884, 0.14169266819953918, 0.4167022109031677, -0.01813647523522377, 0.02176498807966709, 0.40991708636283875, 0.11653608083724976, -0.6607987284660339, -0.058573104441165924, 0.40079981088638306, 0.025400100275874138, 0.452146351337432...
I have a problem in XL regarding redefining the Macro assignment of radio button when the source worksheet is copied to a Destination worksheet within a new workbook. When i click on the radio button in the Destination worksheet, it attempt to open the Source workbook RATHER to run the macro assigned to the button. I...
[ 0.20539020001888275, 0.27086251974105835, 0.4172680377960205, -0.06631799787282944, 0.25416383147239685, -0.21675845980644226, 0.1360732764005661, -0.2496926337480545, -0.12026490271091461, -0.67474365234375, 0.14827218651771545, 0.9718491435050964, -0.4567868113517761, 0.14340069890022278...
running it from the Source worksheet, but it does not work. Code: ``` wbkDESTINATION.Sheets("1-Start").Select ActiveSheet.Shapes("Option Button 1").Select Selection.OnAction = "Sheet1.WEEKLY" ``` I would appreciate your suggestion, how to modify the last `Selection.OnAction` code so that XL knows to pick it from th...
[ 0.4931506812572479, -0.032946862280368805, 0.2540800869464874, -0.037185098975896835, -0.016391228884458542, -0.1593906581401825, 0.4561755955219269, 0.08825886994600296, -0.10773898661136627, -0.7752507925033569, -0.21089260280132294, 0.7650231122970581, -0.505065381526947, -0.03169417753...
it's simpler and quicker to do a redirect for a single site using, well, ‘Redirect’. ``` <VirtualHost *:80> ServerName example.com ...real settings... </VirtualHost> <VirtualHost *:80> ServerName www.example.com Redirect permanent / http://example.com/ </VirtualHost> ```
[ -0.2108054757118225, -0.09078370034694672, 1.0246294736862183, -0.11543426662683487, -0.009891901165246964, 0.16715076565742493, 0.067677341401577, 0.02204575575888157, -0.6344082355499268, -0.7767208218574524, -0.3052256107330322, 0.6402328014373779, -0.3515174686908722, 0.172825902700424...
I'm trying to separate my presentation and logic as much as I can, but there's one problem. How can i set the text-property to a dynamic value from my design file? I want to do like this: ``` <asp:Textbox id="txtUrl" runat="server" Text="<%= user.URL %>" /> ``` But this will fail. Am i forced to do this from code b...
[ 0.12111689150333405, 0.058457523584365845, 0.8199499845504761, -0.13044492900371552, -0.13505862653255463, 0.09218098968267441, 0.29755598306655884, -0.2757941782474518, -0.10799991339445114, -0.746157705783844, -0.2605254650115967, 0.5799261927604675, -0.18732237815856934, 0.0452559776604...
I use posix\_spawnp to execute different processes and I check the status (with waitpid) to make sure the child was created properly ``` int iRet = posix_spawnp(&iPID, zPath, NULL, NULL, argv, environ); if (iRet != 0) { return false; } int iState; waitpid(static_cast<pid_t>(iPI...
[ 0.09826945513486862, -0.20913973450660706, 0.4914645552635193, -0.3460502624511719, 0.5382644534111023, 0.6659756898880005, 0.1642286777496338, -0.45154011249542236, 0.13280799984931946, -0.5991055369377136, -0.08179476112127304, 0.3404054343700409, -0.27763330936431885, 0.3044437468051910...
{ printf("Child exited with RC=%d\n",WEXITSTATUS(iState)); } else if (WIFSIGNALED(iState)) { printf("Child exited via signal %d\n",WTERMSIG(iState)); } else { printf("Child is NORMAL"); } ``` At first this executes properly and I get the following message: > Wait: PID ...
[ -0.0919216051697731, -0.057763177901506424, 0.5904766321182251, -0.10555414855480194, 0.6806326508522034, 0.2995443642139435, 0.5595060586929321, -0.12763109803199768, 0.024651575833559036, -0.5232950448989868, -0.29723212122917175, 0.45279449224472046, -0.11518275737762451, 0.418145120143...
| State 32512 Child > exited with RC=127 After this happens, I could not get the child to spawn again. I enclosed the section of code given above in a for loop but it wouldn't spawn properly. If I restart the parent process, it works for a while but the same problem crops up again after a while. What am I doing wron...
[ 0.16335126757621765, 0.2017582654953003, 0.2637842893600464, -0.16429316997528076, 0.30031877756118774, 0.2356087565422058, 0.4759177267551422, -0.2621544599533081, -0.014395220205187798, -0.5249966382980347, 0.10211819410324097, 0.37753868103027344, -0.16690729558467865, 0.324247688055038...
successfully returns from the posix\_spawn or posix\_spawnp function, the child process might exit with exit status 127. It looks as if it might exit with 127 for a whole host of reasons.
[ -0.11644930392503738, -0.1581038385629654, 0.38140183687210083, -0.001025994773954153, 0.5359918475151062, 0.09903649240732193, 0.4120194911956787, 0.12901180982589722, -0.2490466982126236, -0.4906547963619232, -0.3362214267253876, 0.12025243788957596, 0.021519895642995834, 0.3518408238887...
I've a request to make some changes to a little applet that currently use a JFileChooser. One of the main complaints is that the file chooser is a pain in the ass to use because it behaves differently than the native widget, especially for navigating up to the root level. So, knowing that and all the other issue JF...
[ 0.222750723361969, 0.11998069286346436, 0.347757488489151, 0.02057850919663906, -0.036872513592243195, -0.015291736461222172, 0.2385464608669281, 0.014033034443855286, -0.39872831106185913, -0.5959185361862183, -0.03944208472967148, 0.49370166659355164, -0.23713460564613342, 0.408317714929...
option. So, is there a better pure java implementation of a file chooser? You can also try [XFileDialog](http://code.google.com/p/xfiledialog/ "xfiledialog"). Haven't tried it much yet but looks worth evaluating.
[ 0.09541099518537521, -0.4422663152217865, 0.057816021144390106, 0.12930187582969666, -0.048145048320293427, -0.09569231420755386, 0.08880678564310074, 0.35218921303749084, -0.2265770435333252, -0.7307227253913879, -0.020091865211725235, 0.5819864869117737, -0.33353540301322937, -0.13756689...
I want to deserialize the JSON string below, using jQuery each function, but the item is undefined. there is the code below, but, in case I am using asp.net 2.0 + web service and fill the DataTable and pass to System.Web.Script.Serialization.JavaScriptSerializer class and return these JSON string. ``` <html> <head> ...
[ 0.33169206976890564, 0.014110769145190716, 0.42994144558906555, -0.08852919936180115, 0.22575728595256805, 0.06633779406547546, 0.10845623165369034, -0.5124082565307617, -0.2990906238555908, -0.7395904064178467, -0.4058084487915039, 0.44610050320625305, -0.36071082949638367, -0.01371541619...
$strJson += '{"Code":"b","Name":"John","Country":"CN"},'; $strJson += '{"Code":"c","Name":"Mary","Country":"TW"}'; $strJson += ']'; $.each($strJson, function (key, item) { alert(item); if (key == 0) return false; //Prevent infinity loop
[ 0.34974753856658936, -0.22244006395339966, 0.46299052238464355, -0.08066889643669128, 0.4069422483444214, 0.18939390778541565, 0.4886302053928375, -0.29535961151123047, -0.37678658962249756, 0.1630217432975769, -0.524986743927002, 0.5461345911026001, -0.4181212782859802, 0.5509373545646667...
}); }); </script> </head> <body> </body> </html> ``` Have you tried using ASP.NET's Sys.Serialization.JavaScriptSerializer's [deserialize](http://msdn.microsoft.com/en-us/library/bb383812.aspx) method? ``` var result = Sys.Serialization.JavaScriptSerializer.deserialize($strJson); ``` Alternatively, ther...
[ -0.017408592626452446, -0.19379520416259766, 0.389834463596344, -0.182295024394989, -0.0790184810757637, 0.026785386726260185, 0.03994287550449371, -0.3859807848930359, -0.33781152963638306, -0.5247055888175964, -0.2851325273513794, 0.38501566648483276, -0.3272729814052582, -0.055733375251...
is not > modified. If it returns undefined then the member is deleted. [Working Example here](http://jsbin.com/ibapa). Here's the code ``` <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="e...
[ 0.10189670324325562, -0.10961392521858215, 0.594036877155304, -0.18929918110370636, 0.11584199965000153, 0.09947483241558075, 0.016491353511810303, -0.23108915984630585, -0.40909838676452637, -0.6064064502716064, -0.7350905537605286, -0.1348024606704712, -0.44406425952911377, 0.21565231680...
$strJson += ']'; var result = json_parse($strJson); $.each(result, function(key, item) { alert("Code: " + item.Code + " ,Name: " + item.Name + " ,Country: " + item.Country); //Taken the following out as it prevents objects after the first from being "alerted"
[ 0.1269153207540512, -0.22596131265163422, 0.4783104658126831, -0.43801653385162354, -0.03034302033483982, 0.16262947022914886, 0.47983041405677795, -0.3516468405723572, -0.5999997854232788, -0.1533643752336502, -0.5948342084884644, 0.37755313515663147, -0.4394952654838562, 0.16708602011203...
//if ( key == 0) return false; //Prevent infinity loop }); }); </script> <title>Sandbox</title> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> </head> <body> <p>Example Page</p> </body> </html> ```
[ 0.10765082389116287, -0.13211745023727417, 0.6475074887275696, -0.14763280749320984, 0.1274559646844864, -0.19371774792671204, 0.20239853858947754, -0.5444374084472656, -0.048707276582717896, -0.5614211559295654, -0.5541466474533081, 0.5127120614051819, -0.1897660493850708, 0.0785164609551...
I am having a problem with the loading times/size of an sifr 3 enabled site, and found out the the font swf is requested several times in my application. This can be seen in the network tab of firebug, as well as in the apache logs. On <http://novemberborn.net/flash/prefetching-movies> there are some instructions for ...
[ 0.5764794945716858, 0.1901637464761734, 0.4408189058303833, -0.05815555155277252, -0.30560168623924255, -0.2938741147518158, 0.3271027207374573, -0.09669966995716095, -0.15530993044376373, -0.7334133982658386, -0.1501397043466568, 0.5759925842285156, -0.11508248001337051, 0.163688108325004...
for rockwell.swf and cochin.swf! Both with Firefox 3 and IE7... Any chance for an easy and quick fix? Greetings, Simon Have you tried using ASP.NET's Sys.Serialization.JavaScriptSerializer's [deserialize](http://msdn.microsoft.com/en-us/library/bb383812.aspx) method? ``` var result = Sys.Serialization.JavaScriptSer...
[ -0.0169330183416605, -0.24649831652641296, 0.38334915041923523, -0.1597563475370407, -0.08271384984254837, 0.23547197878360748, 0.31484630703926086, -0.36337199807167053, -0.24316124618053436, -0.7880825996398926, -0.3506518304347992, 0.4684939980506897, -0.3355763852596283, -0.22467856109...
structure is not > modified. If it returns undefined then the member is deleted. [Working Example here](http://jsbin.com/ibapa). Here's the code ``` <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" x...
[ 0.09493671357631683, 0.10867810249328613, 0.4994637370109558, -0.19145511090755463, 0.060757122933864594, -0.19672900438308716, -0.03418842330574989, -0.4576221704483032, -0.5230618715286255, -0.6330639719963074, -0.65868079662323, -0.15835270285606384, -0.43042805790901184, 0.144943296909...
'{"Code":"c","Name":"Mary","Country":"TW"}'; $strJson += ']'; var result = json_parse($strJson); $.each(result, function(key, item) { alert("Code: " + item.Code + " ,Name: " + item.Name + " ,Country: " + item.Country); //Taken the following out as it prev...
[ 0.26297515630722046, -0.12260676920413971, 0.6016680002212524, -0.3865886330604553, 0.09012369811534882, 0.3102667033672333, 0.5585207343101501, -0.2862524688243866, -0.6980097889900208, -0.12505842745304108, -0.6944364905357361, 0.3920398950576782, -0.36451831459999084, 0.3289888501167297...
//if ( key == 0) return false; //Prevent infinity loop }); }); </script> <title>Sandbox</title> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> </head> <body> <p>Example Page</p> </body> </html> ```
[ 0.10765082389116287, -0.13211745023727417, 0.6475074887275696, -0.14763280749320984, 0.1274559646844864, -0.19371774792671204, 0.20239853858947754, -0.5444374084472656, -0.048707276582717896, -0.5614211559295654, -0.5541466474533081, 0.5127120614051819, -0.1897660493850708, 0.0785164609551...
Is there any difference between DECIMAL and NUMERIC data types in SQL Server? When should I use DECIMAL and when NUMERIC? They are the same. Numeric is functionally equivalent to decimal. MSDN: [decimal and numeric](https://msdn.microsoft.com/en-us/library/ms187746.aspx)
[ 0.03975652903318405, 0.08228839933872223, 0.0997089371085167, 0.39552250504493713, 0.061573803424835205, 0.07950419187545776, -0.2276521474123001, 0.38119378685951233, -0.22937622666358948, -0.2743579149246216, 0.027618467807769775, 0.13870693743228912, 0.09663873165845871, 0.2233866006135...
I have a class that gets used in a client application and in a server application. In the server application, I add some functionality to the class trough extension methods. Works great. Now I want a bit more: My class (B) inherits from another class (A). I'd like to attach a virtual function to A (let's say Execute(...
[ 0.64515620470047, -0.07357299327850342, 0.10234535485506058, 0.019962944090366364, -0.13686731457710266, 0.16586506366729736, 0.029930533841252327, -0.14860892295837402, -0.08855828642845154, -0.5715457797050476, 0.2638970911502838, 0.5351019501686096, -0.24793794751167297, 0.3186383843421...
just like B does, and I'd like to implement Execute() for each of them. I was hoping I could add a virtual extension method to A, but that idea doesn't seem to fly. I'm looking for the most elegant way to solve this problem, with or without extension methods. No, there aren't such things as virtual extension methods. ...
[ 0.4421073794364929, -0.034331951290369034, -0.2953217327594757, -0.23676353693008423, 0.13338376581668854, -0.2018508017063141, 0.27432069182395935, 0.1311909705400467, -0.3150117099285126, -0.3644329309463501, -0.03509163483977318, 0.5090644359588623, -0.7891343235969543, 0.14210897684097...
public B(ISomeUtility util) { // store util } public override void Execute() { if(util != null) util.Foo(); } } ``` Then use a DI framework to provide a server-specific `ISomeUtility` implementation to `B` at runtime. You can do the same thing with a central `static` registry (IOC, bu...
[ 0.35009968280792236, -0.16402943432331085, 0.019734369590878487, -0.008204115554690361, 0.18619424104690552, -0.17262236773967743, 0.18366360664367676, -0.36401376128196716, 0.1783778965473175, -0.45763617753982544, -0.4458814263343811, 0.3874509036540985, -0.6441806554794312, 0.2712655067...
if(util != null) util.Foo(); } ``` (where you'd need to write `Registry` etc; plus on the server, register the `ISomeUtility` implementation)
[ -0.2799220085144043, -0.06680092960596085, 0.2855496406555176, -0.14813067018985748, 0.28536751866340637, -0.17447932064533234, 0.1390034258365631, -0.12221945077180862, 0.0707966536283493, -0.24213582277297974, -0.3036642074584961, 0.6254945397377014, -0.510771632194519, 0.118901990354061...
I have a problem I’m trying to solve with BizTalk and was hoping you would have some thoughts on the best way to solve it. I am loading in a flat file using a flat file adapter. This file contains records if a number of different types. Type 1 records are parent records. The rest of the types all link to the parent rec...
[ 0.44930553436279297, -0.09814891219139099, 0.08794469386339188, 0.20198571681976318, 0.10394780337810516, 0.0886366218328476, 0.0824369266629219, -0.09578757733106613, -0.278518944978714, -0.784938395023346, -0.03808674216270447, 0.44811439514160156, -0.42417895793914795, 0.371505320072174...
result of joining all the records based on the foreign keys. Each record in the resulting message would therefore have columns from all of the record types as the message records will be the result of a join. For example, the flat file might contain the following records: ``` * Type1 * Type1 * Type2 * Type2 * Type3 *...
[ 0.319034218788147, -0.08664535731077194, 0.4429146945476532, -0.25310400128364563, -0.22806605696678162, 0.14518217742443085, 0.44253531098365784, -0.7424489855766296, -0.14950832724571228, -0.7158861756324768, -0.022603465244174004, 0.41897132992744446, -0.4992761015892029, 0.164654135704...
have tried are: * Splitting the original message into messages with records of each type then using a multi-source map to join them up. I had difficultly achieving this as I wasn’t sure what functoids to use. * Inserting the child records into a SQL database so that the additional columns in the parent records can be ...
[ 0.4147120714187622, -0.06932207196950912, -0.04939049109816551, -0.017109792679548264, -0.1956726312637329, 0.3512533903121948, 0.28120550513267517, 0.1124943271279335, -0.23109425604343414, -0.8183612823486328, 0.12514479458332062, 0.16970382630825043, -0.24730832874774933, 0.069573566317...
BizTalk to consume. This is simple and fast but isn’t using BizTalk. Any advice on how to go forward to make the best use of BizTalk for this would be appreciated. **[cut](http://en.wikipedia.org/wiki/Cut_(Unix))** use it like this: `cut -f2 -d[ | cut -f1 -d]` ``` bart@hal9k:~> YOURTEXT="Tue, 06 Nov 2007 10:04:11...
[ 0.09708474576473236, 0.09775573760271072, 0.3167765140533447, -0.16972674429416656, -0.30897611379623413, -0.008568333461880684, 0.24813403189182281, -0.022245030850172043, -0.2929757833480835, -0.584723174571991, -0.14089861512184143, 0.5211849212646484, -0.4142009913921356, -0.0423757024...
So here is a bit of a strange one... I have a stored proc that takes 40 seconds to run. I copy the contents of the stored proc to a new query window, change the 2 input parameters (which are both dates) so they are declared and set, and run the query. It is basically instant, sub 1 second execution. The only difference...
[ 0.1174527257680893, -0.14471374452114105, 0.4734085500240326, -0.15035270154476166, -0.1626204550266266, -0.20635592937469482, 0.4158032536506653, -0.1097637191414833, -0.20178210735321045, -0.21544060111045837, 0.19531331956386566, -0.026085587218403816, -0.3185145854949951, 0.26975220441...
during > compilation or recompilation... You need to mask the parameters: ``` ALTER PROCEDURE [uspFoo] @Date1 datetime, @Date2 datetime AS BEGIN DECLARE @IDate1 datetime, @IDate2 datetime; SELECT @IDate1 = @Date1, @IDate2 = @Date2; -- Stuff here that depends on @IDate1 and @IDate2 END ```
[ 0.15758860111236572, -0.19874395430088043, 0.030089128762483597, -0.048861436545848846, 0.15412753820419312, 0.0024765257257968187, 0.16175749897956848, -0.15751448273658752, 0.043460216373205185, -0.3505552113056183, -0.09303230047225952, 0.4561189115047455, -0.4149231016635895, 0.2319771...
Does anyone know of a way to get vim to wrap long lines of text such that the position of the wrapped text is based on the indentation of the current line? I don't want to reformat my code, just for it to be displayed prettily. For instance, if I set my settings so that the line: ``` print 'ProcessorError(%r, %r, %r)...
[ 0.24757429957389832, 0.13164882361888885, 0.6437225937843323, -0.29105937480926514, -0.1250542253255844, 0.3301868140697479, 0.5548920035362244, -0.2931576371192932, -0.2178068608045578, -0.5044609308242798, -0.09143276512622833, 0.572589635848999, -0.23617878556251526, 0.21328993141651154...
%r, %r)' % (self.file, self.index, self.message) ``` it wraps to something like this: ``` def __repr__(self): return 'ProcessorError(%r, %r, %r)' % (self.file, self.index, self.message) ``` I would prefer for it to be displayed as: ``` def __repr__(self): return 'ProcessorError(%r, %r,...
[ 0.09449055045843124, 0.2724789083003998, 0.2626669406890869, -0.2896629869937897, 0.26136675477027893, 0.18108227849006653, 0.48676708340644836, -0.1842145025730133, -0.3234712481498718, -0.45849284529685974, -0.41884520649909973, 0.7077591419219971, -0.2680077850818634, 0.0556875169277191...
(see [Vim TODO](http://vimdoc.sourceforge.net/htmldoc/todo.html)). So what I'd like to know is what is the *easiest way* to get vim working with `breakindent`? (I don't care what version of vim I have to use.) You're looking for `breakindent` You may want to also refer to [this thread](http://newsgroups.derkeiler.com/...
[ 0.44946056604385376, -0.0496583916246891, 0.2747701108455658, -0.05825403705239296, -0.09380488842725754, -0.5477110147476196, 0.7087388038635254, 0.014569757506251335, -0.37480804324150085, -0.13700179755687714, -0.1255047768354416, 0.4568208158016205, -0.38816964626312256, 0.074698477983...
Is it any easy way to use CherryPy as an web server that will display `.html` files in some folder? All CherryPy introductory documentation states that content is dynamically generated: ``` import cherrypy class HelloWorld(object): def index(self): return "Hello World!" index.exposed = True cherrypy.qu...
[ -0.02471845969557762, -0.36466771364212036, 0.5226441025733948, 0.06127864494919777, -0.09816563129425049, -0.03405046463012695, 0.22540540993213654, 0.32896479964256287, -0.1955798715353012, -0.3894464671611786, -0.2679849863052368, 0.46316373348236084, -0.3162493407726288, -0.01260218303...
'tools.staticdir.on': True, 'tools.staticdir.dir': PATH, 'tools.staticdir.index': 'index.html', }, }) cherrypy.quickstart() ```
[ -0.10300356894731522, -0.5214480757713318, 0.22356028854846954, 0.01287340372800827, 0.1650782823562622, 0.20686937868595123, 0.37592679262161255, 0.2929978370666504, -0.0764755979180336, -0.4767344892024994, -0.331170916557312, 0.792011022567749, -0.506431519985199, 0.002047763206064701, ...
I have a div: ``` <div class="test" id="someElement" style="position: absolute"></div> ``` Is there any way to check if the certain element: ``` $("#someElement") ``` has a particular class (in my case, "test"). Alternately, is there a way to check that en element has a certain style? In this example, I'd like ...
[ 0.4246842861175537, 0.13197937607765198, -0.10189087688922882, -0.01629823073744774, -0.14866314828395844, -0.36199241876602173, 0.23493072390556335, 0.003217123681679368, 0.08574625104665756, -0.6112689971923828, -0.1638982594013214, 0.3547538220882416, -0.027180416509509087, -0.019735977...
I've got a rather large solution in Visual Studio. Is there a way to update the Major / Minor version numbers for all the assemblies in the solution in one go? You can share an AssemblyInfo.cs file between all projects in the solution. This shared file should contain the version numbers. To share it, you must use Add E...
[ 0.7517708539962769, -0.013838865794241428, -0.12442907691001892, 0.054847653955221176, -0.0689345970749855, 0.020387452095746994, 0.10134042054414749, -0.011347123421728611, -0.37333008646965027, -0.8721084594726562, 0.12531471252441406, 0.2663615942001343, -0.19480779767036438, -0.3795171...
build using the actual build version and it works beautifully.
[ 0.5684033632278442, 0.24644850194454193, 0.11437620967626572, 0.16881901025772095, -0.042107291519641876, 0.05605507642030716, 0.3626936674118042, -0.12820856273174286, 0.3252727687358856, -0.7898406386375427, 0.07187701016664505, 0.6246455311775208, 0.09246725589036942, -0.201803922653198...
I'm looking for a decent .Net chess engine. If there is a good chess existing one, any recommendation as to a good candidate to port to .Net? Not an engine as such, but [Valil.Chess](http://www.valil.com/winfx/) is a good .NET chess game (with source code available - so you can get to the "engine" of the game) which wo...
[ 0.07383456081151962, -0.0817238986492157, -0.028941040858626366, 0.27014806866645813, -0.21785208582878113, 0.1011972650885582, 0.0909871980547905, 0.02521086111664772, -0.10388094931840897, -0.5691525936126709, 0.12425507605075836, 0.5425140857696533, 0.06144654005765915, -0.0384862534701...
choose from lots of engines to implement within .NET. A good starting point list is [here](http://en.wikipedia.org/wiki/Chess_engine#Freely_available_chess_engines) and also shows the [Elo Rating](http://en.wikipedia.org/wiki/Elo_rating_system) of each engine. Even a re-implementing of the server-side of the [FICS](htt...
[ 0.16393883526325226, -0.09783116728067398, 0.18819241225719452, 0.3580154776573181, 0.10442418605089188, -0.35728272795677185, 0.10853634774684906, -0.452403724193573, -0.15261217951774597, -0.5938001871109009, -0.1211375817656517, 0.46725866198539734, -0.1676328182220459, -0.0647736042737...
I imagine that we all (when we can be bothered!) comment our interfaces. e.g. ``` /// <summary> /// Foo Interface /// </summary> public interface Foo { /// <summary> /// Will 'bar' /// </summary> /// <param name="wibble">Wibble factor</param> void Bar(string wibble); } ``` Do you also comment the...
[ 0.6185684204101562, 0.10152193903923035, 0.46533817052841187, -0.1980520486831665, -0.027420200407505035, 0.16908439993858337, 0.11474230885505676, -0.2918189465999603, -0.2632681429386139, -0.8185350894927979, 0.10443039238452911, 0.6761456727981567, -0.4903367757797241, -0.14019192755222...
Yourself) principle as with code: * on interface, document the interface * on implementation, document the implementation specifics **Java specific**: when documenting the implementation, use {@inheritDoc} tag to "include" javadocs from the interface. For more information: * [Official javadoc documentation](http://...
[ 0.7372234463691711, -0.11900724470615387, 0.02104867994785309, -0.036752838641405106, -0.06557617336511612, -0.4694240391254425, 0.2859952449798584, -0.8093786239624023, -0.2415277510881424, -0.22356361150741577, -0.0021017573308199644, 0.8978496193885803, -0.330529123544693, -0.0921879336...
I want to fetch the records from MySQL for the current year and month. I am passing to get the today records Today: ("recDate","=", new Date()); Like that, how to fetch for current Month and current Year ? Thanks in advance * Gnaniyar Zubair ``` import java.util.Calendar; public class CalendarExample { public...
[ 0.4457288086414337, 0.06330619007349014, 0.5867752432823181, -0.05829031020402908, 0.128714919090271, 0.1637919545173645, 0.2144113928079605, 0.04695525020360947, 0.15611395239830017, -0.5348127484321594, -0.0709645226597786, 0.538972795009613, -0.26068466901779175, 0.36277374625205994, ...
int dow = cal.get(Calendar.DAY_OF_WEEK); int dom = cal.get(Calendar.DAY_OF_MONTH); int doy = cal.get(Calendar.DAY_OF_YEAR); System.out.println("Current Date: " + cal.getTime()); System.out.println("Day: " + day); System.out.println("Month: " + month); System.out.println(...
[ -0.07902649790048599, -0.0339067168533802, 0.38901281356811523, -0.27219992876052856, 0.3279126286506653, 0.17401836812496185, 0.06895091384649277, -0.40325674414634705, -0.2575521469116211, -0.3955219089984894, -0.2095184177160263, 0.6591276526451111, -0.1317225694656372, 0.51142340898513...
" + dom); System.out.println("Day of Year: " + doy); } } ``` Here is the result of this example: Current Date: Thu Dec 29 13:41:09 ICT 2005 Day: 29 Month: 12 Year: 2005 Day of Week: 5 Day of Month: 29 Day of Year: 363
[ -0.3715587854385376, 0.2238229513168335, 0.730897843837738, -0.436368852853775, -0.22743503749370575, 0.26562929153442383, 0.43794047832489014, 0.1163310706615448, -0.6139647364616394, -0.13561849296092987, -0.33849743008613586, 0.20947395265102386, 0.37740620970726013, 0.3374726176261902,...
When accessing my site from a number of machines $\_SERVER['REMOTE\_ADDR'] always resolves to an empty string. What can be the cause of this? **Additional info:** One of the machines is running the site on localhost. Shouldn't a machine on localhost always resolve to 127.0.0.1? My set up is LAMP. One dev. machine tha...
[ 0.07869847118854523, 0.11783884465694427, 0.574558675289154, 0.017833178862929344, 0.15035153925418854, -0.20846930146217346, 0.37299278378486633, 0.41870173811912537, -0.3222673535346985, -1.078027367591858, -0.11637420952320099, 0.561754047870636, -0.1784103959798813, 0.5664217472076416,...
terms of latency, but can also yield unexpected results as there is no requirement on what to resolve to - or to resolve at aall.
[ -0.05757419019937515, 0.0543905608355999, 0.2071760594844818, -0.0031313186045736074, 0.1801997423171997, 0.11077693849802017, 0.38417744636535645, -0.40551796555519104, -0.0597212016582489, -0.24081800878047943, -0.4130414128303528, 0.4049644470214844, 0.1093408390879631, -0.0712504386901...
I need to store custom meta-data in a Word document. The 'document properties' are limited to 255 bytes but I have data which is >> 10k We are using VBA to write a word extension to interact with our application and want to have our application data stored in the word document. The idea is that that the user can share...
[ 0.26358017325401306, 0.1609509140253067, 0.6544023752212524, -0.018171172589063644, -0.011360660195350647, 0.17854346334934235, 0.31865525245666504, -0.4918663501739502, -0.1605670005083084, -0.5290049910545349, -0.05452122166752815, 0.7807793617248535, -0.5472333431243896, 0.0899139568209...
with the document. They seem to go up to 65280 Unicode characters, as I just found out (tested in Word 2003; **Update:** This limit is the same in Word 2007 and 2010). If you fear to get near the 60k for your data, I'd recommend either splitting it over several variables, or compressing it before you store it. [This p...
[ -0.07323887199163437, 0.1354936808347702, 0.5578363537788391, -0.1651202142238617, -0.01220372412353754, -0.010381678119301796, 0.16995245218276978, -0.4406782388687134, -0.5582588315010071, -0.3709259629249573, -0.1601875275373459, 0.525206446647644, -0.27476632595062256, 0.00270580942742...
I've recently been building a test framework for a bit of C# I've been working on. I have NUnit set up and a new project within my workspace to test the component. All works well if I load up my unit tests from Nunit (v2.4), but I've got to the point where it would be really useful to run in debug mode and set some bre...
[ 0.17820826172828674, 0.21401344239711761, 0.2772795855998993, -0.1129259392619133, -0.08279719948768616, -0.11409815400838852, 0.5696315169334412, -0.25564879179000854, 0.09610507637262344, -0.6892611384391785, -0.14322307705879211, 0.6333954930305481, -0.16157345473766327, -0.010179260745...
tried the calling the GUI as well. Both give me the same error when I try and start debugging: ``` Cannot start test project 'TestDSP' because the project does not contain any tests. ``` Is this because I normally load \DSP.nunit into the Nunit GUI and that's where the tests are held? I'm beginning to think the pro...
[ 0.41978585720062256, 0.011977043002843857, -0.10883438587188721, 0.06374009698629379, -0.4020349979400635, -0.2441861778497696, 0.43117380142211914, -0.11528409272432327, 0.08421285450458527, -0.5679343938827515, 0.18946507573127747, 0.6479305624961853, -0.2519511580467224, 0.0798775777220...
includes using NUnit.Framework; [TestFixture] public class FirFilterTest { [Test] public void Test01_ConstructorTest() { ...some tests... } } } ``` ...I'm pretty new to C# and the NUnit test framework so it's entirely possible I've missed some crucial b...
[ 0.3787640929222107, 0.1084398478269577, 0.10592039674520493, 0.0699566975235939, -0.2871703505516052, -0.03810049220919609, 0.4753168821334839, -0.4677734375, 0.04020409286022186, -0.1826939433813095, 0.10890057682991028, 0.45636802911758423, -0.06086253002285957, -0.006380550097674131, ...
used. If you pick `Other Languages -> Visual C# -> Test -> Test Project` ...when you're choosing the project type, Visual Studio will try and use it's own testing framework as far as I can tell. You should pick a **normal** C# class library project instead and then the instructions in my selected answer will work. I us...
[ 0.5359902381896973, 0.10795709490776062, 0.1545373648405075, -0.06932026147842407, -0.0075340261682868, -0.047366801649332047, 0.3463963568210602, -0.23195064067840576, -0.026253176853060722, -0.6240739822387695, -0.196527898311615, 0.45555606484413147, -0.35494229197502136, 0.008836581371...
right-clicking on the test project and choosing Debug --> Start New Instance
[ 0.13585972785949707, 0.2380211502313614, -0.52110356092453, 0.14954975247383118, -0.0812680646777153, -0.07952792942523956, 0.286515474319458, 0.2260328084230423, 0.21028028428554535, -0.7411109209060669, -0.2500416040420532, 0.23330208659172058, -0.2950911819934845, 0.28363677859306335, ...
I'm writing a workflow that needs to perform certain actions depending on which fields are changed when someone edit's an item. For example, if a user goes in and removes a role (job) from an item (staff member) then I need the workflow to realise that the role field was changed, deduce which role was removed (or poten...
[ 0.24024981260299683, 0.050393637269735336, 0.0928194522857666, 0.001687013660557568, 0.04491813853383064, 0.0469268299639225, 0.07120927423238754, -0.23240691423416138, -0.2874612510204315, -0.5405829548835754, -0.188425675034523, 0.27394890785217285, -0.37348291277885437, 0.19776625931262...
I'm going to try a code block when the workflow is started that compares the top two history entries and any fields that differ will be flagged as changed and I'll take the appropriate actions dependent on each field. Could anyone please tell me what the other options are for getting this functionality as I'd like to ...
[ 0.7705864906311035, -0.00014938933600205928, 0.1294851303100586, 0.39106127619743347, 0.11096446961164474, -0.11245332658290863, 0.2681996524333954, -0.06551793217658997, -0.36719539761543274, -0.40547212958335876, 0.0458814762532711, 0.5147338509559631, -0.019691554829478264, 0.2826969027...
you have nothing to gain except breaking any existing code that accesses the class in the same unit. As long as your existing units are not modified, then the difference between **strict** and non-**strict private** is academic. If your reasoning for the **strict** behavior is to use the compiler to help you *refacto...
[ 0.5441721677780151, -0.06930753588676453, -0.2168017476797104, 0.38806501030921936, -0.06507857888936996, -0.1420871466398239, 0.3693211078643799, -0.20200763642787933, -0.19941817224025726, -0.5283119082450867, -0.025764068588614464, 0.5962556004524231, -0.13825806975364685, 0.25588491559...
you knew if any of them worked. The reason **private** behaves like it does is similar to C++'s **friend** - it allows certain classes (or procedural code) to access **private** members. The *VCL* and *RTL* makes heavy use of this behavior, so a compiler switch or an all out change would break all of that code. Delp...
[ 0.09579945355653763, -0.24264751374721527, -0.0857255682349205, 0.1868065893650055, -0.17200441658496857, -0.24808014929294586, 0.15423157811164856, 0.1360708624124527, -0.2548844814300537, -0.33138507604599, -0.27612626552581787, 0.48863890767097473, -0.17689576745033264, 0.15579305589199...
We currently have many office products and a embedded product. They all have the same version scheme *major*.*minor*.*build number*.*svn revision*. With nightly and manual builds incrementing the build number. From a development support front this makes it really easy to manage 'correct version', but the in-field supp...
[ 0.4503308832645416, 0.21565677225589752, 0.7194684743881226, -0.04831373691558838, 0.20052090287208557, -0.01806986890733242, 0.15945391356945038, 0.06900050491094589, -0.29194876551628113, -0.605553388595581, -0.31443560123443604, 0.5491606593132019, 0.11160293221473694, 0.282095938920974...
scale. the *svn revision* is the same for all files at time x, but the nobody really pays that attention. All .exe's and .dll's etc have the same X.Y.W.Z number. So the office product go from 1.1.10.1234 to 1.1.132.4321 when we do lots of work on the embedded product. I wouldn't really say this is an issue as long as...
[ 0.3853769302368164, 0.08247189968824387, 0.7332462072372437, -0.015441318973898888, -0.18802045285701752, -0.045769818127155304, 0.0954987034201622, 0.11152615398168564, -0.39070916175842285, -0.8536890745162964, -0.000207343531656079, 0.6101313829421997, 0.031027916818857193, 0.4628955721...
suggestion I could make is moving to a dated version number so that the major and minor versions don't change so rapidly. Something like 9.0417.yyyy.xxxx would be the 17th of April 2009 release with the build number of yyyy and xxxx as the svn revision. If you don't want to change the major number and want to keep the ...
[ -0.07797572761774063, 0.04067905247211456, 0.9517003297805786, 0.018652135506272316, -0.4468013346195221, -0.0101329255849123, 0.2712879776954651, 0.43982037901878357, -0.36410337686538696, -0.5722523331642151, -0.07950492203235626, 0.48038363456726074, 0.12843050062656403, 0.2835887670516...
That's important for good documentation, but currently it just doesnt work well. If I copy source code from Xcode editor into OpenOffice Writer, then every single line is an own paragraph. I have a paragraph style for source code, but because of multiple paragraphs I get a lot of unnecessary spaces. Could i program a ...
[ 0.6288909316062927, 0.3319072723388672, 0.19999124109745026, 0.039215460419654846, -0.07932575792074203, -0.05181848630309105, 0.13364723324775696, 0.17829707264900208, -0.14828650653362274, -0.7525105476379395, 0.37329110503196716, 0.47695720195770264, -0.31999027729034424, -0.23220734298...
in Open Office, instead of doing a normal paste, ctrl-v, have you tried using ctrl-shif-v? Paste special, and choose unformatted text.
[ 0.05070441961288452, -0.07923512905836105, 0.17912611365318298, 0.23793041706085205, -0.18953417241573334, -0.41635704040527344, -0.05056137219071388, 0.39251816272735596, -0.0642738789319992, -0.7916858196258545, -0.43838024139404297, 0.4214054048061371, -0.36770376563072205, -0.004352644...
How to add the total page number on every page with iText? 1. Process the output from a `PdfWriter` to a `bytestream` first with a dummy page count. 2. Create a `PdfReader` from that `bytestream`, calling `PdfReader.getNumberOfPages` to get the actual page count. 3. Recreate the PDF output, knowing what the page count ...
[ 0.17595911026000977, -0.11639728397130966, 0.5413550138473511, 0.20267276465892792, -0.45071718096733093, 0.02196703478693962, -0.044607557356357574, -0.455924928188324, -0.24487608671188354, -0.5649622082710266, -0.17148937284946442, 0.455588698387146, -0.21531827747821808, -0.12897151708...
The clearest way to explain this is with an image: <http://i42.tinypic.com/fc1gdk.png> I want to only show the first two lines of the "Solution" field, as otherwise with a long solution, it becomes very hard to browse the list. Is this possible? I've looked at the list and view options, and nothing is apparent. Canno...
[ 0.21934589743614197, -0.08879122883081436, 0.5307000875473022, 0.11302883923053741, 0.28012630343437195, 0.027058212086558342, -0.0863606259226799, 0.08942056447267532, -0.16413599252700806, -0.6018508672714233, 0.36286407709121704, 0.37525323033332825, -0.30254828929901123, -0.10000091046...