text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
explain the logic behind it? NOTE: Yes, the best approach is to work entirely in UTC and not flip flop between them. This isn't something which is effecting me, but a peculiarity I encountered. Essentially I misunderstood how `AddYears()` worked and now I can see why it's doing what it's doing (see my selected answer ...
[ -0.034538961946964264, -0.3092336058616638, 1.0519886016845703, -0.0860685408115387, 0.16959331929683685, 0.015311892144382, 0.4257732629776001, 0.2700406610965729, -0.21267734467983246, -0.4603158235549927, 0.03340688347816467, 0.4444305896759033, -0.08396923542022705, 0.4345443546772003,...
back to PST, which would be February 29, 2012, 11:00:00. I'd say this is just a side affect of converting between local and UTC time.
[ 0.48538917303085327, -0.25222036242485046, 0.7951933741569519, 0.28461331129074097, 0.12388508021831512, -0.2251203954219818, 0.4617498219013214, 0.6681930422782898, -0.010621213354170322, -0.8848909139633179, 0.26941365003585815, 0.3793257772922516, 0.10232115536928177, 0.0221789143979549...
Can JS submit name/vale pairs through a document.testform.submit(); ? or does it have to be submitted through the html tags, for example ``` <INPUT TYPE="text" NAME="inputbox1" VALUE="This is such a great form!" SIZE=50><P> ``` Typically you include an <input type="hidden"> in the form, and set the value you want in ...
[ 0.452623188495636, -0.2784152030944824, 0.2374550849199295, -0.13557103276252747, 0.01544309314340353, -0.36331579089164734, 0.4391598403453827, -0.28061792254447937, 0.06584349274635315, -0.686125636100769, -0.36194080114364624, 0.24068467319011688, -0.1708853840827942, -0.229942530393600...
return true; } </script> ```
[ 0.07182156294584274, 0.22300907969474792, -0.024351494386792183, -0.43494513630867004, 0.12571878731250763, -0.13248541951179504, 0.45416566729545593, 0.22258217632770538, 0.38475412130355835, -0.39528968930244446, -0.6307569146156311, 0.8903676271438599, -0.16391009092330933, 0.0528548881...
I enabled tracing in IIS7. I set those properties to true in the ASP tab of the IIS management tool: * appAllowClientDebug, * appAllowDebugging, * errorsToNTLog, * scriptErrorSentToBrowser; To test it, I wrote a small classic ASP test page in wich I voluntary include a bug (bad activeX name). My asp test page is ...
[ 0.3996097147464752, -0.11871237307786942, 0.6089561581611633, -0.1775933802127838, -0.18464845418930054, 0.04963182657957077, 0.9583247303962708, -0.1680491864681244, -0.10189148038625717, -0.7136560678482056, 0.21717296540737152, 0.46294382214546204, -0.25268545746803284, -0.0708045139908...
may have it enabled, but you should *disable* it instead. The server thinks it should start debugging and tries to fire up a debugger, and then doesn't find one and just gives up! I'm sure this never happened prior to IIS7.
[ 0.015837954357266426, 0.0239357091486454, -0.01562790758907795, 0.026035794988274574, 0.12158776074647903, -0.4200155735015869, 0.6395987868309021, 0.32487425208091736, -0.1947333663702011, -0.4803064465522766, -0.1553175300359726, 0.3248307704925537, -0.2261582612991333, 0.262910068035125...
This question stems from watching [Rasmus Lerdorf's talk from Drupalcon](http://www.archive.org/details/simple_is_hard). This question and his talk have nothing specifically to do with Drupal, by the way... it was just given at their con. My own question also has nothing specific to do with PHP. It is the single entry ...
[ 0.21725603938102722, 0.3578680455684662, 0.19615426659584045, -0.029490221291780472, -0.45153185725212097, 0.14079076051712036, 0.3559885025024414, -0.1906188726425171, -0.4583340585231781, -0.3414686322212219, -0.014091764576733112, 0.3201635181903839, -0.5173549652099609, 0.0326787009835...
site is coming in through the same entry point wouldn't things bog down after traffic reached a certain point? Wouldn't it be more efficient to allow people direct access to specific points in a site without having their request go through the same point? But perhaps the actual impact is not very bad? Maybe modern arch...
[ 0.7309191823005676, 0.22818520665168762, 0.11911432445049286, -0.06778021156787872, 0.0026691320817917585, -0.13045157492160797, 0.6047361493110657, 0.203208789229393, -0.20520108938217163, -0.6354525089263916, -0.032454393804073334, 0.18947677314281464, -0.018192389979958534, 0.4032737910...
how computers work. The more something gets used, the more likely it's closer to the CPU, and therefore **faster**. Mind you, a single point of entry != single point of failure. But that's all beside the point, when people say single point of entry, we're talking about the app, it is a single point of entry for your lo...
[ 0.10118130594491959, 0.3357108533382416, 0.1404849737882614, 0.5112928748130798, 0.076530322432518, -0.008713925257325172, 0.24160698056221008, 0.3828122913837433, -0.5719282627105713, -0.6534525752067566, -0.14172551035881042, 0.17139631509780884, 0.007171213626861572, 0.14831788837909698...
places need to change? Having dealt with an app that each page stood on it's own, it sucked having to change, and I assure you, we needed it.
[ 0.8101016283035278, 0.13453684747219086, 0.25969037413597107, 0.3603562116622925, 0.4814245104789734, -0.34233978390693665, 0.15642157196998596, 0.37032800912857056, -0.4814423620700836, -0.22962434589862823, 0.06218644604086876, 0.2295006811618805, -0.3924103081226349, 0.1840730607509613,...
I want to create a generic to which I can pass a function as a parameter, however this function may include parameters itself so... ``` int foo = GetCachedValue("LastFoo", methodToGetFoo) ``` Such that: ``` protected int methodToGetFoo(DateTime today) { return 2; // example only } ``` Essentially I want to have a...
[ 0.13888736069202423, -0.1690477877855301, 0.39031270146369934, -0.20846830308437347, 0.20612503588199615, -0.15025779604911804, 0.26671916246414185, -0.15234366059303284, -0.13219495117664337, -0.4656579792499542, 0.04015922546386719, 0.46489837765693665, -0.3578161597251892, 0.37996006011...
cache[key] = value; } return value; } ``` The caller can then wrap this in many ways; for simple functions: ``` int i = GetCachedValue("Foo", GetNextValue); ... int GetNextValue() {...} ``` or where arguments are involved, a closure: ``` var bar = ... int i = GetCachedValue("Foo", () => GetNextValue(bar...
[ -0.03575700521469116, 0.1883985549211502, 0.4172488749027252, -0.36211681365966797, 0.09463024139404297, 0.22285272181034088, 0.517087459564209, -0.3884192407131195, 0.1777227520942688, -0.29615408182144165, -0.36183005571365356, 0.7086486220359802, -0.5188342332839966, 0.2560746371746063,...
### Duplicate > [What are some good resources for learning about Artificial Neural Networks?](https://stackoverflow.com/questions/478947/what-are-some-good-resources-for-learning-about-neural-networks) I'm looking for a good (beginner level) reference book (or website) on different types of Neural Nets/their applicat...
[ 0.36952850222587585, 0.14730526506900787, -0.040298353880643845, 0.1894129365682602, -0.01803584210574627, 0.10248523205518723, 0.21131983399391174, 0.3624234199523926, -0.4099484086036682, -0.6139892339706421, 0.05244644731283188, 0.3982449173927307, -0.40237516164779663, -0.1053197979927...
a look at it even if you will code in python yourself. The courses are in video format, however most important concepts are also writen down.
[ 0.39840468764305115, -0.00024583860067650676, -0.04121951758861542, 0.11029759794473648, 0.08358845114707947, -0.5287662148475647, 0.25213491916656494, 0.3379736840724945, 0.12298683822154999, -0.2637689709663391, -0.20079009234905243, 0.42691004276275635, 0.30056077241897583, -0.394064664...
I’m using latest globalize2 and rails 2.2. I wonder if the following is bug or feature: there seems to be a separate db query for each item in a dataset to get the translation. That doesn’t sound right since it may easily result in hundreds of queries. Illustration. Simple controller: ``` def index @menu_sections...
[ -0.17061153054237366, -0.2319517880678177, 0.506145715713501, 0.09800014644861221, -0.22225400805473328, -0.12586674094200134, 0.3172208070755005, -0.33542317152023315, -0.24841761589050293, -0.864630937576294, -0.08386820554733276, 0.4358900785446167, -0.43746230006217957, 0.4207260012626...
db query: ``` Processing StoreController#index (for 10.0.2.2 at 2009-03-02 16:05:53) [GET] Session ID: 468f54928cbdc0b19c03cfbd01d09fa9 Parameters: {"action"=>"index", "controller"=>"store"} MenuSection Load (0.0ms) SELECT * FROM `menu_sections` Rendering template within layouts/store Rendering store/index Re...
[ -0.28235217928886414, -0.001561331795528531, 0.6521303057670593, -0.2703278958797455, -0.3142973780632019, 0.5717818140983582, 0.35775652527809143, -0.8460930585861206, -0.05607302486896515, -0.4802938401699066, -0.49975693225860596, 0.5058628916740417, -0.4071376919746399, 0.0530445091426...
(`menu_section_translations`.menu_section_id = 3 AND (`menu_section_translations`.`locale` IN ('en','root'))) Completed in 340ms (View: 320, DB: 0) | 200 OK [http://www.dev.babooka.com/store] ``` What do you think? Perhaps there is a better way for translating db data in rails? You can accomplish what you're trying t...
[ 0.03329342231154442, 0.13343796133995056, 0.42685776948928833, -0.1257697343826294, -0.3720272183418274, 0.28285834193229675, 0.8403711915016174, -0.6785746812820435, 0.21581609547138214, -0.7766191363334656, -0.250912606716156, 0.5157805681228638, -0.14441831409931183, -0.0225794687867164...
For SPARC Assembly particularly, how are annulled branches different from regular branches? I always thought that annulling branch instructions is required when I need to fill the nop delay slot for branch instructions. However, I don't think I'm correct on this part, because you can fill the nop without annulling the...
[ 0.14990156888961792, -0.17322030663490295, 0.22130174934864044, 0.07405366003513336, 0.1763523817062378, -0.24408382177352905, 0.07187891006469727, 0.09019295126199722, -0.46841925382614136, -0.018196647986769676, -0.4995593726634979, 0.4210965037345886, -0.3460458219051361, 0.276501029729...
are two program counters, PC and NPC. PC, which indicates the instruction being executed, is updated to NPC, which is PC + 4, at the same time as NPC is being updated to the target of the branch instruction. So because of the timing of these events, the next instruction has to be loaded. Rather than just throw that cyc...
[ 0.26399216055870056, -0.20863047242164612, 0.18599720299243927, 0.2461279332637787, 0.15469588339328766, 0.1644386351108551, 0.01914331130683422, 0.11958963423967361, -0.5772560834884644, -0.29807427525520325, -0.23729784786701202, 0.5147991180419922, -0.24217797815799713, -0.1365061402320...
someOtherOp branch loop ; delayslotOp ; will actually be executed, before someOp, after branch ``` If we can't use the instruction slot after the branch, then we stick a nop in there, and do nothing on that cycle. So why then have different instructions with annulled and non-annul...
[ 0.10563486814498901, -0.508904218673706, 0.2738615572452545, 0.08618892729282379, 0.3511505722999573, -0.01603633537888527, 0.33749616146087646, 0.42995843291282654, -0.35100626945495605, -0.23679885268211365, -0.12299931794404984, 0.17968788743019104, -0.012980605475604534, -0.00853879004...
the loop. If we've made the delay slot part of the loop activity, we might not want that op executed upon leaving from the loop. Therefore, we'd add ",a" to the end of the branch instruction. [This page has some nice examples.](http://www.cs.unm.edu/~maccabe/classes/341/labman/node3.html)
[ 0.2315557450056076, -0.22915415465831757, -0.21879726648330688, 0.11004694551229477, 0.30400776863098145, -0.056500837206840515, 0.33625856041908264, -0.09036266803741455, -0.47749465703964233, -0.008850010111927986, -0.3257181644439697, 0.22717073559761047, -0.2445496916770935, 0.10928934...
I have a project that will need to be able to export data for feed readers. Is there a non-technical reason I should pick RSS over Atom, Atom over RSS, one of the flavors of RSS over another or anything else? In particular, I'm looking for things like low or high adoption, difficulties/incompatibilities or particular...
[ 0.7398346662521362, -0.17857849597930908, -0.001058178604580462, 0.15484830737113953, -0.08233005553483963, -0.04546003416180611, -0.16706329584121704, 0.27901691198349, -0.38908737897872925, -0.6781816482543945, 0.19498729705810547, 0.30545908212661743, -0.3695649206638336, -0.03647750616...
famous netizen] uses RSS!
[ 0.5052475929260254, 0.04414810985326767, 0.212104931473732, 0.22760938107967377, -0.13398149609565735, -0.8217044472694397, 0.032514795660972595, 0.33461570739746094, -0.7182901501655579, -0.02595868706703186, -0.03481866791844368, 0.17831477522850037, -0.583075761795044, 0.277082622051239...
What is the best way to implement security using active directory roles on an asp.net dynamic data site? I would like to restrict certain views (and the related links) to certain roles. i.e. user A can only view list actions for table x and user B can only view list actions for table y I have a number of articles on t...
[ -0.04581442475318909, -0.021355772390961647, 0.26784923672676086, 0.02340121567249298, -0.13410884141921997, -0.3193536698818207, 0.2588976323604584, -0.2986629605293274, -0.22517897188663483, -0.4090249240398407, -0.12636741995811462, 0.5263694524765015, -0.19171661138534546, 0.0241043213...
What is the best place to set up application specific `LD_LIBRARY_PATH` variable on Solaris? How does > `LD_LIBRARY_PATH` variable work? We currently set it up in `.kshrc`, but different applications need different versions of messaging framework, but these applications run under the same use and hence they would ...
[ 0.527685821056366, -0.16770274937152863, 0.3343411684036255, 0.044073909521102905, -0.036454636603593826, -0.19017855823040009, -0.24366024136543274, -0.07510103285312653, -0.08953628689050674, -0.6985951662063599, 0.052254173904657364, 0.5703467130661011, -0.45006707310676575, -0.08723805...
would set LD\_LIBRARY\_PATH to whatever I need it to be for that app, then have the script start that app. Doing it that way should cause the path to be set only for that application.
[ 0.3465896546840668, -0.2038017064332962, 0.3328225314617157, 0.0556802898645401, 0.2146969884634018, -0.18705308437347412, -0.07783588021993637, -0.07320555299520493, -0.07692990452051163, -0.8928319215774536, -0.11483875662088394, 0.5433200001716614, -0.4545803666114807, -0.16974620521068...
I have a Model as follows: ``` class TankJournal(models.Model): user = models.ForeignKey(User) tank = models.ForeignKey(TankProfile) ts = models.IntegerField(max_length=15) title = models.CharField(max_length=50) body = models.TextField() ``` I also have a model form for the above model as follow...
[ -0.13365934789180756, 0.04958585649728775, 0.39299672842025757, -0.2559281885623932, -0.07612503319978714, 0.2217712551355362, 0.1130811870098114, -0.361011803150177, 0.07255788892507553, -0.664130449295044, -0.08018716424703598, 0.7967805862426758, -0.182081401348114, 0.3084285259246826, ...
show/save the form so far: ``` def addJournal(request, id=0): if not request.user.is_authenticated(): return HttpResponseRedirect('/') # checking if they own the tank from django.contrib.auth.models import User user = User.objects.get(pk=request.session['id']) if request.method == 'POST':...
[ 0.36721470952033997, -0.027213532477617264, 0.6954711675643921, -0.20882073044776917, -0.1136605367064476, 0.07426644116640091, -0.09976353496313095, -0.19422981142997742, -0.12273270636796951, -0.6344590783119202, -0.06810819357633591, 0.6345908045768738, -0.15032337605953217, 0.095037221...
and ts from time import time obj.ts = int(time()) obj.user = user obj.tank = TankProfile.objects.get(pk=form.cleaned_data['tank_id']) # saving the test obj.save() else: form = JournalForm()
[ 0.17873215675354004, -0.20408572256565094, 0.38397881388664246, -0.08396613597869873, -0.042313456535339355, 0.3313004672527313, 0.1906019002199173, -0.3759939670562744, -0.20315563678741455, -0.6460968852043152, -0.11247895658016205, 0.44001132249832153, -0.17865872383117676, 0.2279356420...
try: tank = TankProfile.objects.get(user=user, id=id) except TankProfile.DoesNotExist: return HttpResponseRedirect('/error/') ``` You can use [`Form.initial`](https://docs.djangoproject.com/en/dev/ref/forms/api/#initial-form-values), which is explained [here](https://djangobook.com/tying-forms-view...
[ 0.03630251809954643, 0.0066902595572173595, 0.35734835267066956, -0.17837992310523987, -0.12198451161384583, 0.22946307063102722, 0.1553354561328888, -0.483040452003479, 0.039542056620121, -0.5034387707710266, -0.2313496172428131, 0.4689551889896393, -0.38943320512771606, -0.17667998373508...
I'm in the process of designing a fairly complex system. One of our primary concerns is supporting SQL Server peer-to-peer replication. The idea is to support several geographically separated nodes. A secondary concern has been using a modern ORM in the middle tier. Our first choice has always been Entity Framework, m...
[ 0.22572559118270874, 0.11592602729797363, 0.3497474193572998, 0.19167926907539368, 0.11638560891151428, -0.23015937209129333, -0.03854602202773094, 0.37316861748695374, -0.18641208112239838, -0.6121569275856018, 0.14480634033679962, 0.3775257468223572, 0.023240789771080017, 0.4833953678607...
and reducing index fragmentation. However, it turns out that the current version of Entity Framework has a [very strange limitation](http://blogs.msdn.com/dsimmons/pages/ef-faq-entity-services.aspx#Section_17): if an entity's key column is a uniqueidentifier (GUID) then it cannot be configured to use the default value...
[ -0.06804364174604416, 0.027765873819589615, 0.7248496413230896, 0.23097364604473114, -0.00504795927554369, -0.35007601976394653, 0.00684591569006443, -0.25105080008506775, -0.09281615912914276, -0.4649904668331146, -0.06583830714225769, 0.2754332721233368, -0.2619454860687256, 0.3886182606...
to generate sequential GUIDs (COMBs?) at the application layer I'm leaning towards option 1 with linq2sql (my developers really like linq2[stuff]) and 3. That's mainly because I'm somewhat ignorant of alternate key strategies that support the replication scheme we're aiming for while also keeping things sane from a de...
[ 0.12199529260396957, -0.24603037536144257, 0.3331320881843567, 0.16534307599067688, -0.4524732232093811, -0.36069822311401367, 0.29637411236763, 0.024972932413220406, -0.3148055374622345, -0.5746766328811646, -0.1159767284989357, 0.8803277015686035, -0.6392539143562317, -0.1984068155288696...
What is the best plain javascript way of inserting X rows into a table in IE. The table html looks like this: ``` <table><tbody id='tb'><tr><td>1</td><td>2</td></tr></tbody></table> ``` What I need to do, is drop the old body, and insert a new one with 1000 rows. I have my 1000 rows as a javascript string variable....
[ 0.19348981976509094, 0.11606041342020035, 0.21933872997760773, 0.04954637214541435, -0.2462213784456253, -0.013149218633770943, 0.02294616959989071, -0.10336287319660187, -0.13346071541309357, -0.998548150062561, 0.3091598153114319, 0.4366232454776764, -0.39807790517807007, -0.222742035984...
to do `tbody.innerHTML="<tr>..."`](http://www.ericvasilik.com/2006/07/code-karma.html): > At first, I thought that IE was not > capable of performing the redraw for > modified tables with innerHTML, but > then I remembered that I was > responsible for this limitation! Incidentally the trick he uses is basically h...
[ 0.26006582379341125, 0.10190557688474655, -0.10493671149015427, 0.051962222903966904, 0.07979793101549149, 0.020391574129462242, 0.36703065037727356, -0.3846651315689087, -0.27779871225357056, -0.45480164885520935, -0.06868988275527954, 0.34099236130714417, -0.6517816185951233, -0.01689121...
element The point of that element was to illustrate that all IE needs is a "context". You could use an element created on the fly instead (`document.createElement('div')`). > and also the article is old I'm never helping you again ;) But seriously, if you want to see how others have implemented it, take a look at t...
[ 0.20289385318756104, -0.09027237445116043, 0.06669117510318756, -0.02453524060547352, -0.36767369508743286, -0.19415709376335144, 0.3650312125682831, -0.20827868580818176, 0.041329991072416306, -0.514369547367096, -0.03886588290333748, 0.1250511109828949, -0.25396618247032166, -0.147623240...
When loading a page for the first time, the images do not show for a second (like they are invisible). The structure of the page becomes appears to be scattered. If you hit refresh, it is fine. Are there fixes that can resolve this? If the problem is strictly with images, I believe you can use the `height` and `width` ...
[ 0.3955170810222626, -0.09615445882081985, 0.2738288938999176, 0.06439021229743958, -0.16718579828739166, -0.25049129128456116, 0.14881034195423126, 0.0339575819671154, -0.5654703974723816, -0.8175020813941956, -0.1597033590078354, 0.37334662675857544, -0.2525542378425598, -0.01198465190827...
`height` and `width` directives from CSS will give you the same result as using the same attributes of the `<img>` tag, but doesn't limit you strictly to images and a will play nicer with any `margin` or `padding` directives you might use.
[ 0.3286846876144409, -0.20322178304195404, 0.3488065004348755, 0.028060324490070343, -0.17097266018390656, -0.04060670733451843, -0.09824097901582718, -0.19374580681324005, -0.07672980427742004, -0.5405195951461792, -0.1100032776594162, 0.42826390266418457, 0.015934765338897705, -0.10552957...
Hi im thinking about developing a sort of File Transfer program and was wondering if i want as good encryption that i can get what should i use? ill be developing this with c# so i got access to the .net lib :P having a certificate with me on my usb to access the server is no problem if that would increase the securit...
[ 0.11222877353429794, 0.18491502106189728, 0.6368385553359985, 0.11395273357629776, -0.08561403304338455, -0.24322684109210968, 0.13302023708820343, -0.22862890362739563, -0.16742071509361267, -0.4447823464870453, -0.10683935880661011, 0.2366199940443039, -0.22223138809204102, 0.24719339609...
I'm writing an application that would allow users to edit a calendar, its description and a few other things. I'm using jquery, php and mysql. Each time the user makes a change it asynchronously updates the database. I'd like to give them the option of turning what they make into a pdf. Is there a way that I can post ...
[ 0.6215828657150269, 0.0835186317563057, 0.3912923336029053, 0.09580956399440765, -0.18289028108119965, -0.01143051777034998, -0.29306328296661377, 0.22485403716564178, -0.41829344630241394, -0.8897181749343872, 0.20601986348628998, 0.48226532340049744, -0.07628578692674637, 0.0546040087938...
for the page: ``` var htmlSource = document.getElementsByTagName('html')[0].innerHTML; ``` However it'll lack the opening and closing HTML tags and doctype, which probably won't matter to you as you could recreate that very easily back on the server. I'll assume you can just use the same AJAX you're already using t...
[ 0.0252524446696043, 0.14133493602275848, 0.7070023417472839, -0.18030081689357758, -0.16314305365085602, -0.23556065559387207, 0.3770206570625305, 0.11803930997848511, -0.1701601892709732, -0.8152225613594055, -0.36647742986679077, 0.42598044872283936, -0.24930104613304138, 0.0323333553969...
Can anyone list the steps needed to programatically install an application on Windows. Aside from copying the files where they need to be, what are the additional steps needed so that your app will be a first-class citizen in Windows (i.e. show up in the programs list, uninstall list...etc.) I tried to google this, bu...
[ 0.6238778829574585, 0.10875477641820908, -0.08453566581010818, 0.10585790872573853, 0.03726832941174507, -0.29640570282936096, 0.2315361499786377, 0.14178352057933807, -0.2548501193523407, -0.609511137008667, -0.037074558436870575, 0.3683868944644928, -0.10821748524904251, -0.1602703034877...
should not write the installer yourself**. Use one of the many installer-makers, such as Inno Setup, InstallSheild, or anything else someone recommends. If you try to write the installer yourself, you'll probably do it wrong. This isn't a slight against you personally. It's just that there are a lot of little details ...
[ 0.961448073387146, 0.3295590877532959, -0.004173249937593937, 0.05551692470908165, 0.055402301251888275, -0.36979037523269653, 0.6526050567626953, 0.2274702489376068, 0.13962703943252563, -0.6958482265472412, -0.16470904648303986, 0.7520014047622681, -0.537206768989563, -0.1485548764467239...
trouble. Besides copying files, installation tasks vary quite a bit depending on what your program needs. Maybe you need to put an icon on the Start menu; an installer tool should have a way to make that happen very easily, automatically filling in the install location that the customer chose earlier in the installati...
[ 0.4588814377784729, 0.05041703209280968, 0.19438835978507996, 0.24866408109664917, 0.199403315782547, 0.0013850124087184668, 0.22975586354732513, 0.17324379086494446, -0.5387237071990967, -0.561077356338501, -0.2274603247642517, 0.6860212683677673, -0.25989440083503723, -0.0262476336210966...
register a COM server. That's a common enough action that your installer tool probably has a way of specifying that as part of the post-file-copy operation. If there are some actions that your chosen installer tool doesn't already provide for, the tool will probably offer a way to add custom actions, perhaps through a...
[ 0.7988837361335754, -0.16728337109088898, 0.22273972630500793, 0.2479175627231598, 0.30671006441116333, 0.08394039422273636, 0.05958002060651779, -0.02884947694838047, -0.44602784514427185, -0.5343866348266602, -0.09875427186489105, 0.38592079281806946, -0.20056207478046417, 0.025459861382...
installed. A couple of final things that an installer tool should provide are ways to **apply upgrades** to an existing installation, and a way to **uninstall** the program, undoing all those installation tasks (deleting files, restoring backups, unregistering COM servers, etc.).
[ 0.36415913701057434, -0.1965399831533432, 0.5888190865516663, 0.3335510790348053, 0.35059574246406555, -0.1716926395893097, 0.13347657024860382, 0.09683949500322342, -0.2026626467704773, -0.7712262272834778, -0.6218188405036926, 0.6676712036132812, -0.14382410049438477, -0.0714351236820221...
Suppose I have 5 local commits. I want to push only 2 of them to a centralized repo (using an SVN-style workflow). How do I do this? This did not work: ``` git checkout HEAD~3 #set head to three commits ago git push #attempt push from that head ``` That ends up pushing all 5 local commits. I suppose I could do...
[ 0.1544792503118515, 0.1163276806473732, 0.36286988854408264, -0.17996260523796082, -0.11894464492797852, 0.11584800481796265, 0.5837141871452332, -0.23218607902526855, -0.5256284475326538, -0.6905758380889893, 0.11801915615797043, 0.5356332063674927, -0.09553708881139755, 0.209602355957031...
push or reset would work. If it helps, here's my git config ``` [ramanujan:~/myrepo/.git]$cat config [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] url = ssh://server/git/myrepo.git fetch = +refs/heads/*:refs/...
[ 0.2116978019475937, -0.3651461601257324, 0.4144187867641449, -0.04708104208111763, 0.2772119641304016, 0.1764286756515503, 0.18703174591064453, -0.165591299533844, -0.5013386011123657, -0.602993369102478, -0.15951983630657196, 0.41330811381340027, -0.156903937458992, 0.3058888614177704, ...
the master branch and you want to push them to the remote master branch: ``` $ git push origin master~3:master ``` If you were using git-svn: ``` $ git svn dcommit master~3 ``` In the case of git-svn, you could also use HEAD~3, since it is expecting a commit. In the case of straight git, you need to use the branc...
[ 0.0025598055217415094, -0.35946154594421387, 0.5171253681182861, -0.028085168451070786, 0.14434224367141724, -0.12914974987506866, -0.0741855800151825, -0.22515885531902313, -0.3339295983314514, -0.5692340731620789, -0.4020959436893463, 0.5168602466583252, -0.20144471526145935, 0.233017757...
you could do something like: ``` $ git checkout master $ git merge working~3 $ git push origin master:master ``` Note that the "origin master:master" part is probably optional for your setup.
[ 0.3461834788322449, -0.3305930495262146, 0.18030737340450287, -0.21737544238567352, 0.17128078639507294, -0.14589162170886993, 0.006952730473130941, 0.06302045285701752, 0.04309979826211929, -0.831016480922699, -0.03391372039914131, 0.698894739151001, -0.2876150608062744, -0.11004689335823...
On the first click, it works as expected: 1. the class is changed 2. and the html content is changed from 'Show...' to 'Close...' 3. the content area is expanded with the slideDown effect, Good so far. On the second click, ... 1. the class changes 2. the html content is changed from 'Close...' to 'Show...' 3. The c...
[ -0.03991139680147171, -0.26360881328582764, 0.6269649863243103, -0.21120288968086243, -0.18190497159957886, 0.000612699193879962, 0.41302457451820374, -0.10406040400266647, -0.33904632925987244, -0.587756872177124, -0.37380340695381165, 0.5715134739875793, -0.28149259090423584, 0.049149904...
{ $('#user_urls').slideDown('slow'); $(this).addClass('close_user_urls'); $(this).removeClass('open_user_urls'); $(this).html('Close Search History'); return false; }); $('.close_user_urls').live('click', function() { $('#user_urls').slideUp('slow'); $(this).addClass('open_user_urls'); ...
[ -0.008027204312384129, 0.20977897942066193, 0.7335076332092285, -0.32327619194984436, 0.07756184786558151, 0.07420583814382553, 0.4936818778514862, 0.08261055499315262, -0.22876128554344177, -0.5191146731376648, -0.5733541250228882, 0.3568797707557678, -0.49834153056144714, 0.5003327727317...
this code working originally, but then it stopped. I'm stumped. Time to strip everything else out piece by piece... EDIT 2 - Since the bug must be elsewhere, I'm accepting a code improvement for my jquery as the answer. Thanks. Edit 3 - Found the source of the problem. Inside the #user\_urls div I have an series of ...
[ 0.014232086017727852, 0.11481354385614395, 0.7237062454223633, -0.1751018613576889, -0.07106553763151169, 0.26331543922424316, 0.28630295395851135, 0.015138878487050533, -0.1340705305337906, -0.7726060748100281, 0.1712576150894165, 0.317434698343277, -0.5027568340301514, 0.3123505413532257...
the problem to go away. So having a float on the content contained in the DIV thats showing and hiding is causing it not not hide at all. Why would this happen? EDIT 4: Adding a inside the #user\_urls DIV allows the hiding action to work properly. Perhaps something like this would be simpler? ``` $(".open_user_urls"...
[ 0.03480653464794159, -0.07576984912157059, 0.5968708992004395, -0.14088308811187744, 0.23444294929504395, -0.12663227319717407, 0.3758316934108734, -0.2835483253002167, -0.019432272762060165, -0.37095504999160767, -0.21288910508155823, 0.6885825991630554, -0.5192868709564209, 0.06813846528...
encountering.
[ -0.2888122498989105, 0.23375153541564941, 0.0840129554271698, 0.1887959986925125, -0.1351790428161621, -0.5396726131439209, 0.20167101919651031, 0.12349066883325577, -0.24187108874320984, -1.1504651308059692, -0.18679742515087128, 0.2596183717250824, -0.12725238502025604, 0.004051779396831...
I'm writing a test for a piece of code that has an IOException catch in it that I'm trying to cover. The try/catch looks something like this: ``` try { oos = new ObjectOutputStream(new FileOutputStream(cacheFileName)); } catch (IOException e) { LOGGER.error("Bad news!", e); } finally { ``` The easiest way se...
[ 0.5906029939651489, 0.1173110157251358, 0.03858562186360359, -0.049425799399614334, 0.21213003993034363, -0.2679676115512848, 0.40618711709976196, 0.2251638025045395, 0.006553849671036005, -0.7632642984390259, 0.13049203157424927, 0.5362851023674011, -0.27590861916542053, 0.133442640304565...
Windows?" On windows, I can use > 'new File("X:/")', where X: is a drive > letter that does not exist. On Linux, > this does not work because that is a > valid file name. Look at java.io.File.createTempFile. Use it to create the file and then delete it. Probably pass it something like: ``` File tempFile; temp...
[ 0.2826850712299347, 0.08708293735980988, 0.5410982370376587, -0.05333780497312546, 0.3758133351802826, -0.2045912742614746, 0.3310459554195404, -0.12613371014595032, -0.2204209715127945, -0.826065182685852, -0.12097547203302383, 0.7326626181602478, -0.38594910502433777, 0.15609405934810638...
(much) fear of it existing.
[ 0.13075901567935944, 0.09419409185647964, -0.4021702706813812, 0.06371170282363892, -0.3256494104862213, 0.09736765921115875, 0.3869873583316803, -0.07990691810846329, -0.021168595179915428, -0.4781091511249542, 0.21096540987491608, 0.6703012585639954, -0.09805537760257721, 0.4781841933727...
I want to do a breadth first search of a tree using a Queue ``` var q = new Queue<T>(); q.Enqueue(Root); foreach(T root in q) { foreach(T t in root.Children) q.Enqueue(t); } ``` However I get a "Collection was modified after the enumerator was instantiated." Exception. Is there a C# type that I can do this ...
[ 0.1839713454246521, -0.1402411311864853, 0.41307687759399414, -0.036403123289346695, 0.19884036481380463, 0.0791231021285057, 0.6142488121986389, -0.28774428367614746, 0.03787771984934807, -0.6009858250617981, -0.3404380679130554, 0.34950926899909973, -0.21231001615524292, 0.39228180050849...
q.Enqueue(t); } ``` You can't enumerate over an IEnumerable and change the same IEnumerable at the same time. I don't think there is a C# Collection that will allow this.
[ 0.22078411281108856, 0.1830170899629593, 0.025430670008063316, -0.21009555459022522, 0.06411415338516235, -0.3022671043872833, 0.2099454700946808, 0.04157789796590805, 0.2005147635936737, -0.6435474753379822, -0.25079864263534546, 0.4938047230243683, -0.4267936050891876, 0.2286874353885650...
I am trying to implement a Flash uploader in my Zend framework application but I am having problems with the session. The Flash does not send any cookie headers and this is why the session is lost. I am trying to send the sessionId as a post param and in my bootstrap file I added a session\_id($\_POST['session\_id]) b...
[ 0.14273498952388763, 0.03950880840420723, 0.09421289712190628, 0.09129078686237335, -0.1469419151544571, -0.0567346028983593, 0.609830915927887, -0.03533544763922691, -0.10566619783639908, -0.6571654677391052, 0.15105673670768738, 0.6048949360847473, -0.31465423107147217, 0.286196917295455...
be set correctly in the $\_SESSION global. And even stranger it seems to work on my Windows computer but not on the Linux staging server. Do you know if you are using Suhosin with your PHP installation? I've heard a [few reports](http://swfupload.org/forum/generaldiscussion/1206) of Suhosin doing this to the sessions...
[ 0.3656206429004669, -0.13291947543621063, 0.38849368691444397, -0.05355462059378624, 0.1301586627960205, -0.404646098613739, 0.3859769403934479, -0.11133057624101639, -0.33618539571762085, -0.6568210124969482, -0.34338459372520447, 0.7764518857002258, -0.19335882365703583, -0.1221154779195...
sure you call `session_id($_POST['session_id])` before `session_start()` But anyway, it is probably related to your PHP installation if you are saying it works under your Windows environment.
[ 0.36852121353149414, 0.0812089815735817, 0.06464942544698715, -0.15676544606685638, -0.10487277060747147, -0.6998770833015442, 0.37748366594314575, 0.4060629606246948, -0.13990484178066254, -0.35105812549591064, 0.018532205373048782, 0.655159056186676, -0.2918546795845032, 0.10769145935773...
I am working on Perl script that uses [Expect](http://search.cpan.org/dist/Expect) to login via telnet to remote machines (don't ask, gotta use telnet). I also do perforce p4 login operations as necessary and use expect to pipe in the correct passwords. For now I just read passwords from clear text environment variable...
[ 0.35110291838645935, 0.014098047278821468, 0.27705150842666626, -0.1211504191160202, -0.01072909776121378, -0.007768441457301378, 0.23906494677066803, 0.18706095218658447, -0.0632997453212738, -0.7312716245651245, 0.01780783012509346, 0.7017284631729126, -0.03912930563092232, -0.0445187762...
example I can't really install SSH or anything like that. Probably your best way is to put the passwords in a separate file, and lock the security for that file down so only you have read access. Unfortunately, if you store an encrypted password in your script, you'll also have to store the decryption method, so an att...
[ 0.40020206570625305, 0.30652931332588196, -0.38718581199645996, 0.11266743391752243, 0.0943652093410492, -0.46140143275260925, 0.5963488221168518, 0.20276455581188202, -0.2029949277639389, -0.6124548316001892, 0.1177540272474289, 0.5880210399627686, -0.17512771487236023, 0.0259079858660697...
What is the fastest way to fill ListView from query when it has over 15000 lists with 9 subitems. it is taking me about 6 minute to load. Here is what I wrote to fill ListView control. ``` Set rs = db.OpenRecordset(strSQL, dbOpenForwardOnly, dbReadOnly) With Me.listViewData .View = lvwReport .GridLines = Tru...
[ 0.008231496438384056, 0.0570901595056057, 0.8422163724899292, 0.011904489248991013, 0.04334545135498047, 0.23360735177993774, 0.35606735944747925, -0.3016430139541626, -0.24047628045082092, -0.8039643168449402, 0.12894482910633087, 0.5194856524467468, -0.15616992115974426, -0.0636445954442...
lvwColumnCenter .Add , , "Date", 1140, lvwColumnLeft .Add , , "GrandTotal", 1440, lvwColumnRight .Add , , "Weighted Value", 1440, lvwColumnRight .Add , , "Chance %", 500, lvwColumnRight .Add , , "Sales Cycle", 1140, lvwColumnRight .Add , , "Won Orders", 1000, lvwColumnRight .Add , , "SalesRe...
[ 0.2600303888320923, -0.020461877807974815, 0.8565034866333008, -0.40400585532188416, 0.09505245089530945, 0.6741903424263, 0.1861695498228073, -0.2422909289598465, -0.21216753125190735, -0.13431458175182343, -0.27600744366645813, 0.5752056241035461, 0.18042545020580292, 0.2132844775915146,...
lstItem.SubItems(3) = Nz(rs!OrderDate, "") lstItem.SubItems(4) = Nz(Format(rs!GrandTotal, "Currency"), "0.00") lstItem.SubItems(5) = Nz(Format(rs!GrandTotal * rs!Customfield1 / 100, "Currency"), "") lstItem.SubItems(6) = Nz(rs!Customfield1, "") lstItem.SubItems(7) = Nz(rs!Date1, "none") lstItem.SubI...
[ 0.30271023511886597, -0.1684388965368271, 0.9501538872718811, -0.32191792130470276, -0.026192152872681618, 0.30759748816490173, 0.25268009305000305, -0.5619206428527832, -0.40367749333381653, -0.4012492001056671, -0.1966484934091568, 0.36981433629989624, -0.08626823127269745, -0.1153592392...
sb.ForeColor = vbBlue lstItem.ForeColor = vbBlue ElseIf rs!Cancelled = -1 Then sb.ForeColor = vbRed lstItem.ForeColor = vbRed Else sb.ForeColor = vbBlack lstItem.ForeColor = vbBlack
[ 0.35574501752853394, 0.10464944690465927, 0.724264919757843, -0.3830597400665283, -0.3969535231590271, 0.2332649528980255, 0.10405144095420837, -0.7217856049537659, -0.6588453054428101, -0.4676666557788849, -0.19131140410900116, -0.09017179161310196, -0.6812042593955994, -0.123311176896095...
End If DoEvents Next rs.MoveNext Wend ``` I can think of a couple things: While...Wend is a slower looping mechanism; use For...Next. For...Next is faster--even if you have to run another command to get the RecordCount. This is what I use: ``` With rs If .RecordCount > 0 Then '-- MoveLast...Mov...
[ -0.14804762601852417, -0.12760211527347565, 0.7287291288375854, -0.09613709151744843, 0.3886234164237976, -0.19641917943954468, -0.06415849924087524, -0.2532464563846588, -0.40632501244544983, -0.6817253232002258, -0.17542771995067596, 0.4293576180934906, -0.18929852545261383, 0.2518346011...
= 1 To .RecordCount '-- Code to add ListItems here .MoveNext Next lngCounter End If .Close End With ``` Use With...End With for adding your SubItems: ``` With Me.listViewData.ListItems.Add .Text = Nz(rs!Name, "") .SubItems(1) = Nz(rs!Company, "") .SubItems(2) = Nz(rs!QuoteNumber, "") .Su...
[ 0.13375608623027802, -0.2817804217338562, 1.2004650831222534, 0.006764535792171955, 0.17288315296173096, 0.31971779465675354, 0.09012453258037567, -0.3444890081882477, -0.5273537635803223, -0.22450745105743408, -0.5320755839347839, 0.2498425990343094, -0.21537554264068604, 0.24054415524005...
in: ``` DoCmd.Echo False '-- Populate code DoCmd.Echo True ``` Hope that helps!
[ 0.5937648415565491, 0.3336597979068756, 0.1287195384502411, 0.019757628440856934, 0.16850031912326813, -0.16192109882831573, 0.5467057824134827, 0.11979526281356812, 0.012024850584566593, -0.38268405199050903, -0.2683441936969757, 0.36239317059516907, -0.35886824131011963, 0.00852709356695...
I just started a new project and my boss wants us to change IDE from NetBeans to Eclipse, RichFaces to Flex. I have never worked with Eclipse and Flex before. Today I tried to make hello word with it on Eclipse but had no luck. Can some one post or give me link to Flex->BlazeDS->Pojo on Eclipse for Beginner (Dummy) :D ...
[ 0.445519357919693, -0.25286364555358887, 0.016523048281669617, -0.004734773654490709, -0.6050162315368652, -0.07657338678836823, 0.09234441071748734, 0.03352518007159233, -0.3687949478626251, -0.7124207615852356, 0.21669770777225494, 0.4035859704017639, -0.26348552107810974, -0.46685084700...
getData() { return "hi"; } } ```
[ -0.057082388550043106, -0.2064390778541565, 0.4240589141845703, -0.1264122575521469, 0.15434585511684418, -0.22408249974250793, 0.40816184878349304, -0.005808771587908268, 0.1793440580368042, -0.2762414515018463, -0.576034426689148, 0.653010904788971, -0.6163768768310547, 0.261405020952224...
Any one know how can I apply Yahoo Compressor (YUI compressor) on my website? Here is the [README](http://www.julienlecomte.net/yuicompressor/README) on the YUI Compressor. And here is the [How To use](http://developer.yahoo.com/yui/compressor/#using) from their site.
[ 0.5646296739578247, 0.31739532947540283, 0.31603866815567017, -0.1090443879365921, -0.22832703590393066, 0.17931953072547913, 0.27487677335739136, -0.23199628293514252, 0.11001737415790558, -0.6757997274398804, -0.0548408105969429, 0.4987158179283142, 0.3165885806083679, 0.0060377810150384...
Using the YUI Menubar, when the items drop down they appear behind a ASP.NET Silverlight Control. I am not using YUI layout. I've already tried setting the z-index:99 and the position:relative for in menubar css, as well as setting the div's z-index:-1 and position:relative. Any ideas? Look at [this answer for a robu...
[ 0.12167346477508545, 0.18020355701446533, 0.3572138547897339, -0.3325347304344177, -0.43798789381980896, 0.21320591866970062, -0.0004835022264160216, -0.24842174351215363, -0.0730104073882103, -0.5056759715080261, 0.02105868048965931, 0.6160115003585815, -0.10597526282072067, 0.16247993707...
ValueError( "must supply a positive integer" ) l = len(alphabet) converted = [] while q != 0: q, r = divmod(q, l) converted.insert(0, alphabet[r]) return "".join(converted) or alphabet[0] class TimestampUniqifier( object ): def __init__(self): self.last = '' self.cou...
[ -0.11208352446556091, -0.26323020458221436, 0.3236965239048004, -0.4121568202972412, 0.12077365070581436, 0.2491053193807602, 0.3225237727165222, -0.49340391159057617, -0.026461729779839516, -0.30653902888298035, -0.09513235092163086, 0.4859495759010315, -0.2850937843322754, 0.236219763755...
self.last: suf = self.counter.next() return str + to_base( suf, up ) else: self.last = str self.counter = itertools.count() return str timestamp_uniqify = TimestampUniqifier() ``` usage: ``` timestamp_uniqify('1') '1' timestamp_uniqify(...
[ -0.23449821770191193, -0.1247977763414383, 0.8618108630180359, -0.5206063985824585, -0.21759620308876038, 0.24019576609134674, 0.2266259342432022, -0.6410624384880066, -0.1550644487142563, -0.8280350565910339, -0.1259719282388687, 0.5638443231582642, -0.2836886942386627, -0.057601943612098...
times and it will still produce good results: ``` for i in range(100): print timestamp_uniqify('4') 4 4A 4B 4C 4D 4E 4F 4G 4H 4I 4J 4K 4L 4M 4N 4O 4P 4Q 4R 4S 4T 4U 4V 4W 4X 4Y 4Z 4BA 4BB 4BC 4BD 4BE 4BF 4BG 4BH 4BI 4BJ 4BK 4BL 4BM 4BN 4BO 4BP 4BQ 4BR 4BS 4BT 4BU 4BV 4BW 4BX 4BY 4BZ 4CA 4CB 4CC 4CD 4CE 4CF 4CG 4CH 4C...
[ 0.019173244014382362, 0.38158130645751953, 0.9047132134437561, -0.10873816907405853, -0.019991757348179817, 0.20958943665027618, 0.4777521789073944, -0.5841370820999146, -0.177381694316864, -1.050097942352295, -0.035772960633039474, 0.4156421720981598, 0.20053349435329437, 0.11770799756050...
I have a WCF service that is setup to be hosted within a unity container. I was intending to use this container to perform method interception. The problem is I cannot get my interceptor to fire... First here the definition of my interceptor attribute and handler: ``` [AttributeUsage(AttributeTargets.Method)] public ...
[ 0.12672653794288635, -0.02869618870317936, 0.5035957098007202, -0.20096315443515778, -0.08996183425188065, -0.13485927879810333, 0.5350558161735535, -0.5859060287475586, 0.20804667472839355, -0.5336514115333557, 0.008960350416600704, 0.7174358367919922, -0.37810397148132324, -0.09128332138...
get; set; } public int SecurityModulePermission { get; set; } public override ICallHandler CreateHandler(IUnityContainer container) { return new PCSecurityCallHandler(0, SecurityModule, SecurityModulePermission); } } using System.ServiceModel.Se...
[ -0.1590249240398407, -0.3221340477466583, 0.543677031993866, 0.22725501656532288, 0.37052756547927856, -0.04780047386884689, 0.3871862292289734, -0.1906442642211914, -0.05394205451011658, -0.6496591567993164, -0.6126939654350281, 0.4606163203716278, -0.30464571714401245, 0.2869681417942047...
private Modules securityModule; private int securityModulePermission; public PCSecurityCallHandler(Modules module, int modulePermission) { securityModule = module; securityModulePermission = modulePermission; Order = 0; } public PCSecurityCal...
[ -0.24273325502872467, -0.41077372431755066, 0.312906414270401, 0.007765214890241623, 0.4830579459667206, 0.1725330948829651, 0.35748639702796936, -0.3504156470298767, -0.2788624167442322, -0.4235246181488037, -0.7847589254379272, 0.7415778040885925, -0.3156941831111908, -0.0119300000369548...
Modules module, int modulePermission) { securityModule = module; securityModulePermission = modulePermission; Order = order; } public IMethodReturn Invoke(IMethodInvocation input, GetNextHandlerDelegate getNext)
[ -0.06354861706495285, -0.3286861479282379, 0.2418154925107956, -0.18222595751285553, 0.2655652165412903, -0.05676890164613724, 0.6381008625030518, -0.7164920568466187, -0.08586379885673523, -0.5087134838104248, -0.7035878300666809, 0.5714007019996643, -0.4275183379650116, -0.11905901134014...
{ bool validPermission = false; // check security permission IMethodReturn result; if (validPermission) result = getNext().Invoke(input, getNext); else
[ 0.21387222409248352, -0.22428011894226074, 0.36934328079223633, -0.19791071116924286, 0.1832977831363678, -0.27351826429367065, 0.9271540641784668, -0.6951643824577332, 0.2092890590429306, -0.12139902263879776, -0.5881190896034241, 0.5539007186889648, -0.20019735395908356, 0.13159526884555...
throw new SecurityAccessDeniedException( "The current user does not have security " + "permissions to call this module."); return result; } public int Order
[ 0.031442929059267044, -0.23273590207099915, 0.060483418405056, -0.43305718898773193, 0.0924220010638237, -0.09009035676717758, 0.47025173902511597, -0.6446701884269714, -0.10418670624494553, -0.2886383831501007, -0.5123906135559082, 0.5927593111991882, -0.29395371675491333, 0.1188703849911...
{ get; set; } } } ``` In my host I've tried to configure it to use interception to no avail... HELP!!!! ``` public class DocumentTemplateServiceHostFactory : ServiceHostFactory { protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses) ...
[ -0.17296433448791504, 0.1534138023853302, 0.43041592836380005, -0.2884794771671295, 0.2862105667591095, -0.18847882747650146, 0.8944365978240967, 0.1009691134095192, -0.0368381142616272, -0.9552244544029236, -0.4507516026496887, 0.4771452248096466, -0.24250854551792145, 0.5069445371627808,...
new UnityServiceHost(serviceType, baseAddresses); UnityContainer unity = new UnityContainer(); host.Container = unity; host.Container.AddNewExtension<Interception>(); ; host.Container.RegisterType<IDocumentTemplateService, DocumentTemplateService>().Configure<Interception>()...
[ -0.13960380852222443, 0.11235535144805908, 0.3865887224674225, -0.22464323043823242, -0.003813096322119236, -0.07146348059177399, 0.8243471384048462, -0.2502024173736572, -0.1903301328420639, -0.7588298916816711, -0.16949939727783203, 0.48529720306396484, -0.6896096467971802, 0.32716515660...
WCF behaviors. Here's links that might be useful. <http://msdn.microsoft.com/en-us/magazine/cc136759.aspx> AND <http://www.global-webnet.net/blogengine/post/2009/01/03/Integrating-IIS-WCF-and-Unity.aspx> -Bryan
[ 0.026119552552700043, -0.2480734884738922, -0.040071357041597366, 0.0048138173297047615, -0.2251456081867218, -0.2950466275215149, 0.5534055829048157, -0.421054482460022, -0.32776525616645813, -0.3802224397659302, -0.0014887837460264564, 0.4028845429420471, -0.49952924251556396, 0.04205065...
I have a webform with around 20 textboxes/drop down list controls and i would like a clean and simple way of checking to see if the form fields have changed or not. Does anyone know of a clean way to do this? Thanks in advance! OpenCV has support for getting data from a webcam, and it comes with Python wrappers by def...
[ 0.3711031675338745, -0.11362433433532715, 0.6781569719314575, 0.06172461807727814, -0.09246304631233215, -0.47547781467437744, 0.03335806354880333, 0.07236238569021225, -0.4847186207771301, -0.8896767497062683, -0.20213682949543, 0.5398421287536621, -0.026820462197065353, -0.00945762172341...
webcam feed using opencv and python](https://stackoverflow.com/a/11449901/660921): ``` import cv2 cv2.namedWindow("preview") vc = cv2.VideoCapture(0) if vc.isOpened(): # try to get the first frame rval, frame = vc.read() else: rval = False while rval: cv2.imshow("preview", frame) rval, frame = vc.re...
[ 0.35864198207855225, -0.28372666239738464, 0.48914608359336853, -0.0972406417131424, -0.14016617834568024, -0.34473809599876404, 0.38152408599853516, -0.19115763902664185, 0.07354167848825455, -0.592475950717926, -0.17037944495677948, 0.6495111584663391, -0.5260165929794312, 0.194695159792...
I suspect this is a very dumb question: what is the correct syntax for an interruptible lock statement in C#? E.g. get lock; if lock is interrupted before locked code finishes, return false out of the enclosing method. Probably totally the wrong terminology... Thanks. You can have a timeout while *aquiring* a lock usin...
[ 0.2719777822494507, -0.10388650745153427, 0.37292203307151794, 0.10713163763284683, 0.19621779024600983, -0.30881354212760925, 0.4093646705150604, 0.011534733697772026, -0.3583482801914215, -0.5121529698371887, -0.23613522946834564, 0.6851862668991089, -0.05182265490293503, 0.0679698809981...
an executing method block. What exactly is it that you are trying to achieve? With more context we can probably help more...
[ 0.28167131543159485, -0.23847949504852295, -0.1594797521829605, 0.3183043301105499, -0.24475154280662537, -0.2326670140028, 0.45548513531684875, -0.19033293426036835, -0.23345012962818146, -0.3129785656929016, -0.05418277159333229, 0.07241255044937134, -0.2937350273132324, -0.0376024134457...
When I display an NSAlert like this, I get the response straight away: ``` int response; NSAlert *alert = [NSAlert alertWithMessageText:... ...]; response = [alert runModal]; ``` The problem is that this is application-modal and my application is document based. I display the alert in the current document's window b...
[ -0.0016002091579139233, -0.16400620341300964, 0.5440939664840698, -0.3066790699958801, -0.10979748517274857, -0.07554776221513748, 0.4828537106513977, -0.37395355105400085, -0.08656273037195206, -0.7146807312965393, -0.4047972857952118, 0.7144674062728882, -0.4254940450191498, -0.222426533...
contextInfo:&response]; //elsewhere - (void) alertDidEnd:(NSAlert *) alert returnCode:(int) returnCode contextInfo:(int *) contextInfo { *contextInfo = returnCode; } ``` The only issue with this is that `beginSheetModalForWindow:` returns straight away so I cannot reliably ask the user a question and wait for a ...
[ -0.06675269454717636, -0.11178859323263168, 0.2771724760532379, -0.2610148787498474, -0.05758431926369667, 0.148235484957695, 0.4295484721660614, -0.3633098900318146, -0.3418114483356476, -0.2564393877983093, -0.2054571956396103, 0.6623404622077942, -0.38994085788726807, -0.102770619094371...
(continue processing at the current branch), but since my application is document based, the Apple Human Interface Guidelines dictate to use sheets when the alert is specific to a document. How can I display the alert sheet and wait for a response? Unfortunately, there is not much you can do here. You basically have t...
[ 0.35002264380455017, 0.2769419550895691, 0.576318621635437, -0.07119419425725937, -0.07924161106348038, -0.2209731638431549, 0.3068343997001648, -0.24802857637405396, -0.36816126108169556, -0.4651872515678406, -0.047906018793582916, 0.40786027908325195, -0.25612133741378784, -0.00162638118...
information. Off the top of my head, though, a couple of thoughts might be: * Process the objects in another thread that communicates with the main thread through some kind of run loop signal or queue. If the window's object tree gets interrupted, it signals the main thread that it was interrupted and waits on a signa...
[ 0.17515142261981964, -0.17904993891716003, 0.38817352056503296, 0.41057610511779785, 0.015587778761982918, -0.09810035675764084, 0.10386725515127182, 0.2973012328147888, -0.32409414649009705, -0.7573057413101196, -0.04918607324361801, 0.27225828170776367, -0.11766367405653, 0.2640118002891...
In that case, my recommendation would be to just go with the deprecated usage, but it really depends on your user requirements.
[ 0.6844120025634766, 0.42130663990974426, 0.1694987267255783, 0.0690758153796196, 0.2001822292804718, -0.1368645876646042, 0.12213365733623505, 0.08863401412963867, 0.04957805573940277, -0.2293582707643509, -0.006595082581043243, 0.5187717080116272, 0.13459636270999908, -0.05216236785054207...
I have a very long file which I want to print, skipping the first 1,000,000 lines, for example. I looked into the cat man page, but I did not see any option to do this. I am looking for a command to do this or a simple Bash program. You'll need tail. Some examples: ``` $ tail great-big-file.log < Last 10 lines of gr...
[ 0.3794785737991333, -0.018913211300969124, 0.1495189219713211, -0.19405850768089294, -0.07591793686151505, -0.11147144436836243, 0.3963858187198639, 0.13120444118976593, -0.637690007686615, -0.5457605123519897, 0.07701176404953003, 0.42586788535118103, -0.5856890082359314, -0.1531493216753...
/tmp/myfile < /tmp/myfile, starting at line 11, or skipping the first 10 lines. > ``` If you want to just see the last so many lines, omit the "+": ``` $ tail -n <N> <filename> < last N lines of file. > ```
[ 0.43563342094421387, -0.008680160157382488, 0.5001465678215027, -0.16778315603733063, -0.010655808262526989, 0.3972531259059906, 0.4108414351940155, 0.34555843472480774, -0.260808527469635, -0.5872260332107544, -0.2577757239341736, 0.2839975953102112, -0.5161116123199463, -0.13518793880939...
What is the best practical way of learning index tuning while writing tsql queries? I have VS2008 SQL Express. Could someone please provide me examples, etc? I have already found online articles and they are great in theory, but I still fail to see index tuning in real life action. Are there small easy to create exampl...
[ 0.2970680296421051, 0.027602938935160637, 0.2556633949279785, 0.5003334879875183, -0.1455860286951065, -0.2943142354488373, 0.1336010992527008, -0.13677343726158142, -0.053243495523929596, -0.5187323093414307, 0.40212807059288025, 0.7606666684150696, -0.21181552112102509, -0.14857496321201...