text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
commands for each Excel cell is very slow so the key is to create an object array like this: ``` int noOfRows = data.Count - 1; int noOfColumns = mydataclass.GetType().GetProperties().Count() - 1; Object[noOfRows, noOfColumns] myArray; ``` Sending an object array allows you to send a mixture of data types e.g. strin...
[ -0.013268387876451015, -0.15710365772247314, 0.3808368742465973, -0.10909448564052582, -0.3948217034339905, 0.11648241430521011, 0.18340599536895752, -0.3518015444278717, 0.015584100969135761, -0.4614194333553314, -0.2646075189113617, 0.549323320388794, -0.6106641888618469, -0.068764455616...
like this: ``` XLOLESheetobj.Range("A1","Z20").Value = myArray; ``` You can substitute Z20 with the number of columns -> Char + the number of rows -> string.
[ 0.0791158378124237, 0.004848739597946405, 0.3915419578552246, -0.3233746886253357, -0.0734729915857315, 0.22404621541500092, -0.024347098544239998, -0.38279759883880615, -0.20718446373939514, -0.575127899646759, -0.10382194072008133, 0.5247034430503845, -0.23248223960399628, -0.12800304591...
I have a class named Page with a private property currently called `_pageData` which stores all the information (such as title, content, keywords etc). However, this to me doesn't look so good when I refer to it `$this->_pageData`. I want to think of a better name, and I'd imagine there would probably be a standard o...
[ 0.4148852229118347, 0.2479535937309265, 0.20157717168331146, 0.12662483751773834, -0.22855550050735474, -0.23571664094924927, 0.05654720589518547, 0.15661899745464325, -0.4825630187988281, -0.6264802813529968, 0.10427548736333847, 0.26565736532211304, -0.019059084355831146, 0.5546321272850...
has data in it that's outside the scope of the variable name". This has happened to me a few times so I'd like to see what has been proven to work. ``` class Page { public $title = ''; public $keywords = array(); public $content = ''; // etc. } $page = new Page(); echo '<title>' . $page->title . '</tit...
[ 0.21874862909317017, 0.26293322443962097, 0.4526693820953369, 0.01681153103709221, 0.30501019954681396, -0.40952038764953613, 0.3909088373184204, -0.47128525376319885, -0.29119303822517395, -0.43101242184638977, -0.38883301615715027, 0.47234678268432617, -0.3937399089336395, 0.265388786792...
a proper term for the latter). Example: ``` class Page { private $data = array('title' => '', 'keywords' => array(), 'content' => ''); public __get($name) { if(isset($this->data[$name])) return $this->data[$name]; /* You probably want to throw some sort of PHP error here. */ ...
[ -0.00841972790658474, 0.216324120759964, 0.2500503659248352, -0.18584880232810974, -0.14162614941596985, -0.21031102538108826, 0.730932354927063, -0.4869229197502136, -0.23114489018917084, -0.48022761940956116, -0.6883092522621155, 0.5016908645629883, -0.38686278462409973, 0.16654680669307...
details.) Note you can hide $data members or even modify them or add new ones ($page->contentHTML could transform markdown to HTML, for example). Using the name `_pageData` is redundant for a Page class. You already know it's a page, so you're repeating information ($currentPage->\_pageData vs. $currentPage->data). ...
[ 0.21587060391902924, -0.2250843048095703, 0.4244840741157532, 0.15997225046157837, -0.321795791387558, -0.23640280961990356, 0.4072131812572479, -0.25992628931999207, -0.5499235391616821, -0.5803232789039612, -0.2508185803890228, 0.37279632687568665, -0.45326992869377136, 0.182807728648185...
an easy database query, which you can use list() for).
[ -0.05973028764128685, -0.09624160081148148, 0.17349392175674438, 0.3664165437221527, 0.14862000942230225, -0.3733149766921997, 0.10567423701286316, -0.01068161427974701, -0.17280200123786926, -0.6498331427574158, -0.28138646483421326, 0.4688456654548645, -0.05749013274908066, 0.04471686854...
The last GUI programming I have done was with Visual Basic, which included objects like Winsock and Inet to easily connect to the internet and retrieve the source from webpages. I just got started into XCode, and was wondering if there is a similar component. I see that there is a Webkit option in the Library, but I h...
[ 0.07085501402616501, 0.017698610201478004, 0.033362288028001785, 0.2619650065898895, -0.194060280919075, -0.2861313223838806, 0.0720159038901329, 0.3406122624874115, 0.015107973478734493, -0.7618162035942078, 0.2886042296886444, 0.879527747631073, -0.29604652523994446, -0.20603616535663605...
the OP. Apple has two guides in the documentation you'll want to look at, [URL Loading System](http://developer.apple.com/documentation/Cocoa/Conceptual/URLLoadingSystem/URLLoadingSystem.html) and [WebKit Objective-C Programming Guide](http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/DisplayWebContent/DisplayW...
[ -0.008416037075221539, 0.15814539790153503, 0.21039000153541565, 0.1740138679742813, 0.033100806176662445, 0.10499704629182816, -0.24618467688560486, -0.09584135562181473, -0.3936469852924347, -0.36635082960128784, -0.11918918788433075, 0.6527828574180603, -0.21901673078536987, -0.46025836...
URL like Heng-Cheong Leong mentioned, but they abstract away all the low level stuff and probably won't be suitable if you want to deal with HTTP headers.
[ 0.27728816866874695, 0.34465113282203674, 0.056864701211452484, 0.053361911326646805, -0.6619780659675598, -0.5102344751358032, 0.05644761398434639, 0.5282890200614929, -0.12700244784355164, -0.4105243384838104, 0.04721875488758087, 0.13593514263629913, 0.027314193546772003, 0.186334162950...
I'm not sure if this a settings problem or an HTML problem, but on a page layout I'm working on, Firefox does not render the stylesheet immediately. Meaning for maybe half a second I can see the unstyled page, then the stylesheet kicks in and it renders as I expect. All my stylesheets are in external css files loaded ...
[ 0.34400275349617004, -0.07274951785802841, 0.4806849956512451, -0.11363883316516876, -0.27108222246170044, -0.2522830665111542, 0.38953953981399536, 0.2531399726867676, -0.12938296794891357, -0.9237605333328247, 0.01068753283470869, 0.6737698912620544, -0.3940766751766205, -0.1256345808506...
I'm writing a PHP application with testability in mind, so my classes always ask in their constructors for the "collaborator objects" they depend on, in respect to the Dependency Injection pattern. That way, I'm able to pass in mocks or test implementations in my unit tests. What I want to achieve though, is to be ab...
[ 0.16871307790279388, 0.17551590502262115, -0.24449679255485535, 0.11651710420846939, -0.2565867304801941, 0.02491198293864727, 0.2925802767276764, -0.05955536291003227, 0.08477986603975296, -0.4985203444957733, 0.3579862415790558, 0.5420423746109009, -0.2432040423154831, -0.078160308301448...
The following code is an example of the approach I'm currently using : ``` class Engine { private $loader; private $logger; public function __construct(ResourceLoader $loader = null, Logger $logger = null) { if ($loader == null) $loader = new DefaultResourceLoader; if ($logger == null)...
[ -0.2575854957103729, -0.23725716769695282, 0.14398430287837982, -0.16858649253845215, 0.15758416056632996, -0.05864454805850983, 0.15202771127223969, -0.38325318694114685, -0.2927359342575073, -0.6005433797836304, -0.1897450089454651, 0.9340693950653076, -0.5908898711204529, 0.026792682707...
? Should I use an IoC container instead or is there another way of giving object-type arguments a default value ? Of course you'd better use an IoC/DIP container to do the job. Your code above (the if statements) increase the coupling of the classes. The client class (Engine) should not care what’s implementing the loa...
[ 0.39830413460731506, -0.03301998972892761, -0.3112673759460449, 0.17620092630386353, -0.17904485762119293, -0.09755364060401917, 0.10598628222942352, -0.26114797592163086, -0.054766904562711716, -0.5831409096717834, -0.04966181516647339, 0.7394828796386719, -0.24994531273841858, 0.03472537...
On top of my head, especially for C/Linux developer: * [ack](http://petdance.com/ack/) * [git-bz](http://git.fishsoup.net/cgit/git-bz/plain/git-bz) * [colorgcc](http://schlueters.de/colorgcc.html) * [colordiff](http://colordiff.sourceforge.net/) * [moap](https://thomas.apestaart.org/moap/trac) and [prepare-ChangeLog](...
[ 0.2583011984825134, 0.038762062788009644, 0.31116554141044617, 0.15237471461296082, -0.15046903491020203, -0.30074742436408997, 0.10712254047393799, 0.10351070761680603, -0.7592595219612122, -0.6928672194480896, 0.23796407878398895, 0.4995540678501129, 0.028613878414034843, -0.113922908902...
I've been using IntelliJ IDEA at the day job for Java development for a few weeks now. I'm really impressed with it and I'm looking to extend it for other programming languages that I tinker with, starting with Python. I found this plug-in, [pythonid](https://pythonid.dev.java.net/). I figured I would look for some inp...
[ 0.1502613127231598, -0.03953074291348457, -0.11640723049640656, -0.11699389666318893, -0.1065555140376091, -0.2495015412569046, 0.13293933868408203, 0.30838242173194885, 0.0902438536286354, -0.711357831954956, 0.12255748361349106, 0.5699989199638367, -0.23486332595348358, -0.20363953709602...
very limited. There's a [new Python plugin](http://plugins.intellij.net/plugin/?id=631) from JetBrains, the people that make IDEA, which looks pretty nice, though it's [still very unfinished](http://www.jetbrains.net/confluence/display/PYH/Release+Notes).
[ 0.45756760239601135, -0.11192826181650162, 0.3480261564254761, 0.19701558351516724, 0.3631574511528015, 0.26748141646385193, -0.21411889791488647, 0.3294053375720978, -0.18161599338054657, -0.44633153080940247, -0.10809674859046936, 0.07764395326375961, -0.0568908154964447, -0.212329700589...
I have looked at NHibernate and EntitySpaces and they both seem to work differently. In EntitySpaces, you define the database tables and table relationships and the classes are generated for you. In NHibernate, you define the classes and the table relationships are generated for you. This is what I am looking for. A...
[ 0.22791528701782227, -0.005482799373567104, -0.3296816945075989, 0.13301576673984528, -0.5510936379432678, -0.15201227366924286, -0.08956456929445267, -0.06813348829746246, -0.2865702211856842, -0.6160949468612671, 0.06042151153087616, 0.6279482841491699, -0.28242674469947815, -0.037684373...
for a manufacturing fab), you will be better off working on the domain model first. My reasoning: you spend a lot more time coding against the domain than you do against the database itself -- especially when using an orm. So spend that time wisely.
[ 0.6311031579971313, 0.23411190509796143, -0.09056167304515839, 0.07398587465286255, 0.23461739718914032, 0.1351594775915146, -0.069893978536129, -0.1448805034160614, -0.06880152970552444, -0.5413353443145752, 0.17957249283790588, 0.481360524892807, -0.2826588749885559, 0.2646533250808716, ...
I am using the standard outputcache tag in my MVC app which works great but I need to force it to be dumped at certain times. How do I achieve this? The page that gets cached is built from a very simple route {Controller}/{PageName} - so most pages are something like this: /Pages/About-Us Here is the output cache tag ...
[ 0.2989005148410797, 0.038420576602220535, 0.7006324529647827, 0.004960859194397926, -0.17613300681114197, -0.08038046956062317, 0.34763583540916443, -0.007017327938228846, -0.1895959973335266, -0.7491737008094788, 0.050275079905986786, 0.5028850436210632, -0.20079410076141357, 0.1364652812...
a very small app so not a big deal deal to dump all cached items. Be careful about using "None" vs. "". * If you send "" then the HttpHeader for [Vary](http://www.w3.org/Protocols/HTTP/Issues/vary-header.html) is *not* sent. * If you send "None" then the HttpHeader for [Vary](http://www.w3.org/Protocols/HTTP/Issues/va...
[ 0.2708992660045624, 0.10763821750879288, 0.6572065949440002, -0.14922714233398438, -0.17194059491157532, 0.040452055633068085, 0.4181242287158966, -0.30363914370536804, -0.584210216999054, -0.26223284006118774, 0.16682462394237518, 0.7783856391906738, -0.16926385462284088, -0.0952816829085...
it has expired. I'd recommend using `Varies=""` as I did in [this post](https://stackoverflow.com/questions/486063/what-clever-things-have-you-done-with-an-asp-net-mvc-actionresult). For my javascript file I dont want the browser going back and making another Http request until it has expired. 304 is unnecessary.
[ 0.3863912522792816, -0.009418121539056301, 0.5920981168746948, -0.15960626304149628, 0.09667769819498062, -0.516664981842041, 0.6552888751029968, -0.2074601948261261, -0.4058956205844879, -0.3589358627796173, -0.032457537949085236, 0.5915572047233582, 0.06744493544101715, 0.015555076301097...
I have a ListBox and I want to add a context menu to each item in the list. I've seen the "solution" to have the right click select an item and suppress the context menu if on white space, but this solution feels dirty. Does anyone know a better way? This way the menu will pop up next to the mouse ``` private strin...
[ 0.3555105924606323, 0.03594105690717697, 0.7066541314125061, 0.12478239834308624, 0.09567591547966003, -0.18365590274333954, 0.044006772339344025, -0.43530166149139404, -0.26212263107299805, -0.6149107813835144, -0.14719639718532562, 0.92304527759552, -0.26842057704925537, 0.18028849363327...
CR"}; toolStripMenuItem2.Click += toolStripMenuItem2_Click; collectionRoundMenuStrip = new ContextMenuStrip(); collectionRoundMenuStrip.Items.AddRange(new ToolStripItem[] {toolStripMenuItem1, toolStripMenuItem2 }); listBoxCollectionRounds.MouseDown += listBoxCollectionRounds_MouseDown; } private void t...
[ 0.2445329874753952, 0.0383661724627018, 0.9679351449012756, 0.14671628177165985, 0.19525659084320068, 0.05985807627439499, -0.008669308386743069, -0.3909478783607483, -0.3032839894294739, -0.4425602853298187, -0.3936818838119507, 0.9137214422225952, -0.2347283959388733, 0.5435587763786316,...
collectionRoundMenuStrip.Show(Cursor.Position); collectionRoundMenuStrip.Visible = true; } else { collectionRoundMenuStrip.Visible = false; } } ```
[ -0.14982347190380096, -0.12864236533641815, 0.6590032577514648, 0.053740449249744415, -0.07697121798992157, -0.13942699134349823, -0.082198865711689, -0.061644021421670914, -0.327884703874588, -0.41520029306411743, -0.40544164180755615, 0.47230592370033264, -0.39325058460235596, 0.21424591...
What is the difference between the scalar and list contexts in Perl and does this have any parallel in other languages such as Java or Javascript? Various operators in Perl are context sensitive and produce different results in list and scalar context. For example: ``` my(@array) = (1, 2, 4, 8, 16); my($first) = @arr...
[ 0.05632955953478813, -0.013558686710894108, 0.4578486680984497, -0.2847432494163513, -0.2604718506336212, 0.05002157390117645, -0.1276189088821411, -0.6317383646965027, -0.21312899887561798, 0.12469092011451721, -0.2104388028383255, 0.39449894428253174, -0.46791011095046997, -0.19480516016...
the `my($first)` provide an array context, but there's only space for one value in `$first`. * both `@copy1` and `@copy2` contain a copy of `@array`, * and `$count` contains 5 because it is a scalar context, and `@array` evaluates to the number of elements in the array in a scalar context. More elaborate examples coul...
[ 0.09898670762777328, 0.06465612351894379, 0.2232796847820282, -0.14750513434410095, -0.19375993311405182, 0.2376059591770172, -0.10893556475639343, -0.4346189498901367, -0.2937676012516022, -0.42708808183670044, -0.14554063975811005, 0.4448414742946625, -0.33499419689178467, 0.016775561496...
Let's say I have the following function: ``` sumAll :: [(Int,Int)] -> Int sumAll xs = foldr (+) 0 (map f xs) where f (x,y) = x+y ``` The result of `sumAll [(1,1),(2,2),(3,3)]` will be `12`. What I don't understand is where the `(x,y)` values are coming from. Well, I know they come from the `xs` variable but I don...
[ 0.20028357207775116, 0.1342332363128662, 0.30108585953712463, -0.35450127720832825, -0.22602619230747223, -0.12516725063323975, 0.08608869463205338, -0.5882431268692017, -0.11334863305091858, -0.3061426281929016, -0.2419123351573944, 0.6943745017051697, -0.2180657982826233, 0.1039652451872...
the `(\(x,y) -> x+y)` lambda expression. In Haskell, functions are first class datatypes. This means you can pass functions around like other types of data such as integers and strings. In your code above you declare 'f' to be a function, which takes in one argumenta (a tuple of two values (x,y)) and returns the resu...
[ -0.3448962867259979, -0.3253312408924103, 0.4917636811733246, -0.20759041607379913, -0.28767648339271545, 0.2523474395275116, 0.014827091246843338, -0.14001846313476562, 0.15157465636730194, -0.3158387541770935, -0.5060701966285706, 0.5011087656021118, -0.3927646279335022, -0.0039766691625...
Int sumAll xs = foldr (+) 0 (map myFunctionF xs) myFunctionF :: (Int,Int) -> Int myFunctionF (x,y) = x + y ``` **Edit**: If your unsure about how foldr works, check out [Haskell Reference Zvon](http://www.zvon.org/other/haskell/Outputprelude/index.html) Below is an example implementation of foldl / map. ``` foldl :...
[ -0.39163678884506226, -0.4031639099121094, 0.8291247487068176, -0.5113083124160767, -0.4753044843673706, 0.06626419723033905, 0.22856006026268005, -0.4211597144603729, -0.12643906474113464, -0.6804635524749756, -0.2334517240524292, 0.6677248477935791, -0.3858996629714966, -0.11293405294418...
Is it possible to have a C static library API, which uses C++ internally and hide this from users of the library? I have writen a portable C++ library I wish to statically link to an iPhone application. I have created an Xcode project using the Max OS X 'static library' template, and copied the source across, as well...
[ 0.4593527019023895, 0.28171271085739136, 0.31776362657546997, -0.05777691677212715, -0.022331058979034424, 0.010409391485154629, -0.022793089970946312, -0.26615631580352783, -0.23796726763248444, -0.39659082889556885, 0.007657663431018591, 0.5570447444915771, -0.40641728043556213, -0.05792...
implementation class in the library. But I get unresolved symbols on linking when I try and change the wrapper file to a (.c) extention, even though all the wrapper function files are only C functions. Just becuase C++ is used internally in a library, does it mean that externally it still must be treated as a C++ pr...
[ 0.3915903866291046, -0.13189199566841125, 0.09152960777282715, -0.06649093329906464, -0.05382426083087921, -0.2178354263305664, 0.31066739559173584, -0.18013344705104828, -0.26267001032829285, -0.6258257031440735, 0.07149170339107513, 0.6752822399139404, -0.3272254467010498, -0.00137302046...
or could be ignorant and think its a purely C library. It would seem I cannot, and I must use (.mm) files on my ObjectiveC classes. It's too hard to do this in comments, so I'm just going to demonstrate for you quickly what the linking issues are that you're having. When Xcode encounters files, it uses build rules bas...
[ 0.43393492698669434, 0.281997948884964, 0.21787871420383453, -0.01749078556895256, -0.2000327855348587, -0.4188319146633148, -0.12069063633680344, 0.014496930874884129, -0.23203212022781372, -0.5600706338882446, -0.27492472529411316, 0.11403758823871613, -0.6354392766952515, 0.204255431890...
basically an archive of object files which *need to be linked*. Since you have no .mm or .cpp files in your project, g++ is never called and your files are never linked to the standard libraries. To correct this, just add the standard C++ libraries to your other linker flags in your Xcode project, or just simply add th...
[ 0.27303630113601685, 0.26184165477752686, 0.5725353956222534, -0.10804356634616852, 0.024941902607679367, 0.029368268325924873, 0.04789012297987938, -0.10106471925973892, -0.44582173228263855, -0.5693854689598083, -0.09619957208633423, 0.2669275999069214, -0.6094517707824707, 0.19610847532...
stw.a stw.o ``` Using the library from a C application: myapp.c: ``` #include "stw.h" int main() { show_the_world(); return 0; } ``` Building the C application: ``` $ gcc -o myapp myapp.c stw.a -lstdc++ -g -O0 $ ./myapp Hello, world! $ ``` If you try to compile without the -lstdc++ you will get all the un...
[ 0.3273811936378479, 0.3261166512966156, 0.5747480392456055, -0.18103179335594177, -0.04050561785697937, -0.029135767370462418, 0.4817739725112915, -0.03093215450644493, -0.20368541777133942, -0.7357425689697266, -0.23655886948108673, 0.5931499004364014, -0.5772897005081177, 0.3260667622089...
use g++ and your issues will be resolved.
[ 0.1145491972565651, 0.15313664078712463, 0.40085434913635254, 0.22313633561134338, -0.28926798701286316, -0.2190239131450653, 0.10975905507802963, 0.09077388048171997, -0.08918803185224533, -0.6412203311920166, -0.3576655089855194, 0.6254997253417969, -0.43223506212234497, -0.4253840446472...
If you are going to start the development of an API for your web application. Is there any kind of guidelines, best practices or standard to build web services. I have seen a few discussions in this topic and I will like to get more information. At least get pointers on where to get the information. Thanks in advanc...
[ 0.7726354002952576, -0.18019463121891022, 0.5054383277893066, 0.2746000289916992, 0.05146908015012741, -0.4758981466293335, 0.01180204376578331, 0.2941681146621704, -0.2798697352409363, -0.4552311897277832, 0.2796810269355774, 0.2717641592025757, 0.1043676882982254, 0.3067972958087921, 0...
find something better, let me know to mark their answer as accepted.
[ 0.5316187739372253, 0.22936798632144928, 0.27638301253318787, 0.23803892731666565, -0.1494980901479721, 0.10560885816812515, 0.0656721442937851, 0.07794128358364105, 0.19992989301681519, -0.5204383730888367, -0.029026618227362633, 0.11848750710487366, 0.24381543695926666, -0.16256818175315...
I remember reading in some Java book about any operator other than 'instanceof' for comparing the type hierarchy between two objects. instanceof is the most used and common. I am not able to recall clearly whether there is indeed another way of doing that or not. Yes, there is. Is not an operator but a method on the C...
[ -0.01859837770462036, -0.052781183272600174, 0.39387938380241394, -0.24198369681835175, -0.01384313777089119, -0.020439021289348602, 0.11615463346242905, -0.03258133307099342, -0.3448103666305542, -0.5222923159599304, 0.06150251254439354, 0.4481167197227478, -0.2727872133255005, 0.34040457...
if ( Some.class.isInstance( new SubClass() ) ) { System.out.println( "ieap" ); } else { System.out.println( "noup" ); } } } class SubClass extends Some{} ```
[ -0.1889292150735855, -0.4500753879547119, 0.34204113483428955, -0.19036036729812622, 0.031355030834674835, -0.22422568500041962, 0.30452507734298706, -0.1741083711385727, -0.03342267498373985, -0.660551130771637, -0.5417290925979614, 0.3859521746635437, -0.2971903681755066, 0.0255078058689...
I wanted to know, while deciding which language or technology to use for implementing an idea; a design, what are the factors involved in making a decision? Specifically talking about popular scripting languages, why would one choose to use ruby over python or perl or vice-versa? All these scripting languages have prov...
[ 0.5437177419662476, 0.10781450569629669, -0.3385857045650482, 0.08327258378267288, -0.23804263770580292, 0.10760775953531265, 0.014800729230046272, -0.15910197794437408, -0.3805740475654602, -0.3434988558292389, 0.03139554709196091, 0.6111350655555725, -0.1339549422264099, -0.2570317685604...
I have a number of solutions with a large number of projects in them. I would like to be able to define global settings for the solution that are used by all projects. For example an include directory. I want to be able to change the include directory in one place for all projects in the solutions. When I searched fo...
[ 0.35492047667503357, 0.14096060395240784, 0.2223253846168518, 0.10141203552484512, 0.37254875898361206, 0.19110508263111115, 0.05260796099901199, -0.022917872294783592, -0.5248432755470276, -0.6049328446388245, 0.2175440639257431, 0.10884839296340942, -0.032818377017974854, 0.2327338904142...
but then everyone that needs to compile the code has to define the exact same settings. Can anyone suggest a way to do this? Thanks. We use property sheets to accomplish this. A single property sheet can be assigned to all the projects in the solution. From then on you can change a setting in that one property sheet ...
[ 0.5526418089866638, -0.1561293751001358, 0.18269166350364685, 0.40468674898147583, 0.22091451287269592, -0.06416311115026474, -0.1158747673034668, -0.47103822231292725, -0.034377582371234894, -0.6458057761192322, -0.11952375620603561, 0.5286601185798645, -0.032996274530887604, -0.184400781...
then the last property sheet will override settings in the previous property sheets in the list. If you're editing in the GUI, then the TOP one overrides the ones below it.
[ 0.11499225348234177, 0.08563603460788727, 0.716842532157898, 0.2154177576303482, 0.33237189054489136, -0.30172964930534363, -0.09457870572805405, -0.246779203414917, -0.12341499328613281, -0.7694039344787598, -0.49573278427124023, 0.8312888741493225, 0.16594332456588745, -0.100587897002696...
Coming from C++, I find generic programming indispensable. I wonder how people approach that in Haskell? Say how do write generic swap function in Haskell? Is there an equivalent concept of partial specialization in Haskell? In C++, I can partially specialize the generic swap function with a special one for a generi...
[ 0.11726932227611542, -0.4161067605018616, 0.030219299718737602, 0.12242183834314346, -0.3242506980895996, -0.2745140492916107, -0.13164515793323517, 0.09423557668924332, -0.369303822517395, -0.5620554089546204, -0.04831305518746376, 0.9346082210540771, -0.5781642198562622, -0.0690507665276...
of a book about Haskell. It sounds as if you haven't yet grasped the key point about it which is that it bans you from modifying the values of existing variables. Swap (as understood and used in C++) is, by its very nature, all about modifying existing values. It's so we can use a name to refer to a container, and rep...
[ 0.21074000000953674, -0.021243637427687645, -0.17078077793121338, 0.2683553397655487, 0.11477437615394592, -0.3949785828590393, 0.05624647065997124, 0.11684317141771317, -0.07299134880304337, -0.07609010487794876, -0.21125277876853943, 0.4939539134502411, -0.4847078323364258, -0.0872233286...
generic swap in Haskell, but it would probably take a pair of values and return a new pair containing the same values with their positions reversed, or something like that. Not really the same thing, and not having the same uses. It wouldn't make any sense to try and specialise it for a map by digging inside that map a...
[ 0.10648181289434433, -0.42889928817749023, -0.10269846022129059, 0.1672135591506958, -0.36590057611465454, -0.20095255970954895, 0.19231747090816498, 0.010401449166238308, -0.19463427364826202, -0.3751474916934967, 0.20785586535930634, 0.6222813129425049, -0.7823053002357483, -0.1191348806...
a type declaration. It means that the function `measure` takes a list of anything (`a` is a generic type parameter because it starts with a lowercase letter) and returns an Integer. So this works for a list of any element type - it's what would be called a function template in C++, or a polymorphic function in Haskell ...
[ 0.23453301191329956, -0.016517790034413338, 0.13866554200649261, -0.08296368271112442, -0.3128153681755066, -0.23073960840702057, 0.014992655254900455, -0.3768600523471832, -0.12745915353298187, -0.4360198378562927, -0.21136164665222168, 0.44775399565696716, -0.4733291566371918, 0.07774427...
1 + measure r ``` The bit in parentheses on the LHS is a pattern. It means: take a list, break off the head and call it h, call the remaining part r. Those names are then parameters we can use. This will match any list with at least one item on it. If you've tried template metaprogramming in C++ this will all be old...
[ 0.504219114780426, 0.021528249606490135, 0.23682405054569244, -0.28109899163246155, -0.3040805160999298, -0.04506867751479149, 0.136186882853508, -0.6408427357673645, -0.1287236213684082, -0.3873296082019806, -0.16468149423599243, 0.35283103585243225, -0.5413625240325928, -0.19995684921741...
of values).
[ -0.09128834307193756, 0.21622693538665771, 0.40687257051467896, 0.04255117103457451, 0.18388068675994873, 0.2898184359073639, -0.08850481361150742, -0.5828112959861755, 0.05570504814386368, -0.1328304260969162, -0.254313200712204, 0.903637707233429, -0.3493936061859131, 0.25472161173820496...
In Delphi 2007, in a mouse move event, I try to change the mouse cursor with: ``` procedure TFr_Board_Display.PaintBox_Proxy_BoardMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); begin if left_mouse_button_down then begin if some_condition then begin Cursor := crDrag; end else be...
[ -0.5413886308670044, -0.30801519751548767, 0.6585915684700012, -0.3623337745666504, -0.050431542098522186, -0.025981398299336433, 0.0064611127600073814, -0.28593775629997253, -0.2641613781452179, -0.5468378067016602, -0.1446348875761032, 0.7034000158309937, -0.4323931932449341, 0.103454448...
Cursor := crDefault; end; end; end; ``` for example. However, when the left mouse button is down, and I move the mouse, the cursor doesn't change to either crDrag or crNoDrop. The code is executed (e.g. Cursor := crDrag;) but the cursor does not change. When the left mouse button is up, and I move the mouse, th...
[ -0.50248122215271, 0.029983630403876305, 0.8783586621284485, 0.18777522444725037, 0.05275341495871544, 0.08006129413843155, 0.0010350999655202031, -0.1183648556470871, -0.48157671093940735, -0.37136903405189514, -0.39782458543777466, 0.7103410363197327, -0.5297076106071472, -0.074204675853...
to change when the left mouse button is down and the while the mouse is moving the cursor should change back and forth between crDrag and crNoDrop. If you set the mouse cursor in the OnMouseDown and reset it in the OnMouseUp, anything works fine: ``` procedure TForm4.FormMouseDown(Sender: TObject; Button: TMouseButton...
[ -0.37902894616127014, -0.16534842550754547, 0.9164385199546814, -0.24392573535442352, 0.33047905564308167, 0.10881712287664413, 0.21346959471702576, -0.10507184267044067, -0.3571249544620514, -0.5083445310592651, -0.5249596238136292, 0.8037884831428528, -0.4442940652370453, -0.074738956987...
Integer); begin if ssLeft in Shift then begin if X<100 then Screen.Cursor := crCross else Screen.Cursor := crHourGlass; end else Screen.Cursor := crDefault; // Or you can restore a saved cursor. end; procedure TForm4.FormMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; ...
[ -0.33826252818107605, 0.18123523890972137, 1.0505802631378174, -0.2953093349933624, 0.09919053316116333, 0.24859029054641724, 0.43662315607070923, -0.1574832946062088, -0.38177910447120667, -0.7330902814865112, -0.4685148298740387, 0.7570422291755676, -0.301690936088562, -0.041306145489215...
Hi I'm very new to sql but have been passed a job in which I need to query the db(MS SQL 2005) I need to return all workers where a HeadID is given.(tables below) So I need to get all the managers that match the HeadID and then all the workers that match those managers by ManagerID. How would I do this? Any help or any...
[ -0.2013704925775528, 0.09617690742015839, 0.6330641508102417, -0.2038602977991104, -0.462735116481781, 0.02169205993413925, 0.19317828118801117, -0.4713342487812042, 0.07510931044816971, -0.4990004599094391, 0.40612873435020447, 0.47080495953559875, -0.44536349177360535, 0.2666909098625183...
join tb_Head on tb_Manager.HeadID = Head.HeadID where tb_Head.HeadID = <given value> ``` Tune your table names and select columns as appropriate.
[ -0.04820483177900314, 0.24066241085529327, 0.42002415657043457, -0.33830729126930237, 0.23211146891117096, -0.2058582603931427, 0.1950814574956894, -0.057989466935396194, -0.14361706376075745, -0.8276731371879578, -0.003164655528962612, 0.36529695987701416, -0.7311329245567322, 0.195655420...
If I strong name a class library with a .snk file, do I need to replace this .snk file with a new if I create a new version of the same library? No. The class library assembly is signed with the public key from the SNK file. You can use the same SNK file for any and all assemblies you create. That way, target systems ...
[ 0.5274577140808105, 0.07609148323535919, -0.05547655373811722, 0.11439809948205948, -0.3367708623409271, -0.3968777656555176, 0.2369130253791809, -0.15316493809223175, -0.06823176145553589, -0.775793194770813, -0.1745472550392151, 0.30358362197875977, -0.11381658166646957, 0.27130502462387...
all assemblies are signed with the same SNK.
[ 0.3880091607570648, -0.006411468144506216, 0.4203467071056366, -0.1635896861553192, -0.4231182932853699, -0.15872615575790405, 0.42494848370552063, 0.30542176961898804, -0.20217987895011902, -0.25064992904663086, -0.19920247793197632, -0.2841404378414154, -0.06764235347509384, -0.026739042...
Below is my table, a User could have multiple profiles in certain languages, non-English profiles have a higher priority. ``` +----------+--------+----------------+----------------+ |ProfileID |UserID |ProfileLanguage |ProfilePriority | +----------+--------+----------------+----------------+ |1 |1 |en-...
[ -0.17397110164165497, -0.023515569046139717, 0.8389944434165955, 0.04695923998951912, -0.08066992461681366, 0.09481118619441986, 0.12337463349103928, -0.1305680274963379, -0.06867986172437668, -1.0370663404464722, -0.19663037359714508, 0.5495419502258301, -0.18543188273906708, -0.257226288...
| +----------+--------+----------------+----------------+ |3 |1 |ja-JP |1 | +----------+--------+----------------+----------------+ |4 |2 |es-MX |1 | +----------+--------+----------------+----------------+ |5
[ -0.2537379562854767, 0.15518897771835327, 0.5473025441169739, 0.25080209970474243, -0.1434052735567093, 0.5620995163917542, 0.5058792233467102, -0.3294050693511963, -0.22488592565059662, -0.2668650150299072, -0.4591916501522064, 0.47235697507858276, -0.25820183753967285, 0.2644138634204864...
|2 |ja-JP |2 | +----------+--------+----------------+----------------+ |6 |2 |de-DE |1 | +----------+--------+----------------+----------------+ |7 |3 |en-US
[ -0.0942358449101448, 0.09576971083879471, 0.2626160979270935, 0.26668527722358704, -0.3165426552295685, 0.20241908729076385, 0.5429065823554993, -0.20937487483024597, -0.17126983404159546, -0.2048463523387909, -0.5091480016708374, 0.248067244887352, -0.2965080142021179, 0.2633811831474304,...
|2 | +----------+--------+----------------+----------------+ ``` For example: When a Spanish-speaking visitor requests my site (where ProfileLanguage = 'es-MX' or ProfilePriority = 2), I want the records like below: ``` +----------+--------+----------------+----------------+ |ProfileID |UserID |Profi...
[ -0.2951391935348511, -0.0037459449376910925, 0.8166837096214294, 0.1438356339931488, 0.0802147388458252, -0.15939728915691376, 0.1121034249663353, 0.007090827450156212, -0.17277733981609344, -0.8325170278549194, -0.38897839188575745, 0.4138983190059662, -0.1188853308558464, 0.0654877349734...
|ja-JP |2 | +----------+--------+----------------+----------------+ |7 |3 |en-US |2 | +----------+--------+----------------+----------------+ ``` Below, is the basic SQL to get the users: ``` SELECT UserID, MIN(ProfilePriority) AS ProfilePriority FROM Pro...
[ -0.22885161638259888, 0.14210249483585358, 0.572349488735199, 0.029224028810858727, -0.32523053884506226, 0.16178147494792938, 0.40363451838493347, -0.14602626860141754, 0.05307462438941002, -0.6415379047393799, -0.2471255213022232, 0.534502387046814, 0.015358987264335155, 0.10147403925657...
the UserID, but I also need other column information, like ProfileID etc.. So I hope experts here could tell me the correct SQL expression to get the right records. This may work, if profilepriority and userid could be a composite unique key; ``` select p.* from Profile p join (SELECT UserID, MIN(ProfilePriority) AS ...
[ -0.150560200214386, -0.2036675065755844, 0.7615280747413635, 0.1813802421092987, 0.07177616655826569, 0.47334447503089905, -0.1035604327917099, -0.272635281085968, -0.1445292830467224, -0.801976203918457, -0.12423742562532425, 0.44684308767318726, -0.05859399959445, 0.010536248795688152, ...
I have a C linux application (A) that spawns another process (P) when it is started. When I want to debug P I start A as usual and I connect with ddd/gdb to P. Problems appear when I want to debug the entry-point (start of main) of P. If I follow the usual approach when I connect the debugger to P is already to late. ...
[ 0.38798609375953674, 0.14069119095802307, 0.3430422842502594, -0.26365625858306885, -0.0662652850151062, -0.19560623168945312, 0.07263324409723282, 0.1448998600244522, -0.18413197994232178, -0.5325248837471008, -0.25570768117904663, 0.4966248869895935, -0.3744659423828125, 0.37463432550430...
`asm("int $3")` but it doesn't seems to work. Do you have any idea how I could solve this problem? (preferably without altering the code of A or P) You should use this option: ``` set follow-fork-mode *mode* ``` Where *mode* is one of `parent`, `child` or `ask`. To follow the parent (this is the default) use: ``` ...
[ 0.032041024416685104, -0.10592207312583923, 0.3319466710090637, -0.0986996665596962, 0.03125445917248726, 0.13137668371200562, 0.16015668213367462, -0.13954192399978638, 0.09839504957199097, -0.28399041295051575, -0.05359150469303131, 0.404829204082489, -0.5108331441879272, 0.1225705817341...
What is best language to learn next to Java? Criteria for this secondary language are: 1. High potential of being the "next big thing". e.g. If the market for Java open positions *hypothetically* dies/dwindles, what is the next programming language that will have a bigger market for open positions? Another way to fra...
[ 0.008387776091694832, -0.1617596298456192, -0.09445472806692123, 0.3825967013835907, 0.010634567588567734, -0.03716283664107323, 0.11548750102519989, 0.2079971730709076, -0.08436592668294907, -0.8743736743927002, 0.06033002957701683, 0.5688760280609131, -0.05533633381128311, -0.16990382969...
and speed up your solutions. Python almost meets all of them, but I don't know about being "the next big thing", but hey, Google uses it, and I think its popularity is raising. It's a scripting language, btw. I use it for web applications (using [django](http://djangoproject.com)), and you can definitely create deskt...
[ 0.3103398382663727, 0.297945499420166, 0.13104411959648132, -0.07517451047897339, -0.030126573517918587, -0.1800130307674408, 0.26182883977890015, 0.3768152594566345, -0.4775041341781616, -0.6564723253250122, 0.008570320904254913, 0.5995972156524658, -0.16490180790424347, -0.28821578621864...
I recently had a problem in my app where some of the subviews I was creating in a UIViewController subclass's `-awakeFromNib` method were disappearing from the view. After some poking around I found that moving the code I had put in `-awakeFromNib` to `-viewDidLoad` solved the problem. Seems that `-awakeFromNib` gets c...
[ 0.1412034034729004, 0.06994093209505081, 0.6501704454421997, -0.23631687462329865, 0.045481711626052856, -0.20759807527065277, 0.4466911256313324, 0.039311353117227554, -0.24706986546516418, -0.7120376825332642, -0.12513367831707, 0.7490338087081909, -0.01959933340549469, 0.481667667627334...
understanding this correctly? Or am I more confused than I thought? `awakeFromNib` is called when the **controller** itself is unarchived from a nib. `viewDidLoad` is called when the **view** is created/unarchived. This distinction is especially important when the controller's view is stored in a separate nib file.
[ 0.15820135176181793, -0.15525904297828674, 0.24888503551483154, -0.026600942015647888, -0.13830646872520447, -0.373372346162796, 0.099825918674469, 0.08385784924030304, -0.07985837757587433, -0.6551499962806702, -0.5531780123710632, 0.539601743221283, -0.08260274678468704, 0.45720320940017...
Why does it (apparently) make a difference whether I pass `null` as an argument directly, or pass an `Object` that I assigned the *value* `null`? ``` Object testVal = null; test.foo(testVal); // dispatched to foo(Object) // test.foo(null); // compilation problem -> "The method foo(String) is ambiguous" publi...
[ 0.11587920784950256, 0.1335892528295517, 0.15988139808177948, -0.32179465889930725, -0.37357422709465027, 0.016500817611813545, 0.2528729736804962, -0.4519551694393158, -0.18216267228126526, -0.22651198506355286, -0.05305718630552292, 0.27244505286216736, -0.5119642615318298, 0.23936215043...
compile. The only difference I see is that Hemal's methods are static while mine are not. But I really don't see why this should make a difference...? **Update 2:** Solved. I had another method foo(Runnable) in my class, so the dispatcher couldn't unambiguously select the single most specific method. (See my comment i...
[ 0.2799411118030548, 0.11068771034479141, 0.30990469455718994, -0.17132148146629333, -0.3764614164829254, -0.1896154135465622, 0.5195246934890747, -0.18961401283740997, -0.15281012654304504, -0.7651396989822388, 0.15939980745315552, 0.600055456161499, -0.6237847805023193, -0.008920098654925...
`nulltype`, which is a subtype of all types. So, this `nulltype` extends `String`, which extends `Object`. When you call `foo(null)` compiler looks for the overloaded method with most specific type. Since `String` is more specific then `Object` that is the method that gets called. If you had another overload that was...
[ -0.013019065372645855, 0.0548810139298439, 0.09737012535333633, -0.3846650719642639, -0.17381538450717926, -0.002854695310816169, 0.3980932831764221, -0.3072103261947632, 0.13480393588542938, -0.4419392943382263, -0.16923438012599945, 0.4223010540008545, -0.6651992201805115, 0.274229645729...
// dispatched to foo(Object) foo(null); // compilation problem -> "The method foo(String) is ambiguous" } public static void foo(String arg) { // More-specific System.out.println("foo(String)"); } public static void foo(Object arg) { // Generic System.out.println("foo(Object)"); } } ```
[ 0.15725098550319672, -0.05144498497247696, 0.24965164065361023, -0.20920054614543915, -0.37359419465065, 0.2100183367729187, 0.1933063566684723, -0.25690141320228577, -0.26361775398254395, -0.12289232760667801, -0.49959704279899597, 0.54982590675354, -0.8169995546340942, 0.2270978242158889...
I use some wx.ListCtrl classes in wx.LC\_REPORT mode, augmented with ListCtrlAutoWidthMixin. The problem is: When user double clicks the column divider (to auto resize column), column width is set to match the width of contents. This is done by the wx library and resizes column to just few pixels when the control is e...
[ 0.0664077028632164, -0.0543515682220459, 0.5839681625366211, -0.2375679463148117, -0.11322014033794403, 0.0441240556538105, 0.4159186780452728, -0.27632805705070496, -0.1695573776960373, -0.8024049997329712, 0.2772061228752136, 0.6453264951705933, -0.2961723506450653, 0.11883825808763504, ...
with ``` wx.EVT_LIST_COL_END_DRAG ``` this event is generated, usually twice, for double click, but I don't see how can I retrieve information about new size, or how to differentiate double click from drag&drop. Anyone has some other ideas? Ok, after some struggle I got working workaround for that. It is ugly from ...
[ -0.17857509851455688, 0.01059761829674244, 0.719437837600708, -0.2661179006099701, -0.12175330519676208, 0.1472584307193756, -0.09968775510787964, -0.368842214345932, -0.23020951449871063, -0.5178323984146118, -0.06702647358179092, 0.7397493720054626, -0.46495768427848816, -0.2179483920335...
if self.GetColumnWidth(colNum) < self.__columnWidth[colNum]: self.SetColumnWidth(colNum, self.__columnWidth[colNum]) evt.Skip() ``` The *self.GetColumnCount() - 1* is intentional, so the last column is not resized. I know this is not an elegant solution, but it works well enough for me - you can not m...
[ -0.27421537041664124, 0.10820537060499191, 0.6353253126144409, -0.31536686420440674, 0.11144097149372101, -0.13916507363319397, 0.2099488079547882, -0.09143682569265366, -0.24333307147026062, -0.6709080934524536, -0.1365737020969391, 0.38954058289527893, -0.27398717403411865, -0.1292743682...
Using the code below, I am returning an nvarchar field from *MS SQL 2005* and keep getting a System.InvalidCastException. ``` vo.PlacementID = dr.IsDBNull(0) ? null : dr.GetString(0); ``` The vo.PlacementID variable is of type String so there shouldn't be a problem. The values I am trying to return are like this (nu...
[ -0.2663733959197998, 0.13734352588653564, 0.3989509046077728, -0.2960682213306427, -0.23316629230976105, 0.11443036794662476, 0.5368040800094604, -0.20111289620399475, -0.3114336133003235, -0.44439464807510376, 0.05758800730109215, 0.42533719539642334, -0.40965354442596436, 0.2850945591926...
'System.Int32' to type > 'System.String'***. at > System.Data.SqlClient.SqlBuffer.get\_String() > at > System.Data.SqlClient.SqlDataReader.GetString(Int32 > i) Basically the underlying data type being returned in column 0 of your SqlDataReader isn't a string compatible type, hence the cast exception. I'd suggest...
[ 0.07252952456474304, -0.055478598922491074, 0.30303844809532166, -0.15118402242660522, -0.0723741352558136, -0.013606943190097809, 0.22527821362018585, -0.14252012968063354, 0.11964470148086548, -0.5992354154586792, -0.22849144041538239, 0.4309123456478119, -0.5839143991470337, 0.207698583...
There's a word that's used in API design that relates to the coupling between two entities. If one entity can vary without impacting the entity they are said to be \_ \_ \_ \_ \_. For example given the declaration class Point { public int X; public in Y; } members X and Y could be said to exhibit this behaviour, ...
[ 0.40609192848205566, -0.0760628804564476, 0.2511084973812103, -0.21904560923576355, -0.2536216974258423, -0.05505309998989105, 0.10203151404857635, -0.09654808044433594, -0.0011447954457253218, -0.3792085647583008, 0.033926524221897125, 0.5465835332870483, -0.4293707013130188, 0.3994470834...
this word repeatedly. So, after much searching I can't remember this word, can you? Orthogonal? Independent?
[ 0.13140104711055756, -0.154630646109581, 0.37476956844329834, -0.07841881364583969, -0.5386029481887817, 0.38340169191360474, 0.21590793132781982, 0.0036795297637581825, -0.4309368133544922, -0.4256506860256195, 0.023002658039331436, 0.2547268271446228, -0.39792105555534363, 0.127237901091...
Is anyone familiar with a tool that generates code stubs *with meaningful names* from class and javadoc? The real question should've been "I have classes without debug information and a matching javadoc, but my IntelliJ IDEA 8.0.1 (please, no IDE wars) doesn't take into account the javadoc and shows me "void setLocati...
[ 0.2572670876979828, 0.0013175808126106858, -0.00394536554813385, 0.20766916871070862, -0.1323545128107071, -0.20529808104038239, 0.2579444646835327, -0.03825271874666214, -0.08411061763763428, -0.43624719977378845, -0.004128464497625828, 0.4033716917037964, -0.19416962563991547, 0.19625024...
these lines: If a class has no debug information but has JavaDocs, IDEA should use the JavaDoc to determine the names of the parameters. Btw. Eclipse has the same problem. :)
[ 0.295500785112381, -0.1641933023929596, -0.1903587132692337, 0.11964859068393707, 0.0064895860850811005, -0.10823652893304825, 0.16736771166324615, -0.2658137381076813, -0.18260827660560608, -0.34876343607902527, -0.10381526499986649, 0.3367256224155426, -0.3301508128643036, 0.086893029510...
Do you know a good source to learn how to design SQL solutions? Beyond the basic language syntax, I'm looking for something to help me understand: 1. What tables to build and how to link them 2. How to design for different scales (small client APP to a huge distributed website) 3. How to write effective / efficient /...
[ 0.19699454307556152, 0.24106930196285248, 0.04073939844965935, 0.14462950825691223, -0.03320379555225372, -0.1881328970193863, 0.17036372423171997, -0.1190733090043068, 0.17652083933353424, -0.4547458291053772, 0.28907206654548645, 0.16425694525241852, -0.12555459141731262, -0.143994286656...
A Practical Approach to Design, Implementation and Management (International Computer Science Series)](http://www.amazon.co.uk/Database-Systems-Implementation-Management-International/dp/0321210255/ref=cm_lmf_tit_5_rsrrsi0) (Paperback) I think SQL and database design are **different** (but complementary) skills.
[ 0.06344246119260788, 0.16808240115642548, 0.20370246469974518, -0.123119056224823, -0.019307399168610573, -0.008771145716309547, -0.017154544591903687, -0.450954407453537, -0.18856045603752136, -0.3260532021522522, 0.06746301054954529, 0.5288524627685547, 0.05969667434692383, -0.4149970412...
I got a templated control (a repeater) listing some text and other markup. Each item has a radiobutton associated with it, making it possible for the user to select ONE of the items created by the repeater. The repeater writes the radiobutton setting its id and name generated with the default ASP.NET naming convention...
[ 0.4865138530731201, -0.016055475920438766, 0.45507001876831055, -0.03379324823617935, -0.40653687715530396, -0.015264436602592468, 0.06699702143669128, -0.46326521039009094, 0.19814611971378326, -0.22454537451267242, 0.06696996092796326, 0.4855063855648041, -0.30322539806365967, 0.14337855...
thus should be dependant (so I can only select one at a time). The problem is - this doesn't work - the repeater makes sure the id and thus the name (which controls the grouping) are different. Since I use a repeater (could have been a listview or any other templated databound control) I can't use the RadioButtonList....
[ 0.3430931866168976, -0.03024311736226082, 0.33817580342292786, 0.020855270326137543, -0.03651241213083267, -0.3052200675010681, 0.45112887024879456, -0.22693295776844025, -0.17562472820281982, -0.24819745123386383, 0.14216914772987366, 0.8418042659759521, -0.4395808279514313, 0.24091953039...
to enforce the grouping by JavaScript (ugly!) or even to handle the radiobuttons as non-server controls, forcing me to do a `Request.Form[name]` to read the status. I also tried experimenting with overriding the name attribute on the `PreRender` event - unfortunately the owning page and masterpage again overrides this ...
[ 0.5783589482307434, 0.19132454693317413, 0.022659907117486, 0.06899289786815643, -0.24334625899791718, -0.5101476907730103, 0.5232256650924683, 0.046289294958114624, -0.049275875091552734, -0.38307639956474304, -0.029962586238980293, 0.4632861018180847, -0.23689621686935425, 0.282193154096...
;) Google-fu: [asp.net radiobutton repeater problem](http://www.google.se/search?q=asp.net+radiobutton+repeater+problem&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a) Indeed an unfortunate consequence of the id mangling. My take would be creating a - or picking one of the many available - cust...
[ 0.23177073895931244, 0.19592145085334778, 0.3207269608974457, -0.06858067214488983, 0.050907135009765625, -0.31031569838523865, 0.38403844833374023, -0.28599050641059875, -0.07272766530513763, -0.20054201781749725, -0.3224226236343384, 0.8204804062843323, -0.7153242826461792, 0.24462130665...
I have a rather large project developed on Sharepoint and Project Server, designed as a multi-tier application. I programmatically manage web parts on certain web part pages. According to the choices of the user in one of the web pages, appropriate web parts are added to the web part collection of another web part page...
[ 0.31943249702453613, 0.22517915070056915, 0.26976093649864197, 0.06889034062623978, 0.12385392189025879, -0.020642446354031563, 0.020333746448159218, -0.24582844972610474, -0.1875203251838684, -0.4524851441383362, -0.10499817878007889, 0.28146451711654663, 0.07838361710309982, 0.1967332661...
web parts when adding them to the collection, since I do not want to use hard coded strings representing the web part dwp.) Use [`time.sleep()`](https://docs.python.org/library/time.html#time.sleep) ``` from time import sleep sleep(0.05) ```
[ 0.35526391863822937, -0.22097091376781464, 0.17105524241924286, -0.027201609686017036, 0.34662190079689026, -0.17888453602790833, -0.08790015429258347, -0.06660368293523788, -0.36286771297454834, -0.8829510807991028, -0.5636455416679382, 0.2197888046503067, -0.23616047203540802, -0.0076878...
I've got a simple class that inherits from Collection and adds a couple of properties. I need to serialize this class to XML, but the XMLSerializer ignores my additional properties. I assume this is because of the special treatment that XMLSerializer gives ICollection and IEnumerable objects. What's the best way aroun...
[ 0.4756229817867279, -0.003441392909735441, 0.33226168155670166, 0.02541031315922737, 0.18972398340702057, 0.09563649445772171, -0.174272820353508, -0.1634131669998169, -0.39830589294433594, -0.28251439332962036, 0.13034726679325104, 0.5361942648887634, -0.2910872995853424, 0.54766809940338...
new MyCollection(); c.Add("Hello"); c.Add("Goodbye"); var serializer = new XmlSerializer(typeof(MyCollection)); using (var writer = new StreamWriter("test.xml")) serializer.Serialize(writer, c); } } [XmlRoot("MyCollection")] public cl...
[ 0.007474763784557581, 0.001041916199028492, 0.993644654750824, 0.00825820304453373, 0.2000628560781479, 0.09182310104370117, 0.06278849393129349, -0.12356709688901901, -0.06817533820867538, -0.5257845520973206, -0.3134162425994873, 0.323247492313385, -0.2201821506023407, 0.5082447528839111...
{ [XmlAttribute()] public string MyAttribute { get; set; } public MyCollection() { this.MyAttribute = "SerializeThis"; } } } ``` This outputs the following XML (note MyAttribute is missing in the MyCollection element): ``` <?xml version="1.0" encoding="utf-8"?...
[ -0.2830917239189148, 0.1645670384168625, 0.8185019493103027, -0.1944282352924347, -0.1290789544582367, -0.12658019363880157, 0.11893412470817566, -0.26086968183517456, -0.15580126643180847, -0.3969549238681793, -0.4336754381656647, 0.2625423073768616, -0.14704984426498413, 0.28293010592460...
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <string>Hello</string> <string>Goodbye</string> </MyCollection> ``` Any ideas? The simpler the better. Thanks. Collections generally don't make good places for extra properties. Both during serialization a...
[ 0.0016595961060374975, 0.2666877508163452, 0.3856818974018097, 0.18775160610675812, -0.38697299361228943, -0.07081861793994904, -0.04014335572719574, -0.264602392911911, -0.5873858332633972, -0.4874683618545532, -0.3057556748390198, 0.06872949749231339, -0.14800366759300232, 0.168782785534...
public Collection<string> Items {get;set;} // the items } ``` The other option is to implement `IXmlSerializable` (quite a lot of work), but that still won't work for data-binding etc. Basically, this isn't the expected usage.
[ -0.0316898375749588, -0.08618148416280746, 0.41561439633369446, 0.3371735215187073, -0.36759963631629944, -0.2853435277938843, 0.16971464455127716, 0.045460864901542664, -0.20085114240646362, -0.6540045142173767, -0.3398953974246979, 0.4278199374675751, -0.4479829668998718, 0.3141743242740...
I know it's possible to use CSS to add page breaks to web pages, for when they're printed. I also know CSS support in HTML emails is poor. So, is there a way to generate a page break when an HTML email is printed? Or given the variety of email clients out there, is that just a daft question? I'd say do it the standar...
[ 0.7271378040313721, 0.2552371621131897, -0.06774352490901947, 0.319823294878006, -0.1941777467727661, -0.19083644449710846, 0.2958239018917084, 0.23091457784175873, -0.4920901656150818, -0.41871389746665955, 0.13291490077972412, 0.31064528226852417, -0.08443383127450943, -0.204204961657524...
and tell the recipient to print that one.
[ 0.22019289433956146, 0.5120686888694763, 0.17957642674446106, 0.19544607400894165, -0.018579799681901932, 0.04681487753987312, -0.06220240890979767, 0.44454100728034973, 0.06720910221338272, -0.1762446165084839, -0.37546661496162415, 0.23373280465602875, -0.21952475607395172, -0.1261523067...
I'm getting the following error when I try to use the JSTL XML taglib: ``` /server-side-transform.jsp(51,0) According to TLD or attribute directive in tag file, attribute xml does not accept any expressions ``` I'm looking into the tlds etc, but if anyone knows what this is an can save me some time, it'd be appreci...
[ -0.02096879482269287, 0.04720224440097809, 0.2764703929424286, -0.2196013331413269, -0.25498703122138977, -0.3289596736431122, 0.49864986538887024, -0.2607439160346985, -0.023052813485264778, -0.6980935335159302, 0.02734982594847679, 0.49789959192276, -0.3964211940765381, -0.01546000130474...
<p><xsl:apply-templates/></p> </xsl:template> <xsl:template match="bold"> <b><xsl:value-of select="."/></b> </xsl:template> </xsl:stylesheet> </c:set> <x:transform xml="${xml}" xslt="${xsl}"/> ``` in my /server-side-transform.jsp - my taglib directives are: ``` <%@ taglib uri="http://java.sun....
[ 0.13049498200416565, 0.06538025289773941, 0.4838418662548065, -0.011187595315277576, -0.13037143647670746, -0.2073477953672409, -0.004630375187844038, -0.5240185856819153, 0.10605569183826447, -0.6688936352729797, -0.03206329792737961, 0.5797542929649353, -0.23437701165676117, 0.0201139952...