text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I saw: ``` /* ClientArrayType */ /* GL_VERTEX_ARRAY */ /* GL_NORMAL_ARRAY */ /* GL_COLOR_ARRAY */ ``` **Update** but it would seem that those contants get defined elsewhere. How am I supposed to generate buffers if I don't have access to those functions? The documentation doesn't say that those arr...
[ 0.05855762958526611, -0.0427677184343338, 0.6100249290466309, 0.04665738344192505, -0.11142904311418533, 0.009690530598163605, 0.2126769721508026, -0.016104750335216522, -0.3808489739894867, -0.6323282122612, -0.039194025099277496, 0.5423388481140137, -0.30591335892677307, 0.05363141372799...
0x8074 ``` If this #define is actually missing then you should probably replace the file with a fresh copy. If you look at [the documentation for glGenBuffers](http://www.opengl.org/sdk/docs/man/xhtml/glGenBuffers.xml) you will see that it is only available in OpenGL 1.5 and higher. The header file for Windows only ...
[ -0.11663660407066345, 0.24466639757156372, 0.5171868801116943, -0.14642561972141266, -0.1394512802362442, -0.15711623430252075, 0.23452605307102203, -0.037838101387023926, -0.2523556053638458, -0.5072767734527588, -0.4174971282482147, 0.599530041217804, -0.46009376645088196, 0.276589334011...
I want to create a Winsock UDP socket that only sends data to a client. I want the kernel to choose an available port for me. On the other hand, I want to indicate which local IP to use, since I'm running a few nics. I've tried combing through the maze of socket options, as well as binding with the port in the socket...
[ 0.06332109868526459, 0.022195274010300636, 0.39520886540412903, -0.1713121086359024, -0.07025063782930374, 0.07175681740045547, 0.39150869846343994, -0.10846671462059021, -0.06959591805934906, -0.8738425374031067, -0.07610972225666046, 0.3656396269798279, -0.46127983927726746, 0.3478015661...
<source IP address> ); local.sin_port = 0; // choose any dest.sin_family = AF_INET; dest.sin_addr.s_addr = inet_addr( <destination IP address> ); dest.sin_port = htons( <destination port number> ); // create the socket SOCKET s = socket( AF_INET, SOCK_DGRAM, IPPROTO_UDP ); // bind to the local address bind( s, (socka...
[ -0.1585179716348648, -0.13044865429401398, 0.5915701985359192, -0.30552130937576294, -0.15431520342826843, 0.42830100655555725, 0.4050031304359436, -0.4327206611633301, -0.18341417610645294, -0.9678224325180054, -0.5049920678138733, 0.3065970540046692, -0.28486716747283936, 0.4154330790042...
I can figure out a couple of hack ways of doing this,...but no really neat ".NET" way. I am displaying a table of data using Gridview...one of the columns is dedicated to displaying the status of a boolean variable. The spec I am trying to meet is to have a "On" and "Off" button in the column representing this variabl...
[ 0.3660339117050171, 0.04494991898536682, 0.20098111033439636, 0.050717275589704514, -0.1656528115272522, -0.1606985330581665, 0.13166069984436035, 0.11029641330242157, -0.04797419160604477, -0.8375048041343689, 0.4666513204574585, 0.5277677774429321, -0.19546805322170258, 0.330523073673248...
which is why i'm asking :) any tips would be appreciated. Andrew Something like this should get what you're after. ASPX Side: ``` <templateField> <itemtemplate> <asp:button runat="server" id="myButton" Text='<%# Response.Write(IIF(Eval("MyBool"),"Off", "On")) %>' CommandName='<%# Response.Write(IIF(Eval("MyBoo...
[ -0.4023703932762146, 0.012727814726531506, 0.8743470907211304, -0.10823451727628708, 0.027483653277158737, 0.25087910890579224, 0.19174569845199585, -0.35186371207237244, -0.21137624979019165, -0.5933046936988831, -0.27658218145370483, 0.29282552003860474, 0.0182584710419178, 0.10054323822...
Case "TurnOn" MyTurnOnFunction(e.CommandArgument) btn.Text = "On" btn.CommandName="TurnOff" End Select End Sub ```
[ -0.3124326765537262, 0.06233757361769676, 0.3355584144592285, -0.26597511768341064, 0.5797076225280762, 0.22684165835380554, 0.2719666659832001, -0.0786328837275505, -0.11765152215957642, -0.36624982953071594, -0.5703005790710449, 0.7023217082023621, -0.16456767916679382, 0.328092098236084...
I'm trying out some MacOS programming and having some trouble understanding how bindings work with an NSPopupButton. I'm interested in binding to an NSDictionaryController (I don't think I need an intermediate NSArrayController but if that is the best way, I'm open to it). I've created a controller object that has a ...
[ 0.06455918401479721, -0.11573000997304916, 0.33450156450271606, 0.25133728981018066, 0.0159998070448637, -0.053706634789705276, 0.15469512343406677, -0.08831503242254257, 0.07426094263792038, -1.0905225276947021, 0.18074937164783478, 0.4551600515842438, -0.4982821047306061, 0.3909839689731...
I need access to the corresponding ID. I've setup the NSDictionaryController to bind 'Content Dictionary' to MyController with Model Key Path 'db.species'. With NSPopupButton, so far I've bound 'Content Values' to NSDictionaryController with controller key 'arrangedObjects' and Model Key Path set to 'value.description...
[ 0.13459664583206177, -0.02438000589609146, 0.465033620595932, 0.3524681031703949, 0.12933287024497986, -0.13031643629074097, 0.004410988185554743, -0.27062129974365234, -0.019739774987101555, -1.0274747610092163, 0.006060213781893253, 0.5703016519546509, -0.19824862480163574, 0.42482718825...
see the current selection. If not, should I wire to a property in MyController or something? Just looking for the best practices. I would like as much to be through the Interface Builder mechanisms so that I can easily reuse the model and controller design in another application with a different view. **Update using B...
[ 0.11516153812408447, -0.1330193430185318, 0.4635772109031677, 0.1008543074131012, -0.04753147065639496, -0.042487818747758865, 0.206882044672966, -0.21550807356834412, -0.3856571614742279, -1.0203306674957275, -0.13236339390277863, 0.3813452422618866, -0.3700254261493683, 0.301773071289062...
this with an NSDictionaryController, but I think you would want to bind the contentObjects of the pop-up to the dict controller's "arrangedObjects.key" and the selectedObject binding to the dict controller's "selection" key. The contentObjects binding would specify the IDs as being the underlying objects represented by...
[ -0.28687453269958496, -0.5346288681030273, 0.42345741391181946, 0.18633411824703217, -0.08952947705984116, -0.14431290328502655, -0.3119335472583771, -0.10499205440282822, -0.05773535743355751, -0.7898088693618774, -0.2693743109703064, 0.4789977967739105, -0.5411522388458252, -0.0336500704...
Currently, I'm able to load in a static sized texture which I have created. In this case it's 512 x 512. This code is from the header: ``` #define TEXTURE_WIDTH 512 #define TEXTURE_HEIGHT 512 GLubyte textureArray[TEXTURE_HEIGHT][TEXTURE_WIDTH][4]; ``` Here's the usage of glTexImage2D: ``` glTexImage2D( GL_TEX...
[ -0.33700504899024963, 0.03146225959062576, 0.6870724558830261, -0.2898160219192505, -0.23809590935707092, 0.20641010999679565, -0.09520771354436874, -0.2177477926015854, -0.38075020909309387, -0.9128097891807556, -0.10210871696472168, 0.6098679900169373, -0.11432678252458572, 0.15297669172...
I change that so that there's no need for TEXTURE\_WIDTH and TEXTURE\_HEIGHT? Perhaps I could use a pointer style array and dynamically allocate the memory... ### Edit: I think I see the problem, in C++ it can't really be done. The work around as pointed out by Budric is to use a single dimensional array but use all ...
[ -0.03292896971106529, 0.08301331102848053, 0.724021852016449, -0.24384655058383942, -0.3526113033294678, 0.11678648740053177, 0.19362972676753998, -0.4185031056404114, -0.19762375950813293, -0.6903117895126343, -0.09179891645908356, 0.802638590335846, -0.5330268740653992, -0.17492318153381...
function supports this. Can anyone think of a workaround that would work with this OpenGL function? ### Edit 2: Attention OpenGL developers, this can be overcome by using a single dimensional array of pixels... > [0]: column 0 > [1]: row 0 > [2]: channel 0 ... n > [n]: row 1 ... n > [n]: column 1 .. n ... no need t...
[ -0.2035086303949356, -0.163456529378891, 0.6755896210670471, 0.029686374589800835, -0.2593313455581665, 0.0035707138013094664, 0.332122802734375, -0.21987301111221313, -0.2375640571117401, -0.7348306179046631, -0.12442141026258469, 0.7891390919685364, -0.33158206939697266, -0.1114121973514...
GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, textureArray); delete [] texture; //remove the un-needed local copy of the texture; ``` However you still need to specify the width and height to OpenGL in glTexImage2D call. This call copies texture data and that data is managed ...
[ -0.24190792441368103, 0.04896879941225052, 0.738747775554657, -0.21104247868061066, -0.21793915331363678, 0.1637108474969864, 0.09632966667413712, -0.19710485637187958, -0.4092148244380951, -0.7911003828048706, -0.21194049715995789, 0.5970344543457031, -0.17337162792682648, 0.1497515738010...
hidden and converted by the compiler at compile time. The compiler must know the number of columns and will do texture[a\*cols + b]. Use a class to hide the allocation, access to the texture. For academic purposes, if you really want dynamic multi dimensional arrays the following should work: ``` int rows = 16, cols...
[ -0.4036814868450165, -0.01036878116428852, 0.37852567434310913, -0.21340632438659668, -0.02545252814888954, 0.2881130576133728, 0.35306912660598755, -0.26909247040748596, -0.41948187351226807, -0.7563301920890808, -0.31478020548820496, 0.506007730960846, -0.2952369749546051, 0.182157307863...
arrays. They are just arrays of pointers, and array of pointers to pointers. There's memory overhead to this. Also this is done for 2D array without colour components. For 3D dereferencing this gets really messy. Don't use this in your code.
[ 0.4803737998008728, 0.22423991560935974, -0.008589251898229122, 0.1486436128616333, -0.1451987326145172, -0.029607512056827545, 0.20024031400680542, -0.13179028034210205, -0.3383283019065857, -0.7211862802505493, 0.12276440858840942, 0.41127142310142517, -0.6267110705375671, 0.001982118003...
I have a page which has a masterpage. Do I put script and link tags inside the asp:content place holders or outside or does it matter. When I put it outside, I get the following warning: Only Content controls are allowed directly in a content page that contains Content controls. I can see five (or 8) ways of doing it...
[ 0.45758137106895447, 0.0273299440741539, 0.5271201133728027, -0.010968550108373165, -0.18174928426742554, -0.05419047176837921, 0.556088924407959, -0.43053704500198364, -0.1471187323331833, -0.7524862289428711, 0.0004112233000341803, 0.34964096546173096, -0.17583785951137543, 0.04792266339...
lives inside the body tag. 4. Sticking it inside the asp:content where the content lives inside the head (**You've said this isn't an option, so ignore this**). 5. Adding it programmatically using the ScriptManager inside a control you use on the page as above. *"Only Content controls are allowed directly in a content...
[ 0.8170585036277771, -0.2944669723510742, 0.7170024514198303, 0.21982035040855408, 0.13784338533878326, -0.16903114318847656, 0.2367609590291977, -0.40953341126441956, -0.15934303402900696, -0.6159886717796326, 0.013390174135565758, 0.3731473982334137, -0.13395720720291138, -0.3152664601802...
When trying to run a very simple WatiN 2.0 (CTP3) test in Visual Studio 2008 I found that the first one always executes fine. The second test method seem to break something in the IE object producing the following exception: > Test method > testProject.WatinTest.testTwo threw > exception: > System.Runtime.InteropS...
[ 0.11455421894788742, 0.11326534301042557, -0.007265972904860973, -0.2510910630226135, -0.37814757227897644, -0.19788210093975067, 0.613605260848999, -0.1747657060623169, -0.06069985032081604, -0.5066205859184265, -0.08600130677223206, 0.4422321319580078, -0.599322497844696, 0.2021751701831...
Unfortunately unless the browser is opened in the common method it means a separate window for every test which is not ideal I would be very grateful for any ideas on how to fix that. Google search and SO search did not produce any useful results so I hope that a good answer to this question will help the community. M...
[ 0.8058592677116394, 0.08793792128562927, 0.09836582094430923, -0.09554346650838852, -0.13745886087417603, -0.27337294816970825, 0.7295535206794739, 0.14142639935016632, 0.18384839594364166, -0.6365119814872742, -0.2885866165161133, 0.4738197326660156, -0.15918242931365967, 0.44161707162857...
[TestMethod] public void testOne() { Assert.IsTrue(ie.ContainsText("Low graphics")); } [TestMethod] public void testTwo() { Assert.IsTrue(ie.ContainsText("Low graphics")); } ``` I have heard this problem before and meant to investigate this for a while. Now that WatiN 2.0 b...
[ 0.5100104808807373, -0.012918258085846901, -0.0157200675457716, -0.057374291121959686, -0.2591981887817383, -0.11579621583223343, 0.3996514678001404, -0.3480257987976074, 0.3330746293067932, -0.7495665550231934, 0.07341501861810684, 0.7266893982887268, -0.4354821443557739, -0.0732980370521...
also [blogged](http://watinandmore.blogspot.com/2009/03/reusing-ie-instance-in-vs-test.html) about this solution to give it even more exposure. ``` public class IEStaticInstanceHelper { private IE _ie; private int _ieThread; private string _ieHwnd; public IE IE { get { ...
[ 0.3377574682235718, -0.3283978998661041, 0.5182539224624634, 0.19723042845726013, 0.16225109994411469, -0.3165915012359619, 0.13966071605682373, -0.07813698798418045, 0.033440664410591125, -0.2481890469789505, -0.20403894782066345, 0.7923091053962708, -0.08244685083627701, -0.0388338640332...
_ie = IE.AttachToIE(Find.By("hwnd", _ieHwnd)); _ieThread = currentThreadId; } return _ie; } set { _ie = value;
[ -0.07230688631534576, -0.0017868154682219028, 0.6211135983467102, -0.36522844433784485, 0.38950115442276, -0.09445326030254364, 0.38690152764320374, -0.45960018038749695, 0.2337011843919754, -0.5083739757537842, -0.5117326378822327, 0.6337618827819824, -0.39186036586761475, 0.1801266372203...
_ieHwnd = _ie.hWnd.ToString(); _ieThread = GetCurrentThreadId(); } } private int GetCurrentThreadId() { return Thread.CurrentThread.GetHashCode(); } } ``` And the test class using this helper: ``` [TestClass] public class UnitTest { private static IEStaticInstanceHel...
[ 0.233600914478302, -0.20717759430408478, 0.39275044202804565, 0.15733659267425537, 0.4010254442691803, 0.06078137457370758, 0.22477781772613525, -0.1947363168001175, 0.15146124362945557, -0.5104742050170898, -0.18496175110340118, 0.6970507502555847, -0.07387829571962357, 0.4344112277030945...
ieStaticInstanceHelper = new IEStaticInstanceHelper(); ieStaticInstanceHelper.IE = new IE("http://news.bbc.co.uk"); } public IE IE { get { return ieStaticInstanceHelper.IE; } set { ieStaticInstanceHelper.IE = value; } } [ClassCleanup] public static void MyClassCleanup()...
[ 0.20374208688735962, -0.2142886519432068, 0.4910913407802582, 0.15405099093914032, 0.09407413005828857, -0.10310695320367813, 0.03977816551923752, -0.08433356881141663, 0.3502857983112335, -0.28811872005462646, -0.150625079870224, 0.6695165634155273, -0.035167448222637177, 0.08866044133901...
public void testOne() { Assert.IsTrue(IE.ContainsText("Low graphics")); } [TestMethod] public void testTwo() { Assert.IsTrue(IE.ContainsText("Low graphics")); } } ``` HTH, Jeroen
[ 0.5181576609611511, 0.15706762671470642, -0.13103081285953522, -0.03360026702284813, 0.08212955296039581, 0.06329977512359619, 0.5954692363739014, -0.1717442125082016, 0.3484918475151062, -0.7079882621765137, -0.28459712862968445, 0.6926276087760925, -0.15748612582683563, -0.11037596315145...
If I have a local variable like so: ``` Increment() { int i = getFromDb(); // get count for a customer from db }; ``` And this is an instance class which gets incremented (each time a customer - an instance object - makes a purchase), is this variable thread safe? I hear that local variables are thread safe bec...
[ 0.22840087115764618, -0.04733873903751373, 0.043970782309770584, -0.07595278322696686, -0.08538616448640823, -0.07751170545816422, 0.19620053470134735, -0.20295633375644684, -0.15760576725006104, -0.5750793814659119, 0.09579804539680481, 0.5527114272117615, -0.32812997698783875, 0.50610494...
is thread safe but this is flawed thinking and a bit of inexperience in concurrent programming. This sounds very naive, but then I don't have a lot of experience in concurrent coding like I do in general, synchronous coding. EDIT: Also, the function call getFromDb() isn't part of the question and I don't expect anyone...
[ 0.09799488633871078, -0.04048171266913414, -0.06767848879098892, 0.11194533109664917, -0.09403301030397415, -0.642256498336792, 0.3446582555770874, -0.2056245654821396, -0.0636768713593483, -0.24511757493019104, 0.13398949801921844, 0.5565930008888245, -0.5988004207611084, -0.0691553652286...
variable, so it only **normally** exists in the stack-frame of `Increment()` - so yes, `i` is thread safe... (although I can't comment on `getFromDb`). *except* if: * `Increment` is an iterator block (i.e. uses `yield return` or `yield break`) * `i` is used in an anonymous method ( `delegate { i = i + 1;}` ) or lambd...
[ -0.05812227353453636, -0.39924171566963196, 0.27006295323371887, 0.11354835331439972, 0.012305693700909615, -0.34227460622787476, 0.09159200638532639, -0.19301247596740723, -0.07509157806634903, -0.32247647643089294, -0.10049589723348618, 0.42229312658309937, -0.28557902574539185, 0.530585...
even more noticeable with `static` fields, since all threads automatically share the same field (except for thread-static fields).
[ 0.05563593655824661, -0.25850531458854675, -0.03184914588928223, 0.006025504320859909, -0.19060009717941284, -0.20524826645851135, 0.03612074628472328, 0.41183072328567505, -0.584811806678772, -0.31387585401535034, -0.24845029413700104, 0.08439987152814865, -0.3916276693344116, 0.557046234...
I don't have access to code here in front of me so I was just wondering if someone could help me out with Session.Evict(). Say I have a Person object with a child collection of Addresses. I populate the Person object from a session and lazy load the Addresses collection. I then call Session.Evict(personObject) to deta...
[ -0.37132254242897034, -0.17794682085514069, -0.1513417363166809, 0.0832621157169342, -0.2877452075481415, 0.22046275436878204, 0.3756893575191498, -0.05037418752908707, -0.21744070947170258, -0.6045662760734558, 0.0006447833147831261, 0.526526153087616, -0.2111755609512329, 0.4067472219467...
you evict the entity, then the collection will be accessible even after the eviction. However if you evict the entity and then try to lazy load the child collection you will get an exception.
[ 0.10415855795145035, -0.33548206090927124, 0.40665489435195923, 0.5892433524131775, 0.3276422321796417, -0.2836671471595764, 0.13132987916469574, -0.13047052919864655, -0.6266100406646729, -0.31224361062049866, -0.4403279423713684, 0.06949149072170258, -0.34452396631240845, 0.3096906244754...
Here's a simple problem. I have an application that takes a phone number like "13335557777", and needs to reverse it and insert a dot between each number, like this: "7.7.7.7.5.5.5.3.3.3.1." I know I can do this with a StringBuilder and a for-loop to reverse the string and insert the dots, but is there a clever way t...
[ 0.12623484432697296, -0.04244869202375412, 0.6077284812927246, -0.42803192138671875, 0.09297612309455872, 0.22487442195415497, 0.19557051360607147, -0.06139390170574188, -0.1780349463224411, -0.6243932843208313, 0.3083767890930176, 0.40531590580940247, -0.5417467951774597, 0.00214624102227...
+ y); ``` **EDIT** This solution is definitely aimed at the "clever" end. It's likely much more performant to use a StringBuilder to build up the string. This solution creates many intermediate strings. **EDIT2** There was some debate about the relative speed of the "clever" solution vs. the StringBuilder approac...
[ -0.1803964227437973, 0.1934964954853058, 0.40786534547805786, -0.0658397451043129, -0.35073333978652954, 0.17882318794727325, 0.47997376322746277, -0.5201982855796814, 0.02458280511200428, -0.5460551381111145, 0.10410390049219131, 0.24633555114269257, -0.27286460995674133, -0.3060465157032...
upon where it is actually used in your application. Code for the benchmark. ``` public static class AggregateUnchanged { public static string Run(string input) { return input .Reverse() .Select(x => x.ToString()) .Aggregate((x, y) => x + "." + y); } } public stat...
[ 0.137103870511055, 0.08247464895248413, 0.32219260931015015, -0.2503904104232788, -0.17806531488895416, 0.48849472403526306, 0.2094358652830124, -0.11494212597608566, -0.1816486269235611, -0.3172636032104492, 0.3961155116558075, 0.5167989134788513, -0.433662086725235, 0.12179068475961685, ...
var builder = new StringBuilder(); foreach (var cur in input.Reverse()) { builder.Append(cur); builder.Append('.'); } if (builder.Length > 0) { builder.Length = builder.Length - 1; } return builder.ToString();
[ -0.060681603848934174, -0.12608596682548523, 0.6073029041290283, -0.8236918449401855, -0.10262437164783478, 0.5895280241966248, 0.7900660634040833, -0.866958498954773, 0.26665371656417847, -0.4777117967605591, -0.17953109741210938, 0.6836149096488953, -0.36893463134765625, 0.43531891703605...
} } class Program { public static void RunAndPrint(string name, List<string> inputs, Func<string, string> worker) { // Test case. JIT the code and verify it actually works var test = worker("123456"); if (test != "6.5.4.3.2.1") { throw new InvalidOperationException("Bad algori...
[ 0.8233270049095154, -0.1686708927154541, 0.10221917927265167, -0.060033757239580154, 0.4888848662376404, 0.12464811652898788, 0.6366311311721802, -0.17599040269851685, 0.03618590161204338, -0.45743414759635925, -0.18971598148345947, 0.6273303627967834, -0.4567490816116333, 0.10805313289165...
watch.Start(); foreach (var cur in inputs) { var result = worker(cur); } watch.Stop(); Console.WriteLine("{0} ({2} elements): {1}", name, watch.Elapsed, inputs.Count); } public static string NextInput(Random r) { var len = r.Next(1, 1000); var builder...
[ 0.06650564819574356, -0.6167333722114563, 0.6260773539543152, -0.27042046189308167, 0.27982062101364136, 0.35517483949661255, 0.20742583274841309, -0.27468350529670715, -0.39643463492393494, -0.5192481279373169, -0.15510734915733337, 0.5521458983421326, -0.2909320592880249, 0.3371249139308...
for (int i = 0; i < len; i++) { builder.Append(r.Next(0, 9)); } return builder.ToString(); } public static void RunAll(List<string> input) { RunAndPrint("Normal Aggregate", input, AggregateUnchanged.Run); RunAndPrint("WithStringBuilder", input, WithStringBuilder.Run)...
[ 0.318835973739624, -0.29076704382896423, 0.3068721890449524, -0.5278039574623108, 0.24113567173480988, 0.4478699862957001, 0.5946217775344849, -0.513857364654541, -0.08604120463132858, -0.35507962107658386, -0.15898601710796356, 0.5008698105812073, -0.4489821791648865, 0.08165246993303299,...
var random = new Random((int)DateTime.Now.Ticks); RunAll(Enumerable.Range(0, 100).Select(_ => NextInput(random)).ToList()); RunAll(Enumerable.Range(0, 1000).Select(_ => NextInput(random)).ToList()); RunAll(Enumerable.Range(0, 10000).Select(_ => NextInput(random)).ToList()); } } ```
[ 0.16840802133083344, -0.5658446550369263, 0.26476433873176575, -0.26468732953071594, 0.36283671855926514, 0.3560616672039032, 0.09441676735877991, -0.4309517741203308, -0.3503514230251312, -0.5673337578773499, -0.020613282918930054, 0.48283153772354126, -0.4549850523471832, 0.4930262565612...
W3's EXI (efficient XML interchange) is going to be standardized. It claims to be "the last binary standard". It is a standard to store XML data optimized for processing and storage, is bundled with XML schema (making the data strongly typed and strongly structured). Well, there are a lot of claimed advantages. I was ...
[ 0.3370852470397949, -0.24204698204994202, 0.6083498001098633, -0.06862585246562958, -0.1687706708908081, -0.3400695323944092, 0.25669437646865845, -0.2653481364250183, 0.08505359292030334, -0.6824908256530762, -0.22014254331588745, 0.3651792109012604, -0.34561222791671753, -0.1949380934238...
commonly-used XML APIs for XML processing, so EXI has no immediate impact on existing XML APIs. However, using an existing XML API also requires that all names and text appearing in the EXI document be converted into strings. In the future, more efficiency might be achievable if the higher layers could directly use the...
[ 0.2758590579032898, -0.17235520482063293, 0.3889531195163727, 0.08698587119579315, -0.2159055918455124, -0.12642043828964233, 0.11954789608716965, -0.1576332151889801, 0.07144595682621002, -0.7336354851722717, -0.448379784822464, 0.42326435446739197, -0.5154143571853638, -0.202781900763511...
from: <http://www.w3.org/TR/exi-impacts/> I understand it as following: *"Using EXI with existing APIs? No performance gain! (Unless you rewrite them all)"* Let's take the Java ecosystem as an example: We have plenty of XML APIs in latest JDK 6 (With each major JDK release, more and more of them were added.) As far ...
[ 0.4501831531524658, 0.000743998505640775, 0.22615642845630646, 0.008385122753679752, -0.21153168380260468, -0.2658739387989044, 0.08976595848798752, 0.03277941420674324, -0.26639971137046814, -0.6962242722511292, -0.07802888751029968, 0.7791644334793091, -0.09962528944015503, -0.1091591492...
get the performance gains of EXI. All the EXI testing and performance measurements the W3C has conducted use the standard SAX APIs built into the JDK. For the latest tests, see [<http://www.w3.org/TR/exi-evaluation/#processing-results>](http://www.w3.org/TR/exi-evaluation/). EXI parsing was on average 14.5 times faster...
[ -0.034763600677251816, -0.19845856726169586, 0.45029759407043457, 0.12552347779273987, -0.2439645230770111, -0.1302531659603119, 0.0979556292295456, -0.09355750679969788, -0.16915223002433777, -0.6859363317489624, -0.23897790908813477, 0.7408073544502258, -0.2923131287097931, -0.2754114866...
> **Possible Duplicate:** > > [When should I use the new keyword in C++?](https://stackoverflow.com/questions/655065/when-should-i-use-the-new-keyword-in-c) When should I use the "new" operator in C++? I'm coming from C#/Java background and instantiating objects is confusing for me. If I've created a simple class ...
[ -0.230857253074646, 0.17343609035015106, 0.3321957588195801, -0.1648349165916443, 0.03985987603664398, -0.1268041729927063, 0.06417815387248993, -0.35505759716033936, -0.490522176027298, -0.6459798216819763, -0.3780072033405304, 0.5560958385467529, -0.23321296274662018, -0.0361696369946002...
you wish an object to remain in existence until you `delete` it. If you do not use `new` then the object will be destroyed when it goes out of scope. Some examples of this are: ``` void foo() { Point p = Point(0,0); } // p is now destroyed. for (...) { Point p = Point(0,0); } // p is destroyed after each loop ``...
[ 0.14999432861804962, -0.04523926228284836, 0.300240159034729, -0.23279385268688202, 0.34825029969215393, -0.25248730182647705, 0.550957202911377, -0.2491195797920227, -0.41311365365982056, -0.6374524235725403, -0.3639826476573944, 0.469357967376709, -0.3261757493019104, 0.6144788265228271,...
containing object, Foo, is allocated. I prefer to call this 'in-place' allocation. ``` class Foo { Point p; }; // p will be automatically destroyed when foo is. ``` Allocating (and freeing) objects with the use of `new` is far more expensive than if they are allocated in-place so its use should be restricted to w...
[ -0.28897538781166077, 0.017816470935940742, 0.07700013369321823, -0.13573101162910461, 0.06465311348438263, -0.011053119786083698, -0.11239520460367203, -0.33568859100341797, -0.2997283339500427, -0.6768673658370972, -0.2594584822654724, 0.2669532001018524, -0.46955060958862305, 0.28655159...
... delete [] pointArray; } ``` (\*pre-emptive nitpicking - yes, there are extensions that allow variable sized stack allocations).
[ -0.36611902713775635, -0.198075070977211, 0.15034230053424835, 0.07651863992214203, 0.2820408344268799, -0.0760774239897728, 0.16785494983196259, 0.030007006600499153, -0.20444098114967346, -0.5085551142692566, -0.44978421926498413, 0.2488805204629898, -0.4227941930294037, 0.30798155069351...
I am moving my Subversion repository from one machine to another. I have a few scattered working copies on various machines, and I have found that I can easily switch the working copies from the old server to the new one with the following command: ``` svn --relocate svn://oldServer/repo svn://newServer/repo ``` How...
[ 0.40498989820480347, 0.14032913744449615, 0.3253997564315796, -0.19276472926139832, -0.13887640833854675, -0.07779595255851746, 0.023519830778241158, 0.09346169233322144, -0.4293980598449707, -0.7598111629486084, -0.14816290140151978, 0.43203991651535034, -0.3169253170490265, 0.43559625744...
you right click your current repository and 'relocate' it to another domain.
[ 0.37609487771987915, 0.023767996579408646, 0.03780587017536163, 0.295868456363678, 0.23254503309726715, -0.38731780648231506, -0.11719918251037598, 0.4589386284351349, -0.16164012253284454, -0.5397451519966125, -0.2039085179567337, 0.23178423941135406, 0.030709749087691307, 0.7055303454399...
I have posted this question on The MapXtreme forum but since nobody ever answers questions there I am hoping someone here has some experience with this product (mapxtreme is a GIS SDK made by the people who make MapInfo) I am working on a MapXtreme Desktop app and we need bitmaps of our features styles I have tried ...
[ 0.5061142444610596, 0.04506848379969597, 0.314596563577652, 0.10440894961357117, -0.32592836022377014, -0.2850040793418884, 0.19882455468177795, 0.39519795775413513, -0.18064524233341217, -0.8502476215362549, 0.30414897203445435, 0.287462055683136, -0.36116093397140503, 0.08151117712259293...
{ var bm = new Bitmap(16, 16, System.Drawing.Imaging.PixelFormat.Format32bppArgb); var rect = new System.Drawing.Rectangle(0, 0, 16, 16); var ss = new StyleSample(); ss.Bounds = rect; if (style is CompositeStyle) { ss.ApplyAreaStyle(((CompositeStyle)style).Are...
[ 0.25810930132865906, -0.3980298340320587, 1.0791378021240234, -0.28156211972236633, -0.19268520176410675, 0.32455721497535706, 0.23984302580356598, -0.897818922996521, -0.2607702314853668, -0.5722209811210632, -0.33647873997688293, 0.23125383257865906, -0.40211376547813416, -0.094574205577...
} if (style is AreaStyle) { ss.ApplyAreaStyle((AreaStyle)style); } if (style is SimpleLineStyle) { ss.ApplyLineStyle((SimpleLineStyle)style); } //using MapExport var me
[ -0.039770618081092834, -0.35219112038612366, 0.624419093132019, -0.27761444449424744, 0.08836816996335983, -0.0447658970952034, 0.3222445249557495, -0.598871111869812, 0.07175435870885849, -1.0149531364440918, -0.34602493047714233, 0.48304644227027893, -0.4195381700992584, -0.0961944386363...
= new MapExport(ss.Map); var image = me.Export(); return new Bitmap(image); //using StyleSample.DrawToBitmap //ss.DrawToBitmap(bm, rect); //return bm; } ``` TIA I think you need to go into your 'repository browser' perspective there you right click your current repository ...
[ 0.22353696823120117, -0.4185267984867096, 0.24519191682338715, -0.09883567690849304, 0.3019774556159973, -0.2161944955587387, 0.3045330345630646, -0.5021636486053467, -0.33083146810531616, -0.6607158780097961, -0.19263406097888947, 0.6646567583084106, -0.5268983840942383, 0.053770679980516...
Hopefully someone can help us as we're reaching as far as investigation can go! We've got a simple asynchronous socket server written in C# that accepts connections from an ASP.NET web application, is sent a message, performs some processing (usually against a DB but other systems too) and then sends a response back t...
[ 0.4497007429599762, -0.08786021918058395, 0.18669164180755615, 0.3322812020778656, -0.06524147838354111, -0.08851239085197449, 0.06488025933504105, 0.10120859742164612, -0.2314232587814331, -0.5930460691452026, -0.3505997061729431, 0.35798242688179016, -0.040111225098371506, 0.109732881188...
not accept any further connections. At that point we have to bounce the process and off it runs again. We've tried running some load tests of our ASP.NET application to attempt to replicate the problem (because inferring some issue from the code wasn't possible). We think we've managed this and ended up with a WireSha...
[ 0.3769397437572479, -0.006083918735384941, 0.3797294795513153, -0.15436793863773346, -0.0524778738617897, -0.007164912298321724, 0.4001515507698059, 0.08209173381328583, -0.3213306665420532, -0.554327130317688, -0.16832514107227325, 0.3078504502773285, -0.33858364820480347, 0.5377034544944...
the packet trace as a single threaded process directly talking to the socket server (using the same code the ASP.NET app does) and am unable. Has anybody got any suggestions of next things to try, check for or obvious things we may be doing wrong? Look at the diagram ``` http://en.wikipedia.org/wiki/File:Tcp_state_...
[ 0.07960662990808487, -0.30563321709632874, 0.5598333477973938, 0.14964139461517334, -0.23034219443798065, -0.31077811121940613, 0.15383964776992798, 0.10165994614362717, -0.2042745053768158, -0.5002244710922241, -0.08643369376659393, 0.3315639793872833, -0.5197262763977051, 0.5366610884666...
connection, and then close() it immediately to free up the port. How? Refer to read(). Upon reading end-of-file (meaning FIN is received), zero is returned.
[ -0.14672914147377014, -0.2820131480693817, 0.4924183189868927, 0.11618072539567947, 0.3085990250110626, -0.1677192747592926, 0.047175660729408264, 0.06714272499084473, -0.21887165307998657, -0.4330809712409973, -0.26901236176490784, 0.4702949523925781, -0.1593581885099411, 0.65912097692489...
I'm looking for an easy (no database) method of listing how many users are active on a website. The easiest way I can come up with is by counting the number of open sessions. This code *should work:* ``` $number_of_users = count(scandir(ini_get("session.save_path"))); ``` Of course it won't because of the security ...
[ 0.4497336745262146, 0.2595815062522888, 0.4937083125114441, 0.03403659909963608, -0.2027267962694168, -0.33026742935180664, 0.5100916624069214, 0.11759496480226517, -0.6282327771186829, -0.6691309809684753, 0.12143544107675552, 0.6042347550392151, -0.21598125994205475, 0.1267334520816803, ...
from root that did something similar to: ``` ls /var/lib/php5/ | wc -l > /var/www/sessioncount ``` Make sure the `/var/www/sessioncount` file is readable by the apache user. Then you can just read the file in PHP: ``` $number_of_users = file_get_contents("/var/www/sessioncount"); ``` Easy does not mean no database...
[ 0.2541176676750183, 0.06983719021081924, 0.2343115359544754, 0.069851815700531, -0.27960970997810364, -0.4215979278087616, 0.5685297250747681, -0.15314964950084686, -0.4093782901763916, -0.7313423752784729, 0.06295493990182877, 0.6510677933692932, -0.18138162791728973, 0.14068502187728882,...
I'm getting the following error trying to define a list of "Lines": > line-clip.cpp:44: error: expected > initializer before '<' token ``` #include <list> using namespace std; class Line { public: Point p1; Point p2; Line(Point P1, Point P2) { p1 = P1; p2 = P2; } } // Line List...
[ -0.22945769131183624, -0.44527003169059753, 0.6612207889556885, 0.0043823993764817715, -0.18468418717384338, 0.2113484889268875, 0.300855815410614, -0.1699272096157074, -0.15446598827838898, -0.5591682195663452, -0.37033355236053467, 0.02797059901058674, -0.3379751145839691, 0.276870995759...
// put a semicolon here. ```
[ 0.01813909225165844, 0.5333883762359619, 0.03526812791824341, -0.09909854084253311, -0.11416272073984146, 0.24100446701049805, -0.1415223479270935, 0.6722555756568909, -0.17749297618865967, -0.6116553544998169, -0.48929017782211304, 0.11699047684669495, -0.14450667798519135, 0.212941363453...
### Duplicate > [MVC .NET For the Desktop?](https://stackoverflow.com/questions/326839/mvc-net-for-the-desktop) I've developed some ASP.NET MVC apps, and loving the framework. However, one thing I don't quite understand is why it's limited to web UIs. It seems like one of the *reasons* for a separation of the view an...
[ 0.34183040261268616, -0.06664765626192093, 0.5585949420928955, 0.15436089038848877, -0.151626318693161, 0.09246479719877243, 0.12611545622348785, 0.19489893317222595, -0.6026208996772766, -0.7694048881530762, 0.15927456319332123, 0.4236867129802704, -0.5242723226547241, 0.3498370945453644,...
web applications? Update: I'm less interested in "is it possible to do MVC on the Desktop" - I know Prism, etc. allow this. However from a design standpoint, one of the "reasons" we want separation of concerns is for reusability. If we can't reuse the controllers, it feels like we're repeating ourselves when rewriting...
[ 0.3394166827201843, 0.035406794399023056, 0.5290313959121704, 0.3251110911369324, -0.03230500966310501, -0.22091516852378845, 0.34548261761665344, -0.130777969956398, -0.5303543210029602, -0.5917218327522278, -0.14451085031032562, 0.5591479539871216, -0.4000750780105591, -0.209915786981582...
the model. In desktop apps, that is not the case, and you will be soon missing some opportunities the break the pattern to make the app more useful. For example, you can't do the powerful and time-saver databinding in WPF, because it breaks the MVC pattern. A good pattern used in WPF is [M-V-VM](http://karlshiffle...
[ 0.09777221083641052, -0.15799184143543243, 0.7752231955528259, 0.16603931784629822, 0.004632480908185244, -0.21622972190380096, 0.4901292622089386, -0.2943122386932373, -0.4921359717845917, -0.5159949064254761, -0.2234889566898346, 0.43020111322402954, -0.34185707569122314, 0.1051525697112...
Searching did not find a similar question, so: How can POST data used by PHP to generate one page be passed from that page to another PHP generated page? I have: * A form on page 1 which sends data to a PHP script via POST. * Page 2 is generated by that script and shows one or more graphs generated by an external prog...
[ 0.389070063829422, 0.08302075415849686, 0.46747544407844543, 0.14434659481048584, -0.4742986559867859, -0.019753525033593178, 0.3355506658554077, -0.08223321288824081, -0.2800949811935425, -0.7378761172294617, 0.18919038772583008, -0.0017108683241531253, -0.21081826090812683, 0.09896586090...
3 will be generated with the same PHP script using POST data glued together from pages 1 and 2. Except for the graphs, its basic appearance will be the same as page 2. * Pages 4, 5, 6 ... should be generated in the same manner as page 3. So, how can I put the POST data used to generate page 2 into the POST data for pa...
[ 0.18133610486984253, 0.0698314905166626, 0.6178891062736511, 0.027738753706216812, -0.4402922987937927, -0.09677650034427643, 0.5489729642868042, -0.603818416595459, -0.04791319742798805, -0.6182173490524292, -0.07206108421087265, 0.3397618234157562, -0.3371652662754059, -0.138350069522857...
ago, wondering why I simply couldn't redirect with a modified POST header. The reason is a redirect is actually considered a GET. Regardless, you need to store the post variables in hidden fields. ``` <input type="hidden" name="someValueFromPageOne" value="blah"> ``` I would recommend prefixing all your field names...
[ 0.42033296823501587, -0.09295357763767242, 0.3279578983783722, 0.07553967088460922, -0.24088230729103088, -0.19086943566799164, 0.27683454751968384, -0.1923888623714447, -0.29391559958457947, -0.6732235550880432, -0.12460744380950928, 0.393184632062912, -0.14329174160957336, 0.402862310409...
difficult to maintain. Unless you're facing an extreme case, it's much easier to persist data using fields since they survive refreshes and other browser behaviour much more easily.
[ 0.14957702159881592, 0.10367459058761597, 0.08191803842782974, 0.3504980206489563, -0.0036193612031638622, -0.19359244406223297, 0.5023931264877319, 0.0609341599047184, -0.30039528012275696, -0.450793594121933, -0.2937224805355072, 0.41550469398498535, -0.027881847694516182, 0.196723401546...
I'm familiar with the typical use of `onload`, as in the following: ``` <body onload="alert('Hello, World!');"> ... </body> ``` What are all the html elements that fire a load event? (thus executing javascript supplied in an onload attribute) For example, `img` is one such tag that will execute the javascript suppl...
[ 0.4035203158855438, 0.027504444122314453, 0.1888059824705124, -0.08384066820144653, -0.3633653223514557, -0.06092288717627525, 0.021709244698286057, -0.052011292427778244, -0.28808000683784485, -0.427170068025589, -0.2490290105342865, 0.5204653739929199, -0.24246583878993988, -0.2001287043...
Is it possible to export (for nfs mounting) tmpfs or rootfs directories? I have many linux nodes which are booted into a ram based filesystem with just rootfs and tmpfs. I want each node to see some files in the other nodes, so I am trying to export some directory and trying to mount on another node. I see the followin...
[ 0.2963438630104065, -0.02325040102005005, -0.049466412514448166, -0.11962263286113739, -0.12683866918087006, 0.016496069729328156, 0.2352306842803955, -0.0509619303047657, -0.417537122964859, -0.765180230140686, 0.08092918992042542, 0.6740253567695618, -0.46556222438812256, 0.2658915817737...
and configuration. `ramfs` can't be exported over NFS. However, exporting `tmpfs` over NFS works for me, and should: it's been in mainline for years. [91828a405ae454a9503c41a7744f6ff877a80714](http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=91828a405ae454a9503c41a7744f6ff877a80714).
[ -0.024577120319008827, 0.04307682812213898, 0.2935383915901184, -0.1725582331418991, -0.06108726188540459, -0.14215250313282013, 0.46995285153388977, -0.20173098146915436, -0.8663339614868164, -0.6444942951202393, -0.23948170244693756, 0.652898907661438, -0.5108169913291931, 0.351768791675...
I've seen web apps with limitations for user login attempts. Is it a security necessity and, if so, why? For example: *you had three failed login attempts, let's try again in 10 minutes!!* **Clarification** *This is a completion to the other answers. Using a good implemented captcha alongside an anti-bruteforce mech...
[ 0.14705438911914825, -0.010274868458509445, 0.3521875739097595, 0.2790418863296509, -0.09429030120372772, -0.18756890296936035, 0.7307488918304443, -0.3064650893211365, -0.43164339661598206, -0.5997185707092285, -0.0946286991238594, 0.4000888466835022, 0.1119033619761467, -0.25806257128715...
your application security against brute-force attacks. there's a [wide variety of captcha providers](http://woork.blogspot.com/2009/02/10-free-captcha-scripts-and-services.html) available for free, let's try the easy way if you're in a hurry. Also please consider that there's [people](http://www.google.com/search?q=cap...
[ 0.30966147780418396, 0.3222489356994629, 0.3656136989593506, 0.3095516264438629, 0.06446312367916107, -0.37652239203453064, 0.6190952658653259, 0.31973645091056824, -0.18434515595436096, -0.7804563045501709, -0.14279375970363617, 0.5808544158935547, -0.12501688301563263, -0.039054304361343...
sure that someone doesn't use a computer to sign up for millions of online accounts automatically, or.." [ref](http://billthelizard.com/2009/03/worst-captcha-ever.html).*
[ 0.4222520589828491, 0.023585371673107147, 0.25203055143356323, 0.21518349647521973, 0.6334348320960999, -0.4974931478500366, 0.6640211343765259, 0.5838993787765503, -0.3066529631614685, -0.10348956286907196, 0.10978801548480988, 0.44205811619758606, -0.33774852752685547, -0.063449926674366...
I'd like to put a group of `div` elements of fixed width into a container and have the horizontal scroll bar appeared. The `div`/`span` elements should appear in a line, left to right in the order they appear in the HTML (essentially unwrapped). This way the horizontal scroll bar will appear and can be used instead of...
[ 0.39927977323532104, -0.2872256338596344, 0.6133598685264587, 0.026532959192991257, -0.01133420318365097, -0.14487186074256897, -0.10215505212545395, -0.20586442947387695, -0.24658304452896118, -0.7200524806976318, -0.17129376530647278, 0.025570515543222427, -0.2163233906030655, 0.14964750...
nowrap; } .slide { width: 800px; float: left; display: inline; } ``` ```html <div class="slideContainer"> <div class="slide">Some content</div> <div class="slide">More content</div> <div class="slide">Even More content!</div> </div> ``` **UPDATE:** See [site](http://css-tricks.co...
[ -0.1245523989200592, -0.19523224234580994, 1.0704950094223022, -0.05806436389684677, -0.19826437532901764, -0.19029049575328827, -0.014968084171414375, -0.12152869999408722, -0.34230878949165344, -0.5693978667259216, -0.20217782258987427, 0.4369524121284485, -0.02903805486857891, 0.0433435...
content. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore e...
[ 0.2364046275615692, -0.16686208546161652, 0.7143791913986206, 0.22043779492378235, -0.17799361050128937, 0.09887336194515228, 0.15439139306545258, -0.14240406453609467, -0.126966193318367, -0.548395574092865, -0.3950410783290863, 0.539947509765625, -0.3496710956096649, 0.050912994891405106...
a scrollbar on the window instead of on this container. The key here is `display: inline-block`. This has [decent cross-browser support](http://www.quirksmode.org/css/display.html) nowadays, but as usual, it's worth testing in all target browsers to be sure.
[ 0.22863280773162842, -0.08576764911413193, 0.4258493483066559, 0.15301448106765747, -0.4027734696865082, -0.3113863468170166, 0.36890339851379395, 0.17010365426540375, -0.3571634888648987, -0.6284856200218201, 0.15119652450084686, 0.17837372422218323, -0.14733482897281647, 0.10168313235044...
I'm starting to get involved in an open source project [Gramps](http://www.gramps-project.org/wiki/index.php?title=Main_Page) which is exploring switching their backend from BSDDB to a relational database. Either SQLite or MySQL we haven't fully decided and may even try to do both in some limited capacity. I'm a profes...
[ 0.477428674697876, 0.1510334461927414, -0.021028462797403336, -0.1125817820429802, -0.33926713466644287, -0.2518458068370819, 0.16889894008636475, 0.23727452754974365, -0.4274953305721283, -0.6462657451629639, 0.131355881690979, 0.13542650640010834, -0.2413860708475113, 0.4132159352302551,...
a DB Abstraction Layer. If an ORM is included ad hock queries have to be available without to much wrestling. Right now the list includes: [CouchDB](http://code.google.com/p/couchdb-python/) I haven't yet looked into this. [DB-API](http://wiki.python.org/moin/DatabaseProgramming/) this seems to be a standard python ...
[ 0.7404126524925232, 0.09137950837612152, 0.1676793247461319, -0.04199347272515297, -0.48089268803596497, -0.2979666590690613, 0.0721396952867508, -0.18032465875148773, -0.10615189373493195, -0.46475711464881897, 0.08473950624465942, 0.6128836870193481, -0.4339459538459778, 0.09909358620643...
closely at SQLAlchemy. You can test and develop with SQLite. You can go into production with MySQL -- making essentially no changes to your applications. The DB-API, while widely adhered-to, has enough flexibility that (1) you aren't insulated from SQL variation in the underlying RDBMS and (2) there are still DB dri...
[ 0.5593491792678833, 0.3451733887195587, 0.38726744055747986, 0.08258646726608276, -0.04749312251806259, -0.3760147988796234, -0.0909716784954071, -0.18121109902858734, -0.2836546301841736, -0.5221129059791565, 0.08966263383626938, 0.8311693072319031, -0.09743119776248932, -0.22101610898971...
solid, clear, well-thought-out OO model. The relational mapping should come second after the object model. SQLAlchemy makes this a reasonable approach. A "DB Abstraction Layer" will happen in the normal course of events. Indeed, because of DB-API (as used by SQLAlchemy) you gave two abstraction layers: ORM and DB-API.
[ 0.08276625722646713, -0.12562808394432068, 0.3341824412345886, 0.162075474858284, -0.03856140747666359, -0.18328288197517395, -0.14349590241909027, -0.1165606826543808, -0.1529485583305359, -0.46375349164009094, -0.2212538868188858, 0.4475153684616089, -0.38345867395401, -0.060495197772979...
If I have a JAR (Android APK), and I signed it like this: ``` jarsigner -keystore my.keystore someApk.apk myAlias ``` How do I un-sign it? Because if I open it as a zip file and try to extract the AndroidManifest.xml, they are all messed up. It turns out that the problem is not related to the signing at all - it's ...
[ 0.573683500289917, 0.7427153587341309, 0.377332866191864, -0.17473246157169342, -0.17951606214046478, 0.14207978546619415, 0.33041465282440186, -0.13448330760002136, -0.007793179247528315, -0.6000862717628479, 0.2345150113105774, 0.5241317749023438, -0.44779109954833984, 0.2864372730255127...
Where do I find a complete list of new T-SQL features in sql server 2005 comparing with 2000? A few ones that I know: Pivot, Output, Try..Catch. Anything else? Thank you. Here is a Microsoft reference from Books online: <http://msdn.microsoft.com/en-us/library/ms189465(SQL.90).aspx> It contains Sample database e...
[ 0.23399324715137482, 0.09095952659845352, 0.1003410741686821, 0.16144253313541412, -0.25503936409950256, -0.3325449228286743, 0.110063336789608, 0.17604056000709534, -0.19739438593387604, -0.4315434992313385, 0.27130967378616333, 0.205436572432518, 0.15625768899917603, 0.2476358413696289, ...
I would copy some of the information over, but I don't think they would be very happy about that.
[ 0.6505417227745056, 0.46316736936569214, 0.13086079061031342, 0.062125835567712784, 0.33366796374320984, -0.41042327880859375, 0.08848325163125992, 0.3680122196674347, 0.049751851707696915, -0.34490740299224854, 0.23096659779548645, 0.33024606108665466, 0.2454996556043625, 0.21982903778553...
It has been a long time since I've used C++. I want to start programming in C++ again but I am looking for a particular resource and wondering if anyone here has any good references. I am looking for a book, web tutorial, video...whatever that teaches you C++ while you're building an application. So, for example, a boo...
[ 0.4643738865852356, 0.3652890622615814, -0.09579046070575714, 0.24934591352939606, -0.06633651256561279, -0.13010305166244507, 0.0430876798927784, 0.564570963382721, -0.5639864802360535, -0.5100059509277344, 0.06508217006921768, 0.42109373211860657, 0.1435891091823578, 0.013198241591453552...
Language by Bjarne Stroustrup or Effective C++ by Scott Meyers,
[ -0.15265820920467377, 0.4383207857608795, -0.03323706239461899, -0.3180779218673706, 0.13611578941345215, 0.360590398311615, 0.7581724524497986, 0.1632186323404312, 0.010659873485565186, -0.07660767436027527, -0.4886076748371124, 0.43263715505599976, -0.5134793519973755, -0.853348195552825...
I have a winforms application that uses a network socket and I want to close the socket when the application is closed so how can I fire an event when the application is closed? I found the Application Event. You can trigger an event on application close like this ``` System.Windows.Forms.Application.ApplicationExi...
[ 0.2792088985443115, 0.04495256021618843, 0.2981240153312683, -0.16009779274463654, 0.01139148510992527, -0.2770029604434967, 0.43263962864875793, -0.25768500566482544, -0.010121537372469902, -0.602662980556488, -0.10245376080274582, 0.7670413255691528, -0.3012007474899292, 0.11641382426023...
I've got a table that has rows that are unique except for one value in one column (let's call it 'Name'). Another column is 'Date' which is the date it was added to the database. What I want to do is find the duplicate values in 'Name', and then delete the ones with the oldest dates in 'Date', leaving the most recent ...
[ 0.38849857449531555, 0.42215844988822937, 0.3745308816432953, -0.08862689882516861, 0.3022078573703766, 0.10685727000236511, -0.2942892014980316, 0.04464876651763916, -0.2711425721645355, -0.5831263065338135, 0.24391767382621765, 0.08347155153751373, -0.038707707077264786, 0.63797807693481...
int identity(1, 1) primary key, Name varchar(800), DateAdded datetime default getdate() ) insert #Product(Name) select 'Chocolate' insert #Product(Name,DateAdded) select 'Candy', GETDATE() + 1 insert #Product(Name,DateAdded) select 'Chocolate', GETDATE() + 5 select * from #Product ;with Ranked as ...
[ -0.1398465633392334, -0.29866835474967957, 0.6410927772521973, -0.11470162123441696, 0.18972797691822052, 0.6182154417037964, -0.17690469324588776, -0.33599361777305603, -0.14642947912216187, -0.20563875138759613, -0.4680110812187195, 0.34626391530036926, -0.15101172029972076, 0.4310435354...
R.DupeCount > 1 select * from #Product ```
[ 0.03655056282877922, -0.2660336494445801, 0.10368819534778595, -0.256259948015213, -0.09914347529411316, 0.11723612993955612, 0.02203960157930851, -0.5400722622871399, 0.007622210308909416, -0.3668970763683319, -0.3716004490852356, 0.6110763549804688, -0.5157716274261475, 0.215143039822578...
I need to devise a test for web developers. This test should screen both good grasp of the DOM and manipulating it and Good skills in designing scalable and efficient DB and server side code, And to salt it a bit with web specific problems (like translating from one encoding to another, clean input-security). And...
[ 0.4825642704963684, 0.21095892786979675, 0.39989277720451355, 0.0030862039420753717, 0.1266433447599411, 0.038407035171985626, 0.06544601917266846, -0.5138801336288452, -0.011210965923964977, -0.5272184014320374, 0.04769352078437805, 0.5148038268089294, 0.08142334967851639, 0.2188791632652...
varchar(800), DateAdded datetime default getdate() ) insert #Product(Name) select 'Chocolate' insert #Product(Name,DateAdded) select 'Candy', GETDATE() + 1 insert #Product(Name,DateAdded) select 'Chocolate', GETDATE() + 5 select * from #Product ;with Ranked as ( select ID, dense_rank() ...
[ -0.07905863225460052, -0.3374668061733246, 0.7604580521583557, -0.17787005007266998, 0.14880123734474182, 0.6010063886642456, 0.08548974245786667, -0.37582069635391235, -0.26245102286338806, -0.20243602991104126, -0.44202834367752075, 0.47765442728996277, -0.09093843400478363, 0.4750885665...
I have a `char**` that I frequently need to insert into or perform a lookup. It is very tedious to `realloc()`, `malloc()` the array and insert strings. Is there any standard way that I can add strings to or do lookups in a `char**`? I guess I'm looking for something like string, but using `char**`'s instead. If you'r...
[ 0.27087318897247314, 0.04614509642124176, -0.1863018125295639, 0.031551528722047806, 0.14228057861328125, -0.004474906250834465, 0.09537207335233688, 0.13395477831363678, -0.12772956490516663, -0.5344492197036743, 0.02012624405324459, 0.6147283315658569, -0.1464996188879013, 0.031459484249...
Can u tell me exact practical view of configuration section of web config here is one example ``` <configuration> <configSections> <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0...
[ 0.11953362077474594, 0.22977404296398163, 0.5669999718666077, 0.0601501539349556, 0.1856866478919983, 0.3230668604373932, 0.312696248292923, -0.1898096352815628, -0.11869258433580399, -0.5983907580375671, 0.07363332808017731, 0.6142117977142334, -0.027224306017160416, 0.029433738440275192,...
type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutra...
[ 0.18452760577201843, 0.18884623050689697, 0.43286600708961487, 0.10634876042604446, 0.3132967948913574, 0.13385801017284393, 0.5523044466972351, -0.32145747542381287, -0.2689662575721741, -0.5760348439216614, -0.27755120396614075, 0.4822752773761749, -0.25624752044677734, -0.15522991120815...
</configSections> ``` You want to know what it means? It is defining custom sections for your web.config. You should see ... Somewhere bellow in the config file. They are all from Microsoft the first three being from EnterpriseLibrary. The rest are used for AJAX support in ASP.NET. If you're wondering what this me...
[ 0.18586473166942596, 0.1872594952583313, 0.30670174956321716, 0.03559517487883568, -0.12277835607528687, 0.08145877718925476, -0.006811678875237703, 0.010818476788699627, -0.2935987710952759, -0.5081689357757568, -0.40886831283569336, 0.141034796833992, -0.24721290171146393, 0.217947453260...
After cloning the latest stable versions of * [rails](http://github.com/rails/rails/tree/master) (2.3.2), * [rspec](http://github.com/dchelimsky/rspec/tree/master) (1.2.2), * [cucumber](http://wiki.github.com/aslakhellesoy/cucumber) (0.2.0.4...came out 2009-03-24), * [rspec-rails](http://wiki.github.com/dchelimsky/rs...
[ -0.12286610156297684, -0.26801609992980957, 0.7505494952201843, 0.035039566457271576, -0.0520051084458828, 0.0550730936229229, 0.2777266502380371, -0.25882524251937866, -0.16640391945838928, -0.44193747639656067, -0.10245059430599213, 0.5245763659477234, -0.34968844056129456, 0.12778064608...