text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --> <configuration> <configSections> <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF...
[ 0.03584866225719452, 0.30749621987342834, 0.3183872401714325, 0.1538456827402115, 0.3499877154827118, 0.3630632162094116, 0.42027029395103455, -0.3028305172920227, -0.2795119881629944, -0.8478413224220276, -0.02009088546037674, 0.5497961640357971, -0.25638628005981445, 0.12659773230552673,...
allowDefinition="MachineToApplication"/> <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> ...
[ -0.22179274260997772, 0.19188791513442993, 0.6234011650085449, -0.008155213668942451, 0.12113291770219803, -0.12006492167711258, 0.8298413753509521, -0.794867992401123, -0.017614545300602913, -0.23632293939590454, -0.33472108840942383, 0.464287132024765, -0.3934522867202759, -0.13953834772...
symbols into the compiled page. Because this affects performance, set this value to true only during development. --> <compilation debug="true"> <assemblies> <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> <add ...
[ 0.07441363483667374, 0.16516642272472382, 0.3447030186653137, 0.03640098124742508, 0.0653381496667862, 0.46510931849479675, 0.5441690683364868, -0.3984205424785614, -0.032305359840393066, -0.689546525478363, -0.1456371545791626, 0.11408902704715729, -0.1575944572687149, -0.1970022618770599...
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> </assemblies> </compilation> <membership defaultProvider="dbSqlMembershipProvider...
[ -0.12824323773384094, 0.2928963303565979, 0.4385734498500824, 0.026157373562455177, 0.12320249527692795, -0.03124399296939373, 0.6122769713401794, -0.8743098378181458, -0.1039201095700264, -0.6024892926216125, -0.2600640654563904, 0.7010382413864136, -0.08675315231084824, 0.245283484458923...
name="dbSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> </providers> </roleManager> <authentication mode="Forms"> <forms loginUrl="Login.aspx" cookieless="UseCookies" protection="All" timeout="30" requireSSL...
[ -0.07690709829330444, -0.007873643189668655, 0.36810943484306335, -0.17713145911693573, 0.0031417356804013252, 0.05144157260656357, 0.5194551348686218, -0.5890300273895264, 0.021011624485254288, -0.38250356912612915, -0.28912660479545593, 0.4053414762020111, -0.09974538534879684, 0.1808000...
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> </controls> </pages> <httpHandlers> <remove verb="*" path="*.asmx"/> <add verb="*" path="*_AppService.axd" validate="false" type="Sys...
[ -0.11073365062475204, 0.17491623759269714, 0.5439711809158325, 0.07761096209287643, -0.050899386405944824, 0.3954648971557617, 0.47562578320503235, -0.624184250831604, -0.30141690373420715, -0.4181433916091919, -0.2857580780982971, 0.34482812881469727, -0.22581136226654053, -0.017580026760...
path="~/Admin"> <system.web> <authorization> <allow roles="Admin"/> <allow roles="System"/> <deny users="*"/> </authorization> </system.web> </location> <location path="~/Admin/System"> <system.web> <authorization> <allow roles="System"/> <deny u...
[ -0.17868462204933167, 0.0416429229080677, 0.2850542664527893, 0.05819519981741905, 0.10787200182676315, 0.17584024369716644, 0.2925521433353424, -0.5440818667411804, -0.06522861123085022, -0.8431496024131775, -0.20715275406837463, 0.16520527005195618, -0.17721332609653473, 0.22209185361862...
<authorization> <allow roles="Export"/> <deny users="*"/> </authorization> </system.web> </location> <location path="~/Field"> <system.web> <authorization> <allow roles="Field"/> <deny users="*"/> </authorization> </system.web> </location> <location ...
[ 0.014261155389249325, -0.03446846082806587, 0.3630475103855133, 0.0869821086525917, 0.047637514770030975, -0.12130489945411682, 0.29105427861213684, -0.5794600248336792, -0.27017664909362793, -0.48326677083969116, -0.4195038378238678, 0.2607007324695587, -0.1521419882774353, 0.067617535591...
roles="Admin"/> <allow roles="System"/> <allow roles="Export"/> <allow roles="Field"/> <deny users="?"/> </authorization> </system.web> </location> <location path="~/Login.aspx"> <system.web> <authorization> <allow users="*"/> <allow users="?"/> ...
[ -0.3156486451625824, -0.08088143914937973, 0.4551129639148712, -0.04661417379975319, 0.24026334285736084, 0.3651728630065918, 0.06095874682068825, -0.560737669467926, -0.23031920194625854, -0.7605825066566467, -0.34120064973831177, 0.34952738881111145, -0.4148148000240326, 0.22704905271530...
<authorization> <allow users="*"/> <allow users="?"/> </authorization> </system.web> </location> <location path="~/Includes"> <system.web> <authorization> <allow users="*"/> <allow users="?"/> </authorization> </system.web> </location> <location path...
[ -0.0011813829187303782, 0.013719476759433746, 0.2723168730735779, 0.14257031679153442, 0.39215975999832153, -0.1839607208967209, 0.16641652584075928, -0.4533035159111023, -0.3499888479709625, -0.560260534286499, -0.5282526612281799, 0.2329871654510498, -0.14908026158809662, 0.1379645764827...
<allow users="?"/> </authorization> </system.web> </location> <location path="~/Authentication_JSON_AppService.axd"> <system.web> <authorization> <allow users="*"/> <allow users="?"/> </authorization> </system.web> </location> <system.codedom> <compilers> ...
[ 0.011064180172979832, 0.2464132308959961, 0.3536754846572876, 0.12133055180311203, 0.09704863280057907, 0.09264744818210602, 0.2209872305393219, -0.35884761810302734, -0.46676361560821533, -0.5623331069946289, -0.4803556799888611, -0.11849501729011536, -0.3624679148197174, 0.24066628515720...
<providerOption name="WarnAsError" value="false"/> </compiler> <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"> <providerOption name="CompilerVersi...
[ 0.17114509642124176, -0.017520060762763023, 0.37506571412086487, -0.36499860882759094, -0.13959121704101562, 0.20584487915039062, 0.3874063789844513, -0.17105543613433838, -0.02177022583782673, -0.585340678691864, -0.1079033762216568, 0.5562776923179626, -0.3079439401626587, -0.34439978003...
necessary for previous version of IIS. --> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules> <remove name="ScriptModule"/> <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0,...
[ -0.3690428137779236, 0.07015761733055115, 0.3716883957386017, -0.024712415412068367, 0.1113240197300911, 0.05062612518668175, 0.43557262420654297, -0.8909235596656799, -0.17660363018512726, -0.5794557332992554, -0.11471831798553467, 0.45597565174102783, -0.11572030186653137, -0.19713680446...
path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.W...
[ 0.0064744362607598305, -0.17267242074012756, 0.7322890758514404, -0.08965130150318146, -0.053884733468294144, 0.2606511414051056, 0.4062565565109253, -0.6921693682670593, -0.23433518409729004, -0.6782953143119812, -0.08353029936552048, 0.49855947494506836, -0.3545110821723938, -0.016979215...
</assemblyBinding> </runtime> </configuration> ``` You need to enable access to the authentication service in your web.config ``` <system.webServices> <authenticationService enabled="true" requireSSL="true|false"/> </system.webServices> ``` Check out this video for more information. <http://www.asp.net/learn/...
[ 0.23804016411304474, 0.034094348549842834, 0.5262911319732666, -0.037021271884441376, -0.008731303736567497, -0.3284893035888672, 0.4151456654071808, -0.35027170181274414, -0.46338918805122375, -0.5805302262306213, -0.061170581728219986, 0.5836491584777832, 0.12205521017313004, -0.29210871...
I was wondering if there's an easy way with javascript (including JQuery, which we're using on the site) to put descriptive text in a text input until the user clicks it to type in their own text. For instance I'd like to put the word 'Search' in a text input (preferrably in a lighter color than real input) until the ...
[ 0.4404476583003998, 0.20612949132919312, 0.13285976648330688, 0.09886038303375244, -0.1178082823753357, -0.06710842251777649, -0.054707881063222885, 0.15566904842853546, -0.12746082246303558, -0.4834073781967163, -0.03367090970277786, 0.5001459121704102, 0.008628789335489273, 0.17068128287...
search for the word search. I was thinking of absolute positioning a <p> element with the word search over the input and hiding it when it (or the input) is clicked. What do you think? is this horribly misguided? I recently bumped into the [jQuery Form Example plugin](http://mucur.name/system/jquery_example/) that d...
[ 0.07706703245639801, -0.04044937342405319, 0.40892714262008667, 0.05529189854860306, -0.17788785696029663, -0.11298161745071411, 0.30704960227012634, 0.05714041739702225, -0.2562579810619354, -0.734780490398407, -0.26676711440086365, 0.5128147006034851, -0.313509076833725, 0.07870906591415...
There is guy here swearing that JAXB is the greatest thing since sliced bread. I am curious to see what Stack Overflow users think the use case is for JAXB and what makes it a good or a bad solution for that case. I'm a big fan of JAXB for manipulating XML. Basically, it provides a solution to this problem (I'm assumin...
[ 0.2910158336162567, 0.2315216362476349, -0.13634467124938965, 0.22153915464878082, -0.10827916860580444, -0.08567904680967331, -0.09911423176527023, 0.14392390847206116, -0.2576194107532501, -0.6721888184547424, 0.061108238995075226, 0.39177390933036804, -0.1652366816997528, 0.082865573465...
which your program can then manipulate. JAXB will take an XML Schema that you write and create a set of classes that correspond to that schema. The JAXB utilities will create the hierarchy of data structures for manipulating that XML. JAXB can then be used to read an XML file, and then create instances of the generat...
[ 0.27234336733818054, -0.02454880252480507, -0.06285543739795685, -0.08398173749446869, 0.09929770976305008, -0.029245801270008087, 0.12858846783638, -0.26304641366004944, 0.3228321373462677, -0.6817206144332886, -0.0920887365937233, 0.623165488243103, -0.6039681434631348, -0.40448257327079...
.jars.) The way it creates the class hierarchy is intuitive, and in my experience, does a decent job abstracting away the "XML" so that I can focus on "data". So to answer your question: I would expect that, for small XML files, JAXB might be overkill. It requires you to create and maintain an XML schema, and to use "...
[ 0.0913512259721756, 0.03617722913622856, -0.04987248033285141, 0.1203780397772789, 0.043823350220918655, -0.25114455819129944, 0.2035837471485138, 0.006113704759627581, 0.06437446177005768, -0.701616644859314, 0.0031643291004002094, 0.5355666279792786, -0.2792859673500061, -0.2029753774404...
have a rather complex XML schema, and lots of data contained within it, then JAXB is fantastic. In my project, I was converting large amounts of data between binary (which was consumed by a C program) and XML (so that humans could consume and modify that data). The resulting XML Schema was nontrivial (many levels of hi...
[ 0.08904115110635757, 0.143459290266037, -0.14077192544937134, 0.07149381190538406, -0.18118952214717865, -0.35717880725860596, -0.23689819872379303, 0.2474815547466278, 0.234495148062706, -0.43596014380455017, -0.04624875262379646, 0.440302312374115, -0.3458346724510193, -0.058434508740901...
I understand pointers and the rare need to use them in C# code. My question is: what is the reasoning behind having to explicitly state "unsafe" in a block of code. Additionally, why must a compiler option be changed to allow "unsafe" code? **Bottom Line:** What in the CLR (or language specs) makes it so we can't just...
[ 0.5333264470100403, 0.4690788686275482, -0.17826537787914276, 0.023616870865225792, -0.17776043713092804, -0.25042468309402466, 0.4388914108276367, -0.052842941135168076, -0.2425195574760437, -0.3214196264743805, 0.10855057090520859, 0.46540942788124084, -0.3158068358898163, 0.051213085651...
not THAT much extra) just to be able to use these features.* There's an interview with C# Creator Anders Hejlsberg that touches on the subject [here](http://www.windowsdevcenter.com/pub/a/oreilly/windows/news/hejlsberg_0800.html). Basically, exactly what @Marc Gravell said: typesafety first, unsafety by explicit declar...
[ 0.5031386017799377, -0.015365095809102058, -0.03404590114951134, 0.03238128498196602, -0.037895362824201584, -0.2047053575515747, 0.6150668263435364, -0.07018505036830902, -0.4139692783355713, -0.20223824679851532, -0.15860308706760406, 0.42159008979797363, -0.41435515880584717, 0.00988462...
is. It's just > a question of why must we do all the > extra work (ok, not THAT much extra) > just to be able to use these features.* As mentioned in the interview I linked, it was an explicit design decision. C# is essentially an evolution of Java and in Java, you don't have pointers at all. But the designers want...
[ 0.2891795337200165, -0.10524455457925797, 0.15861643850803375, -0.10540275275707245, -0.07389340549707413, -0.1450101137161255, 0.22634491324424744, -0.08658467233181, -0.23890815675258636, -0.7761754393577576, -0.009077681228518486, 0.5479254126548767, -0.4622584283351898, -0.194610387086...
explicit declaration. So the "extra work" is deliberate to force you to think about what you are doing before you do it. By being explicit, it forces you to at least consider: "Why am I doing this? Do I **really** need a pointer when a reference type will suffice?"
[ 0.5645991563796997, 0.1364678144454956, -0.1171540841460228, 0.1471010446548462, -0.5139263868331909, -0.24979190528392792, 0.35151079297065735, -0.25737208127975464, 0.18008631467819214, -0.5977811813354492, -0.24739867448806763, 0.5770228505134583, -0.24791570007801056, -0.23229937255382...
I have a Custom Control (Windows Form) that is a lookup text box. A property on the Control is Current Selection which is a Custom Object containing "Identifier", "Code" and "Description". This property is Databound using a BindingSource. Displaying the information works great. On the other hand regardless of whether ...
[ -0.019649868831038475, -0.08148769289255142, 0.6364008188247681, -0.20864592492580414, -0.01811370626091957, -0.07726098597049713, 0.2888777256011963, -0.45072439312934875, -0.021841730922460556, -0.6982857584953308, -0.18995456397533417, 0.45107701420783997, -0.4636540412902832, 0.5127252...
buildPlanComponentDataBindingSource.DataSource = buildPlanComponents; AssemblyNumber = itemNumber; } [Bindable(true)] [DefaultValue(null)] public ILookupSelection CurrentSelection { get { if (currentSelection == null) currentSelection = new LookupSelection {Code = txtLookup.Text...
[ -0.11944517493247986, -0.3756650388240814, 0.7835740447044373, -0.10033013671636581, 0.2478315830230713, 0.04248259961605072, 0.38221457600593567, -0.34815293550491333, 0.12436017394065857, -0.6140185594558716, -0.47358641028404236, 0.46513867378234863, -0.3892171382904053, -0.083811871707...
currentSelection = value; SetText(currentSelection, DisplayText); SetDescription(currentSelection, DisplayDescription); } } ``` Implementing INotifyPropertyChanged seems to be the solution! ``` #region IPropertyChanged public event PropertyChangedEventHandler PropertyChanged; protec...
[ -0.2780231237411499, -0.45052531361579895, 1.1345443725585938, 0.08626540750265121, 0.5619655251502991, -0.24482138454914093, 0.13743992149829865, -0.4425090253353119, -0.25460511445999146, -0.472565233707428, -0.5013884902000427, 0.4677078127861023, -0.06280268728733063, 0.461371898651123...
PropertyChanged(this, e); } } #endregion ```
[ -0.17114071547985077, -0.19417685270309448, 0.4969266653060913, -0.11111706495285034, 0.1765158474445343, -0.5695364475250244, 0.1465764343738556, 0.05508546531200409, 0.004377193748950958, -0.5604878067970276, -0.31586503982543945, 0.629974901676178, -0.2700759768486023, 0.328867524862289...
Question based on [MSDN example](https://web.archive.org/web/20170228051218/https://msdn.microsoft.com/en-us/library/aa288454(VS.71).aspx). Let's say we have some C# classes with HelpAttribute in standalone desktop application. Is it possible to enumerate all classes with such attribute? Does it make sense to recogniz...
[ 0.21063736081123352, 0.029650507494807243, 0.169125035405159, 0.1743999719619751, 0.0003297727380413562, 0.1757471263408661, 0.2625609338283539, -0.529452919960022, -0.040263429284095764, -0.5075830817222595, -0.3769284784793854, 0.6624598503112793, -0.08795813471078873, -0.121748864650726...
0) { yield return type; } } } ```
[ -0.10940953344106674, 0.1386405974626541, 0.19215090572834015, -0.4736190736293793, -0.05144697427749634, -0.11412037163972855, 0.2127935141324997, -0.3888997733592987, 0.39839091897010803, -0.13871842622756958, -0.5336598753929138, 0.6773443222045898, -0.33647939562797546, 0.4652396440505...
I am writing a SQL Function that will take in a decimal and return the base32 representation of that decimal. My problem is with the decimal to ascii conversion. I am allowed to run the following query and return an ascii character "SELECT CHAR( 65 )" which returns "A" However in my function when I am trying to bu...
[ 0.12954168021678925, 0.3214608430862427, 0.16924896836280823, -0.32004210352897644, -0.17948077619075775, 0.3599165380001068, 0.11169468611478806, -0.3594582974910736, -0.0391802079975605, -0.3380095064640045, 0.05189520865678787, 0.28654226660728455, -0.26886704564094543, 0.20498232543468...
AS CHAR(255) )" What is the proper way to cast a bigint to char and then concatenate that char to another? Thanks try using line-height
[ 0.1451685130596161, -0.02832135558128357, 0.4305177927017212, -0.037096090614795685, -0.3379640579223633, 0.15173469483852386, 0.6125842332839966, -0.33576563000679016, -0.1630248725414276, -0.07046885788440704, 0.07223930209875107, 0.4322105646133423, -0.02043548785150051, -0.117053940892...
I have been researching around trying to find the best way to begin developing an application which aims to analyse user's writing styles based on outgoing SMS messages. I have installed Symbian's SDK and Carbide and purchased a book on their specific style of C++ to get started. However, I was told to check out Open C...
[ 0.35702958703041077, 0.3477467894554138, 0.08553388714790344, -0.11416225135326385, -0.2741262912750244, 0.038790058344602585, 0.29373452067375183, 0.17344126105308533, 0.24933230876922607, -0.2993320822715759, -0.03483739495277405, 0.7126106023788452, -0.24766533076763153, 0.1038644239306...
I am worried about limitations of using Open C. For example, I need to be able to access native functions of the Symbian OS to capture keystrokes while in the SMS composer. I also need to be able to run my application in the background and have it load on system startup as not to interfere with user's normal activities...
[ 0.20589590072631836, -0.013596082106232643, 0.3242206871509552, 0.16917213797569275, -0.11484649032354355, -0.13232474029064178, 0.1749996840953827, 0.1699802279472351, -0.25213104486465454, -0.49506035447120667, -0.16111017763614655, 0.7891897559165955, -0.21709266304969788, -0.1841369867...
/edit: thanks for the help so far, however I haven't got any of the solutions to take the sample input and give the sample output. My description isn't the clearest, sorry. I have an array composed of binary data. What I want to do is determine how long each unbroken segment of 1s or 0s is. Say I have this data: ```...
[ 0.5106765031814575, 0.1435644030570984, 0.027077272534370422, 0.13992199301719666, -0.14444302022457123, 0.15457598865032196, 0.32046782970428467, 0.03555075451731682, -0.2966482937335968, -0.5832148790359497, 0.1049814373254776, 0.28178688883781433, -0.20047155022621155, 0.308760941028594...
each component. I'm not sure if that explanation makes sense. This is what I have; it doesn't work, I can see why, but I can't think of a good solution. ``` for(x=0;x<1000;x++){ if(binaryArray[x]==binaryArray[x+1]){ count++; if(count>=3){ nwArray[y]=1; y++; coun...
[ 0.12563984096050262, 0.0315551795065403, 0.5748612284660339, 0.01744476705789566, -0.05055851489305496, 0.10387806594371796, 0.5068630576133728, -0.5275111794471741, -0.09805081784725189, -0.2972036898136139, -0.06416074931621552, 0.47813645005226135, -0.5226022601127625, 0.427219152450561...
if(barcodeArray[x]){ nwArray[y]=0; } } } ``` Does this do it? ``` int count = 0; for (x=0; x<1000;x++) { if (binaryArray[x] != binaryArray[x+1]) { if (count < 3) nwArray[y]=0; else nwArray[y]=1; y++;
[ 0.2026081383228302, 0.20814105868339539, 0.5749820470809937, -0.43401890993118286, 0.05609174072742462, -0.09563285857439041, 0.5490276217460632, -0.48743799328804016, 0.03633175790309906, -0.21051669120788574, -0.4668143689632416, 0.3724426329135895, -0.6512497067451477, 0.294036298990249...
count = 0; } else count++; } ```
[ 0.06337515264749527, 0.13872545957565308, 0.38455966114997864, -0.46886390447616577, 0.012229576706886292, -0.44790786504745483, 0.3366588056087494, -0.4320310950279236, -0.12488928437232971, -0.02789301797747612, -0.3180476129055023, 0.6454423666000366, -0.5797661542892456, 0.254676610231...
I've been trying to compile a very simple test.clj in Clojure without any success. I have a [thread](http://groups.google.com/group/clojure/browse_thread/thread/1adda2c8053f304d#) on the [Clojure Google Group](http://groups.google.com/group/clojure) with several responses, but nothing has helped. To quickly summarize, ...
[ -0.0971107929944992, 0.4394381642341614, 0.2971947193145752, 0.02520090714097023, -0.17379410564899445, -0.22167448699474335, 0.5177538990974426, -0.12257421761751175, -0.1531689316034317, -0.5168346762657166, 0.15618309378623962, 0.20336443185806274, -0.3563530445098877, 0.012500770390033...
believe it is a classpath problem. I have tried running Clojure with all the standard commands given in the [Clojure documenation](http://clojure.org/repl_and_main) as well as the latest suggestion from the thread `java -classpath .;src;classes;clojure.jar clojure.main`. If it helps, my filesystem looks like this: ``...
[ 0.601402759552002, 0.5671445727348328, 0.2556232511997223, 0.226820707321167, -0.01028901245445013, -0.38351789116859436, 0.683807909488678, -0.29374122619628906, 0.268644243478775, -0.016461871564388275, 0.3966352343559265, 0.702745795249939, -0.2862530052661896, 0.021546289324760437, -...
that you're missing a right parenthesis in your *main*. Corrected version: ``` (ns test.test (:gen-class)) (defn -main [gre] (println (str "Hello " gre))) ```
[ -0.25891512632369995, 0.07403146475553513, 0.17093916237354279, -0.3405846655368805, 0.1899927854537964, 0.2763373553752899, 0.7131741046905518, 0.4762384295463562, -0.3577512502670288, -0.3142583668231964, -0.48988303542137146, 0.40501168370246887, 0.07557714730501175, 0.02821990288794040...
Using Active Directory / Windows Integrated authentication is a given. From a development standpoint, what is the best way to consume this? Is it through configuration? ``` <location path="SecurePage.aspx"> <system.web> <authorization> <allow roles="MyDomain\My Secure Users" /> <de...
[ 0.21582898497581482, 0.1225709617137909, 0.4431859254837036, 0.02362261898815632, 0.3336862623691559, -0.3288118541240692, 0.31319019198417664, -0.2095358818769455, -0.18130792677402496, -0.6908383369445801, -0.2985295057296753, 0.4604179263114929, -0.30474504828453064, -0.1128320842981338...
be done via a custom application? (I ask this because this is the status quo.) What is wrong with this idea? There is no reason you can't use both. Doing through the web.config is really simple and effective. Always operate at the role level though. You use the code version for scenarios where you have an use where the...
[ 0.6987622976303101, -0.37961867451667786, 0.2446647733449936, 0.16349509358406067, 0.1297866702079773, -0.14774702489376068, 0.28141623735427856, -0.06475459039211273, -0.2736121714115143, -0.9202790856361389, 0.1548319011926651, 0.990630030632019, -0.11841800808906555, -0.1865145117044448...
Asp.net built-in support and the extensibility points it supports are at the role level. If you really need to be full dynamic, then you need to do the check at the code level (the .config operates on roles). It is a matter of the extra effort it takes, so it depends more on the size of the system. For most cases stick...
[ 0.012669241055846214, -0.6660252213478088, 0.1669682413339615, 0.1566067934036255, -0.05961870774626732, -0.1807364821434021, 0.3912816345691681, -0.13677223026752472, -0.34691208600997925, -0.40481138229370117, -0.27929991483688354, 0.6380884051322937, -0.18367497622966766, -0.62911373376...
I have two threads, using C pthreads on linux. One of them writes data and the other is reading it. I'm using a variable to allow the read thread when is allowed to read and the write one when is allowed. So the mutex applies to this boolean variable called "newData". My question is: do I need to lock/unlock the mutex ...
[ 0.23284967243671417, 0.10298769176006317, -0.015675082802772522, -0.3004550635814667, -0.03047315403819084, -0.09723564237356186, 0.12466792017221451, -0.2715255618095398, -0.2517647445201874, -0.4885675311088562, 0.2809629440307617, 0.519976019859314, -0.647428572177887, 0.407590419054031...
); if (!newData) { pthread_mutex_unlock( &lattice_mutex ); uchar *lattice_pos = lattice; int i; for(i=0; i<size; i++) { *lattice_pos = rand()%CHAR_MAX; lattice_pos++; } pthread_mutex_lock( &lattice_mutex ); newData = TRUE; pthread_mutex_unlock( &lattice_mutex ); } else { ...
[ -0.056597765535116196, 0.055414244532585144, 0.343047171831131, -0.5121427178382874, 0.20111261308193207, 0.2827315926551819, 0.6949789524078369, -0.8345382213592529, -0.14011253416538239, -0.4953100085258484, -0.47042912244796753, 0.28591200709342957, -0.3230995535850525, 0.53909814357757...
= FALSE; pthread_mutex_unlock( &lattice_mutex ); } else { pthread_mutex_unlock( &lattice_mutex ); } ``` Second version, which works but I don't know if it is correct: Thread 1: ``` if (!newData) { uchar *lattice_pos = lattice; int i; for(i=0; i<size; i++) { *lattice_pos = rand()%CHAR_MAX...
[ -0.14829912781715393, -0.041500598192214966, 0.5039950013160706, -0.46473827958106995, 0.09089382737874985, 0.12187250703573227, 0.6338546276092529, -0.7694644927978516, -0.04835047572851181, -0.6634218692779541, -0.27987903356552124, 0.2846929132938385, -0.23436732590198517, 0.38135614991...
); newData = FALSE; pthread_mutex_unlock( &lattice_mutex ); } ``` This is derived from your first version - it is somewhat simpler. ### Thread 1: writer ``` pthread_mutex_lock(&lattice_mutex); if (!newData) { pthread_mutex_unlock(&lattice_mutex); // Omit? uchar *lattice_pos = lattice; int i; ...
[ 0.06542899459600449, 0.03822975233197212, 0.3043098747730255, -0.46012988686561584, 0.2989991009235382, 0.07891111075878143, 0.6114451885223389, -0.7207451462745667, -0.2961204946041107, -0.3813633918762207, -0.5171716809272766, 0.2724725902080536, -0.583504855632782, 0.5449893474578857, ...
renderUpdate(); pthread_mutex_lock(&lattice_mutex); // Omit? newData = FALSE; } pthread_mutex_unlock(&lattice_mutex); ``` It depends on exactly how the lattice information is meant to be used, but given the name of the mutex, I think you should keep it locked while you are modifying the lattice, hence the...
[ 0.24038857221603394, 0.18049654364585876, 0.2490425556898117, -0.46590691804885864, 0.2140374332666397, 0.10567774623632431, 0.7195789813995361, -0.32721683382987976, -0.22463703155517578, -0.3912154734134674, -0.4372965097427368, 0.39725780487060547, -0.38159942626953125, 0.21634159982204...
I´m reading a file in Python where each record is separated by an empty new line. If the file ends in two or more new lines, the last record is processed as expected, but if the file ends in a single new line it´s not processed. Here´s the code: ``` def fread(): record = False for line in open('somefile.txt'):...
[ 0.20732823014259338, -0.1463703066110611, 0.30320262908935547, -0.20469334721565247, 0.17518670856952667, -0.13422530889511108, 0.14662274718284607, -0.05228246748447418, -0.20060791075229645, -0.4232121407985687, -0.1751486361026764, 0.3163300156593323, -0.2552201747894287, 0.137238889932...
# do some processing with line d.process(line) if not line.strip() and record: yield d record = False for record in fread(): print(record) ``` In this data sample, everything works as expected ('---' is an empty line): > Record 1 > > data a > > data b > > dat...
[ 0.029023878276348114, -0.1530005931854248, 0.4858311712741852, -0.18946687877178192, 0.16459573805332184, 0.20220819115638733, 0.06489180773496628, -0.41612210869789124, -0.2007981389760971, -0.46416011452674866, -0.2340502142906189, 0.3539639413356781, -0.12024407833814621, 0.044519212096...
> > \n > > Record 2 > > data a > > data b > > data c > > \n > > \n But in this, the last record isn´t returned: > Record 1 > > data a > > data b > > data c > > \n > > Record 2 > > data a > > data b > > data c > > \n How can
[ -0.18137899041175842, -0.03527180477976799, 0.3380688428878784, 0.2733859717845917, 0.3853236436843872, -0.022678043693304062, 0.12880216538906097, -0.2919546365737915, -0.12826339900493622, -0.4858799874782562, -0.29872435331344604, 0.2781570553779602, 0.06665194034576416, 0.3437366783618...
I preserve the last new line from the file to get the last record? PS.: I´m using the term "preserve" as I couldn´t find a better name. Thanks. **Edit** The original code was a stripped version, just to illustrate the problem, but it seems that I stripped too much. Now I posted all function´s code. A little more ex...
[ 0.4990134835243225, 0.028241613879799843, 0.08638462424278259, 0.08061765134334564, -0.06242629885673523, 0.02631804160773754, 0.40925055742263794, 0.2839949131011963, -0.07135501503944397, -0.5869626402854919, -0.03829825669527054, 0.284278005361557, -0.016853099688887596, 0.1823098957538...
problem when the file ends in a single new line, the last record isn´t yielded. It seems that Python does not read the last line when it´s blank. The way it's written now probably doesn't work anyway; with `d = SomeObject()` inside your loop, a new SomeObject is being created for every line. Yet, if I understand correc...
[ 0.13122214376926422, -0.03450561314821243, 0.15628710389137268, -0.1440887600183487, 0.015119248069822788, 0.05318904295563698, 0.44946831464767456, 0.43622392416000366, -0.5319585800170898, -0.600345253944397, 0.001806331449188292, 0.46515098214149475, -0.44732189178466797, 0.038895152509...
if d is None: d = SomeObject() if line.strip(): # do some processing else: yield d d = None if d: yield d ``` This isn't great code, but it does work; that last object that misses
[ -0.04315794259309769, -0.1616659015417099, 0.3036513030529022, -0.23720590770244598, -0.06071373447775841, -0.2028479129076004, 0.5411727428436279, -0.1999160200357437, 0.0998644009232521, -0.5556755661964417, -0.33412447571754456, 0.48729556798934937, -0.1367354542016983, -0.0289627928286...
its empty line is yielded when the loop is done.
[ -0.3370497226715088, -0.35113468766212463, 0.5498000979423523, -0.05822890251874924, -0.03598804771900177, 0.10885915160179138, 0.15622301399707794, -0.09372638911008835, 0.023677470162510872, -0.28206390142440796, -0.4641679525375366, -0.04702810198068619, 0.05971661955118179, 0.080407023...
I am working on doing an aspx page to display code usage examples of a library. So basically, I'd like to for example have: Description Source Code Button Output (in a datagrid) Rather than copying and pasting the code from behind the button into the aspx page for display purposes, I was thinking it might be nice to ...
[ 0.7054151892662048, 0.09921092540025711, 0.18667703866958618, 0.24457646906375885, 0.1124458760023117, -0.3553544580936432, -0.13778282701969147, 0.18616585433483124, -0.33387041091918945, -0.6752166748046875, 0.15216277539730072, 0.691350519657135, -0.03589924797415733, -0.022768497467041...
someone makes a change and forgets to update the aspx page with the new code. I can think of 2 possible ways to do this: 1) (kludgy) - Deploy the code behind files, which can then be read at runtime and the proper function code can be parsed out and displayed. 2) (Preferred) Run time decompile the DLL (as reflector do...
[ 0.40074488520622253, -0.2029089480638504, 0.48812079429626465, 0.1873536854982376, -0.029322713613510132, -0.29001331329345703, 0.42169690132141113, -0.17791461944580078, -0.19806423783302307, -0.6104958057403564, -0.21385826170444489, 0.693124532699585, -0.3651815950870514, 0.088221438229...
an interpretation. A third option is to have your app work against your code repository to retrieve a specific file. You would then display that file's contents in the browser. It's similar to option 1 but you wouldn't be deploying the .cs files directly to the server.
[ 0.135018453001976, -0.3957330584526062, 0.141447052359581, 0.16467072069644928, -0.17068934440612793, -0.045439887791872025, 0.3048408627510071, -0.1940377652645111, -0.2557521164417267, -0.518090009689331, -0.22717738151550293, 0.2761788070201874, -0.42837539315223694, -0.1703569293022155...
What is the best way to go about doing this? I have found some `INSERT` statements, but they all seem to work just for inner-database copying. My rendition: ``` INSERT INTO [PROGRAM003].[dbo].[faq] ([id], [category], [question], [answer], [tags]) SELECT ([id], [category], [question], [answer], [tags]) FROM [SQL20...
[ 0.1142532154917717, 0.3208054006099701, 0.3194684684276581, 0.08866443485021591, -0.009717770852148533, -0.23886719346046448, 0.17742028832435608, -0.023451106622815132, -0.18325625360012054, -0.6882128715515137, -0.2893437445163727, 0.45474982261657715, -0.21348610520362854, -0.0361441113...
in SQL Server Management Studio -- right click on the database and choose Tasks-->Import or Tasks-->Export.
[ 0.0024377203080803156, -0.06372254341840744, -0.1993674784898758, 0.2396923005580902, 0.012344817630946636, -0.43376120924949646, -0.16347703337669373, 0.03774287551641464, 0.027761878445744514, -0.571614682674408, -0.10296402871608734, 0.7064120173454285, -0.19949834048748016, 0.006338060...
Have you noticed substantial differences in website rendering on IE 6 or IE 7 when run on Windows XP versus when run on Windows Vista? The rendering is the same as far as I've noticed, as long as you compare apples to apples (meaning: IE7 looks the same on both, but IE6 may not look the same as IE7). Vista might do som...
[ 0.350140243768692, 0.00866418145596981, 0.320931077003479, -0.043457891792058945, -0.31592145562171936, 0.08481723815202713, 0.4338432550430298, 0.4890064299106598, -0.34367769956588745, -0.8571656942367554, 0.010318123735487461, 0.8088456392288208, 0.03887972608208656, -0.1877534836530685...
I have an application that will reside within a business2business network that will communicate with our AS400 in our internal network environment. The firewall has been configured to allow the data request through to our AS400, but we are seeing a huge lag time in connection speed and response time. For example what t...
[ 0.21713809669017792, 0.061934806406497955, 0.3068518340587616, 0.1953892856836319, 0.315474271774292, 0.051692355424165726, 0.04070092737674713, -0.27055826783180237, -0.13324090838432312, -0.880961000919342, -0.143368661403656, 0.2601768374443054, 0.01369362324476242, -0.05240868031978607...
<summary> /// Generic function to retrieve data table from AS400 /// </summary> /// <param name="sql">SQL String</param> /// <returns></returns> private DataTable GetASIDataTable(string sql) { DataTable tbl = null; HttpContext.Current.Trace.Warn("GetASIDataTable(" + sql + ") BEGIN"); using (var cmd = ASI.G...
[ 0.01853271760046482, -0.267638236284256, 0.4435732662677765, -0.05909544974565506, -0.3557618260383606, 0.2573916018009186, 0.29371270537376404, -0.8621389865875244, -0.17191483080387115, -0.3929223418235779, -0.06548153609037399, 0.30463263392448425, -0.34332457184791565, 0.16009886562824...
return tbl; } ``` I am trying to brainstorm some ideas to consider as to why this is occurring. Have never used ASP.NET or AS400 in anger, but I have seen this kind of behaviour before and it usually indicated some kind of network problem, typically a reverse DNS lookup that is timing out. Assuming you have ping ena...
[ 0.43140777945518494, -0.06792909651994705, 0.16040478646755219, -0.008837088011205196, -0.06404798477888107, -0.14354056119918823, 0.3231877088546753, 0.16365334391593933, -0.15290479362010956, -0.977716863155365, -0.039113178849220276, 0.501997172832489, -0.6378896832466125, 0.05969358608...
What UI/GUI guidelines should be followed that subtly (or not so subtly) direct users so they don't shoot themselves in the foot. For instance, you might want to give power users the ability to "clean" a database of infrequently used records, but you don't want a new user to try out that option if they've just spent h...
[ 0.6140241026878357, -0.12556137144565582, 0.19324208796024323, 0.32989856600761414, -0.0013672754867002368, -0.5834550261497498, -0.13728627562522888, -0.30523020029067993, -0.18214446306228638, -0.43172892928123474, 0.1398114264011383, 0.6305702328681946, -0.2240351289510727, -0.191801011...
account for everything a user might do. * **What are some common techniques, tips, and tricks that prevent improper usage?** + ie, How should I design the interface to alert users that a function or action is to be taken with care * **What should I design in that limits risk and exposure if a poor action is taken?** ...
[ 0.6642419099807739, 0.08794787526130676, 0.1341024488210678, 0.02699991501867771, 0.0728558897972107, -0.03897443413734436, 0.9356987476348877, -0.060439493507146835, -0.2193344235420227, -0.3880327045917511, -0.26752588152885437, 0.6193521618843079, -0.2544650137424469, -0.172559812664985...
How to get started learning LINQ in C#.net. Get [LinqPad](http://www.linqpad.net/)! Its a great way to learn LINQ, supports LINQ to SQL, LINQ to Objects and LINQ to XML, and it comes preloaded with 200+ examples from the book [C# 3.0 in a Nutshell](http://www.albahari.com/nutshell/).
[ 0.261267751455307, -0.08699444681406021, 0.309808611869812, 0.2255881130695343, 0.1205877736210823, -0.5186833739280701, -0.09426570683717728, 0.06293728202581406, -0.03023531474173069, -0.5944066643714905, 0.06931354105472565, 0.24320006370544434, 0.1692659556865692, -0.4179864823818207, ...
I've change a c-style function to an objective-c method. As a method, how do i use it? ``` NSString* myfunc( int x ) is now: - (NSString *)myFuncWithParam:(int)x c code: myString = myfunc(x); // works obj-c code: myString = myFuncWithParam(x); // fails to compile. ``` From one of the answers:...
[ 0.24764271080493927, 0.17656651139259338, 0.48548486828804016, -0.3211490213871002, 0.16133667528629303, 0.1273772269487381, 0.07931366562843323, -0.22488032281398773, -0.15453891456127167, -0.7222189903259277, -0.09929263591766357, 0.5756322741508484, -0.30065324902534485, 0.1179068982601...
you out in learning Obj-C.
[ 0.03824596479535103, -0.022247744724154472, 0.11363743245601654, 0.05882761999964714, 0.04083431139588356, -0.27764055132865906, 0.1301797479391098, 0.17979301512241364, -0.5867658853530884, -0.5249441862106323, 0.2462703436613083, 0.19936083257198334, 0.4281226098537445, -0.00783648155629...
I have a DropDownList control that is populated via server side. I use a For Each [datarow] loop and create a New ListItem In the DataRow is a column with the ID 'Title'; this field may contain either <B> or <I> tags. (ex. "[Title] in <i>[Parent Title]</i>") The problem I am facing is when I [DropDownList].Controls....
[ 0.07795340567827225, -0.041354335844516754, 0.6672490835189819, 0.06946367025375366, -0.10719222575426102, 0.030111361294984818, 0.03232702612876892, -0.11086877435445786, -0.0878390222787857, -0.48054492473602295, -0.2691802978515625, 0.020095055922865868, -0.38012534379959106, 0.13774114...
code, and the ListItem controls are rendered as `option` elements. An `option` element does not support html formatting in the text. Some browsers may support some styling of the entire `option` text, but no browser supports styling of part of the text. If you need html formatting in the dropdown list, you either have...
[ 0.05011019855737686, -0.21866397559642792, 0.4497814178466797, 0.09793475270271301, 0.01771058887243271, -0.0010546724079176784, 0.4063679575920105, -0.26436543464660645, -0.12632998824119568, -0.37771376967430115, -0.6198362708091736, 0.4491579830646515, -0.3502146303653717, -0.3805107474...
I have a postfix server listening and receiving all emails received at mywebsite.com Now I want to show these postfix emails in a customized interface and that too for each user To be clear, all the users of mywebsite.com will be given mail addresses like someguy@mywebsite.com who receives email on my production machi...
[ 0.7221284508705139, 0.4246925413608551, 0.32252004742622375, -0.4546036124229431, -0.2002650648355484, 0.014428877271711826, 0.07193901389837265, 0.386574387550354, -0.3715929090976715, -0.8330004811286926, 0.18598565459251404, 0.25414058566093445, -0.047422248870134354, 0.4084639847278595...
I achieve this. To be precise this is my question, how do I convert a postfix mail to a python mail object(so that my system/website)understands it? Just to be clear I have written psuedo code to achieve what I want: ``` email_as_python_object = postfix_email_convertor(postfix_email) attachments_list = email_as_pyth...
[ 0.2110542356967926, 0.1884944587945938, 0.2775418758392334, -0.18231528997421265, -0.26626136898994446, 0.038154229521751404, 0.3855050504207611, -0.26511967182159424, -0.22398994863033295, -0.8655912280082703, -0.08467414230108261, 0.46564796566963196, -0.09207388758659363, -0.08479431271...
postfix understands a email received. ie.. how it automatically figures out different headers,attachments etc..). Please help me. First of all, Postfix mail routing rules can be very complex and your presumably preferred solution involves a lot of trickery in the wrong places. You do not want to accidentally show some ...
[ 0.07244300097227097, -0.02991962432861328, 0.28844642639160156, 0.3497408926486969, -0.032095007598400116, -0.008770255371928215, 0.27070486545562744, 0.12083151191473007, -0.319959819316864, -0.8250454664230347, -0.09946443140506744, 0.20861713588237762, -0.6035986542701721, 0.13171225786...
Your web application can then connect to the users mailbox and retreive the headers and bodys. If you only want to show the subject-line you can fetch those with a special IMAP command and very low overhead. The Python IMAP library has not the easiest to understand API though. I'll give it a shot (not checked!) with a...
[ 0.24646788835525513, -0.10068065673112869, 0.4517992436885834, -0.03559592366218567, -0.24853397905826569, -0.06187165901064873, 0.37744084000587463, -0.07673565298318863, -0.2800299823284149, -0.9965943694114685, -0.3245701193809509, 0.3746115267276764, -0.5881891846656799, 0.089955873787...
(SUBJECT)])') subject = msgdata[0][1].lstrip('Subject: ').strip() subjectlines.append(subject) ``` This logs into the IMAP server, selects the users mailbox, fetches all the message-ids then fetches (hopefully) only the subjectlines and appends the resulting data onto the *subjectlines* list. To fetch other ...
[ 0.2456205189228058, -0.27429258823394775, 1.0242106914520264, -0.06535841524600983, 0.1554231196641922, -0.2179311066865921, 0.32311180233955383, -0.03664757311344147, -0.4477746784687042, -0.9348543882369995, -0.4283156394958496, 0.23419441282749176, -0.1593579649925232, -0.01170856505632...
I am looking to write a small application that receives an SMS text message and records the results in an online database. I am most comfortable with php/mysql, but can use any suggestions you might have. I wrote something cute and small like this last summer, but I cheated using an actual SMS server and used Twitter t...
[ 0.5648177266120911, 0.15600700676441193, 0.33890557289123535, -0.18032917380332947, -0.043345313519239426, 0.14393900334835052, 0.2506314814090729, 0.25362876057624817, -0.0671439915895462, -0.6292228102684021, 0.5455430746078491, 0.09881787747144699, -0.06507053226232529, -0.0810725539922...
far as I know no free SMS receivers are available. You can use MySQL if you want, but I feel like you'll need a language that's more designed for writing a service than a web application (i.e. PHP)
[ 0.4421004354953766, 0.15342359244823456, 0.11688646674156189, 0.02780274860560894, 0.019857244566082954, 0.07039345055818558, 0.699507474899292, 0.5036920309066772, -0.23921766877174377, -0.4708077609539032, 0.007736234925687313, 0.49154821038246155, -0.29316389560699463, -0.33545699715614...
With `Android SDK 1.1 r1`, is there any way to change the `RatingBar` widget class's star image with my own? Is this possible at all? If so, then how? Thanks. The short answer is it looks like it's techincally possible. The easiest way would be to create your own RatingBar based on the RatingBar sourcecode (more eleg...
[ 0.49226346611976624, 0.044147707521915436, 0.5459828972816467, 0.09794659167528152, -0.03662538155913353, 0.0760316401720047, 0.06902790069580078, -0.08270907402038574, -0.04336371272802353, -0.6436047554016113, -0.06841106712818146, 0.7164792418479919, -0.24546317756175995, -0.19998668134...
developer.android.com. I suspect making your own rating bar is discouraged since it goes against the consistent look and feel of the OS.
[ 0.6871548295021057, 0.15852954983711243, 0.1753394454717636, -0.1193951889872551, -0.09312368929386139, -0.20306238532066345, 0.42332205176353455, 0.16099925339221954, 0.095245860517025, -0.7388039827346802, -0.04162323847413063, 0.45536357164382935, -0.17631962895393372, 0.390217334032058...
I know what the advantages are and I use fake data when I am working with more complex systems. What if I am developing something simple and I can easily set up my environment in a real database and the data being accessed is so small that the access time is not a factor, and I am only running a few tests. Is it sti...
[ 0.8347039818763733, 0.23208589851856232, -0.16977839171886444, 0.5049000382423401, 0.3908677101135254, -0.05925147235393524, 0.23287677764892578, 0.11081806570291519, -0.2222115695476532, -0.32026728987693787, 0.46086809039115906, 0.5011367201805115, -0.28480809926986694, 0.151250198483467...
but using a real live DBMS and the same schema as the real database. The reasons to use fake data instead of a real DB are: 1. Speed. If your tests are slow you aren't going to run them. Mocking the DB can make your tests run much faster than they otherwise might. 2. Control. Your tests need to be the sole source of y...
[ 0.6222292184829712, 0.0631600171327591, -0.05498681962490082, 0.6090052723884583, -0.016707157716155052, -0.33572015166282654, 0.6149297952651978, -0.22961127758026123, 0.11939125508069992, -0.48594388365745544, 0.061793770641088486, 0.5164965391159058, -0.4105234742164612, 0.2181487679481...
want our tests to be runnable in any order at all. The input of one test should not depend on the output of another. When your tests control the test data, the tests can be independent of each other. 4. Environment Independence. Your tests should be runnable in any environment. You should be able to run them while on t...
[ 0.603722333908081, 0.07452986389398575, -0.13250964879989624, 0.5820287466049194, 0.22987806797027588, -0.3501425087451935, 0.7057092785835266, -0.18926914036273956, -0.13540439307689667, -0.4541172981262207, -0.1527964472770691, 0.5939836502075195, -0.4397587478160858, -0.0035736579447984...
real DB (like MySQL) you can achieve the above goals, then by all means use the DB. I do. But make no mistake, as your application grows you will eventually be faced with the need to mock out the DB. That's OK, do it when you need to. YAGNI. Just make sure you DO do it WHEN you need to. If you let it go, you'll pay.
[ 0.7338376641273499, 0.055646371096372604, 0.05907605588436127, 0.14374732971191406, -0.7004781365394592, -0.1169632151722908, 0.5528516173362732, 0.23999197781085968, 0.3094494640827179, -0.47010186314582825, 0.1366949826478958, 0.910034716129303, -0.09534589946269989, -0.22117926180362701...
Is there a windows command to copy or download files from a http url to the filesystem? I've tried with copy, xcopy and robocopy and they dont seem to support http urls. You can use a powershell script to accomplish this. Get-Web <http://www.msn.com/> -toFile www.msn.com.html ``` function Get-Web($url, [switch...
[ 0.25696247816085815, 0.06183869019150734, 0.6186901330947876, 0.304434597492218, 0.17057020962238312, -0.13183462619781494, 0.18104635179042816, 0.2143523097038269, -0.4099920094013214, -0.7157101035118103, -0.2514432370662689, 0.7125405073165894, -0.3011053204536438, 0.15732990205287933, ...
# from the web. #.Parameter self # Uses the default credentials when downloading that page (for downloading intranet pages) #.Parameter credential # The credentials to use to download the web data #.Parameter url # The page to download (e.g. www.msn.com) #.Parameter toFile ...
[ 0.10954803973436356, -0.08101609349250793, 0.7390068173408508, 0.15716858208179474, -0.14764419198036194, 0.06561935693025589, -0.01938660629093647, 0.18971753120422363, -0.37008312344551086, -0.6607646942138672, -0.06839298456907272, 0.6762885451316833, 0.031257688999176025, 0.16101361811...
#.Parameter bytes # Download the data as bytes #.Example # # Downloads www.live.com and outputs it as a string # Get-Web http://www.live.com/ #.Example # # Downloads www.live.com and saves it to a file # Get-Web http://wwww.msn.com/ -toFile www.msn.com.html $webclient =...
[ 0.5214641094207764, -0.1407090574502945, 0.7922293543815613, 0.2004377841949463, 0.1703839749097824, 0.06949706375598907, 0.02586088515818119, -0.1904735267162323, -0.48973649740219116, -0.6493960022926331, -0.37316057085990906, 0.6426942944526672, -0.18402089178562164, 0.10463263094425201...
} if ($self) { $webClient.UseDefaultCredentials = $true } if ($toFile) { if (-not "$toFile".Contains(":")) { $toFile = Join-Path $pwd $toFile } $webClient.DownloadFile($url, $toFile) } else { if ($bytes) {
[ -0.007456536870449781, -0.15056273341178894, 0.5811999440193176, -0.12175378203392029, 0.27402162551879883, -0.08649889379739761, 0.29402053356170654, 0.036560505628585815, -0.19677110016345978, -0.519494891166687, -0.2029803842306137, 0.6970149874687195, -0.44815123081207275, 0.1551363319...
$webClient.DownloadData($url) } else { $webClient.DownloadString($url) } } } ``` source <http://blogs.msdn.com/mediaandmicrocode/archive/2008/12/01/microcode-powershell-scripting-tricks-scripting-the-web-part-1-get-web.aspx>
[ 0.04324421286582947, -0.07129266858100891, 0.3264975845813751, 0.033653005957603455, 0.00862137321382761, -0.45754486322402954, 0.3948535621166229, 0.23516209423542023, -0.21855473518371582, -0.5869118571281433, -0.36121562123298645, 0.3853440284729004, -0.5672063827514648, 0.2276907712221...
I'm developing a **Windows Mobile** app (**Compact Framework 2.0 SP1**) and this code it's generating me an error: ``` public Image Imagen { get { return imagen; }
[ 0.1388147473335266, 0.28508445620536804, 0.4011371433734894, -0.050209131091833115, 0.07457350194454193, 0.09884434193372726, 0.4359494745731354, 0.1051572859287262, -0.040127430111169815, -0.8986619114875793, -0.05278436839580536, 0.7639980912208557, -0.4475216269493103, -0.02977716177701...
set { imagen = value; this.Invalidate(); } } ``` The code is called from a new thread. I've tried to solve using \*\*InvokeRequired: ``` public Image Imagen {
[ 0.45554956793785095, 0.13055630028247833, 0.5629976391792297, -0.21681666374206543, -0.10132215172052383, -0.15656009316444397, 0.1620880663394928, -0.026706740260124207, -0.10764512419700623, -0.8568387031555176, -0.12547612190246582, 0.8236404061317444, -0.6730155348777771, 0.23823107779...
get { return imagen; } set { imagen = value;
[ -0.41681525111198425, -0.28468599915504456, 0.21797765791416168, -0.17260541021823883, -0.019249944016337395, 0.12955091893672943, 0.18368689715862274, -0.16159826517105103, 0.1670733243227005, -0.6177079081535339, -0.3677404224872589, 0.8425963521003723, -0.2839753329753876, -0.3178397715...
if (this.InvokeRequired) this.Invoke(this.Invalidate); else this.Invalidate(); } } ``` But the line **this.Invoke(this.Invalidate);** doesn't compile. How can I solve the problem? The first error
[ -0.1704474836587906, 0.3562067747116089, 0.269832968711853, -0.1677345633506775, 0.1154223158955574, -0.03564075008034706, 0.7290422916412354, -0.22265048325061798, -0.008991103619337082, -0.5898885130882263, -0.20938152074813843, 0.49461057782173157, -0.3067166805267334, 0.367895811796188...
is that you can interact with controls created on another thread. Thank you! Try this. Long winded version of why this is necessary. Instead of taking a specific Delegate type as a parameter, the Invoke method takes the type System.Delegate. This type does not providing typing for a strongly typed signature. It's the...
[ 0.3536221385002136, -0.058034926652908325, 0.05395502969622612, 0.342531681060791, -0.13736018538475037, -0.3983655273914337, 0.15790827572345734, -0.23669874668121338, -0.12666592001914978, -0.539875328540802, 0.27846550941467285, 0.4109802544116974, -0.4539278447628021, 0.336677283048629...
it won't generate anonymous delegate types. This is why you need a specific delegate type like MethodInvoker in order to call the function. **EDIT** Manually defined MethodInvoker since it doesn't exist in the Compact Framework ``` public delegate void MethodInvoker(); public Image Imagen { get { get return ima...
[ 0.0339699313044548, -0.3845875859260559, 0.34464722871780396, 0.1320429891347885, -0.09076239168643951, -0.28345152735710144, 0.29625022411346436, -0.16657035052776337, -0.07155194133520126, -0.6040267944335938, -0.16332405805587769, 0.5889449715614319, -0.5231967568397522, 0.2730014622211...
this.Invalidate(); } } ```
[ -0.009648535400629044, 0.4793308973312378, 0.19581034779548645, -0.25587108731269836, 0.3171030879020691, -0.5165718197822571, 0.35032880306243896, 0.1783715933561325, 0.046159226447343826, -0.39776939153671265, -0.46319013833999634, 0.5830064415931702, -0.4874284863471985, 0.5519255995750...
I started my website, like stackoverflow, with a little technical debt that I'm trying to pay off. Being a contract developer, I've been in many places and see many different methods of achieving this result, but the way I'm going is.. Presentation (web) Business Layer (old fashioned entity classes and BL layer) Dat...
[ 0.42718708515167236, 0.16651970148086548, 0.4918637275695801, 0.02717204950749874, 0.07835463434457779, -0.08542776107788086, -0.21133869886398315, -0.019404353573918343, -0.14549782872200012, -0.5223680734634399, 0.06643182784318924, 0.4142596125602722, -0.15880908071994781, 0.25106489658...
or Entity) I really want all my churning of turning Data into Entities to occur within the BL -- thus the Business Logic. However, I want the Entity to be able to access the BL if need be -- and thus remove the Entity's reference to the DL. So... Is is "wrong" to have the BL and Entity objects within the same namesp...
[ 0.09947025775909424, 0.35863983631134033, 0.12108727544546127, 0.08890750259160995, -0.11178737878799438, -0.12739010155200958, -0.02565784379839897, 0.029269417747855186, -0.1338452845811844, -0.29075273871421814, -0.21505393087863922, 0.4732171595096588, -0.3690297603607178, 0.4539453089...