text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
Flex 2 Bedrooms </option> <option value="2"> 2 Bedrooms </option> <option value="2.5">
[ 0.2825344204902649, -0.781187117099762, 0.40931662917137146, -0.0702657476067543, 0.38461026549339294, 0.21613700687885284, -0.05677875503897667, -0.4080907702445984, -0.5665940046310425, -1.0569432973861694, -0.34326446056365967, 0.4845306873321533, 0.2607676386833191, -0.0974406301975250...
Flex 3 Bedrooms </option> <option value="3"> 3 Bedrooms </option> </select>
[ 0.31805139780044556, -0.5711954832077026, 0.528556764125824, -0.13813956081867218, 0.25585827231407166, 0.4133334457874298, 0.10882575809955597, -0.5295161604881287, -0.49877989292144775, -0.9362965822219849, -0.3396585285663605, 0.39601409435272217, 0.09308872371912003, -0.027659280225634...
</fieldset> </form> </body> </html> ``` You said "I am using TredoSoft MultipleIEs " I am having the EXACT same problem, and I am using Internet Explorer Collection to run multiple versions on one pc. Therefore, I conclude the problem is with Multiple IEs on a single machine!! Hope this helps people, for your re...
[ 0.45067334175109863, -0.10295519232749939, 0.13706551492214203, 0.08901993930339813, -0.16637608408927917, -0.18794739246368408, 0.18523335456848145, 0.03509112074971199, -0.2140362709760666, -1.0761914253234863, 0.07360091805458069, 0.6424299478530884, -0.45908278226852417, 0.089008107781...
How can I allow the users of my program to type in a value and have it auto-complete, however, I also what to prevent them from entering new data because it would cause the data to be unfindable (unless you had direct access to the database). Does anyone know how to do this? The reasoning behind not using just a drop...
[ 0.1385779082775116, -0.17069962620735168, -0.07801579684019089, 0.2506440579891205, 0.03727155923843384, -0.13459952175617218, 0.21325638890266418, -0.1263774186372757, 0.05786944180727005, -0.4554193913936615, -0.0010532697197049856, 0.44260886311531067, -0.25233858823776245, -0.227672517...
comboboxes I am going for. Kudos to BFree for the help, but this is the solution I was looking for. The ComboBox is using a DataSet as it's source so it's not a custom source. ``` protected virtual void comboBoxAutoComplete_KeyPress(object sender, KeyPressEventArgs e) { if (Char.IsControl(e.KeyChar)) { ...
[ 0.2163083404302597, -0.3597896695137024, 0.3851553201675415, -0.00087505899136886, 0.3614789545536041, 0.22507129609584808, 0.34677213430404663, -0.2710205614566803, -0.0035097573418170214, -0.6446838974952698, -0.32587823271751404, 0.5694075226783752, -0.5422675013542175, 0.20604673027992...
ComboBox box = ((ComboBox)sender); //must get the selected portion only. Otherwise, we append the e.KeyChar to the AutoSuggested value (i.e. we'd never get anywhere) string nonSelected = box.Text.Substring(0, box.Text.Length - box.SelectionLength); string text = nonSelected + e.KeyChar; ...
[ 0.09590917080640793, -0.46794819831848145, 0.6071978807449341, -0.15992848575115204, 0.41187888383865356, 0.04094412550330162, 0.4666002094745636, -0.6379813551902771, 0.09170736372470856, -0.3383760154247284, -0.5485678315162659, 0.4859853684902191, -0.4458408057689667, 0.2914879918098449...
if (((DataRowView)box.Items[i])[box.DisplayMember].ToString().StartsWith(text, true, null)) { matched = true; break; } } //toggle the matched bool because if we set handled to true, it precent's input, and we don't want to prevent //input if it's
[ 0.09628717601299286, -0.3436186909675598, 0.5214727520942688, -0.046335991472005844, 0.09931524842977524, -0.1207926943898201, 0.2718174159526825, -0.5003697872161865, 0.12477738410234451, -0.25177013874053955, -0.11928291618824005, 0.6841962337493896, -0.27893540263175964, 0.0267167277634...
matched. e.Handled = !matched; } ```
[ 0.09515976905822754, -0.0708046481013298, 0.12386607378721237, 0.03719313442707062, -0.05051729828119278, -0.17803068459033966, 0.07119347900152206, -0.34934142231941223, -0.1381981521844864, -0.3385019898414612, 0.15741035342216492, 0.7008008360862732, -0.31979498267173767, 0.166135847568...
I'm new to grails. I'd like to give it a whirl by implementing a new feature or two into an existing Java EE application. The current Java EE app is a fairly standard Spring MVC/Hibernate app running on Tomcat. Looking through the documentation, it looks like I should be able to leverage all of the current business log...
[ 0.3782663345336914, -0.008781444281339645, 0.03792877122759819, 0.12057085335254669, -0.1558004915714264, 0.03015615977346897, 0.3901575207710266, 0.4066073000431061, -0.20380444824695587, -0.2986393868923187, 0.22740086913108826, 0.5940387845039368, -0.025129681453108788, 0.01914969272911...
Whether or not those features go live would depend on my experience with Grails and if I think it's worthwhile using it going forward. The goal would to either: 1. Decide Grails isn't for me (and not deploy grails). 2. Decide it is for me, and all future development on this app would be in Grails with a full eventual ...
[ 0.4526197612285614, -0.1712082475423813, 0.24150294065475464, 0.05983932316303253, 0.0714237242937088, 0.08726534247398376, 0.4417625069618225, 0.10123642534017563, -0.20117568969726562, -0.44878146052360535, -0.17152322828769684, 0.6773296594619751, 0.15079279243946075, -0.247391417622566...
musings on how I might approach doing this.. Since GSPs are not analogous to JSPs and since Controllers in Java are statically typed, whereas Grails controllers have magic methods wired onto them, I would probably want to re-write those again in Grails from scratch since their transferability isn't obvious - the logi...
[ 0.380954384803772, -0.0820191353559494, 0.17720763385295868, 0.5361208915710449, -0.0842205286026001, -0.04714184254407883, 0.08051592111587524, -0.1979687660932541, -0.3410768508911133, -0.346123605966568, 0.07232274115085602, 0.3518008887767792, -0.0697571262717247, -0.10817209631204605,...
with corresponding Controller/GSP and Domains. That should give you some feel of what stuff you need to get off the ground for the port. Your biggest struggle, from people who I have heard of doing this, might well be trying to re-use your existing hibernate stuff in Grails. Just my tuppence, not so much a whole an...
[ 0.5563269257545471, 0.011276090517640114, 0.3713091015815735, 0.26560720801353455, -0.25115084648132324, 0.037328947335481644, -0.037379324436187744, 0.25173789262771606, -0.328287810087204, -0.1743483543395996, -0.06893431395292282, 0.45398396253585815, -0.001712342374958098, 0.0386306121...
I edited the question after David Hanak's answer (thanks btw!). He helped with the syntax, but it appears that I wasn't using the right function to begin with. Basically what I want is to let the compiler ignore multiple definitions of a certain label and just use the first. In order to do that, I thought I'd just do ...
[ 0.013711576350033283, 0.33281540870666504, 0.006691248156130314, 0.05133621394634247, -0.0031479038298130035, -0.0660102367401123, 0.16088348627090454, -0.2438015341758728, -0.021874379366636276, -0.5182241797447205, -0.19589009881019592, 0.24720901250839233, -0.486272931098938, 0.03384847...
the label is defined or not). I think the \@ifundefined (and the suggested \ifundefined) only work for commands and not for labels, but I don't really know much about LaTeX. Any help with this would be great! Thanks! Much later update: I marked David Hanak's response as the correct answer to my question, but it isn't ...
[ 0.24145936965942383, 0.06428705900907516, 0.0969502329826355, -0.04985862970352173, -0.17274686694145203, -0.1371413916349411, 0.3989720046520233, -0.26106852293014526, 0.013730849139392376, -0.3869641125202179, -0.29194530844688416, 0.4961004853248596, -0.33989083766937256, 0.261435866355...
file). If two \mylabels with the same name are defined in the same run, the second will still be defined. Also, even if you manage to work around this, it will make LaTeX use the first label that you defined chronologically, and not necessarily the first in the text. Anyway, below is my quick and dirty solution. It use...
[ 0.2162456065416336, -0.12262416630983353, 0.4290163516998291, 0.25782352685928345, 0.16558271646499634, -0.1541118621826172, 0.2109365165233612, -0.29566410183906555, -0.08037279546260834, -0.5223257541656494, 0.0023484763223677874, 0.4997144341468811, -0.2869325876235962, 0.29335722327232...
\label{#1}% \addtocounter{#1}{1}% }% } ``` I'm not sure if it is necessary to initialize the counter to 0, as it seems like a likely default, but I couldn't find if that was the case, so I'm just being safe. Also, this uses the 'ifthen' package, which I'm not sure is necessary. `@` is a special character ...
[ 0.08291247487068176, 0.09420736134052277, 0.750796377658844, -0.21446336805820465, -0.12943021953105927, 0.05286619812250137, 0.5299729704856873, -0.14120657742023468, 0.12545736134052277, -0.44822993874549866, -0.4474603831768036, 0.3663576543331146, -0.25790297985076904, 0.13891436159610...
You might also want to take a look at the "plain" [`\ifundefined` LaTeX macro](http://www.tug.org/docs/html/eplain/_005cifundefined.html). **Update 2** Okay, I did some research to figure out the answer to the *real* problem. The thing is that defining a label does not create a macro by that name; it prepends a "r@" ...
[ 0.18658903241157532, -0.3393281102180481, 0.5888017416000366, -0.16725113987922668, 0.014257554896175861, -0.16164641082286835, -0.014178539626300335, 0.17573975026607513, -0.35253873467445374, -0.7597078084945679, -0.2038360983133316, 0.5202024579048157, -0.24942557513713837, 0.2924908697...
I'm just starting to use Django for a personal project. What are the pros and cons of using the built-in Admin application versus integrating my administrative functions into the app itself (by checking request.user.is\_staff)? This is a community wiki because it could be considered a poll. It really depends on the p...
[ 0.810324490070343, 0.36099377274513245, 0.06855028122663498, -0.018805570900440216, -0.16772004961967468, -0.2642628252506256, 0.18125449120998383, 0.18466606736183167, -0.1508978307247162, -0.5671977400779724, 0.4361817538738251, 0.3624480366706848, -0.08861901611089706, -0.14677000045776...
guess you should see it like this: Using django admin: save time writing it, lose time using it. Rolling your own admin: lose time writing it, save time using it.
[ 0.20310644805431366, 0.3294994831085205, -0.023107465356588364, 0.18599781394004822, 0.10632786154747009, -0.25685903429985046, -0.333741158246994, 0.5399984121322632, -0.29701536893844604, -0.46799808740615845, 0.33748292922973633, 0.6245762705802917, 0.013204207643866539, -0.236299946904...
**Note** I'm running windows, the path just looks like it's linus because I typed it manually and thats how I think of paths. I'm trying to run a java class That I have built to diagnose my connection to a databse, it references the oracle jdbc adaptor. When I just run it without a class path: ``` %> java DBDiagnost...
[ 0.06397349387407303, 0.18581144511699677, 0.24253718554973602, -0.03737478330731392, 0.008363795466721058, -0.07686881721019745, 0.46151092648506165, -0.0929088294506073, -0.3338216543197632, -0.7927150130271912, 0.08096594363451004, 0.4826708137989044, -0.4902937114238739, 0.2281868755817...
at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.Class.forName0(Native Method) ...
[ -0.3144168257713318, -0.028427831828594208, 0.2991582155227661, -0.055505797266960144, -0.3410831391811371, 0.4892452657222748, 0.4454086720943451, -0.24879929423332214, -0.2574867904186249, -0.8550707697868347, -0.207378089427948, 0.27963313460350037, -0.4354175925254822, 0.13954007625579...
at java.sql.DriverManager.getConnection(DriverManager.java:207) at DBDiagnostics.GetConnection(DBDiagnostics.java:55) at DBDiagnostics.runDiagnostic(DBDiagnostics.java:29) at DBDiagnostics.main(DBDiagnostics.java:18) Veryfying connectivity to Database Exception in thread "main" java.lang.NullPoi...
[ -0.09428322315216064, 0.23913894593715668, 0.26940280199050903, 0.17183515429496765, -0.007054494693875313, 0.0843968316912651, 0.6890280246734619, -0.1726423054933548, 0.08831216394901276, -0.6767972111701965, -0.061334192752838135, 0.49661487340927124, -0.2512049973011017, 0.051212210208...
tried adding it to the classpath like this: ``` %> java -classpath .:ojdbc6.jar DBDiagnostics <connectionString> ``` The VM just says it cant find the class: ``` Exception in thread "main" java.lang.NoClassDefFoundError: DBDiagnostics Caused by: java.lang.ClassNotFoundException: DBDiagnostics at java.net.U...
[ -0.09548833966255188, -0.011284589767456055, 0.30449455976486206, -0.09083429723978043, -0.18711227178573608, 0.03375852108001709, 0.45696526765823364, -0.22996968030929565, -0.30246809124946594, -0.6379339098930359, -0.0360247939825058, 0.3470471501350403, -0.38646695017814636, 0.43934035...
Program will exit. ``` I know this is a question I should just know the answer to, but what am I doing wrong? Replace the colon with a semicolon: ``` java -classpath .;ojdbc6.jar DBDiagnostics <connectionString> ```
[ -0.18944406509399414, 0.2467624843120575, 0.22684165835380554, 0.0004830575780943036, 0.13485115766525269, -0.06788139790296555, 0.43875017762184143, 0.10951603949069977, -0.08872498571872711, -0.6490734219551086, -0.3534032702445984, 0.35460081696510315, -0.4243455231189728, 0.43441909551...
I have been struggling with the best way to make sure that the certain XML configuration files stay synchronized between multiple servers in a Web Farm. I am not necessarily concerned about the Web.Config, as much as I am concerned about some of the other configuration files that are present in the application. For ex...
[ 0.7735364437103271, -0.031135238707065582, 0.14251720905303955, 0.10452466458082199, 0.19283826649188995, -0.055439915508031845, 0.014676986262202263, 0.021618487313389778, -0.3197641670703888, -0.6820273399353027, 0.012589063495397568, 0.5951966643333435, -0.20872081816196442, -0.06828708...
replication, or equivalent. This requires that work only ever be done on a particular node of the farm. (Push to application.) * Configuration Server. All external configurations and their tools are stored on a physical instance of IIS. The application will retrieve these configuration files on application start and pe...
[ 0.5302898287773132, -0.2493903934955597, 0.11654365807771683, 0.20374323427677155, -0.016185877844691277, 0.2347414791584015, 0.260186105966568, -0.2326071560382843, -0.31758904457092285, -0.8186346292495728, 0.15447597205638885, 0.33258888125419617, -0.04544971510767937, 0.205902040004730...
best solution is, although I think having the application poll for changes might be the cleanest approach. Still, the question is which way would you best consider this to be accomplished? I have web cluster running Windows Server 2008. To keep everything synchronized I'm using a DFS share that is on each of the member...
[ 0.14343728125095367, -0.04918760806322098, 0.3026546537876129, 0.09628915786743164, -0.04070160537958145, -0.26545050740242004, 0.2563433051109314, -0.033278901129961014, -0.3929002583026886, -0.8288618922233582, 0.24636486172676086, 0.507805585861206, -0.20170265436172485, 0.2215915322303...
Is it possible to explicitly set the id of a domain object in Grails' Bootstrap.groovy (or anywhere, for that matter)? I've tried the following: ``` new Foo(id: 1234, name: "My Foo").save() ``` and: ``` def foo = new Foo() foo.id = 1234 foo.name = "My Foo" foo.save() ``` But in both cases, when I print out the r...
[ 0.27170851826667786, 0.18189941346645355, 0.5123375654220581, -0.14329789578914642, 0.00044321425957605243, -0.3250056207180023, 0.4365106225013733, -0.08373019099235535, -0.2111520767211914, -0.3751586377620697, 0.03335673362016678, 0.5424957275390625, -0.33594611287117004, -0.19370700418...
a way to set the id without changing my domain's id generation method. This is primarily for testing: I'd like to be able to set certain things to known id values either in my test bootstrap or `setUp()`, but still be able to use auto\_increment or a sequence in production. Yes, with manually GORM mapping: ``` class F...
[ 0.3641432523727417, -0.2073594480752945, 0.1088421642780304, 0.3246399462223053, 0.1471661478281021, -0.1615837812423706, 0.027283264324069023, -0.3156812787055969, -0.06594151258468628, -0.7019063234329224, 0.030226271599531174, 0.5262248516082764, -0.20682936906814575, -0.063313394784927...
I've got a query that returns the cost of wages for a given member of staff ``` SELECT totalhours * staffbaserate AS TotalCost FROM newrotaRaw WHERE staffref = @staffref ``` However I need to do an additional bit of maths if the returned value is > 105. The bit of maths I need to do is that if the va...
[ 0.2880123555660248, 0.3305978775024414, 0.200934499502182, -0.20856867730617523, -0.07881883531808853, 0.8713194131851196, -0.037489574402570724, -0.39804524183273315, -0.11098862439393997, -0.39950087666511536, 0.09513773024082184, 0.31425362825393677, 0.03674759715795517, 0.3553350865840...
the query should return 90 David Smith's Cost is 140 therefore the query should return 157.92 I'm sure there's some way to use replace to get it to do what I want but I've only ever used replace for exact matches, in this case the replace is conditional on the value. Any help would be much appreciated! Try something...
[ 0.11555725336074829, 0.12142768502235413, 0.5973793268203735, -0.22420918941497803, -0.1168929934501648, 0.3829715847969055, 0.11046014726161957, -0.5599760413169861, 0.02328750677406788, -0.3624785840511322, 0.04085122421383858, 0.5302953124046326, -0.2512759864330292, 0.0990884006023407,...
END FROM newrotaRaw WHERE staffref = @staffref ```
[ 0.2396956831216812, 0.3102744221687317, 0.47658947110176086, -0.07720544189214706, -0.0036755327600985765, -0.3093228340148926, 0.5788180828094482, 0.4226163625717163, -0.057332172989845276, -0.29707780480384827, -0.48765143752098083, 0.17446115612983704, 0.035644762217998505, 0.3861138522...
Is there any case where `len(someObj)` does not call someObj's `__len__` function? I recently replaced the former with the latter in a (sucessful) effort to speed up some code. I want to make sure there's not some edge case somewhere where `len(someObj)` is not the same as `someObj.__len__()`. If `__len__` returns a l...
[ 0.020074229687452316, -0.35920557379722595, -0.08011291921138763, -0.07518163323402405, -0.17570890486240387, 0.014470073394477367, 0.2022337168455124, 0.38580721616744995, -0.38665008544921875, -0.22396165132522583, -0.09242437034845352, 0.6587575078010559, -0.2896938920021057, 0.08556198...
I have some Visual C++ code that receives a pointer to a buffer with data that needs to be processed by my code and the length of that buffer. Due to a bug outside my control, sometimes this pointer comes into my code uninitialized or otherwise unsuitable for reading (i.e. it causes a crash when I try to access the dat...
[ 0.21491239964962006, 0.4358709752559662, 0.2609272003173828, 0.0324539914727211, 0.05317648872733116, -0.3085362911224365, 0.4283939301967621, 0.041875582188367844, -0.07981232553720474, -0.5592819452285767, 0.16271866858005524, 0.49108052253723145, -0.3400654196739197, 0.17570172250270844...
a concern in this case, though a thread-safe solution would be nice. I've seen suggestions on the net of accomplishing this by using VirtualQuery, or by just doing a memcpy inside an exception handler. However, the code where this check needs to be done is time sensitive so I need the most efficient check possible tha...
[ 0.12869668006896973, 0.11763958632946014, 0.15091587603092194, 0.223626047372818, 0.05662401020526886, -0.2597365975379944, 0.3387291133403778, 0.210377037525177, -0.33240261673927307, -0.7269095182418823, 0.08126074075698853, 0.5434282422065735, -0.17896419763565063, -0.10114722698926926,...
this case the bad pointers are coming from Microsoft code that I don't have control over so I have to verify them. Note also that I don't care if the data pointed at is valid. My code is looking for specific data patterns and will ignore the data if it doesn't find them. I'm just trying to prevent the crash that occur...
[ 0.30968281626701355, 0.3450251817703247, 0.23556220531463623, 0.13171812891960144, 0.100351981818676, -0.18436123430728912, 0.5454615354537964, 0.04262186214327812, -0.23610100150108337, -0.5342623591423035, 0.15050269663333893, 0.5449039340019226, -0.21214556694030762, 0.34349891543388367...
change code in one place). > a thread-safe solution would be nice I'm guessing it's only IsBadWritePtr that isn't thread-safe. > just doing a memcpy inside an exception handler This is effectively what IsBadReadPtr is doing ... and if you did it in your code, then your code would have the same bug as the IsBadReadPt...
[ -0.06670977920293808, -0.07480034977197647, 0.38793623447418213, 0.09202712029218674, 0.27979329228401184, -0.2526671588420868, 0.4954203963279724, -0.08725136518478394, -0.44821760058403015, -0.8002460598945618, 0.2946337163448334, 0.5061597228050232, -0.4992366433143616, 0.22289694845676...
process * Know where the threads' stacks are, and how big they are * Walk down each stack, delberately touching each page of the stack at least once, before you begin to call isBadReadPtr Also, the some of the comments associated with the URL above also suggest using VirtualQuery.
[ 0.25180917978286743, -0.23186823725700378, 0.48722124099731445, 0.2303979992866516, -0.14428971707820892, -0.17888101935386658, 0.31666022539138794, 0.1387840360403061, -0.6866512298583984, -0.9185636043548584, 0.07168992608785629, -0.001840231940150261, 0.006433133501559496, 0.54429113864...
I've got an application that uses DirectShow/DirectSound which plays videos and extracts the video/sound. Running it on a server without a soundcard means the audio cannot be grabbed, is there a way around this? I look briefly at Virtual Audio Cable 4 but that doesn't seem to emulate a soundcard over a terminal session...
[ 0.08536095172166824, -0.11117126047611237, 0.7554635405540466, 0.056222304701805115, -0.04931258782744408, -0.22672724723815918, 0.1217988133430481, -0.2627427279949188, -0.10467714816331863, -0.7213917374610901, -0.1389477252960205, 0.9774095416069031, -0.1858815997838974, -0.074256673455...
versions below 1.6 and greater than or equal to 1.4](https://stackoverflow.com/a/3644500/31532) ------------------------------------------------------------------------------------------------------- ```js var text1 = 'Two'; $("select option").filter(function() { //may want to use $.trim in here return $(this)....
[ -0.2628616690635681, -0.4151178002357483, 0.6979189515113831, -0.27290523052215576, 0.1483205407857895, -0.001979924738407135, 0.29159432649612427, -0.16366572678089142, -0.06484120339155197, -0.8026120662689209, -0.41104573011398315, 0.8704648017883301, -0.3989674150943756, -0.17416027188...
I've here a CoreData app (no document-based), 1 entity and 1 tableview for edit/add/remove "instances" of the entity. Now I can manual add and save but I would like to > `a)` save automaticly changes > > `b`) add automaticly some "instances" with the first start. I think `a)` can be solved with NSNotifications. Bu...
[ -0.06510031968355179, 0.08488331735134125, 0.3662758767604828, 0.30835291743278503, 0.07623293995857239, 0.044365864247083664, 0.5511643886566162, -0.09868837893009186, -0.34111735224723816, -0.8643237948417664, -0.03162989020347595, 0.7209062576293945, -0.4146827459335327, -0.128201752901...
editing an entity) and either cannot be saved or it would not make sense to save. There's no easy `setAutosaves:YES` property unfortunately, so you'll have to implement it yourself. Using a notification to save after certain actions is one way to do it, you could also set up a timer to save periodically if it makes sen...
[ -0.07485295832157135, -0.19405193626880646, 0.31706559658050537, 0.21467436850070953, 0.03753633424639702, -0.1641036570072174, 0.4434206187725067, 0.04398668557405472, -0.17267078161239624, -0.7001184821128845, -0.07280360907316208, 0.5149443745613098, -0.32718363404273987, 0.117646597325...
is disabling undo management during the process. Here's an example from one of my applications: ``` - (void)applicationDidFinishLaunching:(NSNotification *)aNotification; { NSURL *fileURL = [NSURL fileURLWithPath:[self.applicationSupportFolder stringByAppendingPathComponent:WLDataFileName]]; NSManagedO...
[ -0.41922518610954285, -0.1894676834344864, 0.4066164195537567, -0.05475602671504021, 0.15357428789138794, 0.16548530757427216, 0.2658034861087799, -0.4662034511566162, -0.6345154047012329, -0.5983119010925293, -0.19084595143795013, 0.7032492160797119, -0.09437068551778793, 0.16754508018493...
error:NULL] == 0 ) [self _populateEmptyDataStore:context]; _managedObjectContext = [context retain]; [request release]; [coordinator release]; [context release]; // finish loading UI, etc... } - (void)_populateEmptyDataStore:(NSManagedObjectContext *)context; { [[context undoManager]...
[ -0.20722395181655884, -0.02740388736128807, 0.38657402992248535, 0.10460872203111649, 0.04741591587662697, 0.10561854392290115, 0.45031023025512695, -0.39834022521972656, -0.22226133942604065, -0.519328773021698, -0.4714833199977875, 0.563534140586853, -0.21401894092559814, 0.1677474379539...
[NSNumber numberWithBool:NO]; trash.name = NSLocalizedString( @"Trash", @"" ); trash.predicate = [NSPredicate predicateWithFormat:@"isTrash = TRUE"]; trash.sortOrder = [NSNumber numberWithInteger:2]; trash.editable = [NSNumber numberWithBool:NO]; [context processPendingChanges]; [[context undo...
[ -0.09398218989372253, -0.12849216163158417, -0.018378622829914093, -0.015110432170331478, 0.12404806911945343, 0.3162752389907837, 0.4889378547668457, -0.2307797074317932, -0.33313584327697754, -0.5299117565155029, -0.564033031463623, 0.46647754311561584, -0.14031189680099487, 0.4499368071...
We use Sajax for adding small Ajax code to sites. After running into a problem and doing some digging, it seems the library hasn't been updated since 2005. I've appreciated Sajax for being lightweight, easy to use, and easy to install (just include the file in PHP). So, on the LAMP stack, if you have used Sajax befor...
[ 0.19096599519252777, 0.029272733256220818, 0.202108234167099, -0.14816910028457642, -0.3023480772972107, -0.4410172700881958, 0.48920750617980957, 0.27465447783470154, -0.13258755207061768, -0.8418978452682495, 0.057805027812719345, 0.20553714036941528, -0.2115524411201477, -0.006953339558...
type: 'GET', url: './example.json', dataType: 'json' }).done(function (data) { // Use data... }); $.getJSON('./some.php', { q: 'thing' }).done(function (data) { // Use data... }); $.ajax({ type: 'POST', url: './api.php', data: { action: 'save', info: APP.getInfo(), ...
[ 0.3912172317504883, -0.28730419278144836, 0.3864228129386902, 0.14010024070739746, 0.03919929638504982, -0.1676064282655716, 0.33172380924224854, -0.15181466937065125, -0.4049703776836395, -0.6518136858940125, -0.48456016182899475, 0.5004172921180725, -0.12603139877319336, -0.2760632634162...
What is the better practice of the following two switch/case statements? Is there an easier way (less code) to do this? ``` switch (myValue) { case 1: { methodFor1(); break; } case 2: case 3: { methodFor2or3(); if (myValue == 2) methodFor2();
[ -0.05529492720961571, -0.2043747901916504, 0.5728098750114441, -0.3473142385482788, 0.3238769769668579, -0.23810844123363495, 0.390420138835907, -0.45905107259750366, 0.03458217531442642, -0.30533915758132935, -0.257660835981369, 0.7151188254356384, -0.29838255047798157, 0.2299602627754211...
if (myValue == 3) methodFor3(); break; } } ...or... switch (myValue) { case 1: { methodFor1(); break; } case 2: case 3: { methodFor2or3(); switch (myValue)
[ -0.3241768479347229, -0.36315375566482544, 0.7165382504463196, -0.1791439950466156, 0.3571928143501282, 0.03647339344024658, 0.4849497079849243, -0.3797568678855896, -0.034285251051187515, -0.3272821009159088, -0.20155271887779236, 0.4756580591201782, -0.23165874183177948, 0.29145193099975...
{ case 2: { methodFor2(); break; } case 3:
[ -0.4586482048034668, -0.27401092648506165, 0.14876268804073334, -0.048966534435749054, 0.300771027803421, -0.08736138790845871, 0.40561366081237793, -0.4102340340614319, -0.07890300452709198, -0.07999519258737564, -0.3407047986984253, 0.4486963748931885, -0.2716354727745056, -0.05625899881...
{ methodFor3(); break; } } break; } } ``` ``` switch (myValue) { case 1: methodFor1(); break; case 2: methodFor2or3(); methodFor2(); break; case 3: methodFor2or3();
[ -0.32999172806739807, -0.19582830369472504, 0.6870192885398865, -0.2900600731372833, 0.2754700183868408, -0.03537357226014137, 0.3958158791065216, -0.43468546867370605, -0.032009273767471313, -0.09737078845500946, -0.37623557448387146, 0.5079107880592346, -0.30560728907585144, 0.2606509327...
methodFor3(); break; } ``` Why all the hassle just to avoid repeating `methodFor2or3()` *once*?
[ -0.2166382074356079, 0.08312547951936722, 0.25900790095329285, -0.36236265301704407, 0.17214742302894592, -0.22304759919643402, 0.5835182070732117, -0.1609787791967392, -0.3623889088630676, -0.17956697940826416, -0.16736575961112976, 0.3205120265483856, -0.4609281122684479, 0.2041475176811...
I'm using Linq-to-SQL with a SQL Server backend (of course) as an ORM for a project. I need to get the result set from a stored procedure that returns from a dynamically-created table. Here's what the proc looks like: ``` CREATE procedure [RetailAdmin].[TitleSearch] ( @isbn varchar(50), @author varchar(50), @title va...
[ 0.2613454759120941, 0.3266345262527466, 0.930295467376709, -0.11118265241384506, 0.3461272716522217, 0.22015997767448425, -0.09629523009061813, -0.5593113899230957, -0.028203295543789864, -0.23006834089756012, -0.1343902200460434, 0.7025623917579651, -0.1833818554878235, 0.0743933618068695...
[Edition] [varchar](255) NULL, [Copyright] [varchar](100) NULL, [stockonhand] [int] NULL ) set @sql = 'select a.storeid, Author,Title, thirteendigitisbn ISBN, Imprint,Edition,Copyright ,b.stockonhand from ods.items a join ods.inventory b on a.itemkey = b.itemkey where b.stockonhand <> 0 ' if len(@l...
[ -0.34848302602767944, 0.2182091325521469, 0.4460340738296509, 0.03294159099459648, -0.2128475159406662, 0.2742631435394287, -0.1400827020406723, -0.4524836838245392, -0.3145536780357361, -0.2047390639781952, -0.44840195775032043, 0.07518255710601807, -0.28490346670150757, 0.442858397960662...
0 begin insert into #mytemp EXECUTE sp_executesql @sql end select * from #mytemp drop table #mytemp ``` I didn't write this procedure, but may be able to influence a change if there's a really serious problem. My present problem is that when I add this procedure to my model, the designer generates this ...
[ 0.26333099603652954, 0.1493101567029953, 0.656975269317627, -0.10216184705495834, 0.3441820442676544, 0.046217162162065506, 0.08121783286333084, -0.5223573446273804, 0.06067179888486862, -0.4225611090660095, -0.09314768016338348, 0.7952317595481873, -0.11790764331817627, 0.2872620224952698...
result set I get when I run the proc manually: ![Result Set](https://lh5.ggpht.com/_g6k7SWc-6HY/SYMrST6oPaI/AAAAAAAAAE8/KD6-NFPxcN0/s400/storedproc.jpeg) Can anybody tell me what's going wrong here? This is basically the same problem as [this question](https://stackoverflow.com/questions/404186/problem-with-the-retu...
[ -0.11950735747814178, 0.018290475010871887, 0.48960959911346436, 0.0010302303126081824, -0.22787117958068848, 0.03137902542948723, 0.17639999091625214, -0.1189190149307251, -0.3601740300655365, -0.34301942586898804, -0.22653613984584808, 0.7276904582977295, -0.23560690879821777, -0.2512622...
integer type and didn't update when I made changes to the stored proc. Getting VS to recognize a change requires you to: * Delete proc from the dbml * delete the server connection from Server Explorer * save the dbml to force a recompile * close the project and restart VS * recreate the server connection and import th...
[ 0.28397315740585327, 0.030808543786406517, 0.29231202602386475, -0.2767163813114166, -0.10446957498788834, 0.23405304551124573, 0.4539230763912201, -0.2128715217113495, -0.1288173347711563, -0.5928438305854797, 0.12856891751289368, 0.6305484175682068, -0.4839683175086975, -0.10037541389465...
do what you want after you've imported it into the OR Designer. ``` switch (myValue) { case 1: methodFor1(); break; case 2: methodFor2or3(); methodFor2(); break; case 3: methodFor2or3(); methodFor3(); break; } ``` Why all the hassle just to avoid repeating `methodFor2or3()` *once...
[ 0.2638719081878662, -0.15619231760501862, 0.44759100675582886, -0.21428874135017395, 0.32716187834739685, -0.17934565246105194, 0.40017879009246826, -0.3693736493587494, -0.11364298313856125, -0.1979319006204605, -0.40885183215141296, 0.5156965851783752, -0.38127368688583374, 0.03931547328...
I'm supporting an existing application written by another developer and I have a question as to whether the choices the data type the developer chose to store dates is affecting the performance of certain queries. Relevant information: The application makes heavy use of a "Business Date" field in one of our tables. T...
[ 0.01948677934706211, 0.16829591989517212, 0.841931164264679, -0.11188575625419617, -0.16218869388103485, 0.058032747358083725, 0.29262951016426086, 0.38673269748687744, -0.5055369138717651, 0.029230348765850067, -0.09289910644292831, 0.07135388255119324, 0.16843529045581818, 0.253861278295...
time to execute. I'm re-writing this application from the ground up, but since I'm looking at this, I want to know if there is a performance difference between using the datetime data type compared to storing dates as they are in the current database. You will both save disk-space and increase performance if you use ...
[ 0.17042888700962067, -0.2669113576412201, 0.4073536694049835, 0.0636691004037857, 0.24221448600292206, 0.0026679150760173798, 0.23494157195091248, -0.26156845688819885, -0.24122270941734314, -0.8640273809432983, 0.07329416275024414, 0.47314751148223877, 0.09469792246818542, -0.033064872026...
I've been pouring over the format description and source code for the 7z archive format, but I'm still having trouble writing a valid container. I assume I can create an empty container... anyway here's my start: ``` std::ofstream ofs(archivename.c_str(), std::ios::binary|std::ios::trunc); Byte signature[6] = {'7', '...
[ 0.15439973771572113, 0.3172929584980011, 0.5692229270935059, -0.3395221531391144, 0.37733158469200134, 0.15759582817554474, 0.25293049216270447, -0.26153019070625305, -0.18058915436267853, -0.555830717086792, -0.2967265248298645, 0.47343823313713074, -0.21198689937591553, 0.410488486289978...
As everyone points out, it'd be a problem if I ran this on a big-endian machine. That's not the case here. Per Fredrik Janssen, I should be casting the address of the non-arrays. I should also mention that CrcCalc() is a function in the LZMA SDK. Adding & helps a bit, it's that first unsigned char[6] that's having some...
[ 0.22865183651447296, 0.06273295730352402, 0.2975122332572937, -0.17684009671211243, -0.037039875984191895, -0.0820503905415535, 0.28397005796432495, -0.43194863200187683, -0.4558269679546356, -0.6003920435905457, -0.24062632024288177, 0.47864237427711487, -0.4692578911781311, 0.15250872075...
(int i = 0; i < 8; i++, d >>= 8) p[i] = (Byte)d; } void make_7z_archive() { CrcGenerateTable(); std::ofstream ofs(archivename.c_str(), std::ios::binary|std::ios::trunc); Byte signature[6] = {'7', 'z', 0xBC, 0xAF, 0x27, 0x1C}; Byte major = 0; Byte minor = 3; ofs.write((const char*)signature, 6); of...
[ -0.07810132950544357, 0.038778163492679596, 0.7178820371627808, -0.5425643920898438, 0.48247724771499634, 0.3884184956550598, 0.3347342312335968, -0.3937096893787384, -0.23416516184806824, -0.566443920135498, -0.5797738432884216, 0.48084965348243713, -0.39948371052742004, 0.252034932374954...
ofs.close(); } ``` NOTE: CrcGenerateTable() and CrcCalc() are from the LZMA SDK. don't know the format of 7z, but I notice when you write down offset, size and crc that these will be written to the file in little-endian format (I assume you have a little-endian CPU). Edit: An probably worse, you are missing the & be...
[ -0.026176000013947487, 0.06037759780883789, 0.3596107065677643, -0.14619244635105133, 0.006076411809772253, -0.20068272948265076, -0.00046025722986087203, -0.015393156558275223, -0.28024986386299133, -0.6177736520767212, -0.11757706850767136, 0.5532940030097961, -0.21274115145206451, 0.161...
I just recently changed out all my hard drives and in the process of setting up some projects again I noticed that the database file I was backing up was actually the wrong file as it only contains 30% of the database that I had running. I have my old drives and all the data should be intact but I've been unable to act...
[ 0.6446084380149841, 0.41798603534698486, 0.22658750414848328, 0.3465248942375183, 0.4727347493171692, -0.07349628210067749, 0.2335468977689743, -0.020263779908418655, -0.32659149169921875, -0.4087972044944763, 0.32922640442848206, 0.674877405166626, -0.12278752028942108, 0.4299972355365753...
system, or restore a backup of the master database, so you can query it. (just dont overwrite/replace the live system's master db!) SELECT [Name], FileName FROM sysdatabases will get you a list of the databases on that server, and the full file paths.
[ 0.29480159282684326, -0.22173595428466797, 0.3589935302734375, 0.3790028691291809, 0.1955115646123886, -0.2626257836818695, 0.49124589562416077, 0.12069210410118103, -0.1533544808626175, -0.7626817226409912, -0.29248863458633423, 0.576033890247345, -0.3941676914691925, 0.2623893618583679, ...
I realize that SOAP webservices in .NET return XML representation of whatever object the web method returns, but if I want to return data formatting in XML what is the best object to store it in? I am using the [answer](https://stackoverflow.com/questions/220867/how-to-deal-with-xml-in-c/220981#220981) to [this questi...
[ 0.16374120116233826, 0.2416650652885437, 0.6403825283050537, -0.16732457280158997, -0.1698809117078781, 0.006049047689884901, 0.24479913711547852, -0.5075340867042542, 0.21648061275482178, -0.5484886765480042, -0.15196804702281952, 0.7138088941574097, -0.1682376265525818, -0.13642810285091...
or another internal object (if you consider XmlWriter to be a poor choice). The System.Xml package (namespace) has many objects, but I haven't been able to uncover decent documentation on how to use the objects together, or what to use for what situations. This is how I ended up doing it; ``` StringBuilder sb = new St...
[ -0.0032116032671183348, 0.21407127380371094, 0.6556087136268616, -0.20137406885623932, 0.13667896389961243, 0.023087959736585617, 0.594642162322998, -0.5768136382102966, -0.027315055951476097, -0.7168949246406555, -0.2332795262336731, 0.4793647527694702, -0.144158735871315, -0.061370644718...
I just had an interview in Redmond where they asked me a ton of security based questions surrounding asp.net. One of the questions they asked was about configuring a secure intranet application to use constrained delegation to access the SQL Server. In this scenario an AD user account is delegated access to the SQL Ser...
[ 0.4490484595298767, 0.3967234492301941, 0.2189355343580246, -0.05447237193584442, -0.23439446091651917, -0.052870772778987885, 0.18525682389736176, -0.16246698796749115, -0.2913510799407959, -0.4495342969894409, 0.2606433928012848, 0.20402215421199799, -0.254504531621933, 0.180170223116874...
anonymous access all these years. Typically I will run my IIS websites using the default anonymous account and store the connection string in the web.config (encrypted, and sometimes in clear text). This, of course, requires your SQL Server to run in mixed mode. So my question is, what if we didn't store the connection...
[ 0.15134280920028687, 0.06053511053323746, 0.24664519727230072, 0.2211424708366394, -0.14155732095241547, -0.21945223212242126, 0.45821768045425415, 0.3176557421684265, -0.24074667692184448, -0.5725144147872925, 0.24769656360149384, 0.4959326386451721, -0.5338504910469055, 0.452611804008483...
the scenarios where this would be a bad idea, and the only one I can think of is where a "hacker" compromised the code on the web server, and then somehow got access to your SQL Server...but this could happen in either scenario. Does anyone know the best practice here? Where I work, we have a windows service that runs...
[ 0.4807199239730835, 0.23080147802829742, 0.10592420399188995, 0.24277563393115997, 0.2890374958515167, -0.40385451912879944, 0.31064948439598083, 0.23688866198062897, -0.3760484457015991, -0.511941134929657, 0.24506263434886932, 0.41252627968788147, -0.19600531458854675, 0.2639951109886169...
to properly configure your database user (or role) so it only has access to what it needs. I have considered using AD to manage SQL access in a similar manner that you describe in your first paragraph. (AD Group -> SQL Server login -> DB User -> DB objects) The only drawback I can see so far is, if a user connected di...
[ 0.2616743743419647, 0.006321967113763094, 0.28515318036079407, 0.20297765731811523, -0.10670964419841766, -0.1577662080526352, 0.003556982846930623, -0.0630129873752594, -0.17409256100654602, -0.7297985553741455, 0.18639636039733887, 0.6926417946815491, -0.3862581253051758, 0.2701245844364...
My asp.net site has to run on several client servers. It's working fine on a majority of them, but a couple have run into an error message on a few pages: > Compiler Error Message: CS0012: The type 'MetaNameValuePair' is defined in an assembly that is not referenced. You must add a reference to assembly 'App\_Code.t\_...
[ 0.1740817427635193, 0.08410485833883286, 0.43409043550491333, -0.24444937705993652, -0.23678840696811676, 0.16223332285881042, 0.8169705867767334, -0.2543262243270874, -0.3692740499973297, -0.7953874468803406, -0.011579549871385098, 0.09912977367639542, -0.3054612874984741, 0.1088910996913...
cleared the "Temporary ASP.Net Files" for the site, usually found at C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files? There may be an old copy lingering around.
[ 0.4314913749694824, 0.06176202371716499, 0.26418277621269226, 0.10275818407535553, 0.4309403896331787, -0.2973785996437073, 0.2638380229473114, 0.5145534873008728, -0.633209764957428, -0.4025402367115021, -0.35381439328193665, 0.036121442914009094, -0.1061917319893837, 0.0284210704267025, ...
I've got msysGit (Git on Windows) working just fine on my home machine, but at work, where we are behind a Microsoft ISA proxy, I get the following error when I do a git clone: ``` H:\>git clone git://github.com/akitaonrails/vimfiles.git Initialized empty Git repository in H:/vimfiles/.git/ github.com[0: 65.74.177.129...
[ -0.19580277800559998, 0.04925626888871193, 0.4502336084842682, -0.008271493948996067, -0.21438999474048615, 0.24563638865947723, 0.5724602341651917, -0.10938835144042969, 0.1568755805492401, -0.9508299231529236, -0.06973457336425781, 0.6807278990745544, -0.2450595200061798, 0.2817852497100...
requested URL returned error: 407 ``` 407 is of course an authentication error. So my question is: has anyone managed to get git working from behind a proxy, specifically an ISA proxy? I don't know if it's going to be worth pursing this. Any help very much appreciated. Thanks! I had the exact same error; but the [`...
[ -0.09217628836631775, 0.0810067281126976, 0.4258892238140106, 0.18821072578430176, 0.18198084831237793, -0.06327050924301147, 0.5017158389091492, 0.051182255148887634, -0.21992217004299164, -0.8302216529846191, -0.07882498949766159, 0.4346197545528412, -0.10318705439567566, 0.1099267378449...
it could be related to a problem with [git-fetch losing authentication tokens on the second HTTP GET](http://kerneltrap.org/mailarchive/git/2007/1/3/234850/thread). A [more recent version of libcurl](http://daniel.haxx.se/blog/2008/12/08/scp-and-sftp-with-libcurl-on-windows/) might be needed. --- Update January 2011:...
[ -0.45422857999801636, 0.06394272297620773, 0.5302098393440247, -0.0829404890537262, -0.24397015571594238, -0.06145128607749939, 0.19310052692890167, 0.18141740560531616, -0.44819504022598267, -0.3710068464279175, -0.33200445771217346, 0.45811086893081665, -0.25444939732551575, 0.2519808411...
I'm trying to call a class method from C++. I've tried all combinations of rb\_intern I could think of to make it work, but I've gotten nothing. Example class ``` class CallTest def go (do something here) end end ``` Trying to call in C++: ``` rb_funcall(?, rb_intern("go"), 0); ``` What goes in the ? s...
[ -0.25058117508888245, -0.00025712308706715703, 0.0021348476875573397, 0.03452036529779434, 0.07075659185647964, -0.04364427179098129, 0.27667227387428284, 0.07062399387359619, -0.1427334100008011, -0.4806279242038727, -0.110027015209198, 0.5469209551811218, -0.3475429117679596, 0.219591364...
I can try passing it by name to my application. I'm using SWIG to generate the binding. First off, `go` is, as you've defined it, not a class method, but an **instance method**. As an object oriented language, all ruby methods require a receiver, that is, an object that the method is invoked on. For instance methods,...
[ 0.06255486607551575, -0.14527395367622375, 0.11912940442562103, -0.029281625524163246, -0.18282948434352875, -0.4206697344779968, 0.2141963094472885, 0.012182429432868958, 0.012371990829706192, -0.25863611698150635, -0.31219226121902466, 0.6509959697723389, -0.7196562886238098, 0.072404421...
rb_intern("go"), 0); ``` where `a_CallTest_instance` was an instance of CallTest you created using `rb_class_new_instance()`. If you make it into a class method: ``` class CallTest def self.go # ... end end ``` Then you need to use the `CallTest` class itself as the receiver: ``` rb_funcall(klass, rb_int...
[ -0.001489069196395576, 0.2459779679775238, 0.4031015932559967, -0.1976737529039383, -0.08153167366981506, -0.31041282415390015, 0.4221005141735077, -0.3301711976528168, 0.028095640242099762, -0.4347600042819977, -0.2892921268939972, 0.4938422441482544, -0.5129828453063965, 0.14915400743484...
I am working on a code base that has a number of connection strings that access a database server by a specified name. ``` <add name="myConnection" connectionString="Data Source=DevServer;Initial Catalog='devData';Persist Security Info=True;User ID=devUser;Password=devPass;" providerName="System.Data.SqlCl...
[ 0.34503790736198425, 0.4351564645767212, 0.4698060154914856, -0.04651978611946106, -0.07486090064048767, -0.13484616577625275, 0.6449999809265137, -0.18251203000545502, -0.35057371854782104, -0.8618287444114685, -0.021160760894417763, 0.19566157460212708, -0.05220319703221321, 0.4692429602...
"localhost" as I have other projects that use this as a Data Source. I *could* alter the config files, but I would then have to ensure that I don't check them in, as that would break the configuration for others. I still want to receive any updates to the config files, so having local writeable versions is not an optio...
[ 0.16961915791034698, -0.1258561611175537, 0.21802552044391632, 0.023318618535995483, -0.05210541561245918, -0.49337443709373474, 0.7263017892837524, 0.48808547854423523, -0.29211997985839844, -0.9524081945419312, -0.04800127446651459, 0.8159809112548828, -0.2701452374458313, 0.375268548727...
trying? Can anyone suggest a way that I can achieve this? I guess my question is similar to [this](https://stackoverflow.com/questions/449607/point-to-localhost-sqlexpress-using-only-localhost) but there has been no accepted answer and it is for SQL Express. The SQL Server Configuration Manager allows you to use a ...
[ 0.3310423493385315, 0.1230240911245346, 0.14419205486774445, -0.0627719983458519, 0.07487552613019943, -0.09740567952394485, 0.6175711154937744, 0.1740664392709732, -0.19321344792842865, -0.6838192343711853, -0.04370342567563057, 0.550746738910675, -0.27604109048843384, 0.01180228404700756...
What are the differences between UTF-8, UTF-16, and UTF-32? I understand that they will all store Unicode, and that each uses a different number of bytes to represent a character. Is there an advantage to choosing one over the other? UTF-8 has an advantage in the case where ASCII characters represent the majority of c...
[ -0.08360693603754044, 0.05707952380180359, 0.2877834439277649, -0.0763513445854187, -0.09575577080249786, 0.21078453958034515, -0.05109170079231262, -0.1617545783519745, -0.29599854350090027, -0.6304869651794434, -0.47927337884902954, 0.2861127257347107, -0.2638366222381592, -0.12993289530...
per character, primarily. UTF-8 will start to use 3 or more bytes for the higher order characters where UTF-16 remains at just 2 bytes for most characters. UTF-32 will cover all possible characters in 4 bytes. This makes it pretty bloated. I can't think of any advantage to using it.
[ -0.13752686977386475, 0.18544715642929077, 0.40669015049934387, -0.08311064541339874, -0.1287386119365692, 0.531284511089325, 0.011405551806092262, 0.12177054584026337, -0.027700988575816154, -0.5053101181983948, -0.13779395818710327, 0.17122533917427063, -0.23256513476371765, 0.0580130517...
So far I include everything in index.php: ``` RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?page=$1 [QSA,L] ``` There are also pages where I use $\_GET like this: ``` SELECT * FROM news WHERE id = ".intval($_GET['id']) ``` If I want to view a...
[ 0.10067296773195267, 0.2374870479106903, 0.8081340193748474, -0.16164228320121765, -0.11087092757225037, -0.03108087182044983, 0.2571794092655182, -0.23988640308380127, -0.2145613431930542, -0.7462921738624573, -0.017979463562369347, 0.647809624671936, -0.23217837512493134, -0.007548572495...
you don't want to allow / and //, change the `*`'s to `+`'s
[ 0.4161970019340515, 0.20461970567703247, 0.027026638388633728, -0.10161825269460678, -0.22996358573436737, 0.33387643098831177, 0.288790225982666, 0.49611201882362366, -0.05757616460323334, -0.6310636401176453, -0.39051559567451477, 0.36181339621543884, 0.2289961576461792, 0.03963132947683...
**Why the following example prints "0" and what must change for it to print "1" as I expected ?** ``` #include <iostream> struct base { virtual const int value() const { return 0; } base() { std::cout << value() << std::endl; } virtual ~base() {} }; struct derived : public base { virtual...
[ -0.05200750008225441, 0.007607962004840374, 0.362386018037796, -0.3837166428565979, 0.3482813537120819, 0.22034579515457153, 0.4237040579319, -0.183757945895195, -0.1416473537683487, -0.5232925415039062, -0.32846567034721375, 0.4305722713470459, -0.37194928526878357, 0.03571636974811554, ...
`derived` yet. It can't call methods on an object when it can't guarantee that the object is already properly initialized.
[ 0.11702752858400345, -0.4012957215309143, 0.19924138486385345, 0.27048566937446594, -0.10619471222162247, -0.11903149634599686, -0.019863560795783997, -0.19563888013362885, 0.17679934203624725, -0.32757169008255005, -0.14041203260421753, 0.1552836149930954, 0.15731395781040192, 0.063995450...
My question is about when a function should be referenced with the `extern` keyword in C. I am failing to see when this should be used in practice. As I am writing a program all of the functions that I use are made available through the header files I have included. So why would it be useful to `extern` to get access ...
[ 0.25493282079696655, 0.19290322065353394, 0.00960761308670044, 0.046667009592056274, -0.09829571843147278, -0.3161022663116455, 0.29967352747917175, 0.19196799397468567, -0.008323156274855137, -0.33116063475608826, -0.14279279112815857, 0.6232396364212036, -0.3547080159187317, 0.1872250735...
header file? `extern` changes the linkage. With the keyword, the function / variable is assumed to be available somewhere else and the resolving is deferred to the linker. There's a difference between `extern` on functions and on variables. For **variables** it doesn't instantiate the variable itself, i.e. doesn't al...
[ -0.12551136314868927, -0.2484716922044754, 0.30958253145217896, 0.14794854819774628, -0.0912419930100441, -0.32100287079811096, 0.20932011306285858, -0.007815334014594555, -0.12424920499324799, -0.4649162292480469, -0.24308587610721588, 0.5573107004165649, -0.5682634711265564, 0.1454688608...
don't need to use it explicitly.
[ 0.7627326250076294, 0.44566577672958374, -0.3365675210952759, 0.13452811539173126, -0.019326226785779, -0.200840026140213, 0.16616038978099823, -0.041189126670360565, 0.13884906470775604, -0.2635624408721924, 0.07500813156366348, 0.26848307251930237, -0.16537457704544067, -0.18995818495750...
**DUPE: [Should 'using' statements be inside or outside the namespace?](https://stackoverflow.com/questions/125319/should-usings-be-inside-or-outside-the-namespace)** If I add a new class using Visual Studio to the project, It adds all the using statements before namespace but for the same project, FxCop says that put...
[ 0.46294623613357544, -0.1981554478406906, -0.08002541959285736, -0.019078092649579048, -0.2223873734474182, 0.189784973859787, 0.3585353195667267, -0.12893934547901154, -0.275723934173584, -0.5626043081283569, -0.26834896206855774, 0.5305596590042114, -0.3308205008506775, -0.15786115825176...
In Classic ASP, **Server.MapPath()** doesn't always work properly in the **Application\_OnStart** event within **global.asa**. I have an ASP page at **"\testfolder\test.asp"** within a virtual root, I have an XSLT file at **"\xsl\transform.xsl"**. My virtual root is located in **"c:\inetpub\wwwroot\testapp\"**. I use ...
[ -0.40626955032348633, -0.2815104126930237, 0.5325013399124146, -0.15738382935523987, -0.027316315099596977, -0.18107779324054718, 0.6608814001083374, -0.15887610614299774, -0.36969661712646484, -0.9002608060836792, -0.14234106242656708, 0.46889907121658325, -0.31730782985687256, -0.2244571...
caused the application to startup. If the first ASP page to be run when the application isn't yet started is not in the root of the virtual root then **MapPath** gets confused and adds the path to the called ASP page to the path it returns. So for example if the page that started the app was in **"c:\inetpub\wwwroot\t...
[ -0.11688203364610672, 0.08386364579200745, 0.45978888869285583, -0.03242861106991768, 0.13668888807296753, -0.19366398453712463, 0.41130760312080383, 0.3705231547355652, -0.38711610436439514, -0.8588989973068237, 0.024111507460474968, 0.14834827184677124, -0.48142972588539124, 0.2634172141...
lots of ASP Classic sites out there that fail to startup properly sometimes because of this, but their owners just do a quick iisreset, not knowing what quite went wrong. The result of this is that you can't reliably use **MapPath** in **global.asa** if you have a website that has ASP files anywhere other than just th...
[ 0.2387588620185852, -0.14627143740653992, 0.13235585391521454, 0.09309233725070953, 0.14290405809879303, -0.4234623312950134, 0.5069553256034851, 0.13284790515899658, -0.4434952139854431, -0.7197904586791992, -0.11086026579141617, 0.44488847255706787, -0.34016117453575134, 0.08111502230167...
have to move all usage of **MapPath** out of the application startup or deal with the issue by writing paths into your ASP files as part of the installer.
[ 0.5373729467391968, -0.0028130989521741867, 0.3270756006240845, 0.11272348463535309, 0.30905407667160034, -0.4915880262851715, 0.42303797602653503, -0.0408501923084259, -0.14885856211185455, -1.0069221258163452, -0.31238406896591187, 0.5655978322029114, -0.07793784141540527, -0.29585906863...
Is it possible to create an attribute of type Partylist in Microsoft Dynamics Crm 4.0? The PartyList type is basically a system control to display a n:n relationship on emails. Right now, we are not allowed to create new attributes of type PartyList.
[ -0.15804973244667053, -0.1412571370601654, 0.49519675970077515, 0.17729024589061737, -0.0017595759127289057, -0.2954929769039154, 0.04355236887931824, 0.14221322536468506, -0.37170615792274475, -0.28567132353782654, 0.22634533047676086, 0.19294922053813934, -0.5501150488853455, 0.150080233...
A question was asked recently about [removing SourceSafe integration from Visual Studio 6](https://stackoverflow.com/questions/471056/removing-sourcesafe-integration-from-visual-studio-6). I need to do the same with Visual Studio 2008. Our team uses Subversion and I have installed AnkhSVN, the Subversion plug-in for V...
[ -0.07311981171369553, -0.1036207377910614, 0.5054212212562561, -0.24278129637241364, -0.36935532093048096, -0.12853920459747314, 0.3282058537006378, -0.21042248606681824, -0.19236493110656738, -0.49114516377449036, -0.05001470074057579, 0.79047030210495, -0.3704568147659302, 0.030382048338...
intention of switching off (effectively uninstalling) the SourceSafe plug-in, but there is no option for it. Found it! [MS's Help and Support site](http://msdn.microsoft.com/en-us/library/bb166193.aspx) describes it, see section 2 Add a DWORD registry key at: ``` HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SourceSafe\HideI...
[ -0.08095557242631912, -0.3513181507587433, 0.5400974750518799, -0.027524061501026154, 0.4218989312648773, -0.2637486755847931, 0.16113364696502686, 0.28696057200431824, -0.20034949481487274, -0.4003494381904602, -0.33876797556877136, 0.4610019028186798, -0.16600972414016724, 0.145419061183...