text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
even when debugging. I had the same issue a few months ago I surfed around for hours, finding different solutions and finally the solution was really trivial - just click Debug -> Delete all breakpoints. For me it was weird, as I didn't have any breakpoints I knew of... but it worked... I had removed them by hand but a...
[ 0.06175868213176727, 0.059722449630498886, 0.501606822013855, 0.2814745604991913, -0.147348552942276, -0.13785848021507263, 0.6451863646507263, 0.33826836943626404, -0.3445735573768616, -0.4980728030204773, 0.15879826247692108, 0.6236121654510498, -0.40016573667526245, 0.2702025771141052, ...
We have an existing TFS 2005 install and a newer 2008. The 2008 server already has some newer projects on it but I am looking to move the older projects from 2005 onto this newer server. Does anyone know an easy way to do this and maintain the audit history rather than just break source control on the project and then...
[ 0.6489289999008179, 0.19377975165843964, 0.23639047145843506, 0.031508926302194595, -0.15818370878696442, -0.30395013093948364, 0.2856517434120178, -0.1420876830816269, -0.18992692232131958, -0.5880712270736694, 0.24215476214885712, 0.3877499997615814, -0.1742064654827118, 0.05331413447856...
area between the two. Also, all the history will appear as if all changes happened on the same day due to how TFS stores the version history information. Depending on your needs it may be easier to make the break and leave the 2005 database up until that history is no longer needed.
[ 0.3310428857803345, -0.07216515392065048, 0.3772871196269989, 0.19916212558746338, 0.22824884951114655, -0.34395647048950195, 0.181069478392601, 0.12410440295934677, -0.4834100306034088, -0.50334632396698, -0.28743356466293335, 0.307560533285141, 0.0007860481855459511, 0.306207537651062, ...
I am creating a class that determines which of number of registered WCF client callbacks to call. When a client registers with the server, it supplies the token it is interested in. The class then stores a mapping of token to IClientCallback interface for that token, in a Dictionary. The method and it's class under te...
[ 0.13182273507118225, -0.21541908383369446, 0.35010281205177307, -0.010175325907766819, -0.09421902149915695, 0.16178706288337708, -0.012979869730770588, -0.4095149636268616, -0.030250027775764465, -0.7006985545158386, 0.10418016463518143, 0.35132285952568054, -0.27314305305480957, 0.346489...
{ this.clients = clients; } public bool Register(int token, IClientCallBack client) { if (!clients.ContainsKey(token)) { clients.Add(token, client); return true; } return false; } } ``` How do I test the clients
[ 0.16608524322509766, -0.022865736857056618, -0.04120514914393425, -0.04856153950095177, -0.18564902245998383, 0.024883568286895752, 0.38006356358528137, -0.42207419872283936, -0.2506984770298004, -0.45810312032699585, 0.0008057717350311577, 0.10999680310487747, -0.16126668453216553, 0.2652...
are successfully registered with the Router? I figured I can either assume that if the function returned true, it is successful (but what is to stop the function body being only "return true;"?) or I could inject the clients Dictionary into the constructor of the class and in my test I could check that clients.Count eq...
[ 0.2883082926273346, -0.019758010283112526, 0.6036512851715088, -0.1886231005191803, 0.03603047505021095, 0.1697959452867508, 0.8202455639839172, -0.6408112049102783, 0.018919073045253754, -0.4000602066516876, -0.2010510265827179, 0.761452317237854, -0.11837238073348999, 0.15367990732192993...
Assert.AreEqual(1, clients.Count); Assert.AreEqual(clients[4], client); } ``` While the test above seems good, it seems like overkill to use dependency injection to insert the collection in, just so I can test it. However it does make testing a lot easier and more accurate (when testing other methods o...
[ 0.39034202694892883, 0.10121617466211319, 0.1615985631942749, -0.047850027680397034, -0.24854476749897003, -0.1271275132894516, 0.39705854654312134, -0.4432689845561981, 0.245238795876503, -0.2707352340221405, 0.3824033737182617, 0.9157511591911316, -0.36531421542167664, -0.142406001687049...
point it's part of the API. If you can do without the constructor taking a dictionary, then just test the actual *effects* of the dictionary's contents. So, if you call Register twice for the same token, it should return false, right? Make that a test. Presumably there will be other things to do with tokens - so test ...
[ 0.29749101400375366, 0.15448549389839172, 0.009273254312574863, 0.012523211538791656, -0.23934997618198395, 0.1548289954662323, -0.012667572125792503, -0.41084524989128113, -0.09106303751468658, -0.36145687103271484, 0.3423612713813782, 0.06745634973049164, -0.14858946204185486, 0.03346044...
probably shouldn't care. Now, before I start sounding too academic, I'm not one of those people who believe that unit tests should always, always touch just public methods and not care about implementation. They're not black box tests. Sometimes knowing the implementation can make it a lot easier to test just one comp...
[ 0.8516964912414551, -0.08887048810720444, -0.3614598512649536, 0.2968130111694336, -0.13708260655403137, -0.21160469949245453, 0.5141952037811279, 0.12904489040374756, -0.12067804485559464, -0.220798522233963, 0.3165251910686493, 0.2732682526111603, 0.3301512598991394, -0.1621665209531784,...
I can't find newer Microsoft Blend Preview. Is it available? [Replaced by SP1](http://weblogs.asp.net/scottgu/archive/2008/09/25/silverlight-2-release-candidate-now-available.aspx): > “Rather than give it a new version > string (and force existing users to > upgrade to a new version), we decided > to release the fu...
[ 0.5842388868331909, -0.332087904214859, 0.47239401936531067, -0.18155823647975922, -0.06591251492500305, -0.46804431080818176, 0.2362300604581833, -0.3302580416202545, -0.03319774195551872, -0.4311678111553192, -0.14066649973392487, 0.3043513596057892, -0.28358256816864014, -0.293313920497...
In many GUIs when I select a section of text and then hit the `Tab` or `Shift`+`Tab` button the selected section will indent in or out. In VIM I can select a visual section and then hit the `<` or `>` key to change indenting, however once I hit the `<` key my selection is cleared so I am stuck selecting the section a...
[ 0.0390373133122921, -0.30860355496406555, 0.5472078919410706, -0.07535143941640854, -0.4391959309577942, -0.13431549072265625, 0.07983624190092087, 0.15914009511470795, -0.1522606760263443, -0.8282284736633301, -0.1374512016773224, 0.5152648091316223, -0.32532620429992676, -0.0181140862405...
the current selected text selected? Is there a trick to re-map `Tab` and `Shift`+`Tab` so they behave in this way in visual mode? ``` vmap <Tab> >gv vmap <S-Tab> <gv ```
[ -0.12275700271129608, 0.013769903220236301, 0.5829412937164307, 0.0906766876578331, -0.1876169592142105, 0.09818534553050995, -0.11408735066652298, -0.23702922463417053, -0.2127150148153305, -0.49826428294181824, -0.4541323482990265, 0.55797278881073, -0.4194829761981964, -0.05537547916173...
I want to parse a programming language. I read a lot about formal languages and the Chomsky hierarchy and ANTLR. But I could not find information on how to relate the languages ANTLR v3 as an LL(\*) recursive descent parser accepts to the chomsky hierarchy. How do the Chomsky types mix with LL(\*)? Any information (on...
[ -0.028168069198727608, 0.3892841041088104, 0.02251635305583477, 0.029088057577610016, -0.46834102272987366, 0.3014623820781708, 0.3840046226978302, -0.01687176339328289, 0.015253676101565361, -0.5060656070709229, -0.3721581995487213, 0.38816672563552856, -0.6559424996376038, -0.16174477338...
regular languages are too weak for programming purposes and because a general context-free parser is O(n^3) which is too slow for parsing a program. Indeed, augmenting a parser with helper functions does make it stronger. [The Wikipedia entry on LL parsers](http://en.wikipedia.org/wiki/LL_parser) explains some of this....
[ -0.07351681590080261, 0.1803234964609146, 0.16792096197605133, 0.08354906737804413, -0.1500529944896698, -0.07489904761314392, 0.20846037566661835, 0.3221341073513031, -0.06463940441608429, -0.47035831212997437, -0.45043984055519104, 0.5976858735084534, -0.2714694142341614, -0.799383401870...
I am inside a UIView subclass (CustomView in the code below). I am drawing a border around an image in a UIImageView subclass (containerView). The Core Graphics code for this is located inside `drawInRect:` in the subclass. The Core Animation transition is a flip, however when it is drawn, the Core Graphics code is n...
[ 0.6396563053131104, -0.05932954326272011, 0.6635873317718506, -0.07592589408159256, -0.06507125496864319, 0.18007564544677734, -0.15695205330848694, 0.05259476974606514, 0.1101069226861, -0.8631644248962402, 0.07900912314653397, 0.4750713109970093, 0.015234283171594143, 0.1788899153470993,...
beginAnimations:@"transitionNextImage" context:nil]; [CustomView setAnimationDuration:2.0]; [containerView setImage:image]; [CustomView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:containerView cache:YES]; [containerView setImage:differentImage]; [CustomView commitAnimations]; ``` You're imple...
[ 0.17571541666984558, -0.19260190427303314, 0.6639360189437866, -0.03443484380841255, -0.15700757503509521, -0.013238993473351002, 0.16860608756542206, -0.38786083459854126, -0.13341465592384338, -0.9061490893363953, -0.22561146318912506, 0.5915246605873108, -0.054794006049633026, -0.064080...
`setImage:` to create a new image based on the first but drawing a border around that, and then passing that to super. That way you don't have to do anything with `drawRect:` at all.
[ 0.49197372794151306, -0.2699646055698395, 0.49153995513916016, 0.2533015310764313, -0.4019206464290619, -0.22613534331321716, 0.024443386122584343, -0.13387884199619293, -0.21818473935127258, -0.5524330735206604, -0.2541843056678772, 0.3570444583892822, -0.4065191447734833, 0.1178790107369...
I need to program kind of configuration registry for Django-based application. Requirements: 1. Most likely `param_name` : `param_value` structure 2. Editable via admin interface 3. Has to work with syncdb. How to deal with a situation in which other apps depend on configuration model and the model itself has not be...
[ 0.38285669684410095, 0.15984126925468445, 0.2881146967411041, 0.0721973180770874, -0.25317996740341187, -0.2705189287662506, 0.13515356183052063, -0.21636374294757843, 0.05465096980333328, -0.660548985004425, 0.020946143195033073, 0.6410781741142273, -0.17748653888702393, -0.09381306171417...
I was thinking of making a small tool. It is not important what the tool will do. The important thing, is that the tool will need to store some sensitive information on the user's HDD. **EDIT: The information that will be stored is USER'S information - I'm not trying to protect my own content, that I distribute with th...
[ 0.4403018355369568, 0.27475252747535706, 0.39023178815841675, 0.34968629479408264, 0.05244842916727066, -0.16223768889904022, 0.300051748752594, 0.06984510272741318, -0.08926718682050705, -0.7121807336807251, -0.12751108407974243, 0.667693018913269, 0.03833350911736488, 0.08217105269432068...
passwords? When I say windows I mean Windows XP SP2 or later. I should also note, that users on the same system must not have access to other users information (even when they are both running my application). I'm looking for both - .NET 2.0 (C#) and native (C/C++) solutions to this problem. > is there a way, to encr...
[ -0.06439667195081711, 0.1864181011915207, 0.24587050080299377, 0.47845473885536194, 0.30858394503593445, -0.18005429208278656, 0.2780933678150177, -0.015105774626135826, -0.3311183750629425, -0.45925408601760864, -0.20113252103328705, 0.7261436581611633, -0.005051024258136749, 0.0852486044...
Using the Java version of Lucene, how would you find out the number of documents in an index? IndexReader contains the methods you need, in particular, numDocs <http://lucene.apache.org/core/3_6_0/api/all/org/apache/lucene/index/IndexReader.html#numDocs()>
[ -0.18486593663692474, -0.23117734491825104, 0.04134957119822502, 0.4542512893676758, -0.07621166855096817, -0.05844813212752342, -0.3547304570674896, -0.08927198499441147, -0.12244193255901337, -0.8723090887069702, -0.035574257373809814, 0.15865643322467804, 0.021742399781942368, 0.1418092...
---HTML ``` <div id="story"> <div id="individual"> <img src='uploads/1231924837Picture.png'/> <h2>2009-01-14</h2> <h1>Headline</h1> <p>stroy story etc stroy story etc stroy story etc</p> </div> <br /> <div id="storynav"> <a href='home.php?start=0'>1</a> <a href='home.php?start=1'>2</a> <a href='home.php?start=2'>3...
[ -0.2615323066711426, 0.03755897656083107, 0.4926542043685913, -0.024102915078401566, -0.03784404695034027, 0.32368841767311096, 0.006459585856646299, -0.39381685853004456, -0.3449675142765045, -0.5044054985046387, -0.2346118837594986, 0.41999486088752747, -0.06983327120542526, 0.1062531173...
show the static html. Can any one tell me what i am doing wrong? The background color should cover the picture as well. Thanks! EDIT Thanks for that. It is something i had previously tried but it doesn't do anything. I have also tried a spacer in there as well and that doesn't do anything. Flummoxed! You are setting ...
[ 0.5468581318855286, -0.16270826756954193, 0.7775794267654419, 0.3690888583660126, -0.18241636455059052, -0.19361042976379395, 0.04907260835170746, 0.24400594830513, -0.40611526370048523, -0.304722398519516, 0.33458659052848816, 0.19007648527622223, -0.14241591095924377, 0.2968142032623291,...
style `clear: both;` underneath the img tag in your HTML, preferably at the end of the div like so: ``` <div id="story"> <div id="individual"> <img src='uploads/1231924837Picture.png'/> <h2>2009-01-14</h2> <h1>Headline</h1> <p>stroy story etc stroy story etc stroy story etc</p> </div> <br /> <div id="storynav"> <a hr...
[ 0.1086917370557785, 0.0889291912317276, 0.5821707844734192, -0.12128264456987381, -0.052242182195186615, -0.24580945074558258, 0.21377120912075043, -0.15432263910770416, -0.20660629868507385, -0.44202762842178345, -0.3654489815235138, 0.6259289383888245, -0.19619500637054443, 0.08740305900...
Whenever a question pops up on SO about Java synchronization, some people are very eager to point out that `synchronized(this)` should be avoided. Instead, they claim, a lock on a private reference is to be preferred. Some of the given reasons are: * [some *evil code* may steal your lock](https://stackoverflow.com/qu...
[ 0.3203933537006378, -0.040026240050792694, 0.050209857523441315, 0.19926299154758453, 0.08710862696170807, -0.5989881753921509, 0.4968333840370178, -0.24259935319423676, -0.5299060940742493, -0.1989443153142929, -0.14623551070690155, 0.35248225927352905, -0.533790647983551, 0.1980854123830...
well understood. It should not be avoided because you have a bug and you don't have a clue of what is going on in your multithreaded program. In other words: if it is applicable, then use it. I am interested in seeing some real-world examples (no foobar stuff) where avoiding a lock on `this` is preferable when `synchr...
[ 0.40574273467063904, 0.35237377882003784, -0.06706873327493668, 0.2883284091949463, 0.24810214340686798, -0.3769356906414032, 0.35912373661994934, 0.047485969960689545, -0.38201192021369934, -0.43089359998703003, -0.0530979260802269, 0.7727035880088806, -0.6099652051925659, 0.1024950072169...
are considered * if you quote Bloch or other authorities on the subject, don't leave out the parts you don't like (e.g. Effective Java, item on Thread Safety: *Typically it is the lock on the instance itself, but there are exceptions.)* * if you need granularity in your locking other than `synchronized(this)` provides,...
[ 0.39744800329208374, -0.020420249551534653, -0.020959556102752686, 0.12003099918365479, 0.21554988622665405, -0.45692864060401917, 0.3498060405254364, -0.3252900242805481, -0.5654105544090271, -0.38545122742652893, -0.16429728269577026, 0.5569798350334167, -0.43558618426322937, 0.038570974...
your class' exposed interface, and should be documented. Sometimes the ability of other code to use your lock is desired. This is true of things like `Collections.synchronizedMap` (see the javadoc). 2. > All synchronized methods within the same class use the exact same > lock, which reduces throughput This is overly ...
[ 0.42458853125572205, -0.28945013880729675, -0.19520968198776245, 0.35165461897850037, -0.22641918063163757, -0.5304359793663025, 0.6422147154808044, -0.015231696888804436, -0.12647947669029236, -0.5263022184371948, 0.06834904104471207, 0.46316370368003845, -0.5909677147865295, 0.0710846334...
Currently I am evaluating number of web service frameworks in Java. I need web service framework that will help me to expose some functionality of existent application running on JBoss, The application is mostly developed using Spring and POJOs (no EJBs). What I need is a framework having following properties: 1. It ...
[ 0.3046349883079529, 0.11017130315303802, 0.08110237121582031, 0.15903902053833008, 0.027656901627779007, -0.2749191224575043, 0.17524299025535583, -0.29037734866142273, -0.25652652978897095, -0.7464434504508972, -0.03336025029420853, 0.24841593205928802, -0.1658383011817932, 0.030358852818...
(like axis2.xml in axis2 framework). * Also it is preferred to be able to deploy web service within *.war* archive of existent application. (it seems that Axis2 need a separate archive for web service app.) * It will be very cool to use a combination of *POJOs* and *Spring*. * Generally, the framework should have cl...
[ 0.4618789255619049, -0.14490079879760742, 0.0356513187289238, 0.3095420300960541, -0.3949244022369385, -0.25258371233940125, 0.24010922014713287, -0.18996402621269226, -0.16955436766147614, -0.7583297491073608, -0.024912815541028976, 0.3650374114513397, -0.12606342136859894, 0.010783272795...
still it is difficult to decide what to use in my case: * Axis2 seems to be so low level, it requires separate application archive and lots of configurations * Spring WS seems to be too opaque and "sophisticated for impression purposes (?)" * Apache CXF and Metro probably are two frameworks that I prefer to chose from...
[ 0.4011892080307007, -0.2631095051765442, -0.07231266796588898, 0.2297360897064209, -0.5138288736343384, -0.09290537983179092, 0.07203389704227448, -0.049398377537727356, -0.14556849002838135, -0.584347128868103, 0.3213578462600708, 0.4154179096221924, -0.16011542081832886, 0.27190747857093...
of development. At the time (don't know if this is true now), the performance of XFire was much better than anything out there, and with annotation-driven development, instead of having to run stub generation, it was really really easy to add new web services. CXF seems to be more of the same but better - we haven't m...
[ 0.4029794931411743, 0.12169773876667023, 0.3977339565753937, -0.023891016840934753, -0.24755951762199402, -0.1365029513835907, 0.06688038259744644, 0.05381246283650398, -0.15021978318691254, -0.4477602243423462, 0.030345041304826736, 0.3521776497364044, -0.19262853264808655, 0.114925347268...
you how CXF stands up to its contemporary competitors. Regarding your points: 1. There is no boilerplate code to be generated, the WSDL is automatically created from the service class' annotations and published by the server. 2. Deployment in Tomcat was relatively simple. Just define another servlet in web.xml and ma...
[ 0.5704501271247864, -0.1716659814119339, 0.33399540185928345, 0.007539483718574047, -0.25387078523635864, -0.11747082322835922, -0.1713363528251648, -0.1126304566860199, -0.18707343935966492, -0.3202734589576721, -0.01925603114068508, 0.462982177734375, -0.0985746681690216, -0.180288240313...
in order to wire more complex conditional dependencies in and have had no problems with this. 5. Documentation was a weak point with CXF originally, though having just had a look it seems to be better now. The general design and architecture seems relatively sane; slotting in one's own filters to modify the transmissio...
[ 0.45677441358566284, -0.2692800760269165, 0.19842317700386047, -0.05998919531702995, -0.22913353145122528, -0.4552074670791626, 0.3783887028694153, -0.24389468133449554, 0.11342376470565796, -0.44733208417892456, -0.2703961730003357, 0.802945613861084, -0.46339020133018494, -0.379562973976...
up to having a look at CXF. It's pretty fast, relatively simple to get going with and fairly powerful if you need to tweak it.
[ 0.8553645014762878, 0.08672749996185303, 0.17141802608966827, -0.07043096423149109, -0.10341936349868774, -0.1852477639913559, -0.18619060516357422, 0.3319036364555359, -0.15068693459033966, -0.3029137849807739, 0.17360171675682068, 0.49331673979759216, 0.21234360337257385, -0.286681532859...
We have a system with an Oracle backend to which we have access (though possibly not administrative access) and a front end to which we do not have the source code. The database is quite large and not easily understood - we have no documentation. I'm also not particularly knowledgable about Oracle in general. One aspe...
[ 0.49907150864601135, 0.5134357810020447, -0.24665498733520508, 0.29527390003204346, -0.008588659577071667, -0.2565273642539978, 0.024970702826976776, 0.1603994369506836, 0.010425591841340065, -0.2129070907831192, -0.03353297710418701, 0.334542840719223, -0.08791154623031616, 0.076681770384...
periodically). What methods would you use to determine the SQL required to retrieve this set of data? Currently I'm leaning towards the use of an EeePC, Wireshark and a hub (installing Wireshark on the client machines may not be possible), but I'm curious to hear any other ideas and whether anyone can think of any pi...
[ 0.6781135201454163, -0.25265511870384216, 0.7013778686523438, 0.39828941226005554, 0.134613037109375, -0.2335563451051712, 0.2665174603462219, -0.1451249122619629, -0.5318734049797058, -0.5729188323020935, -0.043642498552799225, 0.8055432438850403, -0.30478137731552124, 0.13115189969539642...
tracing for the session: ``` exec sys.dbms_system.set_bool_param_in_session( *sid*, *serial#*, 'timed_statistics', true ) exec sys.dbms_system.set_int_param_in_session( *sid*, *serial#*, 'max_dump_file_size', 2000000000 ) exec sys.dbms_system.set_ev( *sid*, *serial#*, 10046, 5, '' ) ``` (4) Perform some actions in t...
[ 0.612506628036499, -0.09439259767532349, 0.5868304371833801, 0.15975461900234222, 0.009112880565226078, 0.07734787464141846, 0.2138998806476593, -0.689749002456665, -0.16129253804683685, -0.5553041100502014, -0.15948374569416046, 0.28926897048950195, -0.1613185554742813, -0.092579767107963...
require access to the database server, which may be problematic if you're not the DBA and they don't let you onto the machine. Also, identifying the proper session to trace can be difficult if you have many clients or if the client application opens more than one session.
[ 0.5370092988014221, 0.1784883588552475, -0.06069866195321083, 0.23164930939674377, 0.3127882778644562, -0.4979510009288788, 0.5230722427368164, -0.3143194019794464, -0.3735530972480774, -0.5217246413230896, -0.2824550271034241, 0.3290863633155823, -0.04178363457322121, 0.07826485484838486,...
I have following text in a file ``` 23456789 ``` When I tried to replace the above text using command ``` 1,$s/\(\d\)\(\d\d\d\)\(\d\d\)*\>/\3\g ``` I am getting `89`. Shouldn't it be `6789`? Can anyone tell me why it is `89`. Group 3 is defined as being 2 digits long. If you want to match the last 4 digits you w...
[ -0.25126516819000244, 0.16751813888549805, 0.41172024607658386, -0.42797839641571045, -0.0687837153673172, -0.028581194579601288, 0.3282167911529541, -0.4308633506298065, -0.269307404756546, -0.3332750201225281, 0.10062960535287857, 0.2960319221019745, -0.37908458709716797, -0.154601290822...
I have the following C++ method : \_\_declspec(dllexport) void \_\_stdcall getDoubles(int \*count, double \*\*values); the method allocates and fills an array of double and sets \*count to the size of the array. The only way i managed to get this to work via pinvoke is : ``` [System.Runtime.InteropServices.DllImport...
[ 0.13093097507953644, 0.03111300989985466, 0.6626513004302979, -0.1367836594581604, 0.12713700532913208, 0.14013662934303284, 0.41010746359825134, -0.696061909198761, -0.26134705543518066, -0.5117822289466858, -0.21207088232040405, 0.5062258243560791, -0.4255434572696686, 0.1256038546562194...
ti do this not invloving pointer arithmetic in a managed language... I think you can use ``` Marshal.Copy( source, destination, 0, size ); ```
[ 0.5026749968528748, 0.09524764865636826, -0.18479880690574646, 0.27893444895744324, 0.2400849461555481, -0.5240285992622375, 0.13473966717720032, -0.06770700961351395, 0.35206520557403564, -0.8654376864433289, 0.1059611514210701, 0.7698888182640076, -0.49430304765701294, -0.066579692065715...
I have a Perl program, that needs to use packages (that I also write). Some of those packages are only chosen in Runtime (based on some environment variable). I don't want to put in my code a "use" line for all of those packages, of course, but only one "use" line, based on this variable, something like: ``` use $ENV{...
[ 0.4847334623336792, 0.20141437649726868, -0.0011089338222518563, -0.10745096206665039, -0.1714792400598526, -0.044631149619817734, 0.08549119532108307, -0.38917550444602966, -0.009892950765788555, -0.379002183675766, 0.07365388423204422, 0.5301992297172546, -0.49327221512794495, 0.03199575...
EXPR is a bareword, the require assumes a ".pm" extension and replaces "::" with "/" in the filename for you, to make it easy to load standard modules. This form of loading of modules does not risk altering your namespace. In other words, if you try this: require Foo::Bar; # a splendid bareword The r...
[ 0.5944303870201111, 0.1323772668838501, 0.6796666979789734, -0.15990732610225677, -0.003635196480900049, -0.2337556630373001, 0.5306978821754456, -0.6459946036338806, -0.038617976009845734, -0.1980428397655487, -0.14493820071220398, 0.7430801391601562, -0.3044363558292389, -0.1799549907445...
require $class; # $class is not a bareword #or require "Foo::Bar"; # not a bareword because of the "" The require function will look for the "Foo::Bar" file in the @INC array and will complain about not finding "Foo::Bar" there. In this case you can do: eval "require $class"; ```
[ 0.5240269899368286, 0.11813461035490036, 0.428758442401886, -0.23337997496128082, 0.1705493927001953, -0.20893649756908417, 0.6077895164489746, -0.35821717977523804, 0.15579228103160858, -0.29808947443962097, -0.47393015027046204, 0.8288187384605408, -0.49067121744155884, -0.04153753072023...
in the following code : ``` var benq:Base64Encoder = new Base64Encoder(); benq.encode("force",0,5); var tmp:String = benq.toString(); ``` 'tmp' turns out to be an empty string, i.e. with length 0. why? how to encode a string using base64encoder? Are you sure that your code isn't working. I just copied and pasted it ...
[ 0.34911948442459106, 0.15081815421581268, 0.44904375076293945, -0.2649776339530945, -0.040599290281534195, 0.08698365092277527, 0.5082334876060486, -0.5340720415115356, -0.30088087916374207, -0.32839444279670715, -0.3885729908943176, 0.5118212699890137, -0.5901435017585754, -0.134641364216...
<![CDATA[ import mx.utils.Base64Encoder; private function encodeit(): String { var benq:Base64Encoder = new Base64Encoder(); benq.encode("force",0,5); var tmp:String = benq.toString(); return tmp; } ]]> </mx:Script> <mx:Button id="but1" ...
[ 0.18012180924415588, -0.2936106324195862, 0.6909268498420715, -0.41992902755737305, 0.2961348295211792, 0.4797268211841583, 0.43625083565711975, -0.6831615567207336, -0.23141777515411377, -0.49481746554374695, -0.4123121500015259, 0.6868419051170349, -0.41531839966773987, -0.15471014380455...
height="100" /></mx:Application> ```
[ 0.26726269721984863, 0.40616750717163086, 0.6286429166793823, -0.12675780057907104, 0.08652763068675995, 0.06546632200479507, 0.28140154480934143, -0.32044485211372375, -0.09388875961303711, -0.3308674693107605, -0.13036668300628662, 0.49296820163726807, 0.25979533791542053, -0.00692907022...
I have created Ruby test script that use Selenium RC to test my web app directly in 2 browsers(IE, Firefox). My script runs - first on IE then continue on Firefox and then should be continued and finished in already opened IE browser. My problem is: I can't continue(reconnect) to run my script in already opened IE brow...
[ 0.5915656089782715, 0.3875626027584076, 0.11407633125782013, -0.12764126062393188, -0.1765678972005844, -0.11433573067188263, 0.2658897936344147, -0.39475104212760925, -0.022813895717263222, -0.4422580897808075, -0.014163462445139885, 0.5621764659881592, -0.17249758541584015, 0.02984949201...
As I understand the standard, a trivial destructor is one which is implicitly declared and whose class has only base and non-static members with trivial destructors. Given the recursivity of this definition, it seems to me that the only "recursion-stopping" condition is to find a base or non-static member with a non-im...
[ -0.11879043281078339, -0.22816509008407593, -0.06161459535360336, 0.014656731858849525, -0.06017768010497093, -0.3490414619445801, 0.4849562346935272, 0.08987686783075333, -0.3665804862976074, -0.08428902179002762, -0.5866649746894836, 0.5540267825126648, -0.4892858862876892, 0.11576659977...
does something") cannot be trivial as per the standard definition? Sorry for the kind of silly question, but I'd like to clarify things a bit in my head... No. An implicitly defined, trivial destructor is by definition trivial :) The difference between the declare and define thingy is that in order for the compiler to...
[ 0.4456113874912262, -0.15066249668598175, 0.10768842697143555, 0.12973712384700775, -0.004409341607242823, -0.4502407908439636, 0.4050159454345703, 0.011469556018710136, -0.1404571682214737, -0.22335153818130493, -0.5348469614982605, 0.5217653512954712, -0.310565322637558, 0.01769230514764...
has to do something: It needs to call the destructors of all its members and base classes. A simple example which illustrates the effect of implicitly defining a destructor: ``` struct a { private: ~a(); }; struct bug { // note: can't be destructed a a_; }; ``` As soon as you try to create a local objec...
[ -0.02312745526432991, -0.06905179470777512, -0.23003986477851868, -0.0022064484655857086, 0.089386947453022, -0.08558635413646698, 0.5010834336280823, 0.010603461414575577, -0.05711362883448601, -0.762430727481842, -0.2703774869441986, 0.47650232911109924, -0.5352203845977783, 0.1904482245...
program. Objects having non-trivial versions of them can't be put in unions, for example. On the other side, you can delete an object having incomplete type, provided it has a trivial destructor. Note that if your program can't decide whether or not a trivial destructor was actually defined, the compiler is allowed to ...
[ 0.12376140058040619, 0.09122685343027115, -0.07897074520587921, 0.24722303450107574, -0.056717399507761, -0.27873387932777405, 0.410908043384552, 0.008305401541292667, -0.4974856376647949, -0.3942756950855255, -0.6120052933692932, 0.41223275661468506, -0.5676462650299072, 0.324025928974151...
I have a C# WCF REST Service which allows the addition of a bookmark, by sending an HTTP POST request with the bookmark serialised in XML. I have specified the operation contract for the service, which picks up the xml and automatically deserialises the object for me. My problem is that the deserialisation only works c...
[ 0.10529877245426178, 0.2193114459514618, 0.627694308757782, -0.18587687611579895, 0.05440935119986534, -0.1574518233537674, 0.34093812108039856, -0.2392016351222992, -0.09554311633110046, -0.33342859148979187, -0.3207574188709259, 0.35978996753692627, -0.12370669096708298, 0.13647334277629...
XML in a specific order to be unnecessary, and a major headache. This is a major requirement to add to all clients of the service, and a source of potentially difficult problems to debug. ***Is it possible to direct WCF to be XML element order agnostic?*** --- **Some further details for clarification purposes:** My...
[ -0.024701829999685287, -0.016669264063239098, 0.7279047966003418, -0.10843303799629211, -0.07870763540267944, -0.406376451253891, 0.15015588700771332, -0.5279805660247803, 0.07733744382858276, -0.6544613838195801, -0.39619874954223633, 0.5763180255889893, -0.21565808355808258, 0.0583680197...
public string Url { get; set; } [DataMember] public string UserName { get; set; } [DataMember] public string Title { get; set; } [DataMember] public string Description { get; set; } } ``` If I send the following XML message, then only the UserName property of the RestMessage object will be ...
[ 0.08175826072692871, 0.1886015087366104, 0.7545707821846008, 0.020526407286524773, 0.049711454659700394, -0.11019374430179596, 0.20516641438007355, -0.4565354287624359, -0.0424855500459671, -0.68604576587677, -0.42747461795806885, 0.6022069454193115, -0.2646183669567108, 0.2644330263137817...
re-order the raw XML elements in AfterReceivedRequest before it's deserialized by dataContractSerializer. 2. using the XmlSerializer for your services. 3. develop HTTP raw XML message process service instead. 4. pass the object as a dictionary (not recommended)
[ 0.1326264888048172, -0.23606379330158234, 0.36192983388900757, 0.1840251237154007, -0.348783016204834, -0.05339870601892471, 0.25845202803611755, -0.2836802005767822, 0.22298775613307953, -0.6553300619125366, -0.21800993382930756, 0.49809250235557556, -0.1273592710494995, -0.14183516800403...
Google/MyBrain are failing me. Without using a framework (which I'll never get past my colleagues), how do you inject a dependency into an HTTPModule given that you (the programmer) are not in control of creating the instance? Are we into hacking up custom web.config sections + reflection or is there something cleaner...
[ 0.22299037873744965, 0.15301504731178284, 0.2293713241815567, -0.06454254686832428, -0.17353065311908722, 0.10865438729524612, 0.46253541111946106, -0.24660509824752808, -0.026766404509544373, -0.5529008507728577, 0.2924494445323944, 0.6731624007225037, -0.826669454574585, -0.0645983368158...
application.Error += (new EventHandler(this.application_Error)); } public void Dispose() { /* required by IHttpModule */ } private void application_Error(object sender, EventArgs e) { this.injectedLogger.doStuff(e.ExceptionObject as Exception); } } ``` *It's things like this make me real...
[ -0.04375472664833069, -0.05103448033332825, 0.3125371038913727, -0.2347404956817627, 0.12801551818847656, 0.022449176758527756, 0.6567665338516235, -0.20831844210624695, -0.3196318447589874, -0.7676624655723572, -0.09747597575187683, 0.664714515209198, -0.680894136428833, 0.290699213743209...
myErrorModule = new ErrorModule(new LogImplementer()); myErrorModule.Init(this); } ``` where "LogImplementer" implements ILogger, and just add a constructor to the httpmodule: ``` public ErrorModule(ILogger injected) { this.Logger = injected; } ``` There are some health warnings. You have to be really care...
[ 0.04646599665284157, 0.08142080903053284, 0.276001900434494, -0.13585573434829712, 0.009872819297015667, -0.14107120037078857, 0.6367042660713196, -0.006660863291472197, -0.05774639919400215, -1.001933217048645, 0.044064030051231384, 0.7069350481033325, -0.35679706931114197, -0.00650481600...
Is there an equivalent of the OS X Keychain, used to store user passwords, in Windows? I would use it to save the user's password for a web service that my (desktop) software uses. From the answers to this related question ([Protecting user passwords in desktop applications (Rev 2)](https://stackoverflow.com/questions...
[ 0.019904885441064835, 0.04630305618047714, 0.3674282431602478, 0.16385766863822937, 0.18465152382850647, -0.2568567395210266, -0.1415378898382187, 0.14164642989635468, -0.21848134696483612, -0.48945531249046326, -0.039006251841783524, 0.7607394456863403, 0.0387427993118763, 0.1421575248241...
IE 7), Outlook Express, and a few other programs. I believe it's encrypted with your login password, which prevents some offline attacks, but once you're logged in, any program that wants to can read it. (See, for example, NirSoft's [Protected Storage PassView](http://www.nirsoft.net/utils/pspv.html).) Windows also pr...
[ -0.03314800560474396, -0.05503157898783684, 0.38679173588752747, -0.11037328839302063, 0.028860710561275482, -0.4839007556438446, 0.5694999098777771, 0.04878818988800049, -0.05120869725942612, -0.5868117213249207, -0.24118909239768982, 0.7479480504989624, -0.2108387053012848, -0.2487007677...
this, if you're interested in seeing how other software does it.
[ 0.33110669255256653, 0.008812124840915203, 0.2285710573196411, 0.41353294253349304, 0.18751871585845947, -0.20242583751678467, -0.10234830528497696, 0.21039658784866333, -0.002935802098363638, -0.36110159754753113, 0.07974130660295486, 0.6313285827636719, 0.1269134134054184, -0.08883158117...
Is there a shortcut to add an event method for a control? If I have a button, I want to add the Click method without having to type it out or switch to design view. EDIT: Seriously! When i did this in VB I had a drop down list of all the controls and their events. Is that so hard to do for C#? Winforms? Webforms? Wh...
[ 0.060641273856163025, -0.38063058257102966, 0.3102509677410126, -0.09159053862094879, 0.14313964545726776, -0.11799907684326172, -0.08482614904642105, -0.1886460781097412, -0.0464424230158329, -0.3805397152900696, -0.035895105451345444, 0.6634531617164612, -0.24985775351524353, -0.02044453...
[tab][tab] now) } ``` and it does the rest... likewise in web-forms at the appropriate place. This gives you: ``` public MyForm() { InitializeComponent(); someButton.Click += new EventHandler(someButton_Click); } void someButton_Click(object sender, EventArgs e) { throw new NotImplementedException(); /...
[ -0.03178270161151886, -0.3684889078140259, 0.6076331734657288, -0.3165005147457123, 0.24147704243659973, -0.13164372742176056, 0.19712813198566437, -0.08925911784172058, -0.24901726841926575, -0.5296581387519836, -0.3279270529747009, 0.6599996089935303, -0.25292080640792847, 0.157952234148...
Hey guys i wrote a quick test. I want delete to call deleteMe which will then delete itself. The purpose of this is so i can delete obj normally which are allocated by a lib. (i dont want any crashes due to crt or w/e). With delete this i get a stackoverflow, without it msvc says i leaked 4 bytes. When i dont call tes...
[ 0.3010336458683014, 0.2991354167461395, 0.17865441739559174, 0.07701081037521362, -0.17643392086029053, -0.304995059967041, 0.5433722734451294, 0.041610460728406906, -0.3200588524341583, -0.6156343221664429, -0.0527675487101078, 0.7499545812606812, -0.39835289120674133, 0.12443751096725464...
void deleteMe()=0; static void operator delete (void* p) { ((B*)p)->deleteMe(); } }; class D : public B { public: void deleteMe() { delete this; } }; int test() { B *p = new D; delete p; return 0; } ``` The recursion is due to `deleteMe` calling `delete`, which calls B's `operato...
[ -0.025510843843221664, -0.4451971650123596, 0.17673835158348083, -0.38522452116012573, 0.1628008633852005, -0.11758953332901001, 0.4615219831466675, -0.2549947202205658, -0.1298229843378067, -0.33458516001701355, -0.5700408220291138, 0.5935925841331482, -0.5132184624671936, 0.4538969099521...
case, however you must in turn call the actual cleanup routine from within the custom `delete`. In the general case an overloaded `operator delete` must match the `operator new`. In your case: ``` B *p = new D; ``` Here `p` is allocated with the global `new`, so it must be freed with the global `delete`. So: ``` c...
[ 0.03907426446676254, -0.2000633329153061, 0.15979450941085815, -0.2766176462173462, 0.3142479360103607, -0.08521850407123566, 0.13992106914520264, -0.16148103773593903, -0.22711607813835144, -0.5245686769485474, -0.5479474067687988, 0.5968953371047974, -0.5088125467300415, 0.07896437495946...
My wcf service's web.config looks like this: How can I confirm that it is using the settings correctly? **I still get this timeout error sometimes even though I have configured the binding to use: SendTimeout = 10 minutes etc. ?** ``` <system.serviceModel> <services> <service behaviorConfiguration="MyServ...
[ 0.07814803719520569, 0.07547972351312637, 1.0268007516860962, -0.13816754519939423, -0.060078561305999756, -0.37862536311149597, 0.5574603080749512, -0.5440210700035095, -0.006451372057199478, -0.9156829714775085, 0.08316303044557571, 0.5237201452255249, 0.018824821338057518, 0.40708532929...
<dns value="localhost" /> </identity> </endpoint> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> </services> <bindings> <basicHttpBinding> <binding name="longTimeoutBinding" closeTimeout="00:05:00" openTimeout="00:05:00" ...
[ -0.37268146872520447, -0.2538051903247833, 0.6347270607948303, 0.13638836145401, -0.14273984730243683, -0.000647380540613085, 0.43736138939857483, -0.47964224219322205, -0.15335498750209808, -0.48226749897003174, -0.3189953565597534, 0.26897838711738586, -0.24085545539855957, 0.31760004162...
</basicHttpBinding> </bindings> <behaviors> <serviceBehaviors> <behavior name="MyService.MyServiceBehavior"> <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --> <serviceMetadata httpGetEnabled...
[ -0.1421455293893814, -0.09857981652021408, 0.13705186545848846, -0.020413372665643692, -0.24944552779197693, -0.18541046977043152, 0.9259958863258362, -0.32134684920310974, -0.1429610699415207, -0.41551390290260315, -0.3320038914680481, 0.3629375696182251, -0.2683301568031311, 0.0349456593...
disclosing exception information --> <serviceDebug includeExceptionDetailInFaults="true"/> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel> ``` My client (windows service) app.config looks like: ``` <system.serviceModel> <bindings> <basicHttpBinding> ...
[ -0.2291616052389145, -0.03246539086103439, 0.5203804969787598, 0.10007815062999725, -0.058940961956977844, 0.051190152764320374, 0.8393142819404602, -0.5383334755897522, -0.25409162044525146, -0.3486838936805725, -0.31245630979537964, 0.49782150983810425, -0.33966246247291565, 0.1272780746...
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <security mode="None"> <transport ...
[ -0.7261638641357422, -0.1714591085910797, 0.5862999558448792, -0.14409376680850983, -0.024424836039543152, 0.3837883472442627, 0.43942990899086, -0.03605365753173828, -0.42299142479896545, -0.5782443881034851, -0.5178080797195435, 0.4497523307800293, -0.4456753432750702, 0.0381911247968673...
/> </security> </binding> </basicHttpBinding> </bindings> <client> <endpoint address="http://local/MyService/MyService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IMyService" contract="MyService.IMyService" name="BasicHttpBinding_IMyServic...
[ 0.03291572257876396, 0.08332617580890656, 0.6527398824691772, -0.1262444108724594, -0.3038226068019867, 0.16341276466846466, 0.16491927206516266, -0.3923218846321106, -0.2532728910446167, -0.8182715177536011, -0.23137331008911133, 0.44109782576560974, -0.3833361268043518, 0.174416467547416...
which interface your COM object should support. Since you pass in an existing COM object, they don't need registration information to create your COM object. A variation of this scenario is the RUnning Object Table, in which you can register created COM objects. Those objects are also created by you, and you don't need...
[ 0.10382331162691116, -0.21167895197868347, 0.20383363962173462, 0.3311070203781128, -0.12288893014192581, 0.005632874555885792, -0.02548152580857277, 0.03605248034000397, -0.23875194787979126, -1.0154660940170288, 0.0013077640905976295, 0.6305803656578064, -0.35339292883872986, 0.033918205...
class. Remember, the caller asks COM for an instance of your class. Which DLL would COM load if there would be two DLLs implementing the same class?! Of course, there can be two DLLs each implementing one class, where the two classes share some interfaces. They will always share IUnknown, for instance, often IDispatch,...
[ 0.16849097609519958, -0.35186395049095154, -0.03472668305039406, 0.11526601761579514, -0.3140220046043396, -0.06443631649017334, 0.19545340538024902, 0.054385341703891754, -0.1959666907787323, -0.8601692914962769, -0.16496965289115906, 0.5607929229736328, -0.5421836376190186, 0.27131268382...
DLL yourself. This can occasionally be useful to reduce the latency involved in creating your first COM object.
[ 0.46696537733078003, -0.5409162640571594, 0.34630057215690613, 0.16839857399463654, -0.11843270808458328, -0.12794002890586853, 0.0588669553399086, 0.22893749177455902, -0.19447585940361023, -0.7701825499534607, -0.20469866693019867, 0.6639913320541382, -0.10124988108873367, 0.074155516922...
I wanted to play around with some 3D controls in WPF, but was mildly surprised to find that there were no primitive solid controls in WPF - I just wanted to plop a few spheres and cubes in a scene, but didn't realize I had to render them using meshes. Surely someone has created libraries of 3d primitives that can be a...
[ 0.45208123326301575, 0.00845867395401001, 0.19101931154727936, 0.41062816977500916, -0.09562987834215164, 0.04277044162154198, -0.18435294926166534, 0.19666782021522522, -0.421709269285202, -0.5419117212295532, 0.44309523701667786, 0.5851736664772034, -0.24088403582572937, 0.09644103795289...
in a WPF application? Thanks! Charles Petzold has written a library of basic 3D shapes for WPF that you can find here : <http://www.charlespetzold.com/3D/> Admittedly, is comes with a weird license, but all in all it's rather cheap and you get a free book, which I recommend by the way ;)
[ 0.6435025930404663, 0.27975738048553467, 0.3892732560634613, 0.05433110520243645, 0.01602574810385704, 0.20150528848171234, 0.20369641482830048, -0.21181565523147583, -0.1901615709066391, -0.5893493890762329, 0.11124181747436523, 0.26132553815841675, -0.2557567358016968, -0.044981725513935...
I.e. the match of ``` He said, "For my part, it was Greek to me. " ``` should be ``` For my part, it was Greek to me. ``` Without the trailing space. I've tried ``` \"\s*([^\"]*)\s*\" ``` but it's always matching trailing whitespaces in the group. try: ``` \"\s*([^\"]*?)\s*\" ``` But be careful, this vers...
[ -0.4974465072154999, 0.0742102786898613, 0.13856451213359833, -0.23994861543178558, -0.17526493966579437, 0.022691603749990463, 0.33399754762649536, -0.21898697316646576, 0.03782331198453903, -0.41570499539375305, -0.25460073351860046, 0.5885307192802429, -0.6561210751533508, -0.2681438624...
one character. Honestly, looking at it twice, I'd use the first pattern. You're looking for the closing quote and not escaping any quotes. It'll work 100% of the time for your current needs.
[ 0.05146990343928337, 0.11921710520982742, 0.0655139684677124, 0.1692902147769928, -0.12996630370616913, 0.4526480734348297, 0.03997933119535446, 0.3065430223941803, 0.1314225047826767, -0.5791986584663391, -0.19317816197872162, 0.29036474227905273, -0.1430518478155136, -0.19216112792491913...
I tried searching here for a similar solution but didn't see one so I was wondering what is the best way to accomplish the following. I have a table with 17 million + rows all have a unique ID. We have recently created a new table that will be used in conjunction with the previous table where the foreign key of the ne...
[ 0.06963164359331131, 0.324812114238739, 0.2441869080066681, 0.05893804132938385, 0.0358172170817852, 0.2756606638431549, -0.09118285775184631, -0.15706782042980194, -0.33362969756126404, -0.8409333825111389, 0.1944032907485962, 0.250712513923645, -0.15910913050174713, 0.31144028902053833, ...
fill table 2 with a row containing the id from table 1 for each row in table 1. ex, table 1 - 1, test, null table 2 now needs to have: 1, null, ... and so on for each row that is in table1. The main issue is that the ids are not all sequential in table 1 so we will have to read from table 1 and then insert based of the...
[ 0.16754889488220215, 0.046759799122810364, 0.21645687520503998, 0.20927825570106506, -0.05217041075229645, -0.08171828836202621, 0.0263554397970438, -0.16426540911197662, -0.2672393321990967, -0.5880231857299805, 0.10724791884422302, 0.6046213507652283, -0.2744981646537781, 0.0446915775537...
it will contain from table 1 is the id to keep the foreign key relationship Also this is sql server 2000 You need to read this article. [What are the most common SQL anti-patterns?](https://stackoverflow.com/questions/346659/what-are-the-most-common-sql-anti-patterns#346679) > The main issue is that the ids are not ...
[ 0.02571294829249382, 0.0060991281643509865, 0.16931049525737762, 0.19248482584953308, -0.15660518407821655, -0.2607053220272064, 0.18051336705684662, -0.300631582736969, -0.1328941136598587, -0.41016000509262085, 0.06827422231435776, 0.5280972719192505, -0.33176323771476746, -0.00835095904...
I've been doing iPhone development for the last 5 months or so, and have been using Gus Mueller's [FMDB](http://code.google.com/p/flycode/) for database interaction. My next project will have both a Mac and an iPhone application, and they will share data between them, although in the end, the iPhone will be mostly a vi...
[ 0.22543030977249146, 0.5019405484199524, 0.20573674142360687, 0.009016567841172218, 0.5739883780479431, 0.23129577934741974, 0.18714088201522827, -0.02413320168852806, -0.23217806220054626, -0.4656636118888855, 0.045166291296482086, 0.30510351061820984, -0.0364464595913887, -0.271230608224...
just use FMDB for both so that I can reuse the same code for both the Mac and iPhone? I've poked at Core Data a little, but not much (mostly just the examples in the Hillegas book), so any specific examples in favor of Core Data would be greatly appreciated. For the record, I really like FMDB, I'm just wondering if Co...
[ 0.4696904718875885, 0.19670860469341278, -0.12413645535707474, 0.3250851035118103, 0.1853378713130951, -0.3214113116264343, 0.3204486668109894, 0.05812005326151848, -0.12207918614149094, -0.3624134063720703, 0.14424994587898254, 0.9548782110214233, -0.3764995038509369, -0.38540709018707275...
model twice. The main difference is that FMDB is an Obj-C wrapper for SQLite, whereas CoreData is an object model that happens to store data in SQLite (you're not editing a database but instead editing objects). This means that it's a bit higher level and provides more abstraction, but if you know what you're doing wit...
[ 0.07634688168764114, -0.15272857248783112, 0.30906397104263306, 0.10848020017147064, -0.04203283041715622, -0.08853907883167267, 0.10166046023368835, -0.2293236404657364, -0.33986783027648926, -0.5147701501846313, 0.2944808602333069, 0.6076142191886902, -0.41673049330711365, 0.153185784816...
What is the best way to save a Delphi Type Library in SVN. The file changes every time you compile the Application The file is not saved in a readable form of AscII It is very difficult to work out what changes have been made from one version to the next **This is a major problem when more than one person is chan...
[ 0.3864502012729645, -0.10268537700176239, 0.1365654021501541, 0.12250465154647827, 0.1911625862121582, -0.3083176612854004, 0.09834656864404678, -0.21335771679878235, -0.5055728554725647, -0.7598837614059448, 0.0026247540954500437, 0.6230055093765259, -0.30791184306144714, -0.0186603683978...
with a Delphi type library ? 4) How easy is it get rid of the type library in Delphi2009 datasnap project? p.s. I am using BDS2006 Prior to Delphi 2009, I would not check in the TLB file but manually put the TLB (and \*\_TLB.PAS file for reference) into a zip file then force that into version control. When ever I ma...
[ 0.19864565134048462, -0.010452969931066036, 0.5721256732940674, -0.193496435880661, -0.22485363483428955, -0.4877040684223175, 0.3406047821044922, -0.27367448806762695, -0.2705734372138977, -0.6707174181938171, -0.112832210958004, 0.5208311080932617, -0.6167618036270142, 0.0912226885557174...
mysteriously no longer compile, I could just close my project, unzip from the zip file, reload the project and continue working.
[ 0.40298759937286377, 0.04089023172855377, 0.14682577550411224, 0.1403196156024933, -0.11454953253269196, -0.0633293017745018, 0.48768481612205505, 0.3097360134124756, -0.13345640897750854, -0.1887942999601364, -0.030147993937134743, 0.1062602773308754, -0.05888955295085907, 0.2185214757919...
I am writing an application where by someone can edit paragraphs on a web page. jQuery is used to send and receive the edited paragraph data to a handler, which saves it or reads it from a database. The problem is that if the forms authentication has timed out, I get the login page back from my handler. Is there any wa...
[ 0.4812048077583313, 0.21404199302196503, 0.4291054904460907, 0.004862739704549313, -0.23408731818199158, -0.09936410933732986, 0.28618696331977844, 0.0772448256611824, -0.2036716639995575, -0.6745578050613403, 0.0019249991746619344, -0.032349273562431335, -0.31851643323898315, 0.2061655521...
application B some sort of token which is built into a proxy such that calls to the Operation interface are proxied back to application A, then it may be okay. If the idea is for application B to create a local instance of the implementation class, then that's not going to work because it won't know what the object loo...
[ 0.06838496029376984, 0.002946319989860058, 0.2541600167751312, 0.04212358221411705, 0.23036813735961914, -0.027434417977929115, 0.3391360342502594, -0.015239894390106201, -0.12178545445203781, -0.4556066393852234, -0.1427275389432907, 0.33999204635620117, -0.5014510750770569, -0.0038013458...
In order to open a modal dialog, you need to pass a parent window, and pass the necessary flags for the dialog to be modal of course. Depending on where you are in the eclipse infrastructure, finding this parent window is not always easy. How can the parent window be accessed? From a view or an editor (this part is e...
[ 0.18207992613315582, 0.007162321358919144, 0.45217788219451904, 0.2077465057373047, -0.2486528754234314, -0.2999890148639679, 0.31922227144241333, -0.024906497448682785, 0.007535705808550119, -1.0022540092468262, -0.31890714168548584, 0.7425966262817383, -0.28154489398002625, -0.2037408500...
to shoot yourself in the foot: ``` PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell() ```
[ 0.5219549536705017, -0.017020778730511665, 0.36671486496925354, -0.12551666796207428, -0.23205767571926117, -0.12493816763162613, 0.48513248562812805, -0.5771235823631287, -0.4281383454799652, -0.3332583010196686, 0.09534106403589249, 0.6737602949142456, -0.08360806107521057, -0.6370325684...
When I do SELECT statements in PHP code I always select named columns, like: ``` SELECT id, name from users; ``` rather than using: ``` SELECT * from users; ``` This has the advantage of being more informative and readable, and also avoids problems later if new columns are added to the table. What I'm wondering ...
[ 0.33372074365615845, 0.1571834236383438, -0.09925180673599243, 0.06451044231653214, -0.4294452965259552, 0.08243344724178314, 0.1443529725074768, -0.012722521089017391, -0.1341613084077835, -0.35727789998054504, 0.22397486865520477, 0.291067510843277, -0.21622808277606964, -0.2173002213239...
deliberate omission? That's syntax is possible with MySQL only. Afaik, other RDBMS doesn't allow that. Here's the syntax: ``` INSERT INTO games SET yr = 2012, city = 'London'; ``` I wish PostgreSQL facilitated this kind of insert syntax Standard ANSI syntax, however, would be INSERT into people (yr, city) values (...
[ 0.33273640275001526, -0.11284343153238297, 0.18418315052986145, -0.2633068263530731, 0.13915808498859406, -0.07234495133161545, -0.17160987854003906, 0.050997696816921234, -0.23195524513721466, -0.01831953227519989, -0.33829465508461, 0.30532127618789673, -0.5398684740066528, 0.10958669334...
We are thinking of moving from Subversion to Team Foundation Server for our source control requirements. The reasoning behind this being that our project teams are getting bigger and management feel more comfortable using a M'soft product rather than an open sourced solution (I know - I've tried to argue the foolishnes...
[ 0.29805636405944824, -0.1462428718805313, 0.005963158328086138, -0.00008838018402457237, -0.06939516961574554, -0.061573684215545654, 0.2568073570728302, 0.14541350305080414, -0.23143842816352844, -0.36360329389572144, -0.16752463579177856, 0.1795041710138321, -0.2446254938840866, 0.000212...
- but its proving hellish difficult! We're just wondering whether this is supposed to be such a pain or whether we're just really dim or something. I know with a combination of Subversion and Tortoise I could get the whole thing back up and running within a couple of hours but this is currently taking days. Projects ...
[ 0.6350142359733582, -0.0329633429646492, 0.349775105714798, 0.30034250020980835, -0.16219492256641388, -0.29352855682373047, 0.46472764015197754, 0.01823996566236019, 0.030567731708288193, -0.661328911781311, -0.08332423865795135, 0.7842295169830322, 0.3306267559528351, 0.13182991743087769...
I'd like for a subclass of a certain superclass with certain constructor parameters to load an XML file containing information that I'd then like to pass to the superconstructor. Is this impossible to achieve? How about using a factory method instead? Maybe something like: ``` private MyObject(ComplexData data) { ...
[ 0.24366217851638794, -0.4021424651145935, 0.3333250880241394, 0.19549493491649628, -0.015212812460958958, -0.09667330980300903, 0.4345695972442627, 0.07828196883201599, -0.10808324813842773, -0.5423007011413574, -0.31516924500465393, 0.37982138991355896, -0.616780161857605, 0.3384288549423...
How can I place a UIWebView in a table view cell, yet maintain the UIWebView's scrollbars? My table view does have multiple cells and a header frame as well, and I do need it to be scrollable because it has many rows. The text displays perfectly fine when I use UITextView and it shows scrollers as well, but the proble...
[ 0.32559242844581604, 0.18005579710006714, 0.6911961436271667, 0.09829697012901306, -0.24775099754333496, -0.19387967884540558, 0.2756195664405823, -0.10015997290611267, -0.03293682262301445, -0.9813206791877747, 0.1982695460319519, 0.5318476557731628, -0.20424672961235046, 0.46869298815727...