text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
second contract. ``` [ServiceContract] public interface IFoo { [OperationContract] void Get(); } [ServiceContract] public interface IFooInternal : IFoo { [OperationContract] void Set(); } ```
[ -0.18872855603694916, -0.5208312273025513, 0.4440392553806305, -0.27004680037498474, 0.11282744258642197, 0.10542217642068863, 0.3255171477794647, -0.1632111519575119, 0.0981801301240921, -0.8633239269256592, -0.48449385166168213, 0.6887893080711365, -0.434694766998291, 0.03083160333335399...
Can anybody please help me? I need to bind CLR Objects to a WrapPanel in SILVERLIGHT. What should be displayed in the end is a couple of Image Thumbnails with their description (Text). I know how to do it with a ListBox, but I need it to be a WrapPanel, so my Thumbs will be displayed horizontally and break into a new r...
[ 0.37000855803489685, 0.3203953802585602, 0.66305011510849, 0.26838356256484985, 0.12354820221662521, -0.196762353181839, 0.13954684138298035, 0.0017860127845779061, -0.4903727173805237, -0.8211482763290405, -0.08265896141529083, 0.6802060604095459, -0.191290944814682, 0.07485508173704147, ...
void Get(); } [ServiceContract] public interface IFooInternal : IFoo { [OperationContract] void Set(); } ```
[ 0.02415534108877182, -0.2762947380542755, 0.40195804834365845, -0.21902219951152802, 0.21919669210910797, -0.016311146318912506, 0.5588246583938599, 0.01251195278018713, 0.08583889156579971, -0.5795857310295105, -0.49230486154556274, 0.7339653372764587, -0.4768940806388855, 0.1310599148273...
Considering a keystroke in Emacs, e.g. `C-x C-s`. I can figure out which function it invokes by typing `C-h c *keystroke*`, but how can I find where this keybinding was defined? (Maybe the right answer is that it cannot be decided, because the keymaps don't store this kind of information.) The information as to where ...
[ -0.08739271014928818, 0.19023777544498444, 0.1341419368982315, 0.077105313539505, 0.034561000764369965, -0.09119746088981628, 0.28372862935066223, -0.12647745013237, -0.17930476367473602, -0.39685335755348206, -0.20421144366264343, 0.3984556794166565, -0.2206406146287918, 0.146427541971206...
This keymap is enabled by setting the mode-variable `comint-mode`. However, that mode map is a global variable and anyone, anywhere can add key bindings to it. So, doing what you want is essentially tracking who set a variable with a particular value. Similarly for key bindings that are just set locally through mode ho...
[ 0.1271010786294937, -0.21579337120056152, 0.6450468897819519, 0.20730337500572205, 0.1214524582028389, -0.2578471302986145, 0.1612643450498581, -0.23746474087238312, -0.3376751244068146, -0.3512896001338959, -0.15380191802978516, 0.7621965408325195, -0.40168917179107666, -0.069590024650096...
(or any related files if the mode is split into multiple files). Key binding lookup in emacs is fairly involved due to the myriad of ways you can set/associate key strokes (globally, major mode, minor modes, overriding minor modes, local to buffers, text properties, etc.). For a quick overview, check out [this documen...
[ -0.032139141112565994, -0.033928826451301575, 0.4791232645511627, -0.07696520537137985, 0.0827869176864624, -0.14172933995723724, 0.237691730260849, -0.26392635703086853, -0.3062889575958252, -0.5769354701042175, -0.26466691493988037, 0.7591057419776917, -0.23210904002189636, -0.1906142234...
binding might be defined" (interactive (list (read-key-sequence "Describe key: "))) (let ((bindings (minor-mode-key-binding key)) found) (while (and bindings (not found)) (if (setq found (caar bindings)) (find-function (cdar bindings))) (setq bindings (cdr bindings))))) ``` Is th...
[ 0.25879254937171936, -0.04530183598399162, 0.4418993294239044, 0.018156766891479492, -0.053749777376651764, -0.502027690410614, -0.04320857301354408, -0.6291617751121521, -0.01666388101875782, -0.5453405380249023, -0.32509446144104004, 0.24047286808490753, -0.5253282785415649, 0.2197351902...
I need a very, very fast one-to-one algorithm. The algorithm doesn't need to be unbreakable. Reasonably strong is enough but it must be lightning fast. I will be implementing it in hardware. Area is a concern, too, so it shouldn't use too much logic. It should be a function f\_N(x) whose input is an N-bit number and w...
[ -0.18391558527946472, 0.2576335668563843, 0.258622944355011, 0.16225437819957733, 0.07542778551578522, 0.20023322105407715, 0.503937840461731, -0.16858738660812378, -0.2703924775123596, -0.7154933214187622, -0.3925802409648895, 0.6162191033363342, -0.24794133007526398, -0.03973279520869255...
example, does about 50Mbits per second. I need 333M **inputs** per second. So far I've been using a Feistel cipher with about 6 rounds. That seems to take about 3ns. Suggestions? **More notes** There have been some questions so I'll explain. I need to put keys into a hash table. The standard method is to hash the ...
[ -0.07088833302259445, -0.07848581671714783, -0.05579833313822746, -0.04141807183623314, 0.08868339657783508, 0.14567789435386658, 0.24962887167930603, -0.2805275022983551, -0.5303352475166321, -0.7417893409729004, -0.04989827796816826, 0.3081911504268646, -0.16038504242897034, -0.161243245...
wide as the input key **less** the number of bits in the address of the table. For example: * input: x (N bits) * hash: x%128 (8 bits) * verifier: floor(x/128) (N-8 bits) It would be silly on a CPU where integers are usually the same width but I'm doing it in hardware. x%128 is an easy hash to break. In fact, if the...
[ 0.17611755430698395, 0.029303215444087982, 0.4561510980129242, -0.18276020884513855, -0.14852118492126465, -0.012096939608454704, -0.0934959426522255, -0.24422043561935425, -0.5505508780479431, -0.6372858881950378, 0.14000263810157776, 0.4458850622177124, -0.11880730837583542, 0.4177319407...
LFSRs are fast but two LFSRs of equal length generate hash results that are correlated linearly. (If f(x) and g(x) give the same hash for two different polynomials, f(x+1) and g(x+1) are easily correlated.) So, I need a function with N-bit input and V-bit,H-bit output (V+H=N) where it is difficult to find two inputs o...
[ -0.2891194820404053, -0.41376984119415283, 0.4635029137134552, -0.15453751385211945, -0.09615527838468552, 0.07232602685689926, -0.20456808805465698, -0.49725261330604553, -0.0034008785150945187, -0.5565328598022461, -0.11650034040212631, 0.5735584497451782, -0.3894522488117218, -0.1206838...
is almost the very definition of encryption. Sorry about not explaining all this up-front. Hope that this clarifies things. When you say "fast" do you care only about throughput, or is latency itself of the highest importance? If latency is not quite as important as throughput, is there any reason why you can't use a...
[ 0.08030501008033752, -0.2296658754348755, -0.043954361230134964, 0.15851308405399323, 0.10249488800764084, -0.0715688019990921, 0.1834944635629654, -0.2629320025444031, -0.47473400831222534, -0.21826207637786865, -0.2519782781600952, 0.5130985379219055, -0.03189350292086601, -0.39257010817...
of hardware (a little bit more to add some flip-flops for registers) as a known secure encryption algorithm, but the propagation delay would only be that of one round of the Feistel network + the propagation delay of the flip-flops.
[ -0.035417571663856506, 0.1990146040916443, 0.22566728293895721, 0.18531224131584167, 0.2449217289686203, 0.06690622121095657, 0.3996114432811737, -0.5128649473190308, -0.2613932490348816, -0.269469678401947, -0.34503665566444397, 0.614554762840271, -0.12803612649440765, -0.3009740114212036...
In order to allow only a single instance of an application running I'm using mutex. The code is given below. Is this the right way to do it? Are there any flaws in the code? How to show the already running application when user tries to open the application the second time. At present (in the code below), I'm just dis...
[ 0.3121732175350189, 0.2129996120929718, 0.2524254024028778, -0.311148464679718, 0.08283501118421555, 0.07304923981428146, 0.6497703790664673, -0.147760808467865, -0.48853734135627747, -0.6003751754760742, 0.044604137539863586, 0.6959927678108215, -0.6167138814926147, 0.5195324420928955, ...
{ _mut = Mutex.OpenExisting(AppDomain.CurrentDomain.FriendlyName); } catch { //handler to be written } if (_mut == null) { _mut =
[ 0.030689362436532974, -0.4438022971153259, 0.48892641067504883, -0.3143391013145447, 0.36060845851898193, 0.08657936751842499, 0.3772965371608734, -0.1109950840473175, -0.16469070315361023, -0.3688439130783081, -0.4229588210582733, 0.5413315296173096, -0.6038867831230164, 0.32880699634552,...
new Mutex(false, AppDomain.CurrentDomain.FriendlyName); } else { _mut.Close(); MessageBox.Show("Instance already running"); } } ``` I did it this way once, I hope it helps: ``` bool createdNew; Mutex m = new Mutex(true, "myApp", out createdNew)...
[ 0.25482508540153503, 0.14783687889575958, 0.7642749547958374, -0.543229877948761, 0.06389693170785904, 0.5096653699874878, 0.681155800819397, -0.40979063510894775, -0.42935889959335327, -0.5890058875083923, -0.09094782173633575, 0.6081305146217346, -0.35566702485084534, 0.39953041076660156...
is already running... MessageBox.Show("myApp is already running!", "Multiple Instances"); return; } ```
[ 0.29274287819862366, 0.015031902119517326, 0.6326525807380676, -0.16694912314414978, 0.28259775042533875, 0.024874862283468246, 0.5278106331825256, 0.2837728261947632, -0.29059359431266785, -0.6293591856956482, -0.11206398904323578, 0.36175575852394104, -0.24865010380744934, 0.437082290649...
I have a database job that runs occasionally at night and I need a windows service to poll the database regularly to do some more work after the SQL job is done. I am a looking for a solid example to write a scheduler that can fail gracefully without crashing the service. Take a look at <http://codeplex.com/TaskService...
[ 0.653389573097229, 0.08174958825111389, 0.06966076791286469, -0.00625058775767684, -0.0024871528148651123, -0.18001896142959595, 0.41560280323028564, 0.09504379332065582, -0.32291099429130554, -0.8281815052032471, 0.33155882358551025, 0.46010395884513855, 0.01033248845487833, 0.13112072646...
I have a TextField inside a Sprite and I always want the alpha of the TextField to be equal to the alpha of the sprite. How can i subscribe to the changes made in the Sprite? I guess i need to fire a PropertychangeEvent some how, but I can't see that sprite supports this out of the box? ``` class TextWidget extends Sp...
[ -0.16155506670475006, 0.17196640372276306, 0.5616101622581482, -0.49918171763420105, -0.16227306425571442, -0.17184564471244812, 0.6792532205581665, -0.5297969579696655, 0.1322847306728363, -0.46664026379585266, -0.23607200384140015, 0.8283395171165466, -0.5284879803657532, 0.0242193751037...
addChild(textField); ?? this.addEventListener(PropertyChangeEvent.PROPERTY_CHANGE, updateAlpha); ?? } private function updateAlpha(event:PropertychangeEvent):void{ textfield.alpha = this.alpha; } } ``` One way would be to create a derived class of the sprite and override the alpha property ...
[ 0.12618838250637054, -0.003944392316043377, 0.5513696670532227, 0.037352174520492554, -0.14232520759105682, 0.1392006278038025, 0.2711460292339325, -0.5631183385848999, 0.01750521920621395, -0.23739922046661377, -0.21414829790592194, 0.5044467449188232, -0.5871003270149231, 0.3320976495742...
override public function set alpha(value:Number):void { super.alpha = value; dispatchEvent(new Event(CustomSprite.ALPHA_CHANGED)); } } ``` Another way would simply be to set the textfield alpha whenever the alpha setter of the parent sprite is hit, as shown above just without the event. And...
[ 0.1564699411392212, -0.03710963577032089, 0.40858301520347595, -0.04085979983210564, -0.08009926974773407, -0.21014581620693207, 0.6743096113204956, -0.3395802676677704, -0.26004859805107117, -0.20173190534114838, -0.3723545968532562, 0.29716184735298157, -0.7641332745552063, 0.34103587269...
I'm trying to build a very light re-usable framework for my games, rather than starting from scratch each time I start a game. I have a component driven architecture - e.g. Entity composes a Position component and a Health component and Ai component etc. My big question is whether my **model composes view components*...
[ 0.1720307171344757, 0.23338574171066284, 0.29727935791015625, 0.06262324750423431, -0.11625048518180847, 0.11832450330257416, 0.09049942344427109, -0.16151216626167297, -0.0666157603263855, -0.587560772895813, 0.1621498018503189, 0.5708578824996948, -0.2157038450241089, 0.10737007111310959...
and which is the industry standard, it would be great to know. depends on your audience, game devs, myself included aren't very used to the MVC model, although most know it, it's not as easy to keep it clean cut, because of development casualties (not any serious technical reasons). So from experience, I've seen dozens...
[ 0.546144962310791, 0.21586135029792786, -0.0859290063381195, 0.3436201214790344, 0.034716833382844925, -0.3880043923854828, 0.13896074891090393, -0.015383059158921242, -0.20183230936527252, 0.022371146827936172, -0.022563179954886436, 0.663727879524231, -0.0896681472659111, 0.2033281624317...
separate most game objects into these layers for large/complex games. And since games have a release date, they many times sacrifice code clarity and reusability for performance and quick adhoc solutions (that will get rewritten if necessarry in the sequel (if there is one)). However, with the caveat above, it's bette...
[ -0.03676226735115051, 0.08571330457925797, 0.3848336637020111, 0.4734830856323242, -0.10123571753501892, -0.36866438388824463, 0.45545580983161926, -0.20739023387432098, -0.3284377157688141, -0.2657371163368225, -0.22027234733104706, 0.6341484189033508, 0.04027086868882179, 0.0416106581687...
I have to Add, Update and make Inquiry (search) on an entity in MS CRM (Dynamics) Web Service using C#. Now there are two entities Account and Contact in MS CRM both of them can be used for storing customer Information; which entity shall be used for above operation? I am told that I have to use “CRMService” web ser...
[ 0.05781644210219383, 0.19786785542964935, 0.627415657043457, 0.1572197526693344, 0.045202482491731644, -0.048256609588861465, -0.07634509354829788, -0.005903903860598803, -0.4106597304344177, -0.4466741383075714, 0.09489636868238449, 0.5425569415092468, 0.1090298444032669, 0.31657913327217...
I am not sure how to jump-start the development? Just thinking, I should create a project, add the web service link in to my VS2005 IDE, and call the web methods? Is that all? Wouldnt I be needing MS CRM SDK? And if yes, then which dlls I would be using? And then again, how to start using it? Any help/links/pointers...
[ 0.4079168736934662, -0.16208292543888092, 0.42882010340690613, 0.3679972290992737, -0.3848835229873657, -0.28738468885421753, 0.12384955585002899, 0.09350395202636719, -0.4523433446884155, -0.552175760269165, 0.028688065707683563, 0.471630722284317, 0.12837690114974976, 0.04277326539158821...
mostly all you need. If you have any other related questions, just edit and provide them in this question.
[ 0.5715948939323425, 0.05427521839737892, -0.027054183185100555, 0.5173448324203491, 0.16640503704547882, -0.22655920684337616, -0.23415778577327728, 0.47615450620651245, -0.0677563026547432, -0.5118173956871033, 0.0632915198802948, 0.36207258701324463, -0.04851492866873741, -0.408314645290...
First of all I have to admit that these are very basic and primitive questions... I want to demonstrate different Algorithms in Java for sorting and searching, and to get a value for the runtime. There're issues I cannot solve: 1. there's Hotspot compiling - which is a runtime optimization I need to deactivate (I gues...
[ 0.147148996591568, 0.19765639305114746, -0.19344505667686462, 0.1495819389820099, 0.06213292106986046, 0.006456609349697828, 0.05338737368583679, -0.42277365922927856, -0.21292470395565033, -0.6068885326385498, 0.2817854881286621, 0.569721519947052, -0.4466184675693512, 0.06430938094854355...
problems? Thanks, Klaus 1. Use `-Xint` JVM flag. Other options can be seen [here](http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp). 2. Use the [**`ThreadMXBean`**](http://java.sun.com/j2se/1.5.0/docs/api/java/lang/management/ThreadMXBean.html) API to get CPU/User times for your thread. An example can be...
[ -0.19830039143562317, 0.1683618128299713, 0.29504767060279846, 0.21764416992664337, -0.011735496111214161, -0.027760900557041168, 0.2207947075366974, -0.20775598287582397, -0.5339920520782471, -0.6217640042304993, -0.01474914699792862, 0.7491796016693115, -0.26792722940444946, -0.110224388...
Beware, this is a rather basic question (I think). I have a UserControl, called MyUserControl. I use it in a DataTemplate for my ListBox: ``` <l:MyUserControl DataContext="Test" /> ``` Now I want to access this DataContext in the code-behind of MyUserControl, and I expect DataContext to contain a string object with...
[ 0.2974664568901062, 0.31733739376068115, 0.14410477876663208, 0.014610047452151775, -0.043821871280670166, -0.31799015402793884, 0.3584705889225006, 0.023247597739100456, 0.049759287387132645, -0.7202280163764954, 0.08675246685743332, 0.4143507182598114, -0.29953300952911377, 0.30215311050...
I'm trying to convert my existing site to use WCF to communicate with my services on another box. Currently I use auto-registration to wire-up my services directly. When I try to use the WcfFacility of Windsor I get a ComponentRegistrationException on one of my interfaces that I'm trying to register. The error is below...
[ 0.3460787236690521, 0.27139735221862793, 0.2027013748884201, -0.05676054581999779, -0.083578921854496, -0.07920927554368973, 0.5386072397232056, -0.2969778776168823, -0.11677301675081253, -0.9745048880577087, 0.18280670046806335, 0.6967744827270508, -0.27802950143814087, 0.4310073256492615...
with the same services and this works 100%. I register the WCF Services (in both windows and web apps) using the following code: ``` Container.Register(Component.For<IFooService>() .Named("FooService") .ActAs(new DefaultClientModel { EndPoint = WcfEndPoint.BoundTo(new BasicHttpBinding()) .At("htt...
[ 0.25607389211654663, 0.1626247763633728, 0.7437232732772827, -0.2949189841747284, -0.014738102443516254, 0.08702237159013748, 0.6078542470932007, -0.2739729583263397, -0.1339149922132492, -1.016150951385498, -0.1032831072807312, 0.7815806865692139, -0.43437835574150085, 0.18937303125858307...
registers the WCFFacility on the web app, but still had it on the windows app, which explains why it was working there. I'm an idiot it seems...oh well. Hopefully this will help anyone who runs into that exception and who is as much of an idiot as me :) Thanks for the help anyway.
[ 0.2445390522480011, 0.14391079545021057, 0.9992519617080688, 0.3495713770389557, -0.03379752114415169, -0.2609083950519562, 0.3684019446372986, 0.2052527815103531, -0.002847416093572974, -0.4225912392139435, 0.3616875410079956, 0.510430097579956, 0.14065787196159363, 0.185105562210083, 0...
I have a WPF application (.NET 3.0, VS2008) that displays data in a tab control. Custom colors are required on virtually all controls in this application : basically white foreground and green background. My problem is that when an XP theme (say Luna) is active, it is automatically applied to render controls so that m...
[ 0.18954306840896606, -0.054622355848550797, 0.7109894752502441, -0.16159239411354065, -0.1627196967601776, -0.012126087211072445, 0.07970139384269714, -0.17780806124210358, -0.29273754358291626, -0.43830400705337524, 0.13482263684272766, 0.1851843297481537, -0.2915136218070984, 0.234876602...
the Windows Classic theme in the application resources : ``` <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/PresentationFramework.Classic;V3.0.0.0;31bf3856ad364e35;component/themes/classic.xaml" /> </ResourceDictionary.MergedDictionaries> ``` This last attempt worked great for all controls, e...
[ -0.016191469505429268, -0.15685026347637177, 0.7307558059692383, -0.08975639939308167, 0.16768744587898254, -0.009013845585286617, 0.46217021346092224, -0.10992520302534103, -0.5662201642990112, -0.720663845539093, -0.3699169158935547, 0.7595744729042053, -0.3817208409309387, 0.33432745933...
would be to re-template the TabItem control and then use a Trigger to modify a part of your new template when a TabItem is selected. Try something like the following: ``` <Grid> <Grid.Resources> <Style x:Key="Custom"> <Setter Property="Control.Background" Value="#FF47C7C8"/> <Setter Property="Control.Border...
[ 0.23359273374080658, -0.5076667070388794, 0.36464205384254456, 0.035525672137737274, 0.03373532369732857, 0.10468205064535141, -0.07309820502996445, -0.6653718948364258, -0.157343789935112, -0.7313311100006104, 0.169949010014534, 0.5216907858848572, -0.44099968671798706, -0.035338301211595...
<Border Name="Border" Background="#FF47C7C8" BorderBrush="#FFFFFF" BorderThickness="1,1,1,1" CornerRadius="2,2,0,0"> <ContentPresenter
[ -0.0876256674528122, -0.07639975845813751, 0.9639101028442383, 0.3696768879890442, 0.1693945974111557, -0.21262425184249878, 0.0132217388600111, -0.07872286438941956, -0.17831096053123474, -0.6104646921157837, -0.06439916044473648, -0.08508801460266113, -0.14636804163455963, 0.270810663700...
x:Name="ContentSite" HorizontalAlignment="Center" Margin="12,2,12,2" VerticalAlignment="Center" ContentSource="Header" RecognizesAccessKey="True"/>
[ 0.07656767964363098, 0.23827877640724182, 0.545172929763794, 0.3585185706615448, 0.015347683802247047, -0.3102344274520874, -0.23459970951080322, 0.060013506561517715, -0.12603893876075745, -0.44533589482307434, -0.34585845470428467, 0.05093994736671448, 0.1380854994058609, 0.3049173653125...
</Border> </Grid> <ControlTemplate.Triggers> <Trigger Property="IsSelected" Value="True"> <Setter Property="Panel.ZIndex" Value="100"/> <Setter TargetName="Border" Property="Background" Value="#FF47C7C8"/> <Setter TargetName="Border" Property="Bo...
[ -0.04847584664821625, -0.329700231552124, 0.7157638669013977, 0.24473406374454498, -0.05089517682790756, 0.23641923069953918, -0.07617959380149841, -0.47911784052848816, -0.3761204481124878, -0.5684385895729065, -0.10841459780931473, 0.1626882702112198, -0.21285384893417358, 0.116500541567...
</ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> </Grid.Resources> <TabControl> <TabItem Header="Item 1"/> <TabItem Header="Item 2"/> <TabItem Header="Item 3"/> <TabItem Header="Item 4"/> </TabControl> ``` Bon chance!
[ -0.023155836388468742, 0.06087392568588257, 0.04647454246878624, -0.02832612209022045, 0.076348215341568, -0.2848280966281891, 0.19250348210334778, -0.4905112683773041, -0.08562254905700684, -0.38884612917900085, -0.13423341512680054, 0.5061215758323669, -0.2540869414806366, -0.14503787457...
Please let me know if this is bad practice or in someway a bad thing to do. The thing is in my program I need to make a method which goes through the root element and all child nodes of that element. My elements are like this: ``` |--ID--|--Parent--|--Additinal info--| | 1 | 0 | root element | | 2 | ...
[ 0.03164469450712204, 0.2311025708913803, 0.2353898286819458, 0.01952231675386429, 0.24916192889213562, 0.09436127543449402, 0.2041158229112625, -0.11225452274084091, -0.04388483613729477, -0.6918879151344299, 0.25153741240501404, 0.21121248602867126, -0.16440555453300476, 0.199380218982696...
|child element of 1| | 4 | 1 |child element of 1| | 5 | 3 |child element of 3| -------------------------------------- ``` Now If I want to recieve all children of element with ID 1 (no matter if it has 1000 children or just 2 like in this example) I want my method to bring this too me, but Im not ...
[ -0.045860402286052704, 0.2736312747001648, -0.01351252943277359, 0.03603376820683479, 0.11491800844669342, 0.40638649463653564, 0.07675153017044067, -0.7067202925682068, -0.07334095984697342, -0.4854833781719208, -0.03884713724255562, 0.30038395524024963, -0.2787237763404846, -0.0488105900...
each time I find an element I need to check if it has any children, the same goes with the children. This is because I need to output the elements in correct order. Ive been thinking of maybe make it so I first make a map of the layout, and then use the map for outputting, but Im kinda stuck with the idea. Any clues? ...
[ 0.06423848867416382, 0.1926908791065216, -0.1774996668100357, 0.17611253261566162, -0.10476615279912949, 0.3607599437236786, 0.21314537525177002, -0.128456249833107, -0.34600555896759033, -0.36534082889556885, 0.1479966640472412, 0.14091554284095764, -0.1300048828125, -0.054041340947151184...
all you need is to put the nodes into some data strcuture that will give them back in the order you want. So the general plan is * recursively 'walk' the tree to find all the nodes; insert the nodes into a data strcuture that orders them by ID * print the ordered nodes The recursive part is also easy: * start with t...
[ -0.009423451498150826, -0.34229937195777893, 0.12889185547828674, -0.006511642597615719, 0.1332898586988449, 0.03826053813099861, 0.30606985092163086, -0.1997503936290741, -0.31345975399017334, -0.7708253264427185, -0.2694335877895355, 0.2681454122066498, -0.3831743896007538, -0.1038972064...
insert node in nodelist for each child node n dfs(n, nodelist) ```
[ -0.1745459884405136, -0.006868290714919567, 0.21289756894111633, -0.16212505102157593, 0.4656563103199005, 0.4670496881008148, -0.03981618210673332, -0.12184013426303864, -0.009836575016379356, -0.9064806699752808, -0.35899388790130615, 0.08382029831409454, -0.23647578060626984, 0.22022822...
I am trying to write a method for a Compact Framework 2.0 dll which will return the name of the parent application from which the dll is called but I am struggling to see how to do this. Using reflection I am able to get the dll I have written etc - any ideas how to get the application name? Thanks Morris And if you...
[ 0.4148173928260803, 0.1314859688282013, 0.36418479681015015, 0.03053954616189003, -0.07193858921527863, -0.370134562253952, 0.3638918995857239, -0.03788406774401665, -0.045586515218019485, -0.6486296057701111, -0.23002296686172485, 0.4767581522464752, -0.15651175379753113, 0.17707934975624...
Which is the best ~~Open Source~~ free client for querying an Oracle database? It may additionally support other databases (MySQL, Postgres etc), since our development environment often requires switching between different databases. I have been using the Oracle SQL Developer (because it's free) and at first hated eve...
[ 0.11209291219711304, 0.179055854678154, -0.037153977900743484, 0.1574396938085556, -0.08670966327190399, -0.12529060244560242, -0.18527555465698242, -0.10538676381111145, -0.010659359395503998, -0.5719513893127441, 0.2411891669034958, 0.8187721967697144, -0.09832924604415894, -0.1991539448...
to learn how to cope with it and now I must admit it's a neat and very useful tool (NOT ONLY) for querying an Oracle database. I suppose you could query other DBs from it as well, for instance I have used it to query some legacy MS Access DBs, and so I believe you could query SQL Server as well. You can do data migrat...
[ 0.2876415252685547, -0.07699460536241531, 0.007189162075519562, 0.17756551504135132, -0.11442964524030685, -0.14542926847934723, 0.1144891157746315, -0.06897441297769547, 0.02590244449675083, -0.6094871163368225, 0.29049789905548096, 0.5781769752502441, -0.18557535111904144, 0.124929711222...
and don't let the Vista-related graphics problems give you a wrong impression :)
[ 0.0931105837225914, 0.2384296953678131, 0.3116016983985901, 0.1956900805234909, 0.24143017828464508, -0.16839095950126648, 0.1820850521326065, 0.29639655351638794, -0.03140874579548836, -0.540806770324707, -0.03066950850188732, 0.8946812152862549, 0.14688457548618317, -0.1227288618683815, ...
I've got some code I want to only execute on the latest iPhone SDK (3.0), however I can't seem to figure out a way to target just 3.0 and ignore 2.2.1 etc. There is an ifdef statement, but it just seems to cover the entire iPhone: ``` #if TARGET_OS_IPHONE ``` Any help is appreciated. You can use this #define to chan...
[ 0.27178916335105896, 0.28402405977249146, 0.5529871582984924, -0.29335683584213257, 0.2737891376018524, 0.058522820472717285, 0.5484002828598022, -0.20331129431724548, -0.17737609148025513, -0.5928614139556885, -0.06560226529836655, 0.49750155210494995, -0.3247268497943878, -0.174790546298...
here } ```
[ 0.17937462031841278, 0.4832727015018463, -0.24100397527217865, -0.09789193421602249, 0.3795483708381653, -0.06174542009830475, 0.0013309282949194312, 0.3600543737411499, 0.058812521398067474, -0.5535600185394287, -0.29299524426460266, 0.4493009150028229, -0.2891049087047577, 0.405261844396...
Is it possible to develop ASP.NET MVC with MS Visual C# 2008 Express Edition and IIS? The [tutorial](http://www.asp.net/learn/mvc/tutorial-21-cs.aspx) states that 'Visual Studio 2008 or Visual Web Developer 2008 Express' are required. You can't develop an ASP.NET (MVC or otherwise) using Visual C# 2008 Express without...
[ -0.31668198108673096, 0.06940509378910065, 0.2752598524093628, -0.06376562267541885, -0.5171219706535339, -0.007817905396223068, 0.28970232605934143, -0.14986996352672577, -0.1392458975315094, -0.2785892188549042, -0.09017720818519592, 0.4076277017593384, -0.30093568563461304, -0.260968595...
VB.NET desktop development, C++ Express for C++ desktop development, and Web Developer Express for any type of ASP.NET development. You can download and install all 4 of these on the same machine (they should even share the same copy of MSDN Express). If you want it all in one IDE, you need to pay for Standard or Prof...
[ 0.31279316544532776, 0.0014598396373912692, 0.3734751343727112, 0.06786183267831802, -0.5881386399269104, -0.1411287486553192, 0.21097533404827118, -0.16354231536388397, -0.3314882814884186, -0.6078593730926514, 0.05939914658665657, 0.6168531775474548, -0.4263722002506256, 0.02156258374452...
you need SP1 to install MVC.
[ 0.20446443557739258, 0.03471336141228676, 0.4424697756767273, 0.11428079009056091, -0.04991411045193672, -0.541786253452301, 0.2244841456413269, -0.14512132108211517, -0.3853244483470917, -0.3868332505226135, -0.30103614926338196, 0.49039095640182495, -0.5387043356895447, -0.35638123750686...
I'm dealing with this situation : * I have a color animation script which targets by id (it's not JQuery but pure javascript) * then I have a dynamic list without ids : 'ul' somePHP throwing list items '/ul' * and finally I have JQuery itself (which I'll use to add several ids on the fly to the list items: but I still...
[ 0.23279519379138947, -0.1898288130760193, 0.3300652503967285, -0.05018247291445732, -0.45188701152801514, 0.1653614193201065, -0.019558044150471687, -0.04242725297808647, -0.2029644101858139, -0.7954937815666199, -0.015532571822404861, 0.4974837303161621, -0.29912129044532776, 0.0973070114...
which would be easy enough to put at work. The script only would work if I could insert ids in the list, 5 well-defined ids, and give later some instructions in the externalised color plugin to affect them : ``` <ul> <li><a href="" id="ontheflyone">pulled from the DB</a></li> <li><a href="" id="ontheflytwo"...
[ 0.032235726714134216, 0.035356491804122925, 0.5189568996429443, -0.32500985264778137, 0.023788535967469215, 0.377103328704834, 0.3756915032863617, -0.6560700535774231, 0.2726103365421295, -0.7951362133026123, -0.4252946972846985, 0.7670800685882568, -0.47428250312805176, -0.054943807423114...
= function() { 'ontheflytwo','text','$color1' }; document.getElementById(’id’).onmouseout = function() { 'ontheflytwo','text','$color2'}; etc. ``` I could change the plugin's javascript itself, but I thought it would be easier using JQuery to add, in some way, ids in my html. The color plugin is an awesome piece of...
[ 0.1402149796485901, -0.2421797662973404, 0.4652409553527832, -0.4591958224773407, 0.1389244943857193, 0.2798791825771332, 0.27874845266342163, -0.5862765908241272, 0.2577695846557617, -0.6731297969818115, -0.12627367675304413, 0.7999491691589355, -0.662860095500946, -0.0924258828163147, ...
startrgb = colorConv(start); r = startrgb[0]; g = startrgb[1]; b = startrgb[2]; target.r = r; target.g = g; target.b = b; } rint = Math.round(Math.abs(target.r-er)/steps); gint = Math.round(Math.abs(target.g-eg)/steps); bint = Math.round(Math.abs(target.b-eb)/steps); if(rint == 0) { ri...
[ -0.40639829635620117, -0.5269152522087097, 0.5802425146102905, -0.24145552515983582, -0.31065890192985535, 0.399478018283844, 0.22833704948425293, -0.6305793523788452, -0.3096991181373596, -0.5336019396781921, -0.17649643123149872, 0.5296439528465271, -0.179507777094841, -0.080974422395229...
between the two colors // function animateColor(id,element,steps,er,eg,eb,rint,gint,bint) { var target = document.getElementById(id); var color; if(target.step <= steps) { var r = target.r; var g = target.g; var b = target.b; if(r >= er) { r = r - rint; } else { r = parseInt(r) + p...
[ -0.0060543338768184185, -0.41736578941345215, 0.26281964778900146, -0.20997266471385956, 0.11063092947006226, 0.4748316705226898, 0.12068022042512894, -0.5279266238212585, 0.12422496825456619, -0.7084196209907532, -0.23669293522834778, 0.4067235291004181, -0.4478945732116699, -0.1268513053...
{ g = parseInt(g) + parseInt(gint); } if(b >= eb) { b = b - bint; } else { b = parseInt(b) + parseInt(bint); } color = 'rgb(' + r + ',' + g + ',' + b + ')'; if(element == 'background') { target.style.backgroundColor = color; } else if(element == 'border') { targ...
[ -0.030070574954152107, -0.18361155688762665, 0.47686341404914856, -0.07038570195436478, -0.0038776968140155077, 0.13902035355567932, 0.1772965043783188, -0.3441813290119171, -0.20995023846626282, -0.6038140654563904, -0.314314067363739, 0.3641778528690338, -0.5669496059417725, -0.067200057...
= color; } else { target.style.color = color; } target.r = r; target.g = g; target.b = b; target.step = target.step + 1; } else { clearInterval(target.timer); color = 'rgb(' + er + ',' + eg + ',' + eb + ')'; if(element == 'background') { target.style.backgroundColor = c...
[ 0.08976485580205917, -0.3168821930885315, 0.6146966814994812, -0.2568925619125366, 0.13719262182712555, 0.22309274971485138, 0.3462349772453308, -0.4147922098636627, -0.22137078642845154, -0.7501694560050964, -0.27182668447494507, 0.44384658336639404, -0.44710004329681396, -0.0082201519981...
target.style.borderColor = color; } else { target.style.color = color; } } } // convert the color to rgb from hex // function colorConv(color) { var rgb = [parseInt(color.substring(0,2),16), parseInt(color.substring(2,4),16), parseInt(color.substring(4,6),16)]; return rgb; } ``` So, a m...
[ 0.49526306986808777, -0.02717091701924801, 0.6081719994544983, -0.03736728057265282, -0.22940464317798615, 0.323451429605484, 0.1325882226228714, -0.5379550457000732, -0.15942509472370148, -0.7816030979156494, 0.12721893191337585, 0.6703709959983826, -0.2580934464931488, -0.157222732901573...
index);}); ``` This will loop over all `<li>` elements and assign every element its nummerical index (in the array of elements jQuery has found) as "id" attribute.
[ -0.2124776989221573, -0.23126547038555145, 0.42916637659072876, -0.10754893720149994, 0.1629687249660492, -0.05246555805206299, -0.032153282314538956, -0.4728214740753174, 0.181905597448349, -0.4431014060974121, -0.1795877367258072, 0.5577333569526672, -0.366594135761261, 0.182382464408874...
Answer is not $array[0]; My array is setup as follows ``` $array = array(); $array[7] = 37; $array[19] = 98; $array[42] = 22; $array[68] = 14; ``` I'm sorting the array and trying to get the highest possible match out after the sorting. So in this case $array[19] = 98; I only need the value 98 back and it will *a...
[ 0.0026911182794719934, 0.09832850098609924, 0.3509225845336914, -0.16066576540470123, -0.038545068353414536, 0.15655413269996643, 0.38140836358070374, -0.5971922278404236, 0.05634813755750656, -0.5657637715339661, -0.1576758772134781, 0.6920019388198853, -0.3827899992465973, 0.032302614301...
echo $value; break; } ``` ``` $keys = array_keys($array); echo $array[$keys[0]]; ``` Or you could use the [current()](http://us2.php.net/manual/en/function.current.php) function: ``` reset($array); $value = current($array); ```
[ -0.021744290366768837, -0.07810284197330475, 0.23025651276111603, -0.49860066175460815, 0.33121785521507263, 0.08909831196069717, 0.3575409948825836, -0.5349937081336975, -0.31453952193260193, 0.051618508994579315, -0.14934509992599487, 0.5000788569450378, -0.5854752063751221, 0.1804213076...
Are **enum** types faster/more efficient than **string** types when used as dictionary keys? ``` IDictionary<string,object> or IDictionary<enum,object> ``` As a matter of fact, which data type is most suitable as a dictionary key and why? Consider the following: *NOTE: Only 5 properties for simplicity* ``` struct...
[ -0.1869182139635086, 0.15419530868530273, 0.5281602144241333, 0.05185461416840553, 0.06803186237812042, 0.3737645447254181, 0.07562104612588882, -0.4051166772842407, -0.12461114674806595, -0.5438908934593201, -0.5587906241416931, 0.31423473358154297, -0.06518913805484772, 0.212714314460754...
Closed } ``` Which of the above will be better if used as keys in a dictionary! Certainly the `enum` version is better (when both are applicable and make sense, of course). Not just for performance *(it can be better or worse, see Rashack's very good comment)* as it's checked compile time and results in cleaner code....
[ -0.018633544445037842, 0.193108469247818, 0.12211377918720245, -0.012406090274453163, -0.2989853322505951, -0.2716304659843445, 0.21477167308330536, 0.027549732476472855, 0.05614675581455231, -0.6859095096588135, -0.2263972908258438, 0.6721172332763672, -0.3056403696537018, 0.1515124589204...
Using Sql Server 2005 Profiler, what events, columns, and filters do you trace to find your slowest queries and stored procedures? Slow = greater than N seconds, 10 for sake of argument. In SQL 2005 you can use management views to find slow running queries. A good script i found a while ago on [SQL server performance]...
[ -0.34157222509384155, 0.12631379067897797, 0.3081530034542084, 0.006571077276021242, -0.5231592059135437, -0.13781243562698364, 0.3094010353088379, -0.24766682088375092, -0.21127495169639587, -0.44052231311798096, 0.19536557793617249, 0.5327972173690796, -0.288517564535141, -0.054810993373...
,total_logical_writes , execution_count , total_worker_time , total_elapsed_time , total_elapsed_time / execution_count avg_elapsed_time ,SUBSTRING(st.text, (qs.statement_start_offset/2) + 1, ((CASE statement_end_offset WHEN -1 THEN DATALENGTH(st.text) ...
[ -0.26459136605262756, -0.11522926390171051, 0.4822324812412262, -0.11625616252422333, 0.08397124707698822, 0.5520122051239014, 0.2641952931880951, -0.4533911943435669, -0.4575837254524231, -0.2888766825199127, -0.1258576214313507, 0.43725162744522095, -0.2062070220708847, 0.035487059503793...
- qs.statement_start_offset)/2) + 1) AS statement_text FROM sys.dm_exec_query_stats AS qs CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) st ORDER BY total_elapsed_time / execution_count DESC; ```
[ 0.19390979409217834, 0.09485892951488495, 0.5568767786026001, -0.3622034788131714, -0.1619989424943924, 0.1369740515947342, 0.15966422855854034, -0.7450063228607178, -0.016003074124455452, -0.43493202328681946, -0.3918839991092682, 0.38842514157295227, -0.19094547629356384, 0.2014755457639...
Can I sum these numbers with a formula ? ``` 1 2 3 4 5 6 ``` No, Im not looking for ="Sum(Cell\_\_\_1:Cell\_6)". With "Product" you multiply - I just want to add them. Like "=1+2+3+4+5+6", but just with a formula. Eg "formulaName(6)". You mean: Sum = n \* (n+1) / 2, where n is the last number in the sequence?
[ 0.06142066791653633, 0.12914583086967468, 0.424028217792511, -0.4262818992137909, -0.00435869162902236, 0.19821302592754364, 0.2994670867919922, -0.6550841331481934, -0.16686749458312988, -0.43490293622016907, -0.09279782325029373, 0.306444376707077, -0.12895281612873077, 0.245975747704505...
I have a code snippet that creates a C# class for me. It puts the regions in all the right places and sets it up just the way I like it. When I create a class by adding a new item it automatically creates the namespace based on my project and folder structure. Is there a way I could do the same action with my custom ...
[ 0.5422891974449158, -0.3191415071487427, 0.14920657873153687, 0.31379449367523193, -0.10677661746740341, 0.2256225198507309, 0.08770139515399933, 0.15333683788776398, -0.3699410855770111, -0.7595576643943787, -0.047291919589042664, 0.14883558452129364, -0.16311191022396088, 0.4062136709690...
they are listed at MSDN. You could, though, create a new Item Template and use the [parameter](http://msdn.microsoft.com/en-us/library/eehb4faa%28VS.80%29.aspx) $rootnamespace$, which will be replaced with the root namespace of the current project. Item templates are a really useful part of Visual Studio, and MSDN has ...
[ 0.041978731751441956, -0.025570398196578026, 0.3545733094215393, 0.2411496341228485, -0.27751052379608154, 0.07151760905981064, 0.035741135478019714, -0.05106906220316887, -0.6503018140792847, -0.708056628704071, -0.1658436506986618, 0.2191801369190216, -0.021304355934262276, 0.14019156992...
I checked out the jquery serialize docs and I am trying to find the best way too serialize all fields in my form and then print the output, the demo has something like: ``` function showValues() { var str = $("form").serialize(); $("#results").text(str); } $(":checkbox, :radio...
[ 0.12020068615674973, 0.09717539697885513, 0.6212618350982666, -0.2907363176345825, -0.08229661732912064, -0.1700761616230011, 0.2410142868757248, -0.21714754402637482, 0.04987841472029686, -0.32005590200424194, -0.30298134684562683, 0.8862575888633728, -0.37224116921424866, 0.2379905730485...
then call the serialize on form submit, use return false and have it show them. Thoughts? Are you putting inside the document.ready method? It looks like you are ending that way... It should be like: ``` $(function() { $(":checkbox, :radio").click(showValues); $("select").change(showValues); $('form').bin...
[ 0.23893339931964874, 0.10057008266448975, 0.7954010367393494, -0.28315410017967224, 0.061960428953170776, -0.12797069549560547, 0.33923476934432983, -0.5872631669044495, -0.003259051823988557, -0.5672896504402161, -0.40581443905830383, 0.6902401447296143, -0.44255155324935913, 0.2700700163...
what is meaning this error , when I want to install sql server 2005 ? > TITLE: Microsoft SQL Server Setup ----------------------------------- None of the selected features can be installed or upgraded. Setup cannot proceed since no effective change is being made to the machine. To continue, click Back and then select...
[ 0.23085321485996246, 0.2752399146556854, 0.4261075556278229, 0.013255600817501545, 0.008093507960438728, -0.3906295895576477, 0.4577791392803192, 0.23087571561336517, -0.002552885329350829, -0.43007946014404297, -0.12825757265090942, 0.7013266682624817, -0.13115011155605316, 0.444590628147...
As a developer I had a slew of shortcuts and applications used daily. Visual Studio 6, 2003, 2005, 2008, SQL Client tools, WinMerge, Notepad++, Synergy, VMware (and lots and lots of VMs, multiple browsers, and on top of all that about 20 shortcuts to important directories, servers, test environments etc... The Vista s...
[ 0.21827834844589233, 0.31976190209388733, 0.10332091152667999, -0.06440500915050507, -0.020400337874889374, 0.009762308560311794, 0.2795041799545288, 0.2176685780286789, -0.27355659008026123, -0.7144376635551453, 0.02729310840368271, 0.7898918986320496, -0.03546391800045967, 0.169219821691...
find to be the most beneficial to providing organized and fast access to all of your most frequently visited tools? What are some tools that can be embedded on the task bar of Windows that provide similar functionality to drawers in Linux or stacks in OS X? My current quick-launch bar (and other folders added to the t...
[ 0.25959882140159607, 0.012727716006338596, 0.24098241329193115, 0.09425139427185059, 0.18318352103233337, -0.17982174456119537, 0.09114436060190201, 0.22102487087249756, -0.1670585423707962, -0.7162948846817017, -0.16002996265888214, 0.6946142315864563, 0.145732119679451, 0.021850431337952...
first heard about it from [Scott Hanselman](http://www.hanselman.com/blog/ScottHanselmans2007UltimateDeveloperAndPowerUsersToolListForWindows.aspx).
[ 0.44784292578697205, -0.12789331376552582, 0.08936505019664764, -0.1278330236673355, 0.23218192160129547, -0.1593140959739685, 0.45825836062431335, 0.2645891010761261, -0.4774663746356964, -0.28016987442970276, 0.21210405230522156, 0.04881381243467331, 0.24566513299942017, -0.0311345979571...
Since the getElementsByTagName() function is new (DOM-1?) I wanted another more reliable method to get a reference to an element based on its tag name/id. **Edit-** Without using a framework, since I need to cut down on size; so 10-20K for a framework is unacceptable. I just need the JS code that can fetch an element ...
[ 0.026341788470745087, -0.3999428451061249, 0.7364319562911987, -0.15759554505348206, -0.2066153734922409, -0.3830915093421936, 0.5412455201148987, -0.28185543417930603, -0.3329618275165558, -0.4582211375236511, -0.30287280678749084, 0.5114904642105103, -0.37940096855163574, 0.0212147738784...
I am using a custom title view in my application for each activity. In one of the activities, based on button clicks I need to change the custom title view. Now this works fine every time when I make a call to setFeatureInt. But if I try to update any items in the custom title (say change the text of a button or a tex...
[ 0.4774499535560608, 0.07903530448675156, 0.47098487615585327, -0.046779002994298935, 0.03798999637365341, -0.2133205384016037, 0.7148080468177795, -0.03284977376461029, -0.347881942987442, -0.5803067088127136, 0.05314302444458008, 0.7483085989952087, -0.22629694640636444, 0.359902352094650...
on the text view or the button is not updated. Has anyone else faced this problem? How do I resolve it? Thanks. **EDIT** Here's what I tried. Does not get updated even on calling postInvalidate. ``` getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.text_title); TextView databar = (TextView) f...
[ -0.050124604254961014, 0.017572471871972084, 0.7574175000190735, -0.349210649728775, -0.16119509935379028, 0.3326844274997711, 0.6068724393844604, -0.2789801359176636, -0.20387724041938782, -0.8207027316093445, -0.46258875727653503, 0.6967160105705261, -0.33236420154571533, 0.0294317658990...
[`LayoutInflater`](http://developer.android.com/reference/android/view/LayoutInflater.html) in its `setFeatureInt` method and instantiates the new layout with [`inflate`](http://developer.android.com/reference/android/view/LayoutInflater.html) and `attachToRoot=true`. Consequently, when you call `setFeatureInt`, the ne...
[ 0.14019860327243805, -0.10081227123737335, 0.8402159214019775, -0.17096689343452454, 0.01878720335662365, 0.11172928661108017, 0.0644676610827446, -0.5313949584960938, -0.12379714846611023, -0.6046101450920105, -0.2757071554660797, 0.7847951054573059, -0.38488805294036865, 0.16398806869983...
titleContainerId = (Integer) Class.forName( "com.android.internal.R$id").getField("title_container").get(null); // remove all views from titleContainer ((ViewGroup) getWindow().findViewById(titleContainerId)).removeAllViews(); // add new custom title view getWindow().setFe...
[ 0.46761879324913025, -0.2576146125793457, 0.8157965540885925, -0.1309904307126999, 0.12927785515785217, -0.08908850699663162, 0.4327992796897888, -0.32939887046813965, -0.037159718573093414, -0.36949342489242554, -0.3107787072658539, 0.9936979413032532, -0.20043426752090454, 0.474153369665...
documented one way or the other which is why I'll take this to the android devs ;) **EDIT** As pointed out in the comments, the aforementioned workaround is not ideal. Instead of relying on the `com.android.internal.R.id.title_container` constant you could simply *hide* the old custom title whenever you set a new one...
[ 0.13450977206230164, -0.04879147931933403, 0.6137799024581909, -0.10335829854011536, 0.19730930030345917, 0.034078024327754974, 0.16884320974349976, -0.277371883392334, -0.2103353589773178, -1.025715708732605, -0.12786942720413208, 0.8928458094596863, -0.31072190403938293, 0.30281797051429...
I want to build a SOAP client using ruby. I tried using the soap4r library to generate ruby classes out of the WSDL file, but the issue with this was that all the methods it generated were of optional kind, instead of NAME/VALUE pairs. Given that some methods have a very large number of arguments, many of which are opt...
[ 0.4924067258834839, -0.006879064720124006, 0.03312214836478233, -0.15813620388507843, -0.4906618893146515, 0.004710926674306393, 0.2281474769115448, -0.10963229089975357, 0.059951022267341614, -0.593329668045044, 0.3558129668235779, 0.4172246754169464, -0.41041889786720276, 0.2446731179952...
and see if it fits your needs! ;)
[ 0.46737706661224365, 0.15110540390014648, 0.19807903468608856, 0.05038631334900856, 0.4675399959087372, 0.4602494239807129, 0.17318926751613617, -0.07420992851257324, -0.08469550311565399, -0.24102970957756042, -0.11591476202011108, 0.5832606554031372, -0.029996491968631744, -0.03361704945...
I am planning on using Google to download the jQuery lib for both UI and Core. My question is, do they allow me to download the CSS for it or should I have to host it myself? Also if I use Google to load how should I load other plugins? Can I compress all plugins together or should it be its own separate file? The Goo...
[ -0.04706582427024841, 0.05355175584554672, 0.6398825645446777, 0.12399397790431976, -0.3078518509864807, -0.010985038243234158, -0.096192367374897, 0.01064335461705923, -0.5274749398231506, -0.5848644375801086, -0.29288768768310547, 0.33635175228118896, -0.47032612562179565, 0.196884050965...
[hot-sneaks](http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/hot-sneaks/jquery-ui.css), [humanity](http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/humanity/jquery-ui.css), [le-frog](http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/le-frog/jquery-ui.css), [mint-choc](http://ajax.google...
[ -0.6083940267562866, -0.07962636649608612, 0.2609267234802246, 0.13190259039402008, -0.1695203334093094, 0.5769229531288147, 0.29401692748069763, 0.6315268874168396, -0.46572574973106384, -0.6502800583839417, -0.09464143961668015, 0.4727291464805603, -0.11181632429361343, -0.26591336727142...
I have a javascript code which builds a link with 2 params. Now, I know how to post these params using the address, but I don't want to use it. I've tried using cookies for posting the params, but somehow I can't read them on the server side. this is the client side code ``` document.cookie="name="+"value"; ``` t...
[ 0.27187973260879517, 0.1588069647550583, 0.6063785552978516, 0.17144058644771576, -0.35439401865005493, 0.19131547212600708, 0.25082090497016907, -0.40340283513069153, -0.386679083108902, -0.5939032435417175, -0.15044549107551575, 0.015306968241930008, -0.463422566652298, 0.276748657226562...
to a javascript function (example: onclick="javascript:postIt();"). Then when user clicks the button or the link the function will replace the value of those parameter something like: ``` document.miniform.parameter1.value = yourvalue1; document.miniform.parameter1.value = yourvalue2; document.miniform.submit(); ```...
[ 0.06803251802921295, -0.1867661327123642, 0.33023396134376526, -0.12943817675113678, 0.03584147244691849, 0.023652272298932076, 0.2056686282157898, -0.2627832591533661, 0.05901086702942848, -0.6351733803749084, -0.38979586958885193, 0.5482579469680786, -0.3930692970752716, 0.22664387524127...
I see a lot of 'related' questions showing up, but none I looked at answer this specific scenario. During a while/for loop that parses a result set generated from a SQL select statement, what is the best way to prevent the next line from being outputted if the line before it contains the same field data (whether it be...
[ 0.3078933656215668, 0.15610837936401367, -0.002615462988615036, 0.09469293802976608, -0.06418900936841965, 0.08677573502063751, 0.22284674644470215, -0.15307390689849854, -0.26119714975357056, -0.5334261059761047, -0.09819872677326202, 0.44205671548843384, -0.4665732979774475, 0.1240006312...
(specific to my scenario) into a 2-element array (dupecatch[1]) * Checking if dupecatch[0] = dupcatch[1] (duplicate - escape loop using 's') * After row is processed, set dupecatch[0] = dupecatch[1] ``` while ($DBS->SQLFetch() == *PLibdata::RET_OK) { $s=0; #s = 1 to escape out of inside loop while ($i != $arra...
[ -0.19614702463150024, -0.2409195452928543, 0.3886497914791107, 0.0622720792889595, 0.2771688997745514, 0.18689385056495667, 0.27863016724586487, -0.4652304947376251, -0.18238267302513123, -0.4187435507774353, -0.34823018312454224, 0.29167208075523376, -0.40287256240844727, 0.46122959256172...
{ dosomething($rowfetch); } else{$s++;} $i++; } $i=0; $dupecatch[0]=$dupecatch[1]; } ``` That is that standard way if you only care about duplicate items in a row, but $dupecatch[0] is normally named $old and $dupecatch[1] normally just the variable in question. You can ...
[ 0.22744973003864288, -0.17812329530715942, 0.5081433057785034, -0.08910654485225677, -0.015439813956618309, -0.1269058883190155, 0.26812732219696045, -0.4261263906955719, -0.4547599256038666, -0.5968876481056213, -0.04411974921822548, 0.6283107399940491, -0.43592262268066406, 0.63715273141...
all duplicates you can use a %seen hash: ``` my %seen; while (defined (my $row = get_data())) { next if $seen{$row->[0]}++; #skip all but the first instance of the key do_stuff(); } ```
[ 0.28424814343452454, 0.3417167365550995, 0.30742475390434265, 0.05882677435874939, 0.36566072702407837, 0.08816172182559967, 0.302900105714798, 0.26451805233955383, -0.6358659863471985, -0.42856499552726746, 0.03218265622854233, 0.3644607961177826, -0.5575858950614929, 0.4059429168701172, ...
My deployed application uses ReportViewer (CLR 3.5) to print locally reports. Recently users noticed problem with printing. I've investigated that and turned out that in some PC reportViewer set page format to Letter (instead A4) that's why printouts are cut. Note all user use same network-deployed version with same ...
[ -0.023501910269260406, 0.18893377482891083, 0.8785553574562073, -0.14933495223522186, -0.269466370344162, -0.04006956145167351, 0.32953861355781555, -0.12409496307373047, -0.4287864565849304, -0.8901576399803162, -0.04617834836244583, 0.5467150807380676, -0.2684723436832428, 0.114652037620...
you want i believe...
[ 0.714189887046814, 0.6676833033561707, -0.23447029292583466, 0.1041843369603157, -0.08349074423313141, -0.1877927929162979, 0.6326473355293274, -0.10011938214302063, -0.041444990783929825, -0.04406031593680382, 0.2289406806230545, 0.8196700215339661, -0.3206669092178345, 0.050408735871315,...
I'm trying to use the [DataAnnotationsModelBinder](http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=24471) in order to use data annotations for server-side validation in ASP.NET MVC. Everything works fine as long as my ViewModel is just a simple class with immediate properties such as ``` public clas...
[ 0.22480559349060059, 0.21423456072807312, 0.5310505628585815, -0.21828621625900269, -0.0737784206867218, -0.03903529420495033, 0.252084881067276, -0.10920759290456772, -0.19733496010303497, -0.5710406303405762, -0.06973032653331757, 0.5240123271942139, -0.36296743154525757, 0.1289029866456...
more than one LINQ entity because I really prefer using custom `ViewModel`s that include several LINQ entities instead of untyped ViewData arrays. The `DefaultModelBinder` does not have this problem, so it seems like a bug in `DataAnnotationsModelBinder`. Is there any workaround to this? **Edit:** A possible workarou...
[ 0.06047046184539795, 0.1310526430606842, 0.09284907579421997, -0.051571428775787354, 0.19595320522785187, 0.22726278007030487, 0.012125317007303238, 0.07934705913066864, -0.09775397926568985, -0.49316656589508057, -0.17586137354373932, 0.31617340445518494, -0.3391150236129761, 0.3005750477...
set { MyBaz.Bar = value; } } public Baz MyBaz { get { return myBazInstance ?? (myBazInstance = new Baz()); } set { myBazInstance = value; } } #region Nested type: Baz public class Baz { [Required] public string Bar { get; set; } }
[ -0.38286542892456055, 0.029876552522182465, 0.5118659734725952, -0.4893142282962799, 0.38664674758911133, 0.2617684602737427, 0.26911476254463196, 0.024037141352891922, -0.02512414939701557, -0.5449134111404419, -0.850077748298645, 0.17619849741458893, -0.45966222882270813, 0.4335763156414...