text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
downloadFile(@WebParam(name = "username") String username, @WebParam(name = "password") String password, @WebParam(name = "filename") String filename) throws DownloadException, LoginException; ``` So the file gets uploaded and downloaded as a byte array. But if I have a file of some stupid size (e.g. 1GB)...
[ 0.10960359871387482, 0.07024528086185455, 0.3240051865577698, 0.3791976869106293, 0.121524378657341, 0.050406843423843384, 0.2526523172855377, 0.4005606472492218, -0.42864811420440674, -0.7016759514808655, -0.15497112274169922, 0.7928219437599182, -0.2968280017375946, 0.3259301781654358, ...
side is something that I still need to pick up a bit of information on. Cheers for any input, Lee [Stephen Denne](https://stackoverflow.com/q/132618/16800) has a Metro implementation that satisfies your requirement. My answer is provided below after a short explination as to why that is the case. Most Web Service imp...
[ 0.24338440597057343, -0.380161851644516, 0.4458799362182617, 0.21705035865306854, -0.07806532084941864, 0.16162070631980896, 0.09992142766714096, -0.26285320520401, -0.30238670110702515, -0.5599415898323059, 0.14259910583496094, 0.3460046350955963, 0.014923912473022938, -0.1891542822122573...
you could provide chunking. ``` boolean uploadFile(String username, String password, String fileName, int currentChunk, int totalChunks, byte[] chunk); ``` This would require some footwork in cases where you don't get the chunks in the right order (Or you can just require the chunks come in the right order), but it ...
[ 0.0528288260102272, -0.06722741574048996, -0.07592733204364777, 0.07881014794111252, -0.2577841579914093, -0.1352197378873825, -0.044511519372463226, -0.0003357951354701072, -0.1063324436545372, -0.3718961179256439, -0.24122127890586853, 0.46570077538490295, -0.23635993897914886, -0.218451...
> **Possible Duplicate:** > > [“const correctness” in C#](https://stackoverflow.com/questions/114149/const-correctness-in-c-sharp) I have programmed C++ for many years but am fairly new to C#. While learning C# I found that the use of the [const](http://en.csharp-online.net/const,_static_and_readonly) keyword is mu...
[ -0.02060646004974842, 0.037781499326229095, 0.22727547585964203, 0.08784263581037521, 0.09067058563232422, 0.05643099173903465, 0.21375338733196259, -0.02493429183959961, -0.24929523468017578, -0.4429711699485779, -0.09931477904319763, 0.653257429599762, -0.29618746042251587, -0.1433149576...
My answer is provided below after a short explination as to why that is the case. Most Web Service implementations that are built using HTTP as the message protocol are REST compliant, in that they only allow simple send-receive patterns and nothing more. This greatly improves interoperability, as all the various plat...
[ 0.2588919401168823, 0.05332852900028229, 0.28819596767425537, 0.12541384994983673, -0.01990649104118347, -0.1846306473016739, 0.3529853820800781, -0.10639753937721252, -0.15227043628692627, -0.5088713765144348, -0.3173891007900238, 0.3755280673503876, -0.15660572052001953, 0.00955493189394...
chunks in the right order (Or you can just require the chunks come in the right order), but it would probably be pretty easy to implement.
[ 0.20107580721378326, 0.012127654626965523, -0.15969590842723846, 0.3352983295917511, -0.3194025158882141, 0.029635312035679817, 0.19474849104881287, 0.05276539921760559, -0.2525647282600403, -0.31389543414115906, -0.15658028423786163, 0.2432631254196167, 0.07216788083314896, -0.31158304214...
We're reviewing one of the company's system's exception handling and found a couple of interesting things. Most of the code blocks (if not all of them) are inside a try/catch block, and inside the catch block a new BaseApplicationException is being thrown - which seems to be coming from the Enterprise Libraries. I'm ...
[ 0.4506838023662567, 0.19129550457000732, 0.0045404015108942986, 0.2579260766506195, 0.182106614112854, -0.32396355271339417, 0.1013064906001091, 0.1904926300048828, -0.24854934215545654, -0.4157447814941406, 0.08304725587368011, 0.17194262146949768, -0.1647687405347824, 0.05608304217457771...
like that) but he wasn't too sure about it. After spending some time going through the code I'm quite confident to say, that's all it does is collecting information about the environment and than publishing it. My question is: - Is it reasonable to wrap all the code inside try { } catch { } blocks and than throw a n...
[ 0.6819848418235779, 0.09166928380727768, 0.08718263357877731, 0.057842861860990524, 0.12387852370738983, -0.3986750841140747, 0.4371420443058014, -0.3509407639503479, -0.1834542453289032, -0.3247041702270508, 0.08147308975458145, 0.4829084873199463, -0.3832865357398987, -0.1468635946512222...
we'd go down this road, would we miss something? Any drawbacks? Your opinion's much appreciated. **Never**1 `catch (Exception ex)`. Period2. There is no way you can handle all the different kinds of errors that you may catch. Never3 catch an Exception-derived type if you can't handle it or provide additional informat...
[ 0.5325270891189575, 0.06213117018342018, 0.23288200795650482, 0.0014853955945000052, -0.15600530803203583, -0.3098161518573761, 0.7119640111923218, 0.23089811205863953, -0.37222403287887573, -0.6877692341804504, -0.12794314324855804, 0.2530898451805115, -0.3268316984176636, 0.1783407330513...
know how to handle a **specific** exception (and reset the application to pre-error state), catch it. (That's why it's called *exception* ***handling***.) To handle exceptions that are not caught, listen for the appropriate events. When doing WinForms, you'll need to listen for `System.AppDomain.CurrentDomain.Unhandle...
[ 0.5603318810462952, 0.10704682767391205, 0.2869569957256317, 0.05230872705578804, 0.02195466309785843, -0.3732561767101288, 0.6755228638648987, -0.0702890083193779, -0.0754217877984047, -0.8347553014755249, -0.0881614163517952, 0.6809778213500977, -0.07655216008424759, -0.08765234798192978...
high on principles when I first wrote this answer. 2,3 See 1. 4 If you don't bring anything new to the table, I still stand by this. If you have caught `Exception ex` as part of a method that you know could fail in any number of ways, I believe that the current method should reflect that in it's signature. And as you...
[ 0.40151548385620117, 0.19731862843036652, 0.11021609604358673, -0.05637829005718231, -0.13288119435310364, -0.48177480697631836, 0.3111923635005951, -0.1311117261648178, -0.19567923247814178, -0.49077174067497253, 0.2964338958263397, 0.42663323879241943, -0.29565751552581787, 0.14864207804...
While developing a C++ application, I had to use a third-party library which produced a huge amount of warnings related with a harmless #pragma directive being used. ```none ../File.hpp:1: warning: ignoring #pragma ident In file included from ../File2.hpp:47, from ../File3.hpp:57, fro...
[ 0.15717729926109314, 0.5768319368362427, 0.10833323001861572, -0.1916768103837967, -0.15154066681861877, -0.27099400758743286, 0.33444902300834656, -0.2466532438993454, -0.10414168238639832, -0.07980429381132126, -0.05253417417407036, 0.6907905340194702, -0.592957079410553, 0.0491187162697...
When setting the size of fonts in CSS, should I be using a percent value (`%`) or `em`? Can you explain the advantage? There's a really good article on web typography on [A List Apart](http://alistapart.com/articles/howtosizetextincss). Their conclusion: > Sizing text and line-height in ems, > with a percentage spec...
[ 0.10154648125171661, -0.0596918910741806, 0.356934130191803, 0.10159244388341904, -0.14086972177028656, 0.2849852442741394, 0.15648405253887177, -0.420674204826355, -0.11203410476446152, -0.9344521760940552, 0.1405971795320511, 0.4290804862976074, 0.15506288409233093, -0.22712570428848267,...
satisfies both > designers and readers.
[ 0.23456530272960663, 0.2067781537771225, 0.030625874176621437, 0.19205009937286377, -0.0787544846534729, 0.13344286382198334, 0.3116813004016876, -0.1008802130818367, 0.33472195267677307, -0.7771233916282654, -0.5222032070159912, 0.5298520922660828, 0.09967003017663956, -0.0843876004219055...
I'm thinking about trying out MVC later today for a new app we're starting up, but I'm curious if it's an all or nothing thing or if I can still party like it's 2006 with viewstate and other crutches at the same time... Yes you can have your webforms pages and MVC views mixed in a single web application project. This c...
[ 0.6079187393188477, 0.11187852919101715, 0.5094812512397766, 0.1261020004749298, -0.20905159413814545, -0.13394415378570557, -0.19481433928012848, 0.05093667656183243, -0.519462525844574, -0.5326533913612366, 0.39394962787628174, 0.6534416079521179, -0.32691240310668945, 0.4152851104736328...
standard ASP.NET MVC application though. Pages (or views) in the 'Views' directory can't be requested directly through the url. If you are starting an application from scratch, there would be very little benefit to mixing the two.
[ 0.357679545879364, -0.22322919964790344, 0.5304650068283081, 0.07510591298341751, -0.32698869705200195, -0.19238916039466858, 0.09853539615869522, -0.10268951952457428, -0.29498618841171265, -0.47199633717536926, -0.28093215823173523, 0.3069295287132263, -0.10474541783332825, 0.21398364007...
We have consumed a third party web service and are trying to invoke it from an ASP.NET web application. However when I instantiate the web service the following System.InvalidOperationException exception is thrown: > Method 'ABC.XYZ' can not be reflected. > System.InvalidOperationException: > Method 'ABC.XYZ' can no...
[ 0.3161846995353699, 0.3370726704597473, 0.22019381821155548, -0.009093484841287136, -0.03371614217758179, -0.20852456986904144, 0.07361684739589691, 0.058276496827602386, -0.1573430895805359, -0.7025079131126404, -0.16979838907718658, 0.22523890435695648, -0.29589882493019104, 0.4123283028...
in the web service. Can anyone clarify the probably cause of this exception and is there anything I can do to rectify this or should I just go to the web service owners to rectify? Edit: Visual Studio 2008 has created the proxy class. Unfortunately I can't provide a link to the wsdl as it is a web service for a locall...
[ 0.1614985167980194, 0.12567922472953796, 0.17538253962993622, -0.06593167781829834, -0.6826932430267334, -0.1261265128850937, 0.5479040741920471, 0.019848182797431946, -0.2134644240140915, -0.6806325316429138, 0.030181871727108955, 0.35499927401542664, -0.21068021655082703, 0.1484440714120...
In our CMS, we have a place in which we enable users to play around with their site hierarchy - move pages around, add and remove pages, etc. We use drag & drop to implement moving pages around. Each move has to saved in th DB, and exported to many HTML files. If we do that in every move, it will slow down the users...
[ 0.22392447292804718, 0.04618282988667488, 0.548882246017456, 0.18981732428073883, -0.10301107168197632, -0.1613340675830841, -0.050922807306051254, -0.09172404557466507, -0.3212462067604065, -0.46630769968032837, 0.013212756253778934, 0.101901113986969, -0.22747431695461273, 0.060281403362...
the HTML files. We thought of making the user click a "publish" button when they're ready to commit their changes, but we're afraid users won't remember to do that, because from their stand point once they've moved a page to a new place - the action is done. Another problem with the button is that it's inconsistent w...
[ 0.36083999276161194, -0.11757192760705948, 0.6670851111412048, 0.18401937186717987, 0.02896655537188053, -0.30828991532325745, 0.10173983871936798, -0.0016015099827200174, -0.5669658780097961, -0.6265063285827637, -0.19216163456439972, 0.4628329277038574, -0.46441543102264404, -0.043781794...
leaving the page? You should warn the user when he leaves the page with javascript. From <http://www.siafoo.net/article/67>: Modern browsers have an event called window.beforeunload that is fired right when any event occurs that would cause the page to unload. This includes clicking on a link, submitting a form, or c...
[ 0.47485607862472534, 0.016563327983021736, 0.43851014971733093, -0.3052006959915161, 0.044301096349954605, -0.19593411684036255, 0.4250660538673401, -0.09637994319200516, -0.4804036319255829, -0.5081751942634583, -0.39092767238616943, 0.13273271918296814, -0.21059423685073853, 0.2430934458...
window.onbeforeunload = (on) ? unloadMess : null; } setBunload(true); //--> </SCRIPT> ```
[ 0.019599271938204765, 0.008974535390734673, 0.5025485157966614, -0.295967698097229, 0.277521550655365, 0.1750333309173584, 0.5004541277885437, 0.09981194138526917, -0.0041971104219555855, -0.6506614685058594, -0.4665238559246063, 0.6823570728302002, -0.4425211250782013, 0.2790672183036804,...
I was wondering how i can force a user who has requested a page using Http to use the secure https version? I am using Websphere 6.1 as my application server and Rad 7 as my development environment Thanks Damien One way that you could do this within your application rather than in the server configuration would be to...
[ 0.4844560921192169, -0.11241845041513443, 0.5912788510322571, -0.1747409552335739, -0.2793724834918976, -0.30851295590400696, 0.32576391100883484, -0.3631935715675354, -0.20540788769721985, -0.8400310277938843, -0.1473459005355835, 0.35069960355758667, -0.415472149848938, 0.029163591563701...
How do I have a script run every, say 30 minutes? I assume there are different ways for different OSs. I'm using OS X. Just use **launchd**. It is a very powerful launcher system and meanwhile it is the standard launcher system for Mac OS X (current OS X version wouldn't even boot without it). For those who are not fam...
[ 0.5023491978645325, 0.05583764240145683, 0.021116260439157486, 0.3149051368236542, -0.19667746126651764, -0.0031341551803052425, 0.05016009137034416, 0.29783761501312256, 0.04906168207526207, -0.8369540572166443, -0.03166676312685013, 0.5117537379264832, -0.010426793247461319, -0.103791728...
a file. The location of the file depends on the questions: "When is this service supposed to run?" and "Which privileges will the service require?" System tasks go to ``` /Library/LaunchDaemons/ ``` if they shall run no matter if any user is logged in to the system or not. They will be started with "root" privilege...
[ 0.409092515707016, -0.10996357351541519, 0.3083105683326721, 0.28642845153808594, 0.49923810362815857, -0.11009436100721359, 0.18601514399051666, 0.15887539088726044, -0.4312174916267395, -0.45067673921585083, -0.6628013849258423, 0.4115694761276245, -0.03658555820584297, 0.047066573053598...
privileges, just as if you had started them yourself by command line or by double clicking a file in Finder. Note that there also exists `/System/Library/LaunchDaemons` and `/System/Library/LaunchAgents`, but as usual, everything under `/System` is managed by OS X. You shall not place any files there, you shall not ch...
[ 0.22822286188602448, 0.029702510684728622, 0.06390704214572906, 0.43979594111442566, 0.17983055114746094, -0.4936348795890808, -0.11446090042591095, 0.22023114562034607, -0.9137166738510132, -0.12382486462593079, -0.26882126927375793, 0.4041455388069153, -0.024905933067202568, 0.0749957039...
and running during boot, automatically start services as required, perform system maintenance tasks, and so on. Every `launchd` task is a file in PLIST format. It should have reverse domain name notation. E.g. you can name your task ``` com.example.my-fancy-task.plist ``` This plist can have various options and set...
[ 0.2977388799190521, -0.009904371574521065, 0.35806718468666077, 0.13200707733631134, -0.05615299940109253, 0.25182995200157166, -0.0013809390366077423, -0.09454600512981415, -0.39604783058166504, -0.5285668969154358, -0.22213907539844513, 0.3554140329360962, -0.09587147831916809, -0.403625...
<key>OnDemand</key> <true/> <key>ProgramArguments</key> <array> <string>/bin/sh</string> <string>/usr/local/bin/my-script.sh</string> </array> <key>StartInterval</key> <integer>1800</integer> </dict> </plist> ``` This agent will run the shell script /usr/local/bin/my-script.sh ...
[ -0.14207181334495544, -0.24311622977256775, 0.5256086587905884, -0.05424197018146515, 0.029852334409952164, -0.1244237869977951, 0.5208790302276611, -0.11125169694423676, -0.23418205976486206, -0.7727873921394348, -0.11068113148212433, 0.5380632281303406, -0.07260020077228546, -0.119800344...
how much resources a process may use. **Update:** *Even though `OnDemand` is still supported, it is deprecated. The new setting is named `KeepAlive`, which makes much more sense. It can have a boolean value, in which case it is the exact opposite of `OnDemand` (setting it to `false` behaves as if `OnDemand` is `true` ...
[ 0.32691192626953125, -0.03652171790599823, 0.6156307458877563, -0.09962530434131622, 0.18544334173202515, -0.19077567756175995, 0.46219876408576965, -0.048672471195459366, -0.24085508286952972, -0.4089152216911316, -0.09368990361690521, 0.5723443627357483, -0.13011492788791656, 0.226370081...
task shall be kept alive. E.g. it is only kept alive as long as the program terminated with an exit code of zero, only as long as a certain file/directory on disk exists, only if another task is also alive, or only if the network is currently up.* Also you can manually enable/disable tasks via command line: ```xml la...
[ 0.13084086775779724, -0.32392680644989014, 0.36666929721832275, 0.2972967028617859, 0.1575651466846466, -0.10211845487356186, 0.18701592087745667, 0.11524724215269089, -0.5843668580055237, -0.49929311871528625, -0.2236570566892624, 0.4706047475337982, -0.21376293897628784, 0.06789696961641...
is the label (`com.example.my-fancy-task`). Other commands and options exist as well. **Update:** *Even though `load`, `unload`, `start`, and `stop` do still work, they are legacy now. The new commands are `bootstrap`, `bootout`, `enable`, and `disable` with slightly different syntax and options. One big difference is...
[ 0.3423685133457184, -0.33949121832847595, 0.26387929916381836, 0.1319340616464615, 0.1829785406589508, -0.036197032779455185, 0.40768614411354065, 0.1325109601020813, -0.3636646866798401, -0.7025254964828491, -0.31289151310920715, 0.6188479065895081, -0.1790122389793396, 0.3675758540630340...
"domain". The system has domain and so has every user. So equally labeled tasks may exist in different domains and `launctl` can still distinguish them. Even different login and different UI sessions of the same user have their own domain (e.g. the same user may once be logged locally and once remote via SSH and differ...
[ 0.2786470353603363, -0.15105962753295898, 0.40641075372695923, 0.39484211802482605, 0.10925208777189255, -0.07092611491680145, -0.055505137890577316, -0.0026754201389849186, -0.5172324776649475, -0.6570541262626648, -0.2873995304107666, -0.0014507498126477003, -0.10786435753107071, 0.28445...
of the [`launchctl` command line tool](https://ss64.com/osx/launchctl.html).
[ 0.028048168867826462, -0.0924009382724762, -0.04678664356470108, -0.05223759636282921, -0.08533643931150436, -0.3928319215774536, -0.1583382934331894, 0.2655768096446991, -0.1511620134115219, -0.12470348924398422, -0.7325936555862427, 0.6728692650794983, -0.4284418225288391, -0.26070949435...
What is Big O notation? Do you use it? I missed this university class I guess :D Does anyone use it and give some real life examples of where they used it? --- ### See also: [Big-O for Eight Year Olds?](https://stackoverflow.com/questions/107165/big-o-for-eight-year-olds) [Big O, how do you calculate/approximat...
[ -0.08985035866498947, 0.05677341669797897, 0.3057398796081543, 0.10818386822938919, 0.15894106030464172, 0.04186202585697174, 0.03339257091283798, 0.16195213794708252, -0.5738828778266907, -0.5311844348907471, 0.012495343573391438, 0.37303727865219116, 0.07194224745035172, -0.2695877552032...
or how much faster it will get if you cut the number in half. However, if you have two entirely different algorithms and one (`A`) is `O(n^2)` and the other one (`B`) is `O(log n)`, it is not said that `A` is slower than `B`. Actually, with 100 items, `A` might be ten times faster than `B`. It only says that with 200 ...
[ -0.01831768825650215, -0.09427917748689651, 0.002279759617522359, 0.13255630433559418, -0.09724345803260803, 0.44258925318717957, 0.22372637689113617, -0.44517603516578674, -0.5416443943977356, -0.8315813541412354, -0.033635057508945465, 0.28919854760169983, 0.18929298222064972, 0.17524828...
much time `B` needs for the same 100 items, and `A` is faster than `B`, you can calculate at what amount of items `B` will overtake `A` in speed (as the speed of `B` decreases much slower than the one of `A`, it will overtake `A` sooner or later—this is for sure).
[ -0.12195983529090881, -0.14948585629463196, 0.12124034017324448, 0.3343830108642578, -0.01787790283560753, 0.23611809313297272, 0.2929724156856537, -0.21200811862945557, -0.3974285423755646, -1.0299813747406006, 0.1619558483362198, 0.38936346769332886, 0.2897661626338959, 0.081066191196441...
The CSS rules `visibility:hidden` and `display:none` both result in the element not being visible. Are these synonyms? `display:none` means that the tag in question will not appear on the page at all (although you can still interact with it through the dom). There will be no space allocated for it between the other tag...
[ -0.07939574867486954, 0.2525964081287384, 0.2876378297805786, -0.09078153222799301, 0.04048195853829384, -0.2997514605522156, 0.31031879782676697, -0.027946874499320984, -0.36196696758270264, -0.46034950017929077, -0.7928035855293274, 0.197669118642807, -0.3103998303413391, 0.0578915737569...
| test ``` Replacing `[style-tag-value]` with `visibility:hidden` results in: ``` test |                        | test ```
[ 0.16953344643115997, 0.08570156991481781, -0.05754496529698372, 0.05379725620150566, -0.10467472672462463, -0.24197855591773987, 0.5517733693122864, -0.19304387271404266, 0.19990910589694977, -0.549569308757782, -0.5423128604888916, 0.4093209505081177, -0.061661556363105774, -0.25819090008...
I want to make a .NET Form as a TopMost Form for another external App (not .NET related, pure Win32) so it stays above that Win32App, but not the rest of the apps running. I Have the handle of the Win32App (provided by the Win32App itself), and I've tried [Win32 SetParent() function](http://msdn.microsoft.com/en-us/li...
[ 0.2738021910190582, 0.03168317303061485, 0.7936945557594299, -0.21002501249313354, -0.0017370637506246567, -0.06739823520183563, 0.18003681302070618, -0.26542899012565613, -0.12352311611175537, -0.5714965462684631, -0.18015927076339722, 0.4528307020664215, -0.37019142508506775, 0.022676335...
Are there any other IDEs worth my time for Lotus Notes development? We're doing mostly LotusScript development and would kill for features of Eclipse or Visual Studio, like "Show Declaration". I know there's [an Eclipse plugin for Java development in Notes](http://www.ibm.com/developerworks/lotus/library/notes-eclipse/...
[ 0.07100076228380203, 0.16804327070713043, 0.41385385394096375, -0.45100679993629456, -0.5452874898910522, -0.22697710990905762, -0.03541533648967743, 0.05101030692458153, -0.26550227403640747, -0.6070736050605774, 0.035821180790662766, 0.7383098602294922, -0.25882992148399353, -0.090290680...
IDE is also moving to eclipse, version 8.5 beta 2 is currently available with the new Eclipse based IDE. Bear in mind that it's a Beta version and it's not feature complete.
[ 0.41574203968048096, -0.2572873532772064, 0.3403853178024292, -0.23049940168857574, -0.3829834759235382, -0.47253262996673584, 0.10861004143953323, 0.02494932897388935, 0.11039921641349792, -0.7283204197883606, -0.16182075440883636, 0.296151727437973, -0.31681540608406067, -0.1746549010276...
I use *Eclipse 3.3* in my daily work, and have also used *Eclipse 3.2* extensively as well. In both versions, sometimes the Search options (Java Search, File Search, etc) in the menu get disabled, seemingly at random times. However, with `Ctrl`+`H`, I am able to access the search functionality. Does anyone know why thi...
[ 0.4695131182670593, 0.25503626465797424, 0.19276666641235352, -0.26717981696128845, -0.38946208357810974, -0.1308041512966156, 0.2030211240053177, 0.2217712551355362, -0.01988636516034603, -0.7322067618370056, -0.018493175506591797, 0.7954392433166504, -0.12708327174186707, -0.126850709319...
I am trying to make an Outlook 2003 add-in using Visual Studio 2008 on Windows XP SP3 and Internet Explorer 7. My add-in is using custom Folder Home Page which displays my custom form, which wraps Outlook View Control. I get COM Exception with 'Exception from HRESULT: 0xXXXXXXXX' description every time when I try to ...
[ -0.13544881343841553, 0.22034688293933868, 0.6549065709114075, -0.01558343879878521, -0.09521343559026718, -0.05645941197872162, 0.11406876146793365, 0.005185171961784363, -0.052171118557453156, -0.5393057465553284, 0.21061286330223083, 0.747856080532074, -0.32855385541915894, 0.0535833314...
property of the active explorer, which seems to be a right one: ``` Outlook.Explorer currentExplorer = app.ActiveExplorer(); if (currentExplorer != null) { ovcWrapper.Folder = currentExplorer.CurrentFolder.FolderPath; } ``` This is top of the stack trace: ``` System.Runtime.Inter...
[ -0.025950901210308075, -0.08452806621789932, 0.790315568447113, -0.1866406947374344, 0.33835843205451965, -0.30341634154319763, 0.5928248763084412, -0.05445445701479912, -0.13000744581222534, -0.5565370321273804, -0.243905708193779, 0.648217499256134, -0.45456522703170776, 0.08601022511720...
fine before I went to holiday :). It seems that Windows XP installed some updates which changed default security of Internet Explorer or Outlook 2003 while I was absent. On the other (virtual machine) with Office 2007 and Internet Explorer 6, without any updates, everything is working just fine. After a while, I final...
[ 0.5343669652938843, 0.04415946826338768, 0.5017001628875732, -0.07517324388027191, -0.10918954759836197, -0.3509596884250641, 0.4477924108505249, 0.048852354288101196, -0.4783759117126465, -0.5439839363098145, 0.06089130789041519, 0.6270501613616943, -0.11436048150062561, 0.190179765224456...
// loads existing or creates a new one, if there is none. storage = session.Folders.GetLast(); // grabs root folder of the new fileStorage. if (storage.Name != storageName) // if fileStorage is brand new, it has default name. { storage.Name = "Documents"; session.RemoveStore(storage); // to apply new fileS...
[ 0.22186528146266937, 0.02011776529252529, 0.49814221262931824, -0.04063448682427406, 0.23478169739246368, -0.20354101061820984, 0.2221827507019043, -0.24466873705387115, -0.5642949342727661, -0.6810041666030884, -0.3613509237766266, 0.6019560098648071, -0.3435139060020447, 0.67910695075988...
I am wanting to store the "state" of some actions the user is performing in a series of different ASP.Net webforms. What are my choices for persisting state, and what are the pros/cons of each solution? I have been using Session objects, and using some helper methods to strongly type the objects: ``` public stati...
[ 0.17735618352890015, -0.15105703473091125, 0.467971533536911, -0.24571865797042847, 0.18212413787841797, 0.14519760012626648, 0.6516404747962952, -0.011190664954483509, -0.17615924775600433, -0.606168806552887, -0.23227673768997192, 0.6050689816474915, -0.3576464056968689, 0.10701163858175...
} ``` I have been told by numerous sources that "Session is evil", so that is really the root cause of this question. I want to know what you think "best practice", and why. There is nothing inherently evil with session state. There are a couple of things to keep in mind that might bite you though: 1. If the user p...
[ 0.4794778525829315, 0.12325289845466614, 0.07316349446773529, -0.10287893563508987, -0.026801494881510735, -0.3755854666233063, 0.3928029537200928, 0.23466040194034576, -0.2816110849380493, -0.7419724464416504, 0.23140175640583038, 0.602501392364502, -0.2572490870952606, 0.4392717778682709...
happens you next request will start a new process. If you are using in process session state, the default, it will be gone :-( 3. Session can also timeout with the same result if the user isn't active for some time. This defaults to 20 minutes so a nice lunch will do it. 4. Using out of process session state requires a...
[ 0.21642300486564636, -0.1885349154472351, 0.6059902310371399, 0.12833772599697113, 0.13163666427135468, -0.19055618345737457, 0.4669942259788513, -0.036777712404727936, -0.49636775255203247, -1.0376583337783813, -0.3325888514518738, 0.46310439705848694, 0.030350899323821068, 0.295758396387...
So changing the CurrentAccount in one browser window will do the same in the other.
[ -0.005694644991308451, -0.19444432854652405, 0.7481796741485596, 0.24218598008155823, 0.4721529483795166, -0.03367023542523384, -0.15501873195171356, 0.20449674129486084, -0.2391286939382553, -0.6989595890045166, 0.11415518820285797, 0.4768275320529938, -0.11468791961669922, 0.167910441756...
I would like to code a little program which visually illustrates the behavior of the `volatile` keyword. Ideally, it should be a program which performs concurrent access to a non volatile static field and which gets incorrect behavior because of that. Adding the volatile keyword in the same program should fix the pro...
[ 0.3027973175048828, 0.2586374282836914, -0.14783525466918945, 0.5859816670417786, 0.08608534187078476, -0.11252187192440033, 0.09237243980169296, -0.002934017451480031, -0.37727490067481995, -0.3498727083206177, -0.04054518789052963, 0.7935090065002441, -0.1657658964395523, 0.1648177206516...
on hardware? I've achieved a working example! The main idea received from wiki, but with some changes for C#. The wiki article demonstrates this for static field of C++, it is looks like C# always carefully compile requests to static fields... and i make example with non static one: If you run this example in **Relea...
[ 0.6514642834663391, 0.29969286918640137, 0.41699859499931335, 0.025349918752908707, 0.2779664695262909, 0.05728885158896446, 0.39101526141166687, -0.514057993888855, -0.2022027224302292, -0.2726931571960449, -0.11275935918092728, 0.8868757486343384, -0.17431515455245972, 0.1088938266038894...
{ var test = new Test(); new Thread(delegate() { Thread.Sleep(500); test.foo = 255; }).Start(); while (test.foo != 255) ; Console.WriteLine("OK"); } } ```
[ 0.41707557439804077, -0.009944857098162174, 0.2094910591840744, -0.26246288418769836, 0.5382956266403198, 0.08310174196958542, 0.4788702130317688, -0.36995863914489746, -0.1745365709066391, -0.7018699645996094, -0.3334565758705139, 0.4411674737930298, -0.21098592877388, 0.5618500113487244,...
I'm new to CodeIgniter, and I need some help. I'd like to implement the following: * View a user's profile via: http://localhost/profile/johndoe * Administrate a user's profile via: http://localhost/admin/profile/johndoe * Be able to accomplish even further processing via: http://localhost/admin/profile/create ...and....
[ 0.23877906799316406, 0.2654952108860016, 0.5706826448440552, -0.023074233904480934, -0.022181490436196327, -0.08202327787876129, 0.1851043552160263, -0.12310849130153656, 0.231125608086586, -0.8779191970825195, -0.11468252539634705, 0.40871262550354004, -0.16661661863327026, 0.160673260688...
(create/edit/[userid]) and then do something accordingly. (You also must make sure that no user can call himself "create" or "edit".) I would instead use only one controller with the functions `show`, `edit`, and `create` (or `add`). Much easier. Then you would get these URLs: * http://localhost/profile/show/johndoe ...
[ 0.18787257373332977, -0.3261899948120117, 0.4972951114177704, 0.17271266877651215, -0.0672173872590065, -0.14500738680362701, -0.0033381518442183733, 0.12733960151672363, -0.1915949136018753, -0.7446956038475037, 0.006001272238790989, 0.42125290632247925, -0.19807381927967072, 0.2220536917...
Is there a way to Minimize an external application that I don't have control over from with-in my Delphi application? for example notepad.exe, except the application I want to minimize will only ever have one instance. You can use **FindWindow** to find the application handle and **ShowWindow** to minimize it. ``` v...
[ -0.3025425374507904, 0.1936655342578888, 0.5738824009895325, -0.2710200250148773, 0.12368215620517731, 0.11853387951850891, 0.12276728451251984, -0.18650518357753754, -0.12244222313165665, -0.9680588841438293, 0.18114005029201508, 0.5161037445068359, -0.22153696417808533, 0.073460415005683...
I have been asked to develop some usercontrols in ASP.NET that will at a later point be pulled into a SharePoint site as web parts. I am new to SharePoint and will not have access to a SharePoint server during the time I need to prototype these parts. Does anyone know of any reasons that this approach will not work? ...
[ 0.1541079729795456, 0.07229094952344894, 0.37076008319854736, 0.10272245854139328, -0.23176263272762299, 0.01141210738569498, 0.3327920734882355, -0.0737510398030281, -0.13807430863380432, -0.4580354690551758, 0.11994488537311554, 0.1402103155851364, 0.13077063858509064, 0.1340471953153610...
while to realize that going the SharePoint route right away, though painful at first, is the best way to go about it. The free VPC image makes getting set up to develop relatively painless. While you can, as I did, develop web parts in ASP.NET without SharePoint, when it comes to developing and deploying SharePoint a...
[ 0.3830587863922119, 0.18639343976974487, 0.17481954395771027, 0.3122725784778595, 0.20073755085468292, -0.20756274461746216, 0.2269020825624466, 0.03613975644111633, -0.36920493841171265, -0.6232630610466003, -0.008401009254157543, 0.48713767528533936, 0.11697826534509659, -0.0595785826444...
final product will better for the expertise you gain along the way. If it's a very short-term thing, Microsoft has a time-limited WSS evaluation VPC image: [WSS3 SP1 Developer Evaluation VPC image](http://www.microsoft.com/downloads/details.aspx?familyid=1beeac6f-2ea1-4769-9948-74a74bd604fa&displaylang=en&tm) That wi...
[ 0.06179032102227211, -0.1426563709974289, 0.509982705116272, 0.04528352618217468, 0.05893693491816521, 0.05433244630694389, 0.010829349048435688, -0.2836368978023529, -0.18795202672481537, -0.7834835648536682, -0.2696976065635681, 0.14736026525497437, 0.2275424599647522, -0.001820022007450...
How do I find the name of the namespace or module 'Foo' in the filter below? ``` class ApplicationController < ActionController::Base def get_module_name @module_name = ??? end end class Foo::BarController < ApplicationController before_filter :get_module_name end ``` None of these solutions consider a con...
[ -0.05831995606422424, -0.0031502642668783665, 0.6071553230285645, -0.3111948072910309, 0.07715223729610443, -0.12223945558071136, 0.1395944356918335, -0.2874314486980438, -0.4365510046482086, -0.6424023509025574, -0.08335316926240921, 0.7654973268508911, -0.6594939231872559, 0.065431222319...
Which is your favorite way to go with strings in C++? A C-style array of `char`s? Or `wchar_t`? `CString`, `std::basic_string`, `std::string`, `BSTR` or `CComBSTR`? Certainly each of these has its own area of application, but anyway, which is your favorite and why? std::string or std::wstring, depending on your needs....
[ 0.21579067409038544, -0.02750423364341259, 0.2866249680519104, 0.1567390412092209, -0.20767103135585785, 0.09017240256071091, -0.14492285251617432, -0.15747208893299103, -0.32150110602378845, -0.6017524600028992, -0.09949678927659988, 0.6382780075073242, -0.2734416723251343, -0.23254494369...
handle templates are long gone now. A C-style array of chars is just asking for trouble. You'll still need to deal with them on occasion (and that's what std::string.c\_str() is for), but, honestly -- one of the biggest dangers in C is programmers doing Bad Things with char\* and winding up with buffer overflows. Just...
[ 0.36892929673194885, 0.15629519522190094, 0.05515580251812935, 0.08591307699680328, -0.25351032614707947, -0.09009603410959244, 0.44353896379470825, 0.06978913396596909, -0.43492597341537476, -0.5470038652420044, 0.24156160652637482, 0.5279679894447327, -0.3805617392063141, 0.3092957437038...
of std::basic\_string, but you're still better off using std::string unless you have a really good reason not to. Really Good. Let the compiler take care of the optimization in this situation.
[ 0.04479120671749115, 0.33621394634246826, -0.0445372611284256, -0.0186675526201725, 0.07816299796104431, -0.18125630915164948, 0.5048847794532776, 0.10345805436372757, 0.03866812586784363, -0.4872535467147827, -0.2153724879026413, 0.7654866576194763, -0.16694095730781555, -0.29508110880851...
I want to use forms authentication in my asp.net mvc site. Can I use an already existing sql db (on a remote server) for it? How do I configure the site to use this db for authentication? Which tables do I need/are used for authentication? You can. Check `aspnet_regsql.exe` program parameters in your Windows\Microsoft...
[ 0.2424917370080948, 0.25716546177864075, 0.6283692717552185, -0.03675341606140137, -0.12864263355731964, -0.16481341421604156, 0.3672776520252228, -0.5262202620506287, -0.1872418373823166, -0.7150290608406067, 0.08754624426364899, 0.1682073473930359, -0.057369835674762726, 0.22298580408096...
<deny users="?"/> <allow users="*"/> </authorization> <membership defaultProvider="MySqlMembershipProvider"> <providers> <clear/> <add name="MySqlMembershipProvider" connectionStringName="MyLocalSQLServer" applicationName="MyAppName" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0...
[ 0.24849601089954376, 0.2446666657924652, 0.3901863694190979, 0.09499392658472061, -0.13938716053962708, -0.5483592748641968, 0.5074700117111206, -0.14928355813026428, -0.5050457715988159, -0.3960220217704773, -0.17436929047107697, 0.19622255861759186, 0.010523688048124313, 0.65500581264495...
I have created a web reference (Add Web Reference) from Visual Studio 2008 and strangely, I need to set the *propertyNameField*Specified to true for all the fields I want to submit. Failure to do that and values are not passed back to the WCF Service. I have read at several places that this was fixed in the RTM versi...
[ 0.41554275155067444, 0.12715068459510803, 0.6162905693054199, 0.006112962029874325, -0.10217807441949844, -0.07646743208169937, 0.012302486225962639, -0.12863501906394958, -0.3225087821483612, -0.42528313398361206, 0.2566273808479309, 0.3855837285518646, -0.3585662841796875, 0.168751493096...
Hi I was looking into Ruby to actionscript 3 bytecode compilers and found a mention of a project called Red Sun but can find very little information on it. So my Question is ... what tools are available to convert Ruby source into AS3 bytecode I am the lead developer on the Red Sun project. There is very little infor...
[ 0.46980828046798706, 0.2421318143606186, 0.22960558533668518, -0.30335307121276855, -0.6742659211158752, -0.000029511982575058937, 0.14011810719966888, -0.2049959897994995, -0.011217359453439713, -0.25699615478515625, 0.2055656462907791, 0.22112290561199188, -0.41412824392318726, -0.105732...
which an [introductory talk on Red Sun](http://rubyconf.org/talks/81) was accepted. Since then, I have had the time to flesh out the framework and really see what was possible. I'll be outlining all of this publicly soon, but I decided to diverge from the idea of generating ActionScript 3 bytecode becuase of the limit...
[ 0.036325857043266296, -0.08789590746164322, 0.11150556802749634, -0.1266385018825531, -0.37514814734458923, -0.06410813331604004, 0.3391798436641693, -0.47512730956077576, 0.049467261880636215, -0.4446795880794525, 0.11423087120056152, 0.43374577164649963, -0.5654457807540894, -0.458466649...
to point at a different object, and Ruby relies on modifying the inheritance hierarchy at runtime. The presentation at RubyConf will be on Saturday, Nov 8th. You can track Red Sun's development on <http://github.com> here <http://github.com/jonathanbranam/redsun> and I will be posting information on my website at <htt...
[ 0.033093616366386414, 0.26818642020225525, 0.6275524497032166, -0.3161868453025818, -0.6650362014770508, -0.07849186658859253, 0.37665802240371704, -0.2597714364528656, -0.1435849368572235, -0.5573576092720032, -0.0465516671538353, 0.36158302426338196, -0.40741419792175293, 0.0520484931766...
may need changes if there is deviation from this version. As far as capabilities, as of right now (10/27/2008) it supports basic method dispatch, classes and modules. That's really about it. The standard library has not been ported and I hope to depend on Rubinius for a good portion of this.
[ 0.002892708871513605, -0.08806799352169037, 0.39795544743537903, -0.052415817975997925, -0.2850622534751892, -0.47540223598480225, 0.5545854568481445, 0.024208515882492065, -0.1676144301891327, -0.35459956526756287, 0.14447319507598877, 0.5507357716560364, -0.056583162397146225, 0.14527466...
I want to log user's actions in my Ruby on Rails application. So far, I have a model observer that inserts logs to the database after updates and creates. In order to store which user performed the action that was logged, I require access to the session but that is problematic. Firstly, it breaks the MVC model. Secon...
[ 0.5225085616111755, 0.2009783387184143, -0.04876532033085823, 0.054922159761190414, -0.132740318775177, -0.051012828946113586, 0.6255276203155518, -0.14316432178020477, -0.2546095848083496, -0.49067938327789307, 0.3255349397659302, 0.7056758999824524, -0.32280513644218445, 0.02054420672357...
faced with is a decision to violate a design-pattern acceptable practice in order to achieve a specific set of functionality. So, we must ask ourselves 1) What are the possible solutions that would *not* violate MVC pattern 2) What are the possible solutions that *would* violate the MVC pattern 3) Which option is be...
[ 0.014376427046954632, 0.1701267510652542, 0.19511258602142334, -0.11423004418611526, 0.010247940197587013, 0.22475981712341309, 0.42555469274520874, -0.470633327960968, -0.26718002557754517, -0.602590799331665, 0.10308276861906052, 0.8062763214111328, -0.23342926800251007, -0.1483936011791...
my head, I would think of the following possible solutions A) If you are really interested in who is performing these actions, should this data be stored in the model any way? It would make this information available to your Observer. And it also means that any other front-end caller of your ActiveRecord class gets th...
[ 0.41606488823890686, -0.24073529243469238, 0.10995105654001236, 0.2859087288379669, -0.0045345742255449295, -0.02506318688392639, 0.37106195092201233, -0.18805120885372162, -0.4054467976093292, -0.46461302042007446, 0.2333442121744156, 0.47634199261665344, 0.03682271018624306, -0.064745418...
who their ActiveRecord::Observer "observes" the model, but you might be able to adapt it to a controller observer. In this sense, you aren't observing the model anymore, and it makes sense to make session and other controller type data information to that observer. C) The simplest solution, with the least "structure", ...
[ 0.2849607467651367, -0.12422994524240494, 0.436688631772995, 0.18970829248428345, 0.2764367163181305, -0.19641421735286713, 0.35476601123809814, -0.24037344753742218, -0.4703838527202606, -0.20720167458057404, -0.10002373158931732, 0.8029658198356628, -0.4672113358974457, -0.12301284819841...
logic. B) Can't think of any others here :) My personal inclination, without knowing anymore details about your project, is either 1A, if I want to attach people to records, or 1C if there are only a few places where I'm interested in doing this. If you are really wanting a robust logging solution for all your contro...
[ 0.16292807459831238, -0.06459135562181473, -0.07766830921173096, 0.3655264377593994, -0.018863162025809288, -0.20705492794513702, 0.32244929671287537, -0.017290497198700905, -0.3770982623100281, -0.3693600594997406, 0.035895176231861115, 0.4927891194820404, -0.2811371088027954, -0.04459916...
Wanted to convert ``` <br/> <br/> <br/> <br/> <br/> ``` into ``` <br/> ``` You can do this with a regular expression: ``` preg_replace("/(<br\s*\/?>\s*)+/", "<br/>", $input); ``` This if you pass in your source HTML, this will return a string with a single <br/> replacing every run of them.
[ 0.10056602209806442, 0.000424593104980886, 0.42175114154815674, -0.36837026476860046, -0.08615105599164963, -0.13392913341522217, 0.25596144795417786, 0.08834046870470047, -0.29229891300201416, -0.8200949430465698, -0.08629219233989716, 0.3612472414970398, -0.48155736923217773, -0.00037227...
I am using Vim for windows installed in Unix mode. Thanks to this site I now use the `gf` command to go to a file under the cursor. I'm looking for a command to either: 1. return to the previous file (similar to `Ctrl`+`T` for ctags), or 2. remap `gf` to automatically launch the new file in a new window. I use `Ctrl`...
[ 0.2537902891635895, 0.11377716064453125, 0.9007431864738464, -0.3342723250389099, -0.1720324456691742, -0.07594603300094604, 0.10352753102779388, 0.017908386886119843, -0.4245137870311737, -0.7030929327011108, -0.18952596187591553, 0.7235797643661499, -0.5049251914024353, 0.370260238647460...
I've set the MaxDate and MinDate properties of a DateTimePicker. However, when I test the control at runtime, there is no way to tell the invalid dates from the valid ones. The only difference is that clicking on an invalid date does nothing. This is not very intuitive for the user. I want to be able to tell at a glan...
[ 0.4237487018108368, -0.18184570968151093, 0.574327826499939, 0.1293780505657196, 0.15750551223754883, -0.017431234940886497, 0.13056142628192902, 0.0614733025431633, -0.17306336760520935, -0.5751268267631531, 0.21205030381679535, 0.5304303765296936, 0.03397182747721672, 0.18892838060855865...
work, but I really think the user should be presented with a calendar control when asked for a date. CONTEXT: This is a WinForms charting application. The range of valid data is fixed (new data is added via another process). The user needs to pick a date and time for the chart's start time (as well as a duration, whic...
[ 0.5356157422065735, -0.03908635675907135, 0.35853949189186096, -0.06473733484745026, 0.39433202147483826, -0.24141113460063934, 0.10692372918128967, -0.06678647547960281, -0.5227035880088806, -0.3232983946800232, 0.14840294420719147, 0.4597547948360443, -0.0548156201839447, -0.075030669569...
choice. The logical extension to this is to flash up a warning dialog or label to inform the user that this has happened. You could also override the calendar display portion of the control to highlight/lowlight the invalid options - it already highlights the current day and the current selection, for example.
[ 0.30735185742378235, -0.14805211126804352, 0.3518035411834717, 0.08454954624176025, 0.2740086019039154, -0.1421726942062378, 0.28956538438796997, 0.11095353215932846, -0.29276034235954285, -0.5755324959754944, -0.10310573875904083, 0.3981645107269287, -0.18219295144081116, 0.10735353082418...
I've created a new C++ project in Visual Studio 2008. No code has been written yet; Only project settings have been changed. When I compile the project, I receive the following fatal error: > fatal error LNK1104: cannot open file 'C:\Program.obj' This particular issue is caused by specifying a dependency to a lib fil...
[ 0.09950669854879379, 0.5554196834564209, 0.30147188901901245, -0.16269519925117493, -0.12562742829322815, 0.022800639271736145, 0.5073609948158264, -0.09344001859426498, -0.14187657833099365, -0.6368710994720459, 0.059544794261455536, 0.4149552583694458, -0.281620591878891, 0.1551508903503...
this property from: > C:\Program Files\sofware > sdk\lib\library.lib To: > "C:\Program Files\sofware > sdk\lib\library.lib" where I added the quotes.
[ 0.39039328694343567, 0.23044057190418243, 0.32934805750846863, -0.17445406317710876, -0.11941441893577576, -0.07797661423683167, -0.01887887716293335, -0.22332923114299774, 0.06717972457408905, -0.16961805522441864, 0.09533588588237762, 0.434868186712265, -0.17497660219669342, 0.1776839345...
When I use the task, the property is only set to TRUE if the resource (say file) is available. If not, the property is undefined. When I print the value of the property, it gives true if the resource was available, but otherwise just prints the property name. Is there a way to set the property to some value if the re...
[ 0.285195916891098, 0.22055795788764954, -0.0003525210195221007, -0.026563623920083046, 0.2445315718650818, 0.13869673013687134, 0.46146878600120544, -0.2026696801185608, -0.1660640835762024, -0.6061261892318726, -0.013602505438029766, 0.641906201839447, -0.11654400825500488, 0.111462138593...
values. ``` You can use a condition in combination with not: <http://ant.apache.org/manual/Tasks/condition.html> ``` <condition property="fooDoesNotExist"> <not> <available filepath="path/to/foo"/> </not> </condition> ```
[ 0.515392005443573, 0.2199748158454895, 0.0014962051063776016, -0.14323778450489044, 0.17771562933921814, 0.025849828496575356, 0.15578240156173706, -0.04888751730322838, -0.14460986852645874, -0.5762817859649658, -0.14085610210895538, 0.48929479718208313, -0.38176289200782776, -0.038144830...
I've got a class that I'm using as a settings class that is serialized into an XML file that administrators can then edit to change settings in the application. (The settings are a little more complex than the `App.config` allows for.) I'm using the `XmlSerializer` class to deserialize the XML file, and I want it to b...
[ 0.5492709279060364, 0.06485722213983536, 0.26913905143737793, 0.10819565504789352, 0.17111551761627197, -0.23914702236652374, 0.15360915660858154, -0.1781715452671051, -0.20630525052547455, -0.8256273865699768, 0.03595740720629692, 0.6675489544868469, -0.21091140806674957, 0.28866624832153...
and according to FxCop the `XmlSerializer` class has special support for deserializing read-only collections, but I haven't been able to find any more information on it. The exact details on the rule this violates is: > Properties that return collections should be read-only so that users cannot entirely replace the ba...
[ 0.38380706310272217, -0.22555606067180634, 0.07664897292852402, 0.060674894601106644, -0.20870351791381836, -0.18288259208202362, 0.016349928453564644, -0.1698177009820938, -0.2146192193031311, -0.4595178961753845, -0.07223004847764969, 0.788825511932373, -0.32286950945854187, 0.1632064133...
I'm going a little crazy here. In my case, all I had to do was initialize the Collection object in the constructor and then remove the property setter. Then the XmlSerializable object actually knows to use the Add/AddRange and indexer properties in the Collection object. The following actually works! ``` public class ...
[ -0.10179100930690765, 0.03407673537731171, 0.2435212880373001, 0.15415263175964355, 0.24267464876174927, -0.22417718172073364, 0.09049340337514877, -0.08036034554243088, -0.3264602720737457, -0.6524654030799866, -0.20376785099506378, 0.32721635699272156, -0.2777579128742218, 0.315473854541...
return _subSettings; } } } ``` You have to use a mutable list type, like ArrayList (or IList IIRC).
[ -0.16658905148506165, -0.14547917246818542, -0.08481316268444061, -0.028371643275022507, -0.08705618977546692, -0.3756175935268402, -0.009824233129620552, -0.16199536621570587, -0.2660547196865082, -0.7693653106689453, -0.33239221572875977, 0.6361677050590515, -0.6809676885604858, 0.222464...
My dad always says "Responsibility without Authority is meaningless". However, I find that as developers, we get stuck in situations all the time where we are: * Responsible for ensuring the software is "bug free", but don't have the authority to implement a bug tracking system * Responsible for hitting project deadl...
[ 0.7751340270042419, 0.22477273643016815, -0.41634073853492737, 0.3122895359992981, 0.09459919482469559, -0.3287949860095978, 0.399715393781662, 0.15712133049964905, -0.07783909887075424, -0.2930055558681488, -0.20108765363693237, 0.354960560798645, -0.1025792583823204, 0.1680898666381836, ...
things can you do *on your own* without having to convince a team to correct some of these issues - or what kind of tools can you use to demonstrate why untracked bugs are hurting you, that deadlines are being missed because of quality problems, and how can you use these tools to gain more "authority" without having to...
[ 0.4007267653942108, -0.28428491950035095, -0.23574939370155334, 0.5066054463386536, 0.3090454936027527, -0.36118894815444946, 0.4721701443195343, 0.0721539556980133, -0.6489556431770325, -0.32130926847457886, -0.18160466849803925, 0.25499075651168823, -0.293487548828125, -0.216614410281181...
in my experience. So what if you could point to some report (managers love reports) and say "See, this is why"? All you can do is your best, don't feel as if the key to successful software is only in your hands, your part of a team and don't have to be responsible for all. Obviously you are in a environment that affec...
[ 0.5492649078369141, 0.20799213647842407, -0.11927804350852966, 0.38992348313331604, 0.13381485641002655, -0.4136808514595032, 0.38519755005836487, -0.10952454060316086, -0.2057007998228073, -0.307812362909317, -0.031232800334692, 0.6369361281394958, -0.1567527800798416, -0.0183168854564428...
mess, but try to be the best at your work. Working as a self-directed team of one showing your boss your plans, and reports of your progress, asking for more resources when you need it and showing him how your plans get affected when he give them to you or not. You can find more advise about this in the [PSP](http://...
[ 0.6296165585517883, 0.009804990142583847, 0.12439003586769104, 0.20859394967556, 0.2514292001724243, -0.2589545249938965, 0.30774742364883423, -0.18045656383037567, -0.7087476849555969, -0.7155716419219971, -0.08068311959505081, 0.356253445148468, 0.0886329784989357, -0.13472577929496765, ...
When developing an app that will listen on a TCP/IP port, how should one go about selecting a default port? Assume that this app will be installed on many computers, and that avoiding port conflicts is desired. Go [here](http://www.iana.org/assignments/port-numbers) and pick a port with the description `Unassigned`
[ 0.09122352302074432, -0.004481509327888489, 0.10759835690259933, 0.02142956107854843, 0.2958613336086273, -0.027187936007976532, 0.13382363319396973, -0.1646207720041275, -0.43490326404571533, -0.7065643072128296, -0.22545820474624634, 0.8901855945587158, -0.4471014440059662, 0.25644168257...
How can I script a bat or cmd to stop and start a service reliably with error checking (or let me know that it wasn't successful for whatever reason)? Use the `SC` (service control) command, it gives you a lot more options than just `start` & `stop`. ``` DESCRIPTION: SC is a command line program used for ...
[ 0.15240827202796936, -0.22324572503566742, 0.031151877716183662, 0.08930075913667679, -0.15891237556934357, -0.28706178069114685, 0.38173162937164307, 0.22683647274971008, -0.30061277747154236, -0.653399646282196, -0.11095638573169708, 0.26355719566345215, -0.2545470893383026, 0.1513235121...
The option <server> has the form "\\ServerName" Further help on commands can be obtained by typing: "sc [command]" Commands: query-----------Queries the status for a service, or enumerates the status for types of services. queryex---------Queries the extended status f...
[ -0.30311521887779236, -0.5010103583335876, 0.5112312436103821, 0.24978186190128326, 0.15518474578857422, 0.04527389630675316, 0.13884882628917694, 0.25893688201904297, -0.18039166927337646, -0.5030876398086548, -0.434205561876297, 0.3626285791397095, -0.15962329506874084, 0.154526963829994...
enumerates the status for types of services. start-----------Starts a service. pause-----------Sends a PAUSE control request to a service. interrogate-----Sends an INTERROGATE control request to a service. continue--------Sends a CONTINUE control request to a service. stop-------...
[ -0.09090030938386917, -0.4641883671283722, 0.41780799627304077, 0.17245236039161682, 0.5522503852844238, 0.11805306375026703, 0.15849794447422028, 0.14820913970470428, -0.36833518743515015, -0.6406515836715698, -0.48009076714515686, 0.24831067025661469, -0.09389883279800415, 0.208336800336...
service (persistant). description-----Changes the description of a service. failure---------Changes the actions taken by a service upon failure. qc--------------Queries the configuration information for a service. qdescription----Queries the description for a service. qfailure---...
[ -0.31582847237586975, -0.10472294688224792, 0.4210372269153595, 0.014024202711880207, 0.292776882648468, 0.22029536962509155, 0.4120640754699707, -0.03357292711734772, -0.19803117215633392, -0.5555263161659241, -0.4516971707344055, 0.35633385181427, -0.2963504195213318, 0.607447624206543, ...
the registry). control---------Sends a control to a service. sdshow----------Displays a service's security descriptor. sdset-----------Sets a service's security descriptor. GetDisplayName--Gets the DisplayName for a service. GetKeyName------Gets the ServiceKeyName for a service. ...
[ -0.37887269258499146, -0.4094153642654419, 0.6326589584350586, 0.40231767296791077, 0.21483483910560608, 0.00249487510882318, 0.15895995497703552, -0.2534326910972595, -0.2829679548740387, -0.6202710270881653, -0.4147622287273407, 0.3807559311389923, -0.22968690097332, 0.2865139842033386, ...
boot------------(ok | bad) Indicates whether the last boot should be saved as the last-known-good boot configuration Lock------------Locks the Service Database QueryLock-------Queries the LockStatus for the SCManager Database EXAMPLE: sc start MyService ```
[ -0.02137184888124466, -0.2164568454027176, 0.18542204797267914, 0.1875486522912979, 0.3615826666355133, -0.3147883713245392, 0.4428688883781433, 0.0249648354947567, -0.28131070733070374, -0.5569658279418945, -0.22364284098148346, 0.29841724038124084, -0.28215575218200684, 0.287018865346908...
Lexical analyzers are quite easy to write when you have regexes. Today I wanted to write a simple general analyzer in Python, and came up with: ``` import re import sys class Token(object): """ A simple Token structure. Contains the token type, value and position. """ def __init__(self, type, val...
[ -0.42539820075035095, 0.18677407503128052, 0.09611397981643677, -0.10581674426794052, -0.30620089173316956, 0.5202656984329224, 0.13309814035892487, -0.19803845882415771, 0.33037370443344116, -0.631035327911377, 0.10815416276454926, 0.701875627040863, -0.32266828417778015, -0.3002061843872...