text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
to your benefit here: * Each slice can have a mutex that can be locked during an editing operation, allowing syntax highlighting or "intellisense" type analysis to run in a background thread. * You can store the state of the syntax highlighting engine so that whenever you make edits in a slice you can restart the synt...
[ 0.4154002070426941, -0.2679232060909271, 0.05907459929585457, -0.02533707581460476, -0.30500513315200806, -0.24365177750587463, 0.2978663742542267, 0.15033234655857086, -0.20796021819114685, -0.9638933539390564, -0.2884843051433563, 0.553983211517334, -0.1809493750333786, 0.119527541100978...
Is there a way to set the global windows path environment variable programmatically (C++)? As far as I can see, putenv sets it only for the current application. Changing directly in the registry `(HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment)` is also an option though I would prefer API metho...
[ 0.3281892240047455, -0.3723985552787781, 0.63138347864151, 0.01573902927339077, 0.15501491725444794, -0.22765934467315674, 0.16002963483333588, -0.130569726228714, -0.24360592663288116, -0.6223836541175842, -0.040456000715494156, 0.7572675943374634, -0.6304793953895569, -0.1797443479299545...
applications, such as the shell, to > pick up your updates. Note that the > values of the environment variables > listed in this key are limited to 1024 > characters.
[ -0.014816832728683949, -0.11771372705698013, 0.26946988701820374, 0.05920758098363876, 0.18643802404403687, -0.31268444657325745, 0.2757558226585388, 0.33827847242355347, -0.16369354724884033, -0.8031831979751587, -0.4808821976184845, 0.7107825875282288, -0.4222436845302582, -0.17866857349...
I [just learned](https://stackoverflow.com/questions/527948/fxcop-on-build-visual-studio-2008-professional) about how to include FxCop on a build. But it's slow and I want it to be done just only on release builds. Is there any way to configure that? Check the configuration condition. ``` <Target Name="AfterBuild" Con...
[ 0.2690584361553192, 0.08469966053962708, 0.6261125206947327, -0.2979051470756531, 0.16063594818115234, 0.022839292883872986, 0.23237915337085724, -0.46920961141586304, -0.02643105760216713, -0.6732233762741089, -0.1667991578578949, 0.806225597858429, -0.24339047074317932, -0.26758116483688...
I have a generic collection of type MyImageClass, and MyImageClass has an boolean property "IsProfile". I want to sort this generic list which IsProfile == true stands at the start of the list. I have tried this. ``` rptBigImages.DataSource = estate.Images.OrderBy(est=>est.IsProfile).ToList(); ``` with the code abo...
[ 0.10333307832479477, 0.05289216339588165, 0.6462036967277527, -0.11759752035140991, -0.13737407326698303, 0.05837267264723778, 0.21818974614143372, -0.3729948103427887, -0.2151123285293579, -0.8470859527587891, -0.12957274913787842, 0.465256005525589, -0.5047289133071899, 0.389790236949920...
List from the result.
[ -0.4451083540916443, 0.26908478140830994, 0.3473459780216217, -0.06405987590551376, -0.14082244038581848, 0.03700331225991249, 0.18726205825805664, 0.018669182434678078, -0.37141305208206177, 0.10049080848693848, -0.07479391247034073, 0.08435823023319244, -0.20925837755203247, -0.113656908...
I'm having trouble with debugging a PHP project through NetBeans using XDebug, and was hoping someone out there might have had this problem before. Debugging works fine for the requested php file - so if I go to index.php on the remote server, I can put a breakpoint anywhere in index.php in NetBeans and the code stops...
[ 0.3088178336620331, 0.2794261574745178, 0.31621047854423523, -0.30673399567604065, -0.06502056866884232, -0.3861621916294098, 0.48858529329299927, 0.05697010084986687, -0.2333122044801712, -0.5976592302322388, 0.009189784526824951, 0.33687624335289, -0.2267199158668518, 0.5215969085693359,...
through the code for it. It makes debugging practically useless! The php file that was requested, for example index.php, appears just as "index.php", it's just all the other ones which are included that NetBeans can't resolve properly. Is there some setting in NetBeans or XDebug that I can use to solve this problem? I...
[ 0.3861793875694275, 0.2689697742462158, 0.1212434321641922, 0.28508123755455017, -0.015550220385193825, -0.4888750910758972, 0.3302408754825592, 0.2793159484863281, -0.22009775042533875, -0.498383104801178, 0.18790726363658905, 0.4709527790546417, -0.22790788114070892, 0.17337818443775177,...
very grateful if you could let me know. --- If there's no other way, do users of Eclipse PDT and XDebug have this problem when debugging on a remote server? If not I'll make the switch. This issue appears to be fixed in NetBeans 6.7.
[ 0.4568222463130951, 0.04358343034982681, 0.29868394136428833, 0.1730031669139862, -0.2587185800075531, -0.501998245716095, 0.23757033050060272, 0.48889365792274475, -0.024085374549031258, -0.7989039421081543, -0.11255310475826263, 0.5141394734382629, -0.1457463651895523, 0.1715343743562698...
Say you have a CSS 2.1 counter like ``` ol { counter-reset: section; list-style-type: none; } li:before { counter-increment: section; content: counters(section, ".") " "; } <ol> <li>itemA</li> <!-- 1 --> <li>itemB <!-- 2 --> <ol> <li>itemC</li> <!-- 2.1 --> ...
[ -0.011822741478681564, 0.09317676723003387, 0.48908036947250366, -0.3393092453479767, -0.24091148376464844, 0.21859653294086456, 0.14511707425117493, -0.2807837724685669, -0.2014172077178955, -0.5514673590660095, -0.35206180810928345, 0.1179872676730156, -0.5314500331878662, 0.057743038982...
--> ``` (see <https://developer.mozilla.org/en/CSS_Counters> "nesting counters") Is there a way to read/get the `:before.content` ("2.2" in this case) for `<li id="foo">` in JavaScript? Edit: In my case a Mozilla-only solution would suffice. But there really seems to be no way to access this information. At least I...
[ 0.4007141888141632, 0.2194259613752365, 0.3492235541343689, 0.07276010513305664, -0.0481601245701313, -0.06716885417699814, 0.25331243872642517, -0.3770322799682617, -0.25833818316459656, -0.4723779857158661, -0.13584041595458984, 0.5461674332618713, -0.32447174191474915, -0.05976395681500...
be incredibly messy.
[ 0.517348051071167, 0.361557275056839, -0.6136718392372131, 0.22736527025699615, -0.16300874948501587, -0.2120831459760666, 0.24855968356132507, 0.2164171189069748, 0.6632064580917358, -0.29892823100090027, -0.1640644073486328, 0.09277022629976273, -0.3380827307701111, 0.07229118049144745, ...
We are currently considering using DotNetNuke as a base for our future portal-based and client-customizable web application that is going to be hosted centrally. The idea is to make the dynamic parts as DNN modules that in turn talk to backend WCF-services which takes care of the business processing and data storage. ...
[ 0.5040224194526672, -0.19343627989292145, 0.44714346528053284, 0.2347673624753952, 0.01785231940448284, -0.26486822962760925, -0.212262824177742, 0.31488460302352905, -0.2177153378725052, -0.48351994156837463, 0.1368851661682129, 0.46688419580459595, -0.37588971853256226, 0.316186010837554...
you a couple pros and cons to look at. The major advantage of using it over other CMS platforms is that it's a very mature platform with a pretty big community around it (Snowcovered for example). For most tasks, it's either already built in or there's already somebody out there that has built a module to do it. Its ar...
[ 0.3825480043888092, -0.45523178577423096, 0.37507620453834534, 0.26627716422080994, 0.128307044506073, -0.055731400847435, 0.06364309042692184, 0.30471688508987427, -0.3164338767528534, -0.761726438999176, 0.051214639097452164, 0.3578914403915405, -0.24329489469528198, -0.14101438224315643...
multi-step processes in your modules. This is probably true for any CMS, but you'll feel like you're jumping through hoops to try to get multiple, separate modules to give a "tight" user experience. I don't really have a concrete example for this - it's just the feeling you get from the experience where everything is i...
[ 0.5676526427268982, -0.17534472048282623, -0.038975220173597336, 0.3096855580806732, 0.015651488676667213, 0.038980524986982346, 0.10138080269098282, -0.1028219535946846, -0.7057872414588928, -0.6662948131561279, -0.0036676619201898575, 0.3162514865398407, -0.33422937989234924, -0.04718649...
big priority for the DNN camp as a whole, as much as it has for Drupal and others. So I guess if I had to make a summary, I'd say if you are looking for a quick way to get a customizable CMS up, and you're comfortable with the limitations of CMS platforms in general, then go for it. However, if your UI is the most imp...
[ 0.1802826225757599, -0.12602685391902924, 0.10666992515325546, 0.4568783640861511, -0.5101901292800903, -0.012314378283917904, -0.15630799531936646, 0.251645565032959, -0.4536779522895813, -0.5876035690307617, -0.19465193152427673, 0.490143746137619, 0.07700406014919281, -0.059198576956987...
Here are a couple of questions: Is `mail_queue->put` supposed to insert a message twice in the database? The only differences are the `time_to_send` value and the `user_id`. This is what I get for a single message for one user: ``` 1. user_id = 1, time_to_send = 2009-02-10 14:02:02 2. user_id = -1, time_to_send = 20...
[ 0.21375003457069397, 0.18186119198799133, 0.30407649278640747, -0.055422987788915634, -0.23048749566078186, 0.47179555892944336, 0.3917355537414551, -0.2093408852815628, -0.350009560585022, -0.5823938250541687, 0.1887555867433548, 0.4363192617893219, -0.3044146001338959, 0.0555752106010913...
an uncommented example for the `put` function.
[ 0.07552332431077957, -0.017054276540875435, -0.331712543964386, -0.2822323739528656, 0.051409631967544556, -0.044549159705638885, 0.221273273229599, 0.11443778872489929, -0.2901172339916229, -0.2666254937648773, -0.4283193051815033, 0.2882627844810486, -0.222565695643425, -0.11994356662034...
I have a question for the clever people of the SO community. Below is a snippet of XML generated by the [Symphony CMS](http://symphony21.com/). ``` <news> <entry> <title>Lorem Ipsum</title> <body> <p><strong>Lorem Ipsum</strong></p> <p>Lorem ipsum do...
[ 0.4809587597846985, -0.034081947058439255, 0.6041022539138794, 0.10356621444225311, 0.03628102317452431, 0.1932225376367569, -0.05929821729660034, -0.27199459075927734, -0.10219679027795792, -0.4631805717945099, -0.07894401252269745, -0.09548113495111465, -0.045746877789497375, -0.00489847...
malesuada auctor magna. Vivamus urna justo, pulvinar nec, sagittis malesuada, accumsan in, massa. Quisque mi purus, gravida eget, ultricies a, porta in, sem. Maecenas justo elit, elementum vel, feugiat vulputate, pulvinar nec, velit. Fusce vel ante et diam bibendum euismod. Nunc vel nulla non lorem dignissim placerat. ...
[ -0.334738165140152, 0.056215930730104446, 0.3893011808395386, -0.031555015593767166, -0.3101833462715149, 0.8331743478775024, 0.34768146276474, -0.21472086012363434, 0.15247787535190582, -0.30945414304733276, -0.42864665389060974, 0.053536877036094666, -0.4923398196697235, -0.3398279845714...
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed malesuada auctor magna.</p> </body> </entry> </news> ``` What I need to do is take a portion of the `<body>` element, based on a specified length, for display in the blog style of: > Lorem ipsum dolor sit amet, > consectetur adi...
[ 0.2437194138765335, -0.2129729986190796, 0.5492274761199951, 0.13882385194301605, -0.05323297902941704, 0.5669456720352173, -0.0571758933365345, -0.41039708256721497, 0.15579205751419067, -0.4002320468425751, 0.04128960892558098, 0.2391136735677719, -0.06416118144989014, -0.534847915172576...
porta in, sem... **more** ...where **more** is a link to the full news item. I know I can select specific paragraphs and I also know I can use the substring function to bring a specified number of characters. However, I need to preserve the formatting of the text, i.e. the HTML tags within the `<body>` element. I rea...
[ 0.40966761112213135, -0.1469559520483017, 0.6459044814109802, 0.007101626601070166, -0.39125967025756836, 0.08097528666257858, 0.1209293082356453, -0.03981223702430725, -0.03151506185531616, -0.761178731918335, 0.04821710288524628, 0.41322076320648193, -0.32092416286468506, 0.0071850535459...
mode="truncate"/>`. ``` <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:strip-space elements="*"/> <!-- limit: the truncation limit --> <xsl:variable name="limit" select="250"/> <!-- t: Total number of characters in the set --> <xsl:variabl...
[ -0.3986473083496094, -0.6076299548149109, 0.8408097624778748, -0.007360880728811026, -0.025806941092014313, 0.20946365594863892, -0.09645237028598785, -0.627764880657196, 0.017268551513552666, -0.4746861755847931, -0.47455573081970215, 0.6262071132659912, -0.19690969586372375, -0.283894509...
<xsl:apply-templates mode="truncate"/> </xsl:element> </xsl:if> </xsl:template> <xsl:template match="text()" mode="truncate"> <xsl:variable name="preceding-strings"> <xsl:copy-of select="preceding::text()[ancestor::body]"/> </xsl:variable> <!-- p: number of characters up to the current...
[ -0.5510339736938477, -0.273046612739563, 0.5134414434432983, -0.050550591200590134, 0.1144934743642807, 0.3157811760902405, -0.0768369659781456, -0.5377919673919678, -0.07584644109010696, -0.5571421980857849, -0.405460000038147, 0.3978929817676544, -0.2224387526512146, -0.1463698297739029,...
<xsl:value-of select="substring(., 1, ($limit - $p))"/> <xsl:text>&#8230;</xsl:text> </xsl:when> <xsl:otherwise> <xsl:value-of select="."/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="@*" mode="truncate"> <xsl:attribute name="{name(.)}"><x...
[ -0.197471022605896, -0.4636131227016449, 0.42794060707092285, -0.06597867608070374, 0.11934641748666763, -0.054913390427827835, -0.21167811751365662, -0.6972805261611938, 0.013285089284181595, -0.49458378553390503, -0.42951256036758423, 0.7078424096107483, -0.3118089437484741, -0.137492835...
Is it possible to sort items in WPF `ListBox` in reverse from their original order? I mean you can use `SortDescriptions` to sort by some property, but what if I just need to show the items in the reverse order with no real field to sort against? Note: I would prefer not to sort the original collection or clone it, et...
[ 0.23327434062957764, -0.02579396404325962, -0.01713518239557743, 0.1300656795501709, -0.08289317786693573, -0.08901108801364899, 0.07249230146408081, 0.029920876026153564, -0.3813401758670807, -0.5291861891746521, 0.15821075439453125, 0.2403772473335266, -0.4661436975002289, 0.061920702457...
Then you can reverse sort on this field. I understand that this might not be a workable solution. If you use a collection view to sort, I believe you always have to sort based on some property or condition. Sorts are going to be based on a comparison object that implements IComparer. This interface compares two object...
[ 0.023780060932040215, -0.037701595574617386, -0.085817351937294, 0.12647104263305664, -0.2190037965774536, 0.5273974537849426, -0.24700568616390228, -0.0732865259051323, -0.15909263491630554, -0.7230584621429443, 0.36139506101608276, 0.4014953076839447, -0.27784857153892517, 0.293343126773...
I'd like to learn how to effectively use [Swing Application Framework](https://appframework.dev.java.net/). Most of the the examples I've found are blog entries that just explain how to great it is to extend SingleFrameApplication and override its startup method, but that's about it. [Sun's article](http://java.sun.com...
[ 0.5660898685455322, 0.2335744947195053, 0.28528231382369995, -0.2751258313655853, -0.3725574016571045, -0.41600632667541504, -0.12122555822134018, -0.19863928854465485, -0.5184134840965271, -0.5574195981025696, 0.24694734811782837, -0.20219305157661438, 0.18823082745075226, -0.003662948496...
project's site. While somewhat clumsy (compared to StackOverflow ;) it seems to be quite active. Still it's a pity that there are no real tutorials anywhere. The information is scattered here and there. **Update 2:** Let me clarify - I'm not having trouble using Swing (the widget toolkit) itself, I'm talking about its...
[ 0.5396988391876221, -0.12275458127260208, 0.06467023491859436, -0.011108649894595146, -0.34365391731262207, -0.3416471481323242, 0.2109067440032959, -0.20387959480285645, -0.1264040768146515, -0.5438138246536255, -0.08859379589557648, 0.2076330929994583, 0.09889794886112213, -0.17546680569...
learn how it's intended to be used. **Update 3:** For the interested, there was just some discussion at the project's forum regarding the current state and future of JSR 296. Shortly: the current version 1.03 is considered to be quite usable, **but** the API is not stable and it **will** change to the final version in...
[ 0.39210444688796997, -0.01946420967578888, 0.4299503266811371, -0.1312832236289978, 0.11401224136352539, -0.4545503854751587, 0.6836009621620178, -0.15287894010543823, -0.11107313632965088, -0.5934605598449707, -0.3987772762775421, 0.7190544009208679, -0.295638769865036, -0.281301438808441...
rather not question the sincerity of this great guru, and it's certainly wise not to let anything flawed to slip into the core JDK, but frankly it's a strange situation - he is the author of JGoodies Swing Suite which is partly a commercial competitor of JSR 296, *and* he is sitting in the committee that will decide wh...
[ 0.4884321987628937, 0.280853807926178, 0.15457428991794586, 0.010248369537293911, -0.2806544601917267, -0.43848341703414917, 0.018203847110271454, -0.5624172687530518, -0.261639267206192, -0.3312702178955078, -0.016278203576803207, 0.46328702569007874, -0.06223490089178085, -0.306863844394...
"homebrew" framework, which can then accommodate possible changes to the existing API. First of all, my personal advice would be not to use the latest version of SAF which is more like "refactoring in progress" (and this has not evolved for 6 months now...) I much prefer version "1.03" which, although not perfect, is ...
[ 0.3212464451789856, 0.473753958940506, 0.06973135471343994, -0.5198819637298584, -0.20829471945762634, -0.206745907664299, 0.4191083312034607, -0.004899382591247559, -0.001251830137334764, -0.8315464854240417, 0.08886648714542389, 0.3920358419418335, -0.026160625740885735, -0.0738565251231...
looks at the source code to palliate javadoc lacks The mailing list is not that active currently (but it's true traffic has just restarted a little bit since the beginning of the year, however, I haven't seen there any Sun representative since August or September 2008!) Last year, after about one year of practice wit...
[ 0.2743676006793976, 0.09302597492933273, 0.21189121901988983, -0.23338262736797333, -0.37598916888237, -0.29338449239730835, 0.3974539041519165, -0.0779663696885109, -0.45034059882164, -0.630486786365509, 0.19273602962493896, 0.2977616786956787, 0.15982824563980103, -0.0779256671667099, ...
important to me, some other blocking). I remember having seen (not attended) another presentation about SAF practice in a conference I think in Sweden, sorry can't remember more detail. Was interesting also. That's pretty much what exists about it (to my knowledge).
[ 0.4568425714969635, -0.06663849949836731, 0.06337826699018478, -0.3778707683086395, -0.41570499539375305, -0.3055163323879242, 0.4483014941215515, 0.2213355004787445, -0.2634095847606659, -0.0729941725730896, 0.18165695667266846, 0.010927940718829632, 0.21299181878566742, -0.02376922406256...
Is there a way to configure ASP.NET in IIS7? I know this must be a stupid question, but in IIS7 I see an icon for ASP. Is this configuration for Classic ASP? IIS 7 is very different from previous versions, especially with regards to ASP.NET. In previous versions, the ASP.NET runtime was a separate DLL and separate pr...
[ -0.3027128577232361, -0.3693074584007263, 0.5282478928565979, 0.019686395302414894, 0.023103075101971626, -0.05856378749012947, 0.10516929626464844, 0.2936137914657593, -0.5596684813499451, -0.7584220170974731, -0.21188457310199738, 0.7520942091941833, -0.36981481313705444, 0.0934056341648...
all IIS7 and ASP.NET config is now done via .config files (like your machine.config and web.config in ASP.NET). The following links should provide further information: [IIS Configuration Reference](http://www.iis.net/configreference) [ASP.NET Integration with IIS7](http://learn.iis.net/page.aspx/243/aspnet-integrati...
[ -0.12230347841978073, -0.30401158332824707, 0.5146826505661011, -0.11236726492643356, 0.1882973313331604, -0.22950659692287445, 0.26380661129951477, -0.17260591685771942, -0.3795914351940155, -1.0567651987075806, -0.4717966318130493, 0.48360738158226013, -0.1423490345478058, 0.070432551205...
I have 3 classes in different files: ``` X | ------- | | Y Z ``` I will be creating several objects of inherited classes Y and Z. A specific function in class Z should be executed only if some **flag** variable is set by class Y. Where should I create this flag variable (which class) and what should ...
[ 0.3185794949531555, 0.09711943566799164, 0.14923295378684998, 0.014552934095263481, -0.11093741655349731, -0.03913477435708046, 0.37558063864707947, -0.2606359124183655, -0.01014005858451128, -0.5533930063247681, -0.05948459357023239, 0.38073107600212097, -0.345135360956192, 0.467459410429...
And if it will, what is the best practice in terms of connection strings? Just a relative path? |DataDirectory| ? SQ Lite should work just fine in a ClickOnce scenario. It's a zero configuration components. Components which require configuration usually have issues with click once. <http://www.sqlite.org/>
[ -0.12662218511104584, -0.2915182411670685, 0.7590569257736206, 0.2892284691333771, -0.036440975964069366, -0.1696208119392395, -0.14699767529964447, -0.16434766352176666, -0.22723016142845154, -0.6598411798477173, 0.22560669481754303, 0.5458433032035828, -0.2729208767414093, 0.117251150310...
I have a large set off files (hdf) that I need to enable search for. For Java I would use Lucene for this, as it's a file and document indexing engine. I don't know what the python equivalent would be though. Can anyone recommend which library I should use for indexing a large collection of files for fast search? Or i...
[ 0.41805633902549744, -0.2588850259780884, 0.28419142961502075, -0.03256053477525711, -0.19312235713005066, 0.1286308765411377, -0.5167068839073181, 0.015809474512934685, -0.19996193051338196, -0.8602516055107117, 0.010950657539069653, 0.3170802891254425, -0.17229723930358887, 0.00862321350...
alpha so I am not sure I want to rely on it, and I have problems compiling pylucene, and there are no actual releases off it. After I have looked a bit more at the data, it's mostly numbers and default text strings, so as off now an indexing engine won't help me. Hopefully these libraries will stabilize and later visit...
[ 0.4048949182033539, -0.27749717235565186, 0.46929582953453064, -0.16311421990394592, -0.1900118738412857, -0.23874905705451965, -0.14730137586593628, 0.20860476791858673, -0.1588573455810547, -0.24581541121006012, -0.0946861058473587, 0.09837675094604492, -0.5089514255523682, 0.27502438426...
subproject](http://lucene.apache.org/pylucene/#news20090108). You may also want to look at a new contender: [Whoosh](http://pypi.python.org/pypi/Whoosh/). It's similar to lucene, but implemented in pure python.
[ -0.11725681275129318, -0.49956682324409485, 0.4372042119503021, 0.21187958121299744, -0.22263485193252563, -0.031707763671875, -0.10760147124528885, -0.005584366153925657, -0.08260079473257065, -0.3410339057445526, -0.21262679994106293, -0.006199255120009184, -0.1422826051712036, -0.179379...
I am interested to join an Open Source project using .net; I would like to be able to choose between a mature project and a starting one, as well as other criteria. What do you suggest? (specific projects are welcomed). Later edit: I am disappointed by the arrogant comments / answers received so far. Picking an OS ...
[ 0.6014269590377808, 0.2068336457014084, -0.23692241311073303, 0.11716009676456451, -0.05987905338406563, -0.2840055227279663, 0.13282276690006256, 0.3743431866168976, -0.08265732228755951, -0.7007280588150024, 0.04757220670580864, 0.4975278973579407, 0.07691936194896698, -0.009852326475083...
contribute by writing docs and answering user questions * there are many projects that are "dead" * not everybody uses OS software written in .net - it is a starting community - so the criteria "contribute to the project you use" is not useful I believe this question is far from being answered. I have carefully read t...
[ 0.8136608600616455, 0.06756775826215744, -0.06033135950565338, 0.35353994369506836, -0.1967797428369522, -0.07917015254497528, 0.0724516212940216, 0.16097299754619598, -0.11966051161289215, -0.6627363562583923, 0.2164411097764969, 0.37125471234321594, 0.32159239053726196, -0.03831128031015...
I think some improvements for code navigation and code refactoring a la ReSharper (or even Eclipse) would be very cool. * [NHibernate](http://www.hibernate.org/428.html) - support for generics (although I think Ayende already has this covered); support tools - visual editors for xml configs, maybe a visual tool (VS add...
[ 0.33553433418273926, -0.09714954346418381, 0.19170838594436646, 0.06261996179819107, -0.5374720096588135, -0.29372766613960266, 0.24027052521705627, -0.13825519382953644, -0.08640873432159424, -0.4086066782474518, -0.051939502358436584, 0.48780834674835205, -0.11861132830381393, 0.02882968...
Is there any way (through a extention mechanism?) to get the `Sum()` function to allways return 0. My workaround now is to write like this, but I'm hoping there's a better solution? ``` ((int?)e.CampaignCodes.Sum(f => f.Enquiries.Count()) ?? 0), ``` Your workaround there is a good one. Why don't you write an extensi...
[ 0.25680452585220337, -0.039284124970436096, 0.3759503662586212, -0.20255446434020996, -0.07353896647691727, -0.14833274483680725, 0.14897848665714264, -0.3108401596546173, -0.09372183680534363, -0.7990687489509583, 0.035444337874650955, 0.6687350869178772, -0.2047300487756729, -0.048250809...
I have a set of pdf files stored in the location accessible only by the application - so those files cannot be accessed directly via http. The file paths are stored by the database and when the user is given the option to download a file the code as below is being executed: ``` Response.ContentType = "Application/pd...
[ 0.24385279417037964, 0.17859849333763123, 0.9325386881828308, 0.0029631161596626043, -0.07576032727956772, -0.12413393706083298, 0.16903334856033325, -0.3794182538986206, -0.05765914171934128, -0.9195886254310608, -0.28502753376960754, 0.6424116492271423, -0.2328295111656189, 0.17780046164...
of files ranging from 1 to 20. I would like to create a page that would list all those files along with the download option next to each file. Something like ``` File name 1, some description 1, download (button, link?) File name 2, some description 2, download (button, link?) ``` It cannot be simply an url link...
[ 0.42103666067123413, -0.23625096678733826, 0.17221802473068237, 0.08196510374546051, -0.2294977456331253, -0.1409716010093689, 0.10748790204524994, -0.15640614926815033, -0.5078855752944946, -0.5715075731277466, 0.09527083486318588, 0.443202942609787, -0.4819520115852356, 0.206814035773277...
(ashx) template - then put a regular link on the page to (for example) "download.ashx?id=2". Inside the handler, parse the query-string, and stream the file to the user: ``` public void ProcessRequest(HttpContext context) { // set headers... string filePath = FindPath(context.Request.QueryStri...
[ 0.1582704782485962, -0.14817681908607483, 0.5389395952224731, -0.022171806544065475, -0.19846025109291077, -0.027268022298812866, 0.3223228454589844, -0.3323720395565033, -0.09949837625026703, -0.7510802745819092, -0.2308814376592636, 0.45629337430000305, -0.5144791007041931, 0.02945953421...
I have a Perl script that requires two command line arguments that takes a while to run. I am using ActiveState Perl to run it. I can call it with ``` wperl script.pl arg1 arg2 ``` from a command prompt and it runs in the background fine. If I change the .pl association from perl.exe to wperl.exe and call it with ``...
[ 0.42321842908859253, -0.12067712843418121, 0.3710850477218628, -0.2678414285182953, -0.27206963300704956, -0.0003932905674446374, 0.30142688751220703, -0.05220017582178116, -0.2307257503271103, -0.5041202306747437, 0.05647111311554909, 0.7227287888526917, -0.4417959451675415, 0.14961512386...
Folder Options > File Types* in any Explorer window and update the *.pl* extension through *Advanced > Open > Edit command line* to ``` {Path to wperl}\wperl.exe "%1" %* ``` This ensures that all the command line arguments (%\*) are passed to *wperl.exe* whenever you call your script using ``` script.pl arg1 arg2...
[ -0.10391006618738174, -0.08860249072313309, 0.7078343629837036, -0.22801144421100616, 0.16358628869056702, 0.10620053112506866, 0.12418615818023682, 0.03625768423080444, -0.23774981498718262, -0.8763545155525208, -0.49191510677337646, 0.4877467751502991, -0.18939174711704254, 0.03522131592...
I am writing a Matlab mex-file. However, mex-files seem to have a serious limitation: `help mexfilename` won't cause a help text to appear. I could circumvent this by writing a m-file, that ultimately calls the mex-file, but includes help, but there has to be a better way. On the other side, that way I could do all t...
[ 0.0349217914044857, 0.2756359577178955, 0.47178247570991516, -0.08666426688432693, -0.0033119383733719587, 0.01554463803768158, 0.42127659916877747, -0.12105750292539597, -0.008147497661411762, -0.7599430680274963, -0.28871437907218933, 0.8126628398895264, -0.32408300042152405, -0.11062530...
put the error checking for the inputs in the m-file, then have the m-file invoke the mex-file (you may have to give them different names, though). It may be more straight-forward to check variables in MATLAB (using, for instance, built-ins like [nargchk](http://www.mathworks.com/access/helpdesk/help/techdoc/ref/nargchk...
[ 0.21334412693977356, -0.06537799537181854, -0.006803261581808329, 0.09058728069067001, -0.19552770256996155, -0.014575297012925148, -0.02691090852022171, -0.21859928965568542, -0.1367170810699463, -0.5610128045082092, -0.04682231694459915, 0.872499942779541, -0.0540635846555233, -0.2640870...
First off, my Environment: VB.NET .NET 2.0 AJAX Update Panels also used around webpart zones. I have a masterpage and default page. Default page has WPM and two Zones. each webpart is just a shell and a usercontrol is used for A & B I have two webparts, A & B. (Usercontrols)- A has a number of buttons. B has a listbox...
[ 0.3904036283493042, -0.07160479575395584, 0.49117234349250793, -0.12085781991481781, -0.29097554087638855, -0.023109931498765945, 0.3689378499984741, -0.3343537747859955, -0.11860838532447815, -0.8437855243682861, 0.133369579911232, 0.5425116419792175, -0.16663911938667297, -0.167611524462...
how to do this. I have looked up webpart connects and I understand that I can pass properties which is fine, but I want to call subs/fire events. Thanks in advance! Once you get more than a couple of these, then yes: it starts to get pretty slow. In such cases, I tend to use generated TSQL - i.e. ``` DECLARE @sql nva...
[ 0.23128142952919006, 0.05203889682888985, 0.265307754278183, 0.15346111357212067, 0.05635663866996765, -0.45234158635139465, 0.24073649942874908, -0.3370860517024994, -0.283812016248703, -0.7087343335151672, 0.0449768602848053, 0.4942246675491333, -0.09662206470966339, -0.03330894932150841...
@sql, N'@name varchar(100), @dob datetime', @name, @dob ``` etc Note that sp\_ExecuteSQL caches query-plans, so any queries with the same args can potentially re-use the plan. The downside is that unless you sign the SPROC, the caller needs SELECT permissions on the table (not just EXEC permissions on the S...
[ 0.018277786672115326, 0.023694055154919624, 0.6168147325515747, 0.027277518063783646, 0.14251291751861572, -0.14539161324501038, 0.322401762008667, -0.3622269630432129, -0.4335935711860657, -0.25936365127563477, -0.2066819816827774, 0.29470518231391907, -0.20569773018360138, 0.030804855749...
I have a method to save an image, which is meant to deal gracefully with an error, setting $imageSrc to a particular image in the event of failure. My method works fine if the image is present, but no error conditions seems to be handled correctly. ``` $imageSrc = save_pic($PIC_URL, $pk); function save_pic($pic_url, ...
[ 0.11861754208803177, 0.10718028247356415, 0.44308891892433167, -0.10448793321847916, -0.11171840876340866, 0.1703118532896042, 0.15592734515666962, -0.19340075552463531, -0.06072055175900459, -0.626006007194519, -0.05589314550161362, 0.5811824202537537, -0.31847208738327026, 0.296936571598...
$image = file_get_contents($pic_url); if (empty($image)) { return "removed.jpg"; } $r = file_put_contents($imageDir.$pk.".jpg", $image); if ($r) { return "./$pk.jpg"; } else { return "removed.jpg"; } } ``` If the image does not exist, I get : ``` Warning: geti...
[ 0.35175126791000366, -0.14627735316753387, 0.5071495175361633, -0.005635692737996578, 0.0021631913259625435, -0.007852502167224884, 0.5925008058547974, -0.18305324018001556, -0.28261834383010864, -0.3432902693748474, -0.5199863314628601, 0.7270911335945129, -0.43110156059265137, 0.18684969...
[type] => 2 [message] => getimagesize(http://127.0.0.1/555.jpg) function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found [file] => C:\Program Files\EasyPHP 2.0b1\www\get_auction.php [line] => 144 ) 1 ``` returned.jpg is never returned in any event. edit: added imageResize code: ...
[ -0.08154080808162689, -0.3365951478481293, 0.9525430202484131, 0.013615529052913189, -0.03465753793716431, 0.2160530984401703, 0.2547398507595062, -0.20919252932071686, -0.286257266998291, -0.45187297463417053, -0.454423189163208, 0.6944776177406311, -0.44241976737976074, 0.040629565715789...
$imageWidth / $maxRatio; $outputHeight = $imageHeight / $maxRatio; } else { $outputWidth = $imageWidth; $outputHeight = $imageHeight; } } else { die(print_r(error_get_last())); } } ``` Once you get more than a couple of these, then yes: it starts to get pretty slow. In such...
[ 0.3157440423965454, 0.044738247990608215, 0.609517514705658, -0.16263516247272491, -0.10677109658718109, 0.049411144107580185, 0.23140761256217957, -0.2805468440055847, -0.13613657653331757, -0.6925281882286072, -0.0864197239279747, 0.5690385699272156, -0.2722834348678589, -0.1632645428180...
foo.Name = @name' IF @dob IS NOT NULL SET @sql = @sql + ' AND foo.DOB = @dob' // etc EXEC sp_ExecuteSQL @sql, N'@name varchar(100), @dob datetime', @name, @dob ``` etc Note that sp\_ExecuteSQL caches query-plans, so any queries with the same args can potentially re-use the plan. The downside is that ...
[ 0.01722746342420578, 0.1280808299779892, 0.7210967540740967, -0.20365317165851593, 0.17708030343055725, -0.08818369358778, 0.18272660672664642, -0.5570723414421082, -0.4104944169521332, -0.23326697945594788, -0.19224520027637482, 0.34135371446609497, -0.39298850297927856, -0.06008528918027...
I have the following class setup for persistence using NHibernate ``` public class Person { public string Name { get; set; } public IList<Person> Subordinates { get; set; } } ``` Now say I have a grid with two columns, "Name" and "Number of Subordinates" what is the best way of doing this in NHibernate whils...
[ -0.1523951292037964, -0.1913941651582718, 0.0645710676908493, -0.055626995861530304, -0.44661277532577515, 0.3547406792640686, 0.1860838532447815, -0.23885630071163177, 0.004268363583832979, -0.7889135479927063, 0.10288036614656448, 0.616385281085968, -0.08218555152416229, 0.15964475274085...
NumberOfSubordinates{get;set;} } ``` Then, you create a Criteria query, in in that Criteria you define that you want to retrieve all Persons. However, you can specify that NHibernate should not return Person objects, but PersonView objects. In order to be able to do this, you'll need to use a projection and an A...
[ -0.3317176103591919, -0.21632225811481476, 0.5294280648231506, 0.27906256914138794, 0.07666628807783127, 0.21772722899913788, -0.2842930853366852, -0.3367477059364319, -0.2459428757429123, -0.6053390502929688, -0.2015979290008545, 0.39319130778312683, -0.28420254588127136, 0.25993162393569...
.Add (Projections.Count ("Subordinates"), "NumberOfSubordinates"); crit.SetResultTransformer(Transformers.AliasToBean (typeof(PersonView)); ``` Something like the above. (I didn't test your specific situation). Then, you just have to let NHibernate know of the existence of the PersonView class, by simply 'importing'...
[ -0.2868116796016693, -0.30211198329925537, 0.38779011368751526, 0.05832933634519577, -0.5062363743782043, 0.2844153046607971, -0.14094802737236023, -0.34184086322784424, -0.06910765916109085, -0.7725234031677246, -0.1491616815328598, 0.37790077924728394, -0.23734444379806519, 0.09068246930...
I have a dll that I want to read from a manually specified app.config file (the dll is an .net extension to a native com dll that is a Microsoft Management Console snap in, so there is no mmc.exe.config). I have been able to open the config file, read the relevant group and section to get the setting that I want. Like ...
[ 0.23857764899730682, -0.016831185668706894, 0.8083840608596802, -0.2644999027252197, 0.22473064064979553, 0.1016179695725441, 0.19020907580852509, -0.241482213139534, -0.14843811094760895, -0.9109559655189514, -0.26133841276168823, 0.6129590272903442, -0.3312528729438782, 0.118304654955863...
ShowSectionGroupCollectionInfo(config.SectionGroups); ConfigurationSectionGroup group = config.SectionGroups["applicationSettings"]; ClientSettingsSection section = group.Sections["Namespace.Properties.Settings"] as ClientSettingsSection; SettingElement sectionElement = section.Setti...
[ 0.14205121994018555, 0.02925550378859043, 0.6701517105102539, 0.010776939801871777, -0.10114925354719162, 0.15741536021232605, 0.05815579742193222, -0.26989707350730896, -0.3472467362880707, -0.05089781433343887, -0.11215382069349289, 0.1390751153230667, -0.11039582639932632, 0.16404719650...
<value> <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <string>Plugin1.Name</string> <string>Plugin2.Name</string>
[ -0.31233882904052734, 0.21916477382183075, 0.23715822398662567, -0.27031761407852173, -0.27229300141334534, -0.01618202030658722, -0.03360375389456749, -0.4412594735622406, -0.32898980379104614, -0.28051066398620605, -0.18646842241287231, 0.5865249037742615, -0.458816796541214, 0.067742057...
<string>Plugin3.Name</string> </ArrayOfString> </value> </setting> <setting name="blah" serializeAs="String"> <value>sajksjaksj</value> </setting> </Namespace.Properties.Settings> </applicationSettings> ``` I can create a string array from this in a ...
[ -0.26114189624786377, -0.0077772196382284164, 0.34120193123817444, -0.3341061472892761, -0.1668657809495926, 0.06955985724925995, 0.4519735872745514, -0.6892668008804321, -0.12426750361919403, -0.5478407740592957, -0.16188304126262665, 0.22750785946846008, -0.38711798191070557, -0.04942672...
I wonder if there is a nice way that I'm missing that I can get my settings to be read and converted into objects of the right type in the same way that they are when the standard app.config file is read. Please tell me there is... The way that I've done this in the past is use a custom configuration section and imple...
[ 0.28297245502471924, -0.0014906341675668955, 0.4039137065410614, 0.3688209354877472, 0.09160743653774261, 0.0981002151966095, 0.13216853141784668, -0.06342580169439316, -0.4699918031692505, -0.632203221321106, 0.03957595303654671, 0.6967818737030029, -0.16702750325202942, -0.07322262972593...
in your application. There is a [How To article](http://msdn.microsoft.com/en-us/library/ms228056.aspx) on MSDN that goes through the process of creating such a handler. Below is an example of one that I've used: usage: ``` Dictionary<string,AdministrativeRole> roles = ConfigurationManager.GetSection("roles"...
[ 0.03797781467437744, -0.37948888540267944, 0.19638681411743164, 0.11970381438732147, 0.1440410017967224, -0.04631171002984047, -0.08910473436117172, -0.10280751436948776, -0.30203303694725037, -0.8655199408531189, -0.09093338251113892, 0.30287572741508484, -0.26078173518180847, -0.12749065...
... </roles> </configuration> ``` code: ``` public class RolesDefinitionHandler : IConfigurationSectionHandler { private static readonly string ROLE_SECTION_NAME = "role"; private static readonly string ROLE_SECTION_NAME_ATTRIBUTE = "name"; private static readonly string ROLE_SECTION_GROUP_ATTRIBUTE =...
[ -0.3770168423652649, -0.32579466700553894, 0.4631749987602234, -0.16043899953365326, 0.23846229910850525, 0.5000429749488831, -0.04746261239051819, -0.32724428176879883, -0.2715051472187042, -0.766128420829773, -0.4850755035877228, 0.21976453065872192, -0.2637609839439392, -0.0672788992524...
(node.Name.Equals( ROLE_SECTION_NAME, StringComparison.InvariantCultureIgnoreCase )) { string name = (node.Attributes[ROLE_SECTION_NAME_ATTRIBUTE] != null) ? node.Attributes[ROLE_SECTION_NAME_ATTRIBUTE].Value.ToLower() : null; if (string.IsNullOrEmpty( name )) ...
[ -0.3877638876438141, -0.37678539752960205, 0.576533854007721, -0.0604715533554554, 0.5476936101913452, 0.049880500882864, 0.22292956709861755, -0.2382100373506546, -0.15344567596912384, -0.4806210696697235, -0.15773385763168335, 0.6769078373908997, -0.32632675766944885, 0.25759437680244446...
attribute " + ROLE_SECTION_NAME_ATTRIBUTE ); } string group = (node.Attributes[ROLE_SECTION_GROUP_ATTRIBUTE] != null) ? node.Attributes[ROLE_SECTION_GROUP_ATTRIBUTE].Value.ToLower() : null; if (string.IsNullOrEmpty( group )) {
[ -0.4840206503868103, -0.2415061593055725, 0.5124742984771729, -0.3427278995513916, 0.28567299246788025, 0.13233773410320282, 0.2716597616672516, -0.5602633953094482, -0.07354830205440521, -0.13475842773914337, -0.28200429677963257, 0.4396853446960449, -0.321093887090683, 0.0959000512957573...
throw new ConfigurationErrorsException( "missing required attribute " + ROLE_SECTION_GROUP_ATTRIBUTE ); } if (roles.ContainsKey( name )) { throw new ConfigurationErrorsException( "duplicate " + ROLE_SECTION_NAME + " for " + name );
[ -0.2506994903087616, -0.18442241847515106, -0.023157382383942604, -0.16120904684066772, 0.23364096879959106, 0.08038832247257233, 0.12748490273952484, -0.25607672333717346, -0.04889296367764473, -0.595843493938446, -0.2667245864868164, 0.5312691330909729, -0.428723007440567, 0.235495835542...
} roles.Add( name, new AdministrativeRole( name, group ) ); } else { throw new ConfigurationErrorsException( "illegal node " + node.Name );
[ -0.3055116832256317, -0.45890533924102783, -0.0022693800274282694, -0.12052950263023376, 0.4138851463794708, -0.01979857310652733, 0.24861156940460205, -0.19353173673152924, -0.18921758234500885, -0.6105554103851318, -0.21741744875907898, 0.6023491621017456, -0.49208009243011475, 0.0251165...
} } return roles; } #region IConfigurationSectionHandler Members public object Create( object parent, object configContext, System.Xml.XmlNode section ) { return ReadConfiguration( section ); } #endregion } ```
[ -0.1460867077112198, -0.252731055021286, 0.6760215759277344, -0.014880349859595299, 0.1212025061249733, -0.1338212639093399, 0.1374303102493286, 0.024319417774677277, -0.17069467902183533, -0.777475118637085, -0.49010592699050903, 0.17060036957263947, -0.1996278613805771, 0.420341044664382...
I'm a tab person. Unless I'm working on a project that is already using spaces, I use tabs. I mostly do php and html work. I've got tabs in php working well. But I can't figure out how to have html mode use tabs instead of two spaces. Here is what I have so far: ``` (setq c-default-style "python") (setq-default c-bas...
[ 0.5818368196487427, 0.18439695239067078, 0.15527260303497314, -0.23110952973365784, -0.25510650873184204, 0.18341095745563507, 0.14068898558616638, -0.12404642254114151, -0.2296115905046463, -0.5604496002197266, 0.16978906095027924, 0.609917402267456, -0.27961862087249756, -0.2096660584211...
(lambda() (setq sgml-basic-offset 4) (setq indent-tabs-mode t))) ``` This works because when `indent-tabs-mode` is `t`, Emacs' default indentation logic replaces spaces with tabs whenever it can while still preserving the proper column offset for indentation. So for example if your code is sup...
[ 0.1390434354543686, 0.19102030992507935, 0.5575730204582214, -0.07792533189058304, 0.03337261080741882, 0.5434420108795166, 0.07203253358602524, -0.4257304072380066, -0.3068549931049347, -0.21539078652858734, -0.19319194555282593, 0.7042157649993896, -0.2759022116661072, -0.224449262022972...
indentation level, then Emacs calculates that if it indents with two tabs and zero spaces, that will result in the proper column offset. This also means, however, that the above won't work quite right if you've messed with your `tab-width`. For example if you set it to `8` and are indenting one level deep, Emacs calcu...
[ 0.1632511168718338, 0.11121203750371933, 0.5513311624526978, -0.07401831448078156, -0.004218267742544413, 0.32384389638900757, 0.2094801813364029, -0.2238626331090927, -0.36238059401512146, -0.46636638045310974, -0.023147108033299446, 0.741772472858429, -0.14152748882770538, -0.23257291316...
I would like users do to it themselves, but I don't want everyone to be an adminstrator. The user does need to be a TFS administrator to add a SOAP event handler. To work around this, you could write your own webservice that impersonates a TFS admin and lets the caller register their handler. [Here's a URL that has co...
[ 0.3097040355205536, -0.1071811243891716, -0.1653599888086319, -0.06331951916217804, -0.09998318552970886, -0.29007041454315186, 0.3281736373901367, -0.27117496728897095, -0.07935800403356552, -0.5186352133750916, 0.056019414216279984, 0.39316216111183167, -0.3770028352737427, -0.1194627806...
I have a table Users, so some rows specially in field Full Name are in different upper/lower case, so i found this function: ``` CREATE function properCase(@texto varchar(8000)) returns varchar(8000) as begin --declare @texto = 'hola' set @texto = lower(@texto) declare @i int set @i = a...
[ -0.12025128304958344, 0.19862598180770874, 0.7297259569168091, -0.34853339195251465, -0.014375440776348114, 0.16342957317829132, 0.0008639505249448121, -0.3519035875797272, 0.03454604744911194, -0.39758041501045227, -0.2522293031215668, 0.4803954064846039, -0.16449838876724243, -0.08706644...
= replace(@texto, ' ' + char(@i), ' ' + char(@i-32)) set @i = @i + 1 end set @texto = char(ascii(left(@texto, 1))-32) + right(@texto, len(@texto)-1) return @texto end ``` How can I use this function to update or select the "fullname" field from my user table? Given the option I ...
[ -0.016469581052660942, -0.1831039935350418, 0.6476052403450012, -0.054727546870708466, 0.02628716640174389, -0.18546104431152344, 0.03624189272522926, -0.30665701627731323, 0.11726811528205872, -0.3817424178123474, -0.2791483998298645, 0.6953306794166565, -0.4022119343280792, 0.02025504969...
DB will give you transactions, indexes for fast query, integrity constraints and security. * Depending on how you store the data in a local file you may need to move your data files along with your application. Ex: Moving application from server1 to server2. * For data that is immutable (or don't change often) some for...
[ 0.2553609609603882, -0.007712042890489101, 0.3546465337276459, 0.15922404825687408, -0.25784268975257874, -0.11710648238658905, 0.14225834608078003, -0.21407514810562134, -0.16878244280815125, -0.6476835608482361, -0.013706093654036522, 0.1712331920862198, -0.4662439823150635, 0.4617305696...
like this document here: <http://edhs1.gsfc.nasa.gov/waisdata/v2r20/ps/cd31110001.ps> I hope it helps.
[ 0.3055616617202759, 0.2895634174346924, 0.357174813747406, 0.3947909474372864, 0.21312536299228668, -0.5453166961669922, 0.25467056035995483, 0.3128957748413086, -0.2932361364364624, -0.6533374786376953, -0.07271706312894821, 0.38661515712738037, 0.09840691089630127, -0.07641370594501495, ...
I'm interested in executing powershell scripts on a computer behind a firewall. What ports will I need to have open? Will any special configuration be needed or I'll be just be able to connect to a fresh install of Windows Server 2008 r2 and start executing my scripts? MichaelGG got it right - all you need to do is use...
[ 0.30124878883361816, 0.1354185938835144, 0.07571762055158615, 0.2613300383090973, -0.09609072655439377, -0.36865872144699097, 0.4930378198623657, 0.005373088177293539, -0.22416742146015167, -0.5784816145896912, -0.23828522861003876, 0.7380326390266418, -0.18088513612747192, 0.0844681560993...
is that you can invoke a command (single command, pipeline, set of commands, or entire script) on a remote machine(s) and specify how you want that command to run. e.g. `Invoke-Command {get-process} -Computername (cat servers.txt)` ``` Invoke-Command (1)-ScriptBlock | -Command <ScriptBlock> (0)[-ComputerName ...
[ -0.1118708923459053, -0.07831794023513794, 0.2967545986175537, -0.003638633294031024, 0.3741095960140228, -0.1580408662557602, 0.21772998571395874, -0.2855692505836487, 0.013925156556069851, -0.6224109530448914, -0.33529481291770935, 0.4157460033893585, -0.056999243795871735, 0.11382550001...
<String>] [-ConfigurationName <String>] [-Credential <PSCredential>] [-HideComputerName | -HCN ] [-InputObject <PSObject> (ByValue)] [-JobName <String>] [-Port <1->] [-SessionOption <System.Management.Automation.Remoting.PSSessionOption>] [-ThrottleLimit <Int>] ...
[ -0.13297221064567566, -0.0038678369019180536, 0.42273712158203125, 0.16869473457336426, 0.036121100187301636, -0.11904812604188919, 0.36373642086982727, -0.20323307812213898, -0.20200157165527344, -0.6080225706100464, -0.44418901205062866, 0.8734416365623474, -0.13422033190727234, -0.24977...
[-ProxyAccessType <ProxyAutoDetect | ProxyIEConfig | ProxyNoProxyServer | ProxyWinHttpConfig>] [-ProxyAuthentication <Basic | Digest | Negotiate>] [-ProxyCredential <PSCredential>] [-SkipCACheck ] [-SkipCNCheck ] [-SkipRevocationCheck ] [-SPNPort <0->] [-UseUTF16 ] New-...
[ -0.3967741131782532, -0.04079578071832657, 0.6080046892166138, 0.050554629415273666, -0.35737282037734985, 0.194768488407135, 0.2786906361579895, -0.24503910541534424, -0.16137833893299103, -0.6943860650062561, -0.096263587474823, 0.13758477568626404, -0.101231150329113, 0.0497336834669113...
[-ProxyAccessType <ProxyAutoDetect | ProxyIEConfig | ProxyNoProxyServer | ProxyWinHttpConfig>] [-ProxyAuthentication <Basic | Digest | Negotiate>] [-ProxyCredential <PSCredential>] [-SkipCACheck ] [-SkipCNCheck ] [-SkipRevocationCheck ] [-SPNPort <0->] ...
[ -0.37429094314575195, 0.040383968502283096, 0.6281749606132507, 0.07391989231109619, -0.3101629316806793, 0.10317299515008926, 0.11373637616634369, -0.14765344560146332, -0.10958822071552277, -0.7592369914054871, -0.0469072088599205, 0.11206501722335815, -0.04916330426931381, 0.12468814104...
you can see, you can specify how to traverse proxies, you can provide one set of credentials to the proxy and a different set of credentials to the endpoint. All that said, the simple case is that you don't specify anything and we'll use port 80. Experiment! Enjoy! Engage! Jeffrey Snover [MSFT] Windows Management...
[ 0.35989516973495483, 0.28010791540145874, 0.17321614921092987, 0.1348208338022232, 0.07104869931936264, -0.301037073135376, 0.45234087109565735, -0.381555438041687, -0.22455118596553802, -0.6905093193054199, -0.14105117321014404, 0.551819384098053, -0.24091117084026337, 0.02862008288502693...
I have a VB.NET 3.5 sp1 console application running on Windows XP sp3 from a batch file: ``` "D:\Program Files\PartsDepotJob\PartsDepotJob.exe" >> "D:\Program Files\PartsDepotJob\partdepot.log.txt" ``` The output looks like the following: > 2/10/2009 9:03:19 AM > > Processing PO#: 2100 in 002 > > Created OE...
[ 0.016085805371403694, 0.07803229242563248, 0.8135424256324768, -0.21577972173690796, 0.01278666965663433, 0.12373226135969162, 0.1865801066160202, -0.25996464490890503, 0.07060554623603821, -0.8155503273010254, -0.02251548133790493, 0.35146185755729675, -0.10135380923748016, 0.205436468124...
> Created OE# 138 > > DONE However when I run the same thing at my client on their Windows 2003 sp2 (also w/ .NET 3.5 sp1) box the output gets garbled as follows: > 2/9/2009 4:03:37 PM > > DONE > > 2/9/2009 4:04:06 PM > > DONE > > 2/9/2009 4:11:01 PM > > DONE > > 2/9/2009 4:30:23 PM > ...
[ -0.11371538043022156, 0.0738944485783577, 0.3418833613395691, -0.11628704518079758, -0.08966352045536041, 0.14444264769554138, 0.4663250148296356, -0.2691505551338196, -0.5245264768600464, -0.702191948890686, -0.055003292858600616, 0.11651522666215897, -0.17393699288368225, -0.066592641174...
> > 1/1/1900 4:30:26 PMProcessing PO#: 1649500 in 702 > > Created OE# 49 > > 1/1/1900 4:30:28 PMCreated OE# 50 > > 1/1/1900 4:30:28 PMDONE ie., sometimes CrLf are removed and the output sometimes seems to be prefixed with 1/1/1900 {time}. Any idea's as to what could cause this? The relevent code is a ...
[ -0.14049381017684937, 0.12556354701519012, 0.4719902575016022, 0.10941346734762192, -0.10556930303573608, -0.10360973328351974, 0.15893574059009552, -0.3722143769264221, -0.6823585033416748, -0.49789759516716003, -0.3162761330604553, 0.24156221747398376, -0.46399497985839844, 0.53311818838...
Dim errMsg As String = "" Try Console.WriteLine(Now().ToString) ''//sendBadPOLineEmailtoDepot("test") Dim dsPO As New Data.DataSet Dim dbName As String = "" Dim dbServer As String Dim
[ -0.16005998849868774, -0.314142107963562, 0.5686572790145874, -0.23373959958553314, -0.2704647481441498, 0.02599550038576126, 0.5411057472229004, -0.5116140842437744, 0.0871969684958458, -0.24601784348487854, -0.37381136417388916, 0.41157352924346924, -0.3520351052284241, 0.303645759820938...
partDepotDbName As String = ConfigurationManager.AppSettings("partDepotDbName") Dim partDepotDbServer As String = ConfigurationManager.AppSettings("partdepotDBserver") Dim KeyName As String = "" Dim billToCompany As String ''//, billtoCompAddr1 As String Dim dtBillTo As D...
[ -0.26914671063423157, -0.3963705003261566, 0.8631466627120972, -0.10671832412481308, -0.11251506954431534, 0.0987151488661766, 0.5046346187591553, -0.5554642677307129, -0.2345104068517685, -0.28107333183288574, -0.4862736165523529, 0.661118745803833, -0.4148496985435486, 0.1070930659770965...
Dim appkeyQry = From key In ConfigurationManager.AppSettings Where key Like "CompanyDbName*" Select key ''//for each company database look for PO's For Each KeyName In appkeyQry dbName = ConfigurationManager.AppSettings(KeyName) dbServer = ConfigurationManager.Ap...
[ 0.12242431938648224, -0.05380874127149582, 0.5005103349685669, -0.04211200773715973, -0.05519182235002518, 0.2302979677915573, 0.19676794111728668, -0.2569027841091156, -0.20983357727527618, -0.5051645040512085, -0.19344790279865265, 0.5522027015686035, -0.4007832705974579, -0.057934291660...
billToCompany = ConfigurationManager.AppSettings(dbName) dtBillTo = GetCustomer(billToCompany, partDepotDbName, partDepotDbServer) If dtBillTo.Rows.Count = 0 Then Throw New Exception("Customer record for company database '" & dbName & "' not found in the parts depot!...
[ 0.18964578211307526, -0.18000389635562897, 0.6104810833930969, 0.09949299693107605, 0.1406860202550888, 0.15252093970775604, 0.2582551836967468, -0.44099855422973633, -0.3447638154029846, -0.3122653067111969, -0.2581273317337036, 0.36498963832855225, -0.2610763609409332, 0.3492605686187744...
''//billtoCompAddr1 = dtBillTo.Rows(0)("cmp_fadd1") ''//get all the unprocessed, printed PO's from the current company. dsPO = GetPoDataset(dbName, dbServer) If IsNothing(dsPO) Then Console.WriteLine("Error processing part
[ -0.11063669621944427, 0.0014851115411147475, 0.5817949771881104, -0.10627708584070206, 0.34512749314308167, 0.4176427125930786, 0.06332528591156006, -0.2713388204574585, -0.3219379782676697, -0.4668292701244354, -0.22701987624168396, 0.20911668241024017, -0.20818807184696198, -0.0263422615...
depot: " & errMsg) Exit Function End If Dim itemNum As String, qtyOrd As Double, requestDate As Date, promiseDate As Date, lineNum As String, itemPrice As Double Dim errNum As Integer = 0
[ -0.20637840032577515, -0.5485710501670837, 0.49843087792396545, -0.05756266042590141, 0.29917970299720764, 0.5107375383377075, 0.33425793051719666, -0.026324931532144547, 0.337414413690567, -0.2744203209877014, -0.26116397976875305, 0.16564513742923737, -0.023014618083834648, 0.24611714482...
Dim poNum As String = "" ''//for each unprocessed, printed PO in the current company For Each dr As DataRow In dsPO.Tables(0).Rows If poNum <> dr("ord_no") Then
[ 0.11904395371675491, -0.2854653298854828, 0.9003046154975891, -0.32315438985824585, 0.2058941274881363, 0.09779594838619232, -0.2975521981716156, -0.10191623121500015, -0.218092679977417, -0.22634612023830414, -0.19321171939373016, 0.45475149154663086, -0.15212804079055786, 0.2682896852493...
Console.WriteLine("Processing PO#: " & dr("ord_no") & " in " & dbName) If Not poNum = "" Then 'for first run don't close it, not open wsConn.CloseWisysConnection(TrxEnums.TransactionAction.Commit, errMsg)
[ -0.3677096366882324, 0.04861379787325859, 0.641202986240387, -0.10559963434934616, 0.39155587553977966, -0.054863087832927704, 0.2546323239803314, 0.07468075305223465, 0.07211281359195709, -0.6306199431419373, -0.27236244082450867, 0.5007317662239075, -0.4229789674282074, 0.361086249351501...