text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
evaluate a rules engine are: * Is it configurable (otherwise you'd just code it instead) * Is it performant. * How easy is it for non technical people to change rules * How easy is it for new rule sets to be deployed (and old ones undeployed). Several Rules Engines have [Business Rules Management](http://en.wikipedia...
[ 0.2794725298881531, 0.0031090721022337675, 0.022806348279118538, 0.19736841320991516, -0.36051663756370544, -0.27178817987442017, 0.369349867105484, -0.43229371309280396, -0.05207786336541176, -0.4910571873188019, 0.11986281722784042, 0.4661238193511963, -0.016050510108470917, -0.256914854...
good as well (although pricey).
[ -0.09278398007154465, 0.076591357588768, -0.12661787867546082, 0.31454282999038696, -0.1334596872329712, -0.01361958496272564, 0.29574722051620483, 0.22490188479423523, 0.013030407018959522, 0.2850438952445984, -0.037305958569049835, 0.7920712828636169, 0.42245399951934814, 0.3368295431137...
I need to generate a list of all the files which are enough to run my application on any machine. I need this for a setup program. When i go to bin/release folder i'm able to see some pdb files and some configuration files, which i think will not be needed. I tried to disable generation of pdb files too but it still ge...
[ 0.21634094417095184, 0.1570688635110855, 0.276716947555542, 0.028944456949830055, -0.09546181559562683, -0.1518176645040512, 0.2520299255847931, -0.31534507870674133, -0.2416801005601883, -0.8709426522254944, 0.014833691529929638, 0.6489703059196472, -0.39032450318336487, -0.07570476830005...
run. Thanks. Have you tried publishing the application (Build > Publish [app])? This should just copy all the essential files to the specified folder.
[ 0.6890256404876709, 0.16222916543483734, 0.11708386987447739, 0.25924524664878845, 0.05152994766831398, -0.36101067066192627, 0.5962684154510498, 0.060736916959285736, 0.06081409007310867, -0.6990258097648621, -0.19477424025535583, 0.8093696236610413, -0.28212088346481323, -0.1445293128490...
I would like to display 100000 records on browser / multiple pages with minimal impact on memory. ie Per page 100 records. I would like to move page back and forth. My doubts are 1. Can I maintain all the record inside the memory ? Is this good Idea ? 2) Can I make database connection/query for ever page ? If so h...
[ 0.28193962574005127, 0.22692082822322845, 0.34087809920310974, 0.29980871081352234, 0.043407853692770004, -0.029674746096134186, 0.1625262051820755, -0.09288538247346878, -0.513710618019104, -0.8582490682601929, 0.2997214198112488, 0.38778769969940186, -0.010009150952100754, 0.492382794618...
huge. I don't know what DBMS are you using, but in MySQL and several others, you can rely on the DB for pagination with a query such as: ``` SELECT * FROM MyTable LIMIT 0, 100 ``` The first number after limit is the offset (how many records it will skip) and the second is the number of records it will fetch. Bear ...
[ 0.2654340863227844, 0.06453576683998108, 0.13080625236034393, 0.0036101045552641153, -0.0704197883605957, -0.4427824020385742, -0.19487261772155762, 0.0389283262193203, -0.5692636370658875, -0.4888492524623871, 0.07395821809768677, 0.46396079659461975, -0.3716963529586792, 0.43268144130706...
> **Possible Duplicate:** > > [how to open in new window](https://stackoverflow.com/questions/10242908/how-to-open-in-new-window) how can i open a page in new window in using javascript. [window.open](http://www.javascript-coder.com/window-popup/javascript-window-open.phtml)
[ 0.19160747528076172, 0.19030433893203735, 0.41602975130081177, -0.09899455308914185, 0.08719418197870255, -0.13204333186149597, 0.5366544723510742, -0.1347024291753769, -0.47941502928733826, -0.9970689415931702, -0.31840047240257263, 0.10432054847478867, -0.12293799221515656, 0.07662478834...
I started using bazaar after a long camping in the svn field. I had previous experience with cvs as well, and I used tags occasionally. With svn, once you release a version, you perform a svn copy of your trunk into tags, for example svn copy trunk tags/1.2.0 . In bazaar I created the same repository structure, but th...
[ 0.6140603423118591, -0.15632255375385284, 0.17613907158374786, 0.03302085027098656, -0.08570694178342819, -0.47016671299934387, -0.1253652423620224, -0.030454030260443687, -0.3423559367656708, -0.3698787987232208, 0.05364473909139633, 0.6767102479934692, -0.4269781708717346, 0.113188341259...
I reach a milestone, I tag it. I then continue to develop and tag again when a new milestone is reached. This complicates the following tasks: * comparing a new version against an old version recursively (with the svn-like approach : diff --brief -r) * bugfixing an old version, and create new version with its patchver...
[ 0.39951732754707336, 0.11020997166633606, 0.4633556008338928, -0.0988798514008522, 0.16716215014457703, -0.03726140037178993, 0.40963947772979736, -0.20287133753299713, -0.19823484122753143, -0.6313456296920776, 0.023244982585310936, 0.6655439734458923, -0.17534665763378143, -0.04749332740...
you do it only once) As a result, I use the same svn repo structure in bzr, and I perform a physical copy of the trunk every time. This means that I don't see any real use of the bzr tag command in this arrangement. why should I tag the whole repo revision with a version number, if it contains all of them for every re...
[ 0.543258011341095, -0.1661721169948578, 0.29691770672798157, 0.054942257702350616, -0.15963777899742126, -0.23022514581680298, 0.45692509412765503, 0.0003591179265640676, -0.5899438261985779, -0.24855992197990417, -0.044838082045316696, 0.5335254073143005, -0.2578791081905365, -0.022804105...
from the trunk via bzr branch) for each release. It's like svn, just that you don't put the root directory in the repository. I still don't really see any particular reason for tags, apart of the fact that, if you have say foo-1.0.0 foo-1.0.1 foo-2.0.0 foo-2.1.0 trunk and assuming I always tagged releases before ...
[ 0.450099378824234, -0.18802441656589508, 0.3222254514694214, 0.21928153932094574, 0.022062165662646294, -0.28757354617118835, 0.2370980978012085, 0.11276663094758987, -0.4129105508327484, -0.09710843861103058, -0.28171634674072266, 0.6218514442443848, -0.22188502550125122, 0.29325741529464...
for that branch. I am not really interested in a particular release number, I'm just interested that it's into a specific directory. **What are tags in bzr?** Tags are just an easy to remember handle for a particular revision. Rather than attempting to remember `david@hrcsb.org-20090420170402-eql4vzvcifkz4fwy`, or rev...
[ 0.3020816743373871, 0.03575661778450012, 0.36587774753570557, -0.12110692262649536, 0.02189248614013195, -0.22188106179237366, 0.10499408096075058, 0.10372648388147354, -0.5601955056190491, 0.009413206949830055, -0.18624985218048096, 0.3746855556964874, -0.3959238529205322, 0.2424750626087...
-d trunk/ foo-1.0.0.0 bzr branch -r 1234 trunk/ release-1.x ``` When you do your bugfixes for 1.x releases, you do them in the release-1.x branch, tagging each point release: ``` bzr tag -r 1255 -d release-1.x/ foo-1.0.0.1 bzr export -r tag:foo-1.0.0.1 release-foo-1.0.0.1.tar.gz release-1.x/ ``` Your directory st...
[ 0.03196859732270241, 0.1996522694826126, 0.6331777572631836, -0.22343970835208893, 0.10753478109836578, -0.07105966657400131, -0.004664335399866104, -0.09577272087335587, -0.19654034078121185, -0.0779474750161171, -0.5430853366851807, 0.588603138923645, -0.666989266872406, 0.17697668075561...
I can't determine why this text can't be scrolled over and the hyperlink (all in the body of the page) can't be clicked. I'm not sure if it's a CSS issue, or some other kind of issue. The XHTML is valid, but the CSS isn't totally. Wondering if I can fix without totally remedying every CSS element. <http://www.writer...
[ 0.3540743291378021, 0.010547696612775326, 0.4361642897129059, 0.23217467963695526, -0.16895751655101776, -0.46089300513267517, 0.40916404128074646, 0.3389124274253845, -0.2590755522251129, -0.5568995475769043, -0.08147280663251877, 0.2872862219810486, -0.14668190479278564, 0.16117846965789...
I have two ObservableCollections and I need to show them in one ListView control together. For this purpose I created MergedCollection which presents these two collections as one ObservableCollection. This way I can set the ListView.ItemsSource to my merged collection and both collections are listed. Adding works fine ...
[ -0.13543716073036194, -0.2852347493171692, 0.7589239478111267, 0.028231004253029823, -0.06978562474250793, -0.11296508461236954, 0.07277598232030869, -0.11548615247011185, -0.2616511881351471, -0.962343156337738, 0.07323677092790604, 0.3075026869773865, -0.4843665063381195, 0.4536376893520...
public MergedCollection(ObservableCollection<NetworkNode> nodes, ObservableCollection<NodeConnection> connections) { this.nodes = nodes; this.connections = connections; this.nodes.CollectionChanged += new NotifyCollectionChangedEventHandler(NetworkNodes_CollectionChanged); this.conn...
[ -0.02286430448293686, -0.4315977096557617, 0.46095359325408936, 0.11514867842197418, 0.22911620140075684, 0.07889251410961151, 0.4233066737651825, -0.2930557131767273, -0.33152446150779724, -0.6534386277198792, -0.15154191851615906, 0.5134648084640503, -0.45237115025520325, 0.4840961098670...
e); } #region IEnumerable Members public IEnumerator GetEnumerator() { for (int i = 0; i < connections.Count; i++) { yield return connections[i]; } for (int i = 0; i < nodes.Count; i++) {
[ -0.18277163803577423, -0.4694620668888092, 0.7193734049797058, -0.036499299108982086, 0.17795640230178833, -0.0640435442328453, 0.46710437536239624, -0.5042362213134766, -0.16917942464351654, -0.8234887719154358, -0.578507125377655, 0.21651792526245117, -0.17082424461841583, 0.363062202930...
yield return nodes[i]; } } #endregion #region INotifyCollectionChanged Members public event NotifyCollectionChangedEventHandler CollectionChanged; #endregion } ``` Regards Is there any reason you can't use [CompositeCollection](http://msdn.microsoft.com/en-us/library/system.windows.dat...
[ -0.2666793167591095, -0.33917805552482605, 0.4973556399345398, 0.08355160802602768, 0.04512062668800354, -0.226997971534729, 0.09810786694288254, -0.0895702913403511, -0.5515779256820679, -0.7637113332748413, -0.08184827119112015, 0.0325186550617218, -0.4811965823173523, 0.2230373173952102...
so: ``` <ListBox> <ListBox.Resources> <CollectionViewSource x:Key="DogCollection" Source="{Binding Dogs}"/> <CollectionViewSource x:Key="CatCollection" Source="{Binding Cats}"/> </ListBox.Resources> <ListBox.ItemsSource> <CompositeCollection> <CollectionContainer Collection="{Binding Source={St...
[ 0.15086941421031952, -0.16766954958438873, 0.5229856967926025, -0.28691062331199646, -0.015894602984189987, 0.12393544614315033, -0.0729447528719902, -0.5889387726783752, -0.5312692523002625, -0.4752576947212219, -0.3016803562641144, 0.21482205390930176, -0.5486936569213867, 0.041824113577...
I'm working on an ASP.NET application that uses VB. I'm using a SQLReader/SQLCommand/SQLConnection within the VB file to try to pull data values. I was mystified to find out that the reason why the query wasn't returning any values, and someone here showed me how to troubleshoot the query to verify things were being r...
[ 0.5487728714942932, 0.1530890017747879, 0.22542127966880798, -0.14449207484722137, -0.20254115760326385, 0.08134227246046066, -0.035741858184337616, -0.16610117256641388, -0.2979552745819092, -0.2953373193740845, 0.29917436838150024, 0.27270954847335815, -0.42403754591941833, 0.49790173768...
for the query, it can match? The types of data it looks to match are just basic things like "2", "2a", "1a", and so on. If there's no way to just declare the nvarchar, does anyone have a suggestion on how I might workaround that? Thanks a bunch. Side note: This is a continuation, of sorts, of this question: [SQL Re...
[ 0.34186458587646484, 0.06083151325583458, 0.4140688180923462, 0.21570900082588196, -0.14311300218105316, -0.26641806960105896, 0.34367823600769043, -0.22017188370227814, -0.2746178209781647, -0.4576956629753113, 0.09177238494157791, 0.686872661113739, -0.08674497157335281, 0.13554364442825...
the parameter as a form-wide variable like this: ``` Private travelParameter As New SqlParameter("@trip", SqlDbType.NVarChar) ``` And then inside the main form, ``` travelQuery.CommandText = "SELECT [StartLoc], [EndLoc],[TravelTime], [AvgSpeed], [Distance] FROM [TravelTimes] WHERE [TripNum] = @trip" travelQuery.P...
[ -0.08704131096601486, -0.2998143136501312, 0.8407244682312012, 0.20386409759521484, 0.03931722790002823, 0.10183289647102356, -0.07346154749393463, -0.4711352288722992, -0.015503513626754284, -0.5856318473815918, -0.10010934621095657, 0.7099913954734802, -0.19746746122837067, 0.12583500146...
Sub ``` Thanks again. P.S. - Adam and Cerebus, I'd accept both answers if I could. They both really brought the idea together for me, thanks big time. Your data type in .NET should be a `string`. You just need to make sure that your parameter instance is using `NVarChar` (if it's a `DbParameter`, then then that's `D...
[ 0.06763853132724762, -0.07016563415527344, 0.21475085616111755, 0.2443733513355255, -0.33749136328697205, -0.017198024317622185, 0.6200411915779114, 0.10433994233608246, -0.2766479253768921, -0.925483763217926, -0.1477992683649063, 0.19299544394016266, -0.29380276799201965, 0.4650558829307...
In Delphi 2007, I added a new string type to my project: ``` type String40 = string; ``` This property is used in a class: ``` type TPerson = class private FFirstName = String40; published FirstName: string40 read FFirstName write FFirstName; end; ``` During runtime, I want to get the name of th...
[ -0.40456345677375793, -0.20372837781906128, 0.5456473231315613, -0.10792039334774017, 0.041311584413051605, 0.06251204013824463, 0.3266378939151764, -0.3019007444381714, 0.10865378379821777, -0.5868790745735168, -0.1713819056749344, 0.7084120512008667, -0.4257027208805084, 0.01981730572879...
do get the correct property type name, 'String40'? This works in Delphi5 ``` type String40 = type string; ``` As for the rest of your code, to have RTTI available you should * inherit TPerson from TPersistent or * use the {$M+} compiler directive for TPerson * make the Firstname property published --- **Edit:**...
[ -0.14754293859004974, -0.12462606281042099, 0.40014880895614624, -0.27112293243408203, 0.19083447754383087, -0.14712028205394745, 0.33221232891082764, -0.3187413811683655, -0.006120673846453428, -0.6400473117828369, -0.40435758233070374, 0.6979204416275024, -0.37253743410110474, 0.30369392...
PropTypeName: string; MyPerson: TPerson; begin Application.Initialize; MyPerson := TPerson.Create; MyPropInfo := GetPropInfo(MyPerson, 'FirstName')^; PropTypeName := MyPropInfo.PropType^.Name; ShowMessage(PropTypeName); end. ```
[ -0.16898129880428314, -0.1793643832206726, 0.6153230667114258, -0.3158378005027771, 0.14087533950805664, 0.3204965591430664, 0.433003306388855, -0.11175017058849335, 0.10011004656553268, -0.7078261375427246, -0.7338582873344421, 0.31807994842529297, -0.43907690048217773, 0.2284770756959915...
I need to convert a CSV file from iso to UTF-8 to keep the accents in the database. French accents (é,è,ê, and the like) are not kept when I try to translate them to UTF-8, they are changed to "?". I'm stumped. I use the following function for the translation: ``` public static string iso8859ToUnicode(string src) ...
[ 0.07251688838005066, 0.41933998465538025, 0.4972877502441406, -0.2716410160064697, -0.00028903185739181936, 0.018023189157247543, 0.4018850326538086, 0.1020628958940506, -0.0410187765955925, -0.698341429233551, -0.5596179366111755, 0.35714805126190186, -0.1538303643465042, 0.08637974411249...
byte[] unibytes = Encoding.Convert(iso,unicode,isoBytes); char[] unichars = new char[iso.GetCharCount(unibytes,0,unibytes.Length)]; unicode.GetChars(unibytes,0,unibytes.Length,unichars,0); return new string(unichars); } ``` But it doesn't seem to work well. Help? I strongly suspect tha...
[ -0.10296732187271118, 0.17538146674633026, 0.3551614284515381, -0.13323816657066345, -0.21337305009365082, 0.32244813442230225, 0.26624324917793274, -0.3537141978740692, -0.13713200390338898, -0.6707655787467957, -0.2021527886390686, 0.3720906674861908, -0.3381047248840332, 0.2323758155107...
Alternatively, load the file using ISO-Latin-1 and just save it as UTF-8. For example: ``` public static void ConvertLatin1ToUtf8(string inputFile, string outputFile) { Encoding latin1 = Encoding.GetEncoding(28591); string text = File.ReadAllText(inputFile, latin1); File.WriteAllText(outputFile, text, Enco...
[ -0.23321573436260223, -0.04159826040267944, 0.35276901721954346, -0.2485819011926651, -0.05715637281537056, 0.3239154815673828, 0.15980161726474762, -0.32658419013023376, -0.006955580785870552, -0.7105526924133301, -0.6674856543540955, 0.6359575390815735, -0.4341382682323456, 0.00543529354...
I regularly slice web designs provided in PSD format. As a site-builder, I don't need to create graphics—I only rearrange the layers, hide ones and show others, pick colors, widths, heights, and so on. What tools are there to do that job? I know Adobe Photoshop, but it's a very expensive tool for a site-builder who do...
[ 0.9412056803703308, 0.23149238526821136, 0.1734696626663208, 0.08194591104984283, -0.20079420506954193, 0.12328867614269257, -0.023910315707325935, 0.17768166959285736, -0.21193182468414307, -0.8162946105003357, 0.011716358363628387, 0.6340680122375488, 0.07796154916286469, -0.128647491335...
are not what I'm looking for—I haven't found one allows me to deal with layers. Adobe Imageready used to come with Photoshop for slicing. That was replaced with Fireworks Adobe has free trials of all their products ;)
[ 0.714166522026062, -0.2367684543132782, 0.6495652794837952, 0.33636394143104553, -0.2545243799686432, -0.03877273574471474, -0.00842785369604826, -0.22724640369415283, -0.12187767028808594, -0.30340224504470825, -0.10217781364917755, 0.6169916987419128, -0.3254590928554535, -0.361678332090...
I wrote a few custom workflow activities and from the browser i used several dynamic variables to populate input properties, for example like **{dynVar1} / {dynVar2} / {dynVar3}**, but after publish it is changed as **{dynVar1}{dynVar1}**. How can this be solved? There is a fix in Rollup2: * When you click **Set Prope...
[ -0.1859305500984192, -0.07626476138830185, 0.4953804016113281, 0.08525586873292923, -0.0734579861164093, 0.12785500288009644, 0.20673230290412903, -0.09695486724376678, -0.4738072454929352, -0.5907999277114868, 0.05989781767129898, 0.43157902359962463, -0.4365047514438629, 0.27142876386642...
I looking to create a custom calender with Zend Framework, I am hoping that it will be able to list all the days of the month for the coming years and then have a different bg color on the date if there is an event on this. I am however struggling to create this firstly because it needs to go into the layout view, rath...
[ 0.4277481436729431, -0.288568913936615, 0.41431641578674316, 0.22147925198078156, -0.35516512393951416, -0.017358718439936638, 0.17988453805446625, 0.23014117777347565, -0.26864349842071533, -0.5158413052558899, 0.4208914339542389, 0.2913985252380371, 0.09995315223932266, 0.062474615871906...
that uses Zend\_Date and Zend\_Locale that you can use as a starting point: [www.arietis-software.com/index.php/2009/05/26/a-php-calendar-class-based-on-zend\_date/](http://www.arietis-software.com/index.php/2009/05/26/a-php-calendar-class-based-on-zend_date/)
[ 0.20101308822631836, -0.05068250000476837, -0.04548661783337593, -0.06067076697945595, 0.20558126270771027, -0.17282450199127197, -0.10452579706907272, 0.031992293894290924, -0.018857669085264206, -0.31121549010276794, -0.18767499923706055, 0.1307409554719925, -0.13909372687339783, 0.02657...
I've got a DataGridView with a BindingSource binding it to a DataTable. I've put a Delete button on my form and I want it to delete the currently selected row when clicked, something like this: ``` if (dgvResourceSettings.CurrentRow != null && !dgvResourceSettings.CurrentRow.IsNewRow) { bindingSource....
[ 0.018783951178193092, 0.2049541175365448, 0.8150259852409363, -0.111972875893116, 0.09519308805465698, -0.24032214283943176, 0.26631394028663635, -0.03754037246108055, -0.03050593100488186, -0.9041756391525269, -0.009048298932611942, 0.31366777420043945, -0.3436242341995239, 0.603220164775...
it does this is that when the datagridview loses focus it changes the current row to the last data row (if the current row was the New Row). I can verify this by simply tabbing off the datagridview. So I wonder what the normal way to deal with this is? I know users could just select the row and press the DEL key, but ...
[ 0.33825942873954773, -0.1159418523311615, 0.5724650621414185, 0.10353273153305054, -0.1726110279560089, -0.21688048541545868, 0.33218589425086975, 0.39725714921951294, -0.4266006648540497, -0.5430262684822083, 0.01965866982936859, 0.7833341360092163, -0.007983449846506119, 0.27043130993843...
Row and have an Add and a Delete button instead. The source must be this: "when the datagridview loses focus it changes the current row to the last data row". This is not the normal case, you must be doing something (keybd events?) to make that happen. I have made delete buttons under a Grid and they worked fine. **E...
[ 0.21391429007053375, -0.1724807471036911, 0.5911363959312439, -0.060427114367485046, 0.04589860513806343, 0.1282186210155487, -0.006187842693179846, 0.1741495579481125, -0.28104114532470703, -0.723153829574585, -0.03636950999498367, 0.6234402656555176, -0.2157231718301773, 0.28631460666656...
that would be OK, but often it wouldn't. One idea: track the Current property (BindingSource) and disable the Delete button if no Row is current. Check how it works when a new row is (half) filled. And otherwise, Jeff's idea looks good too. Or see BFree's answer on [this question](https://stackoverflow.com/questions/...
[ 0.007942268624901772, -0.04309144616127014, 0.3380964994430542, 0.10787052661180496, 0.22842104732990265, 0.05727575719356537, 0.34736520051956177, -0.2827856242656708, -0.3279378116130829, -0.31730109453201294, 0.0455496683716774, 0.5724076628684998, -0.1307917833328247, 0.020509386435151...
is it possible to know how much memory is being used by a given *phtread* thread? I am interested by a VmRSS like information. Each thread consumes a stack which is of fixed size and created when the thread starts. It is generally 512 K / 1M but it's only virtual size at startup. However, for dynamically-allocated dat...
[ 0.3449239134788513, 0.058094099164009094, 0.1541820615530014, 0.2928358018398285, 0.19745586812496185, 0.10648707300424576, -0.2632651627063751, 0.07785118371248245, -0.6093699336051941, -0.5674028992652893, 0.11514268070459366, 0.1660548597574234, -0.04160521551966667, 0.33915048837661743...
Sometimes a local variable is used for the sole purpose of checking it in an assert(), like so - ``` int Result = Func(); assert( Result == 1 ); ``` When compiling code in a Release build, assert()s are usually disabled, so this code may produce a warning about Result being set but never read. A possible workaround...
[ 0.2722642123699188, -0.07503366470336914, -0.012730474583804607, -0.04435058683156967, -0.1295260339975357, -0.25233492255210876, 0.5702090263366699, -0.08422102779150009, -0.12400203198194504, -0.4008105397224426, -0.271729439496994, 0.7271404266357422, -0.34690603613853455, 0.08968729525...
way to express this assert() in a way that wouldn't cause the warning, but still be simple to use and avoid changing the semantics of assert(). (disabling the warning using a #pragma in this region of code isn't an option, and lowering warning levels to make it go away isn't an option either...). We use a macro to spe...
[ 0.26288577914237976, 0.003918958827853203, 0.1937430500984192, -0.292449414730072, 0.011874913237988949, -0.18171826004981995, 0.12885460257530212, -0.39079755544662476, -0.18663279712200165, -0.2985537350177765, -0.18616153299808502, 0.7917416095733643, -0.13963395357131958, 0.21286270022...
is unused *by design*, not that it's just been forgotten about. This is especially helpful when parameters to a function are not used.
[ 0.19473038613796234, -0.035506755113601685, 0.027418535202741623, 0.1935998499393463, 0.2717709541320801, -0.22629469633102417, 0.12428154051303864, 0.05359826236963272, -0.20809125900268555, -0.42440125346183777, -0.23670735955238342, 0.20088808238506317, -0.0531143881380558, 0.3096792101...
I have a WCF web service. This web service should only allow certain client applications (built with technologies like Silverlight, Flex, ClickOnce, etc) to execute it's functionality. In an attempt to accomplish this, I have started each publicly visible method with the following code: if (IsClientValid(...) == false...
[ 0.584429144859314, 0.11809013783931732, 0.5811440944671631, -0.15203650295734406, -0.14938004314899445, -0.26699477434158325, 0.3300097584724426, -0.33715754747390747, -0.0655955895781517, -0.7092493772506714, 0.42367544770240784, 0.5296396613121033, -0.3670561611652374, 0.2644476294517517...
do I uniquely identify my client applications such that only they can utilize my WCF web services? Thank you Depending on how far you want to go you can do any number of things. In an app I worked on we did the following: * Message security - to encrypt your messages, client must provide credentials (userNameAuthenti...
[ 0.5473825335502625, 0.14845483005046844, 0.4039864242076874, 0.08928359299898148, -0.134661003947258, -0.11295824497938156, 0.4110534191131592, -0.38361474871635437, -0.16745588183403015, -0.5451391339302063, 0.09765786677598953, 0.48780369758605957, 0.06922619789838791, 0.0711719393730163...
intial call. * All client outgoing messages attach the encrypted header, which the server extracts/decrypts upon reciept and the base service verifies that the required values are present. * In addition to this, a collection of encrypted headers are stored server side to guard against replay attacks using sniffed heade...
[ -0.10905712842941284, -0.16587921977043152, 0.6053593158721924, -0.20000194013118744, -0.4233115017414093, -0.02287256345152855, 0.5273270606994629, 0.07344038039445877, -0.1351846605539322, -0.4984235167503357, -0.3743319809436798, 0.6963176131248474, -0.30019786953926086, -0.227968946099...
Some content in my page is loaded dynamically with the use of this code : ``` javascript_tag( remote_function( :update => agenda_dom_id, :url => agenda_items_url(options), :method => :get ) ) ``` When it outputs in the browser, it comes out as this : ``` new Ajax.Updater('agenda', 'http://localhost:3000/agenda_item...
[ 0.022770369425415993, -0.08850198984146118, 0.6695863604545593, 0.0018139148596674204, -0.3180220425128937, 0.006025897804647684, 0.267861545085907, -0.19074231386184692, -0.2623404860496521, -0.8299801349639893, -0.052978143095970154, 0.4375216066837311, -0.24567237496376038, -0.016284581...
tag didn`t change anything. Anybody encountered this problem before? Guys, it's just a default behavior of url\_for in views... C'mon, pass :escape => false along with URL params and enjoy unescaped stuff :)
[ 0.3279834985733032, -0.21674728393554688, 0.5928757786750793, 0.22949622571468353, 0.004771616775542498, -0.6310938596725464, 0.5199599862098694, 0.11387282609939575, -0.19891926646232605, -0.3078517019748688, 0.12204797565937042, 0.7740410566329956, -0.41598764061927795, -0.08752883225679...
I am working on SAS code that will run under UNIX. Ideally the IDE will have: * intelligent code formatting (autocomplete is not necessary). * ability to transfer code to server via SFTP/SSH/SCP. * Ability to execute code on the server via ssh and -e * Ability to pull the logs back down and have those formatted as wel...
[ 0.44201168417930603, 0.04530665650963783, 0.006056454498320818, 0.07136723399162292, -0.30974331498146057, -0.12155960500240326, 0.3163522481918335, -0.027444688603281975, -0.18980218470096588, -0.9936528205871582, 0.016274938359856606, 0.4151061475276947, -0.135452002286911, -0.0840129926...
from anixma, will provide support for everything listed, including SSH execution of code on remote UNIX servers as well as local execution if you've got sas.exe already installed.
[ 0.2509799599647522, -0.0970306321978569, -0.07428117096424103, -0.058281950652599335, -0.17405620217323303, -0.17834188044071198, 0.3947461247444153, 0.3467894196510315, -0.058316852897405624, -0.818453311920166, -0.5086137652397156, 0.04861842095851898, -0.09181975573301315, -0.1590197533...
Sorry to have to do this, but I'm getting no love from the people who run this particular webservice. I've never used SOAP before. [Here's the method I'm trying to call](https://cwi.rezexchange.com:9991/Service.asmx?op=CwiRateDetails) And here's the code I'm thinking should work ``` public function soapTest(){ ...
[ 0.5302848815917969, 0.12705878913402557, 0.35117122530937195, -0.31478121876716614, -0.08523198217153549, 0.12623471021652222, 0.48690685629844666, -0.5033351182937622, -0.031029537320137024, -0.5146132111549377, 0.12995949387550354, 0.6127714514732361, -0.21149830520153046, 0.247345745563...
// here's the problem. What goes in the parenthesis? $result = $client->CwiRateDetails(????); echo($result); echo "<br /> end"; } ``` Now I'm guessing this tells me what the parenthesis should contain. ``` POST /Service.asmx HTTP/1.1 Host: cwi.rezexchange.com Content-Ty...
[ -0.02797430194914341, 0.24099819362163544, 0.8163275718688965, -0.4315580725669861, -0.20870010554790497, -0.13285312056541443, 0.35386383533477783, -0.6186051964759827, -0.25564587116241455, -0.3171994090080261, -0.19005055725574493, 0.2905365824699402, -0.05828649178147316, 0.20385104417...
<DateTo>dateTime</DateTo> <RatePlan>string</RatePlan> <RoomType>string</RoomType> <PromotionalRates>boolean</PromotionalRates> </CwiRateDetails> </soap:Body> </soap:Envelope> ``` My guess is that something like ``` $result = $client->CwiRateDetails($PCode, $DateFrom, $DateTo, $RatePlan, $Room...
[ 0.5662124752998352, 0.06274060904979706, 0.7558198571205139, -0.026301296427845955, 0.17943906784057617, -0.07021209597587585, 0.19168619811534882, -0.05162246152758598, 0.017747288569808006, -0.6628279685974121, 0.18521970510482788, 0.41333383321762085, -0.058585114777088165, 0.1574503779...
can use to get that information from somewhere? Try ``` $result = $client->CwiRateDetails(array( 'PropertyCode' => ..., 'DateFrom' => ..., 'DateTo' => ..., 'RatePlan' => ..., 'RoomType' => ..., 'PromotionalRates' => ..., )); ``` You'll have to serialize y...
[ 0.487168550491333, 0.02245478890836239, 0.6145382523536682, 0.1473720520734787, 0.412479966878891, -0.09670206159353256, -0.1359190046787262, -0.027229364961385727, -0.09433934837579727, -0.23241275548934937, -0.07578201591968536, 0.5212433934211731, 0.013249201700091362, 0.274879872798919...
to the XML Schema specifications: * [boolean](http://www.w3.org/TR/xmlschema-2/#boolean): `true` = `'true'` or `1` and `false` = `'false'` or `0` * [dateTime](http://www.w3.org/TR/xmlschema-2/#dateTime): `YYYY-MM-DD`T`hh:mm:ss`Z for UTC or `YYYY-MM-DD`T`hh:mm:ss(+/-)hh:mm` for local-time including timezone information...
[ 0.025325775146484375, -0.21824143826961517, 0.777447521686554, 0.135823592543602, 0.23815244436264038, 0.021876797080039978, -0.08618157356977463, -0.1131816878914833, -0.19938048720359802, -0.520001232624054, -0.7373985052108765, 0.36325258016586304, 0.01805836148560047, -0.01070986036211...
Can someone tell me or point me to a document/tutorial that explains how to use connection pooling in Spring? Spring doesn't support inbuilt pooling. You should use a third party pool as mentioned above. DBCP and [c3p0](http://sourceforge.net/projects/c3p0/) both work like a charm with spring. All you need to do is whe...
[ 0.23852334916591644, -0.3894537091255188, 0.15447551012039185, 0.2547432482242584, -0.3500327169895172, -0.4566490650177002, -0.19179695844650269, -0.11125623434782028, -0.34635406732559204, -0.2323448210954666, 0.06774774193763733, 0.10656283795833588, -0.08998611569404602, -0.08278338611...
I have developed an ASP.NET Website in Visual Studio 2008. Now I want to deploy that in some other machine. How can I do that?? Like we make an installation package for Windows application what can we do for ASP.NET Websites? Consider using the [Web Deployment Tool](http://learn.iis.net/page.aspx/346/web-deployment-too...
[ 0.2229885458946228, -0.10291945189237595, 0.11279164254665375, 0.056913457810878754, -0.17642855644226074, -0.047317881137132645, -0.017544588074088097, -0.1665095090866089, -0.3126855492591858, -0.8995594382286072, 0.06697533279657364, 0.46798330545425415, -0.11687468737363815, 0.07835145...
Let's say I have a windows service called "MyService" and an executable called "MyEXE" located on several computers on my network. Is it possible (from within "MyService") to start several instances of "MyEXE" on a different/same computer, have it do some task and return a true/false result to a callback method in "My...
[ 0.2691812515258789, -0.1025242954492569, 0.46335506439208984, -0.08876565843820572, 0.15354648232460022, -0.05204063281416893, 0.3339696526527405, 0.15630634129047394, 0.0951899066567421, -0.7210437655448914, 0.03724634274840355, 0.4304240942001343, -0.1996757686138153, 0.27812623977661133...
{ UpdatePC("C:\Program Files\MyApp.exe", 1, UpdateComplete); UpdatePC("\\somepc\Program Files\MyApp.exe", 1, UpdateComplete); UpdatePC("\\mypc\Program Files\MyApp.exe", 1, UpdateComplete); } } void UpdatePC(string filePath, int id, UpdateCallBack callback) { ...
[ -0.09453757852315903, -0.19763052463531494, 0.40348243713378906, 0.10431911051273346, 0.17067119479179382, -0.22001954913139343, 0.7930290102958679, -0.11994809657335281, 0.13336129486560822, -0.4277517795562744, 0.028296345844864845, 0.42732906341552734, -0.03724101930856705, 0.4165260493...
SomeEXERunner(); runner.Run(filePath,"-u",id,callback); } void UpdateComplete(int id, bool updated) { //do something if(!updated) EmailService.NotifyAdmin("PC Not updated", id); } } ``` Maybe I'm getting the whole architecture wrong! You could use PSexec as Ian stated, ...
[ 0.23944103717803955, -0.22330303490161896, 0.2374945878982544, 0.057756438851356506, 0.15421295166015625, -0.2805235683917999, 0.38846060633659363, 0.2907516360282898, -0.10572294890880585, -0.5958903431892395, -0.02469038777053356, 0.3514249920845032, -0.234360471367836, 0.274024605751037...
Okay, I've got what is probably a very easy question for you Sql gurus out there... Given a boolean of some kind, T, I want to populate a temp table with data set A, if T is true, or data set B, if T is false. I thought this would be how to do it: ``` DECLARE @foo INT SET @foo = null IF (@foo is null) BEGIN ...
[ 0.48634904623031616, -0.14821669459342957, 0.1394074708223343, 0.07140550017356873, -0.06414834409952164, -0.2804979979991913, 0.25777944922447205, -0.04862227290868759, -0.07891721278429031, -0.200572669506073, -0.019456632435321808, 0.49242037534713745, -0.6256598830223083, 0.06290575116...
END ``` But this doesn't work. I get an error that reads "There is already an object named '#TempTable' in the database." Apparently Sql is trying to create the table in each case, before it evaluates the condition...? That seems odd to me, but okay... But what's the proper way to do something like this? **Edit: I'...
[ 0.4463059604167938, 0.5257599949836731, 0.5616078972816467, -0.007659207098186016, 0.21638284623622894, -0.34438905119895935, 0.48611313104629517, 0.1583796590566635, -0.19508694112300873, -0.6421504020690918, -0.20864424109458923, 0.4578717052936554, -0.31159770488739014, 0.34941524267196...
VARCHAR(50) ) ``` , then issue: ``` DECLARE @foo INT SET @foo = null IF (@foo is null) BEGIN INSERT INTO #TempTable SELECT 'foo was null' END ELSE BEGIN INSERT INTO #TempTable SELECT 'foo not null' END ``` Probably you want not a `TEMPORARY TAB...
[ 0.0002436085051158443, -0.14212378859519958, 0.44436782598495483, -0.2004953771829605, 0.08590113371610641, -0.163112610578537, 0.035772111266851425, -0.4059605002403259, -0.13359040021896362, -0.10814785957336426, -0.30232611298561096, 0.6296191811561584, -0.5720179080963135, 0.0108697190...
lives only during the session and does not persist in the database schema): ``` DECLARE @foo INT DECLARE @TempTable TABLE ( message VARCHAR(50) ) SET @foo = null IF (@foo is null) BEGIN INSERT INTO @TempTable SELECT 'foo was null' END ELSE BEGIN INSERT ...
[ 0.40527427196502686, 0.006508924067020416, 0.22738538682460785, -0.2767389714717865, 0.20327605307102203, -0.19167056679725647, 0.5449972152709961, -0.46455663442611694, -0.03915300592780113, -0.28098970651626587, -0.050000566989183426, 0.6223545670509338, -0.5417461395263672, 0.0871205702...
@TempTable SELECT 'foo not null' END ```
[ 0.4028986990451813, 0.2822507917881012, 0.19330023229122162, -0.1238294318318367, -0.1545785516500473, -0.4099191427230835, 0.5980465412139893, 0.31503552198410034, 0.25047188997268677, -0.258610337972641, -0.24156519770622253, 0.5236679911613464, -0.344651997089386, 0.29405447840690613, ...
I am trying to find out when the last insert/update was done to a specific table in our sql 2005 db. The data does not have a timestamp, so I can not tell that way. Are there any dmv out there that would assist me in this? Thanks, hp **Duplicate**: [How to find recent sql update operations acting upon a certain table...
[ 0.04457589611411095, 0.19226041436195374, 0.4682847559452057, 0.01101195253431797, -0.05920712649822235, -0.23856167495250702, 0.09508669376373291, -0.08095910400152206, -0.4203546345233917, -0.37820276618003845, -0.05084611475467682, 0.5028642416000366, -0.2132858783006668, 0.163429304957...
in closeConnection, because that would make the first change useless. altough it would be nicer to remove the closeConnection call from execSQL. normally (as far as i know), the database connection automatically closes when the script terminates (as long as mysqli doesn't support persistance). but it would be better t...
[ -0.08043801039457321, -0.07505211234092712, 0.7213444709777832, -0.1785513460636139, -0.031074650585651398, -0.20616014301776886, 0.440947026014328, -0.0014465689891949296, 0.08597167581319809, -0.39811843633651733, -0.37043243646621704, 0.3733871877193451, -0.553607165813446, 0.4709397554...
Connect to the database and return a connection or null on failure */ if (self::$db === false) { self::$db = new mysqli (DB_HOST, DB_USER, DB_PASS, DB_NAME); } if(!self::$db) {
[ -0.04327883571386337, -0.05980122834444046, 0.1104859858751297, 0.18368148803710938, 0.03697895631194115, -0.14721457660198212, 0.5699825882911682, -0.15784376859664917, 0.03820299357175827, -0.7050284147262573, -0.04510152339935303, 0.33880415558815, -0.64668869972229, 0.5973176956176758,...
echo mysql_error(); throw new Exception('Could not connect to database', EX_NO_DATABASE_CONNECTION); } return self::$db; } static function closeConnection() { // self::$db->close(); } // moar functions (...) } ?> ``` and ... i'd recommend using an existing d...
[ 0.09202299267053604, 0.15788596868515015, 0.2702785134315491, -0.3537169396877289, 0.1716628223657608, -0.20867660641670227, 0.5058301091194153, -0.35193973779678345, 0.13156795501708984, -0.29396045207977295, -0.20624248683452606, 0.5242712497711182, -0.6198733448982239, 0.225543290376663...
I need to update an old classic asp, and I have to call a function that normally returns an array, but under certain circumstances might return either `Nothing` or an undefined value. How can I check that the result actually returns an array? Is the function late bound / has a `Variant` return value? If so, the `IsAr...
[ -0.026095643639564514, -0.1522664874792099, 0.14721782505512238, 0.05236431956291199, 0.011601424776017666, -0.13416145741939545, 0.3324846625328064, 0.057512447237968445, -0.1808886080980301, -0.3385220766067505, -0.18768410384655, 0.660824716091156, -0.3104897737503052, 0.198144555091857...
We are looking for a desktop forms technology with an easy to use (read non technical) authoring environment. When I last looked at this, some years back, it seemed that XForms would mature in to something really useful. Now there appears to be little happening with the technology (only 5 questions under the XForms tag...
[ 0.7989092469215393, 0.1314166784286499, 0.29445502161979675, 0.30090370774269104, 0.05473306402564049, -0.2715308964252472, -0.04320178180932999, 0.3485158085823059, -0.010027711279690266, -0.534378170967102, 0.4130648374557495, 0.3284361660480499, -0.11116551607847214, 0.22003504633903503...
by the amount of work done by very little code. The W3C does not advertise their technologies to PHBs, so adoption is bound to be slow while others are pushing buzzword-compliant vendor specific solutions as panacea. There's also stigma among developers (especially those who consider themselves "hard core", it seems) a...
[ 0.6074384450912476, 0.3320126533508301, 0.19603252410888672, 0.22259138524532318, -0.2892020642757416, -0.2317924201488495, 0.14864207804203033, 0.44690823554992676, -0.329704612493515, -0.4428457021713257, -0.11211429536342621, 0.22280816733837128, -0.13586296141147614, 0.0946892499923706...
I am new to JSPs and Servlets - I am wondering if there is any way for a JSP of delegating to a servlet the generation of given areas of the page such as custom controls (AWT stuff and such). The reason why I am looking into this is that JSP pages can get really messy really fast. Examples appreciated! You can make a...
[ 0.46948879957199097, -0.11913974583148956, 0.0852276086807251, 0.10877162218093872, -0.3664209544658661, -0.4875155985355377, 0.01871730014681816, -0.21572251617908478, -0.28174924850463867, -0.5925514101982117, -0.09414418041706085, 0.30318108201026917, -0.32875943183898926, 0.12515613436...
using a custom JSP tag instead of a servlet, though. There should be less overhead since the tag is basically just instantiated and called, and the scheme for passing parameters to tags is much cleaner.
[ 0.2759646475315094, -0.4366759657859802, 0.23691336810588837, 0.230746328830719, -0.23576010763645172, -0.5412812232971191, 0.14826872944831848, -0.32130005955696106, -0.3069266974925995, -0.45691201090812683, -0.3836771547794342, 0.4955650568008423, -0.4493831396102905, -0.347844511270523...
I did a lot of research about this topic and didn't yet find a satisfying answer: How can I make a scrollable list (iPhone SDK Dashboard List) inside some other html content? If I create a list inside a html body and I try to scroll the whole page is scrolled. I know there is this "double finger" scrolling, but that's...
[ 0.46146026253700256, -0.02817578800022602, 0.26463091373443604, 0.06755071133375168, -0.33178579807281494, 0.05166837200522423, 0.36653774976730347, -0.15681453049182892, -0.4536658823490143, -0.4388704001903534, 0.3085901141166687, 0.5755150318145752, -0.38787955045700073, -0.039916999638...
at the bottom and a selection list in the body. Appreciate any hints! Thanks, Patrick there is yet another possibility, with slightly nicer scrolling simulation: <http://cubiq.org/scrolling-div-on-iphone-ipod-touch/5>
[ 0.06623899936676025, -0.46157708764076233, 0.4145806133747101, 0.4847467243671417, 0.03893130272626877, 0.21949522197246552, -0.05181440711021423, 0.3594469726085663, -0.6967922449111938, -0.43911632895469666, 0.1681787222623825, 0.5415269136428833, 0.3240568935871124, -0.3225369155406952,...
I am having the strangest problem ... every time i commit i get and error like this: ``` commit failed (details follow): MERGE of '/svn/project/trunk/web/directory/': 200 OK (http://mydomain.com) ``` that is the directory of the file i modified. **Later Edit** i have web dav SVN installed and i commit to a HTTP URL...
[ 0.41431254148483276, 0.23054108023643494, 0.441491961479187, -0.13042369484901428, 0.04090516269207001, -0.12659746408462524, 0.5008184909820557, 0.03412969782948494, -0.2771759033203125, -0.7306110262870789, -0.02237078920006752, 0.4524580240249634, -0.15033955872058868, 0.445947110652923...
week or two ago when my python script was erroring out.
[ 0.26629289984703064, 0.10236690938472748, 0.09846192598342896, -0.2646038830280304, -0.09530004858970642, -0.032846421003341675, 0.33091259002685547, 0.4877598285675049, 0.0441819503903389, 0.008250575512647629, 0.5954595804214478, 0.3457931876182556, -0.02501504495739937, 0.13371910154819...
I am programatically opening excel workbooks under a folder tree to check for some project references using the following code - ``` workbook = app.Workbooks.Open(fileName,false,true,Missing,Missing,.....); foreach(Reference r in workbook.VBProject.References) { //check for a specific reference here } ``` Thi...
[ 0.5992268323898315, 0.477152019739151, 0.36109206080436707, -0.2532346248626709, -0.0060934335924685, -0.22784291207790375, 0.41632047295570374, -0.051919739693403244, -0.21720628440380096, -0.9187139868736267, -0.028816331177949905, 0.6104724407196045, -0.24649421870708466, 0.056699365377...
the Workbooks.Open performance. However if your main intention is just to check if a particular reference is used by the Spreadsheet or not, then consider opening the Excel file in binary mode and searching for the dll string.(The path of the dll providing the functionality, which can be seen in the Location part of th...
[ 0.1092643067240715, 0.11728079617023468, 0.17772307991981506, 0.30160215497016907, -0.21344992518424988, -0.5782892107963562, 0.06823337823152542, -0.08159533888101578, -0.1393336057662964, -0.7558252811431885, -0.21627110242843628, 0.9510706663131714, -0.12113521993160248, -0.278103232383...
Imagine we have 5 string variables and we want to assign "Foo" to them during runtime. Instead of this ``` string a1 = "Foo"; string a2 = "Foo"; string a3 = "Foo"; string a4 = "Foo"; string a5 = "Foo"; ``` Can't we use something like this: ``` for(int i = 0;i < 5;i++) { a+i = "Foo"; } ``` Is it impossible to...
[ 0.09308052062988281, 0.09600087255239487, -0.006273586768656969, -0.08127084374427795, 0.07218361645936966, 0.20771907269954681, 0.44031092524528503, -0.21059729158878326, -0.20214521884918213, -0.5601419806480408, -0.07014714926481247, 0.4395042955875397, -0.5637959241867065, 0.2165121883...
a set of variables as shown in your question. If you absolutely *have* to do that, and they're instance/static variables, you could use reflection to access them if you really wanted to - but using an array or other collection would be much, much better.
[ 0.5378523468971252, -0.04256337508559227, -0.31070733070373535, 0.5956534147262573, -0.19709670543670654, 0.08322109282016754, 0.1940159797668457, -0.1582605540752411, -0.14094769954681396, -0.5469891428947449, -0.22104795277118683, 0.2758873403072357, -0.1429448127746582, -0.0284884814172...
Jeff finished [his post](https://blog.codinghorror.com/properties-vs-public-variables/) talking about this, but I don't catch the idea. So, why do you think this is a bad coding style? **EDIT:** I, as a lot of you, don't think that it is a bad coding style. But Jeff is far better programmer than me, and his point o...
[ 0.6463127732276917, 0.5445924997329712, 0.04700597748160362, 0.015432518906891346, -0.17555148899555206, -0.41266512870788574, 0.1910100132226944, 0.17064355313777924, -0.18067684769630432, -0.43993130326271057, 0.03374428674578667, 0.4962710440158844, -0.05333155393600464, 0.1948664039373...
very useful to have these in a different namespace from anything else, since the preprocessor will substitute wherever it finds the name, regardless of things like scope. A constant in the sense that Jeff was using is, semantically, a variable that can't be changed. It obeys all scoping principles and everything, and ...
[ 0.27002575993537903, 0.20072919130325317, 0.12547604739665985, 0.14086207747459412, 0.02091665007174015, -0.14088855683803558, 0.23583665490150452, 0.011098427698016167, -0.4526844918727875, -0.29822009801864624, 0.027510790154337883, 0.6210893392562866, -0.1773838996887207, 0.157964572310...
advantage in using ``` #define MAX_LENGTH 5 ``` because the convention is that only preprocessor constants are all-caps, so it will not interfere with any other use.
[ 0.040232475847005844, 0.10163018852472305, 0.23062019050121307, 0.05232422053813934, 0.09052694588899612, -0.312259316444397, -0.14607611298561096, -0.08777913451194763, -0.18706408143043518, -0.39638641476631165, -0.2644370198249817, 0.6946210861206055, -0.11920499801635742, 0.11230210959...
How can I do something like that (just an example): ``` any_struct *my_struct = create_struct(); add_struct_member(my_struct, "a", int_member); add_struct_member(my_struct, "b", float_member); ``` So that I could load and use a struct instance "from the outside" (at the address `addressOfMyStruct`) with the given st...
[ 0.21192382276058197, 0.15428219735622406, 0.26065313816070557, -0.14037765562534332, -0.08950354903936386, -0.194491907954216, 0.36186084151268005, -0.1558658480644226, -0.2846556305885315, -0.7072325944900513, -0.08264372497797012, 0.39675047993659973, -0.369459331035614, 0.06115121021866...
a bit too involved for an SO post. But explaining the basic concept is doable. What you're really creating here is a templated property bag system. The one thing you'll need a lot of to keep this going is some assiociative structure like a hash table. I'd say go with std::map but you mentioned this was a C only soluti...
[ 0.4398418962955475, -0.09770099073648453, -0.12634292244911194, 0.27939051389694214, -0.10979001224040985, -0.4604420065879822, 0.0706058144569397, 0.06908392906188965, -0.08644404262304306, -0.599224328994751, 0.018943270668387413, 0.5314123630523682, -0.29787659645080566, 0.0543706081807...
This map defines what you need in order to create a new instance of the struct. The "insance" method will essentially create a new hashtable with equal number of members as the template hashtable. Lets throw lazy evualation out the window for a second and assume you create all members up front. The method will need t...
[ 0.009646941907703876, -0.18115220963954926, 0.2218482494354248, 0.09455810487270355, -0.1710944026708603, -0.08979929238557816, 0.23509322106838226, -0.262104868888855, -0.18835146725177765, -0.8251315355300903, 0.013953883200883865, 0.40211206674575806, -0.46375197172164917, 0.05084202811...
change though. C does not support templates and must chose a common return type that can represent all data. In this case you'll need to chose `void*` since that's how the memory will need to be stored. ``` void* instance_get_member(any_struct_instance* inst, const char* name); ``` You can make this a bit better by...
[ 0.18673722445964813, -0.028503958135843277, 0.5327306985855103, -0.21153657138347626, 0.25225138664245605, -0.20018479228019714, 0.2552991509437561, -0.4132332503795624, -0.2616073191165924, -0.70970219373703, 0.07200318574905396, 0.5097016096115112, -0.5060560703277588, 0.2135598510503769...
As I understand it, the Sinatra framework, unlike Rails, does not provide an ORM. In that case, how do you talk to a DB in a Sinatra app? Or is Sinatra only for apps that don't use a DB? If you like ActiveRecord, use that. Or something else. Datamapper, for instance. For AR with SQLite, this works: ``` require 'rubyge...
[ 0.12747442722320557, 0.26229408383369446, 0.47834116220474243, 0.07507242262363434, 0.006808923091739416, -0.19107384979724884, 0.26346510648727417, -0.29225027561187744, -0.05248072370886803, -0.48486775159835815, -0.13322380185127258, 0.7241744995117188, -0.4534125328063965, -0.154487714...
What is the impact of changing a Unique key in SQL Server 2005 I am having a table one primary key ID int and composite unique key for 4 fields. But due to nature of my project one of the keys(fields) of the composite key keeps on changing. Does anyone find any problem in changing the field of composite key that ofte...
[ -0.3631351590156555, 0.13041527569293976, 0.4352133274078369, -0.12030375003814697, -0.2996731400489807, 0.1020844355225563, -0.22471675276756287, -0.21344177424907684, -0.46981701254844666, -0.40166082978248596, 0.43425992131233215, 0.43386775255203247, -0.49130186438560486, 0.15256057679...
the table) whenever you make changes to the nonclustered key the clustered key will be updated and vice versa
[ -0.0961962416768074, -0.0713319256901741, 0.6046805381774902, 0.05087053030729294, 0.34874001145362854, 0.045575469732284546, -0.08693290501832962, -0.2042476385831833, -0.2904050052165985, -0.5029274821281433, -0.2384181171655655, 0.476799339056015, -0.3271459937095642, 0.0708019137382507...
The MemberShipUser constructor expects dateTime fields like lastLoginDate, which may be null in the data store. However, when I retrieve data from the store and pass null in for the parameter, I get an error that it cannot be null. How can I work around this? ``` <asp:RegularExpressionValidator runat="server" ...
[ -0.2001073807477951, -0.1399683803319931, 0.26412639021873474, -0.0859716385602951, 0.15109334886074066, -0.19609498977661133, 0.3648962378501892, -0.12159094214439392, -0.32713040709495544, -0.348252534866333, 0.09298161417245865, 0.28890460729599, -0.2317788302898407, -0.0342677943408489...
I'm trying to write a bookmarklet to help some QA testers submit useful debugging information when they come across issues. Currently I can set window.location to a URL that provides this debugging information, but this resource is an XML document with an xml-stylesheet processing directive. It would actually be more ...
[ 0.7490187287330627, 0.08706994354724884, 0.11925150454044342, 0.26072895526885986, -0.07208679616451263, -0.3310253322124481, 0.11898621171712875, -0.022152403369545937, 0.09141569584608078, -0.5870528817176819, 0.12508969008922577, 0.4918278753757477, -0.249919131398201, 0.002736891387030...
question. Requirements: * Client-side code only, no user intervention allowed * Solutions for both IE and Firefox needed (they can be different solutions) * Disabling stylesheet processing and rendering it as text is acceptable * Overriding stylesheet processing with a custom XSL is acceptable * Rendering the XML with...
[ 0.04371447488665581, 0.1347540318965912, 0.46069711446762085, -0.037311553955078125, -0.20419040322303772, -0.12695765495300293, 0.4344504773616791, -0.3851460814476013, -0.06510860472917557, -0.7505669593811035, -0.37912651896476746, 0.6422697901725769, -0.3068978190422058, -0.26228925585...
not. The following bookmarklet will not trigger [the XSLT transformation](http://www.w3schools.com/xsl/cdcatalog_ex1.xsl) specified in [the XML](http://www.w3schools.com/xsl/cdcatalog_with_ex1.xml). And though Firefox will render this using some colours, it does not execute the default transformation it would normall...
[ 0.03093831054866314, -0.0819428339600563, 0.6403492093086243, -0.34848591685295105, -0.044518329203128815, -0.14768639206886292, 0.3927660882472992, -0.29258400201797485, -0.12018688768148422, -0.7503467798233032, -0.44214871525764465, 0.5502862930297852, -0.45301565527915955, -0.166528314...
not invoke the XSLT transformation that is specified: ``` javascript:(function(){ var u = 'http://www.w3schools.com/xsl/cdcatalog_with_ex1.xml'; var w = window.open(); /* open right away for popup blockers */ var x = new XMLHttpRequest(); x.open('GET', u, true); x.onreadystatechange = function(){ if(x...
[ 0.30557486414909363, -0.09939472377300262, 0.8147172331809998, -0.09484665095806122, 0.0019365261541679502, 0.00008822933887131512, 0.4345044791698456, -0.4933649003505707, -0.029640885069966316, -0.7016995549201965, -0.7889260053634644, 0.540770411491394, -0.5827382802963257, 0.0568588078...
+ d.innerHTML + '</pre></body></html>'); w.document.close(); w.focus(); } }; x.send(null); })() ```
[ 0.02540856972336769, -0.14775140583515167, 0.9744035601615906, -0.4768136441707611, -0.02281726710498333, -0.12318363040685654, 0.2702171802520752, -0.4520476162433624, 0.17904990911483765, -0.6715303659439087, -0.8304418921470642, 0.49362459778785706, -0.5788957476615906, 0.13853038847446...
Suppose I have a virtual earth shape layer called `shapeLayer1` (my creative energy is apparently at an alltime low). When i call the `GetClusteredShapes` method I get an array of `VEClusterSpecification` objects that represent each and every one of my currently visible clusters; no problem there. But when I call the...
[ 0.1552816480398178, 0.14164145290851593, 0.29904282093048096, -0.145239919424057, -0.040200378745794296, -0.08118429034948349, 0.08812619745731354, 0.3561234474182129, -0.11425462365150452, -0.8816617131233215, -0.04594702273607254, 0.2829894721508026, -0.20387855172157288, 0.3365685343742...
this is actually documented behavior > Returns **null** if a VEClusterSpecification object was returned from the VEShapeLayer.GetClusteredShapes Method But looking at the current [MSDN documentation for the VEShape class](http://msdn.microsoft.com/en-us/library/cc980821.aspx) it says: > Returns if a VEClusterSpecifi...
[ 0.15327371656894684, -0.09725850820541382, 0.1743711233139038, 0.06751285493373871, -0.10562674701213837, -0.21133387088775635, 0.40541401505470276, 0.16080418229103088, -0.25849682092666626, -0.6269131898880005, -0.16396917402744293, 0.5654171109199524, -0.5500569343566895, 0.132684558629...
IE and Firefox support the "view-source:" pseudo-protocol. Firefox on Mac indeed understands it, but Safari does not. The following bookmarklet will not trigger [the XSLT transformation](http://www.w3schools.com/xsl/cdcatalog_ex1.xsl) specified in [the XML](http://www.w3schools.com/xsl/cdcatalog_with_ex1.xml). And th...
[ -0.11849214881658554, 0.04500976949930191, 0.6265514492988586, -0.4514715075492859, -0.15658791363239288, -0.30022919178009033, 0.2780507802963257, -0.17903099954128265, 0.10523044317960739, -0.9395100474357605, -0.416307270526886, 0.7872089743614197, -0.475873202085495, -0.243019938468933...