text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
generate partial classes that you can use to override functionality without your code overwritten by the generator. For Visual Studio 2005, you could just add the *partial* keyword to the class in Reference.cs and keep a separate file with your own partial class: ``` public partial class WebServiceReference { public...
[ -0.05980205163359642, 0.023446746170520782, 0.36637037992477417, 0.048697054386138916, -0.3124901056289673, 0.02747112326323986, 0.3690411448478699, -0.31278878450393677, -0.19990916550159454, -0.5974457859992981, -0.08804310858249664, 0.4584923982620239, -0.3476368188858032, 0.04814906045...
I've seen several question on here about [exceptions](https://stackoverflow.com/questions/tagged/exception?sort=votes), and some of them hint at [interrupts as exceptions](https://stackoverflow.com/search?s=interrupt+exception), but none make the connection clear. * What is an interrupt? * What is an exception? (pleas...
[ 0.16902601718902588, 0.23437990248203278, -0.058320190757513046, 0.05251366272568703, -0.08828037977218628, 0.06768456846475601, 0.4576028883457184, -0.10385864973068237, -0.4102591574192047, -0.6339033842086792, -0.24170060455799103, 0.20665529370307922, -0.4985254108905792, 0.07584493607...
sure on the exact details, but an exception *could* be implemented by an interupt.
[ 0.43808513879776, 0.18583689630031586, -0.27296310663223267, 0.2064274698495865, -0.15979981422424316, -0.2354724109172821, 0.2876996099948883, 0.13167217373847961, -0.29245102405548096, -0.3845992088317871, -0.02344273030757904, 0.16221053898334503, -0.1798156499862671, -0.065462283790111...
I have code that references a web service, and I'd like the address of that web service to be dynamic (read from a database, config file, etc.) so that it is easily changed. One major use of this will be to deploy to multiple environments where machine names and IP addresses are different. The web service signature wil...
[ 0.7075979709625244, 0.2382155805826187, 0.19206590950489044, 0.2601507902145386, 0.12933434545993805, -0.1404467076063156, -0.010872569866478443, 0.008465619757771492, -0.29541224241256714, -0.7657105326652527, 0.17553569376468658, 0.642512321472168, -0.2348291277885437, 0.1539622098207473...
in the Solution Explorer. In the properties pane you should see something like this: ![Web Reference Properties](https://www.codeproject.com/KB/XML/WSDLDynamicURL/URL_Behavior_Dynamic.GIF) Changing the value to dynamic will put an entry in your app.config. Here is the [CodePlex article](http://www.codeproject.com/KB...
[ -0.03617755323648453, -0.43949609994888306, 0.4597792625427246, 0.1370898187160492, 0.16083526611328125, -0.10041861981153488, 0.09593077003955841, -0.14902807772159576, -0.4202251434326172, -0.7529129385948181, -0.18492840230464935, 0.42481639981269836, -0.13984672725200653, 0.34820643067...
Using Rails v2.1, lets say you have an action for a controller that is accessible from more than one location. For example, within the Rails app, you have a link to edit a user from two different views, one on the users index view, and another from another view (lets say from the nav bar on every page). I'm wondering ...
[ 0.2791783809661865, -0.5222975015640259, 0.26503047347068787, 0.23325835168361664, -0.24305833876132965, -0.044761091470718384, 0.06317932158708572, -0.20084016025066376, -0.4200252592563629, -0.6595590114593506, 0.27387934923171997, 0.3699754476547241, -0.5854001045227051, 0.0449217036366...
the controller redirects back to 1. Example 2: 1. The user could be on any page within the application, the nav bar shows a link to edit the current user 2. The user clicks on the link to edit 3. The user clicks "save" on the form, controller redirects back to whatever page they were on when the user clicked the "edi...
[ 0.0812520980834961, -0.4021393954753876, 0.5817135572433472, 0.06845796853303909, -0.13605651259422302, -0.02030275948345661, 0.06214895844459534, -0.05693097785115242, -0.3899483382701874, -0.628358781337738, 0.05437413975596428, 0.37393635511398315, -0.4236743152141571, 0.317578196525573...
helper. 2. The controller saves the parameters to a session variable. 3. Once the controller has saved the record, it redirects to the session variable. What I don't particularly like about this solution is the need to add the parameter to every applicable link in the views. I'm wondering if there's a way to build thi...
[ -0.04353613778948784, -0.42079779505729675, 0.7816929221153259, 0.042632825672626495, -0.03594018518924713, 0.07210403680801392, 0.2938382923603058, -0.18048042058944702, -0.29811328649520874, -0.7218181490898132, 0.04564815014600754, 0.7523730397224426, -0.6412900686264038, 0.292083024978...
thoughts on the best way to do this? I think that using before\_filter on the edit action is the least obtrusive. The referer should be reliable enough ... simply have a default in the case of no referer being available (say: someone bookmarked the edit page) and you should be fine.
[ 0.36484113335609436, 0.1008029505610466, 0.3929494619369507, 0.08652225136756897, 0.06790372729301453, -0.323556512594223, 0.35938045382499695, 0.14207129180431366, -0.026127927005290985, -0.4915847182273865, 0.08125509321689606, 0.7434139847755432, -0.1284964233636856, -0.1208076328039169...
Ok, my web application is at **C:\inetpub\wwwroot\website** The files I want to link to are in **S:\someFolder** Can I make a link in the webapp that will direct to the file in **someFolder**? If its on a different drive on the server, you will need to make a [virtual directory](http://www.zerog.com/ianetmanual/IISVD...
[ 0.47749051451683044, 0.014690246433019638, 0.24487701058387756, 0.07990146428346634, -0.13704481720924377, -0.28779271245002747, 0.13901394605636597, 0.46732255816459656, -0.22074240446090698, -0.8472467660903931, 0.07549838721752167, 0.24982525408267975, 0.07246709614992142, 0.43863251805...
At run time I want to dynamically build grid columns (or another display layout) in a WPF ListView. I do not know the number and names of the columns before hand. I want to be able to do: MyListView.ItemSource = MyDataset; MyListView.CreateColumns(); i'd try following approach: A) you need to have the list bo...
[ 0.38977426290512085, -0.23411139845848083, 0.5895003080368042, -0.1215919479727745, -0.029801856726408005, -0.22081013023853302, 0.3567506670951843, -0.25626084208488464, -0.1262616515159607, -0.8999053239822388, -0.11190612614154816, 0.7112255096435547, -0.3909395933151245, -0.15394614636...
<EventSetter Event="Loaded" Handler="OnHeaderLoaded"/> </Style> ``` in my case, i had a whole bunch of other properties set, but in the basic scenario - you'd need Loaded event. Clicked - this is useful if you want to add sorting and filtering functionality. C) in your listview code, bind the template with y...
[ 0.06371905654668808, -0.2812296152114868, 0.5315991044044495, -0.39137503504753113, -0.04633089900016785, -0.31244713068008423, 0.12367656826972961, -0.3747721314430237, -0.23215241730213165, -0.8129909038543701, -0.18235886096954346, 0.5092833042144775, -0.2916702628135681, -0.03037122264...
System.Diagnostics.Debug.Assert(gridViewHeader != null, "Expected ListView.View should be GridView"); if (null != gridViewHeader) { gridViewHeader.ColumnHeaderContainerStyle = (Style)this.FindResource("gridViewColumnStyle"); } } ``` D) then in you OnHeaderLoaded handler, you ca...
[ 0.12384766340255737, -0.33889931440353394, 0.6777779459953308, -0.1020854189991951, 0.11455586552619934, -0.029183432459831238, 0.3039158880710602, -0.4134746491909027, -0.11265882849693298, -0.7007458209991455, -0.1988997757434845, 0.529232919216156, -0.38240665197372437, 0.24069671332836...
GridViewColumn column = header.Column; ``` //select and apply your data template here. ``` e.Handled = true; } ``` E) I guess you'd need also to acquire ownership of ItemsSource dependency property and handle it's changed event. ``` ListView.ItemsSourceProperty.AddOwner(typeof(MyListView)...
[ 0.02083219774067402, -0.332461416721344, 0.8416944742202759, -0.17454539239406586, 0.1281900554895401, 0.054510921239852905, 0.15951767563819885, -0.4195108413696289, -0.1780235320329666, -0.9148098826408386, -0.16879941523075104, 0.5931267738342285, -0.2543712258338928, 0.2325078248977661...
//do reflection to get column names and types //and for each column, add it to your grid view: GridViewColumn column = new GridViewColumn(); //set column properties here... view.Columns.Add(column); } ``` the GridViewColumn class itself doesn't have much propert...
[ 0.08316221833229065, -0.03668252006173134, 0.6710861325263977, -0.2297997921705246, -0.03957163169980049, -0.036745041608810425, -0.08034075051546097, -0.08472045511007309, -0.1837749034166336, -0.7283919453620911, 0.15779535472393036, 0.43161535263061523, -0.16175763309001923, 0.064315058...
using attached properties - i.e. like unique column tag - header most likely will be used for localization, and you will not relay on this one. In general, this approach, even though quite complicated, will allow you to easily extend your list view functionality.
[ 0.2038678526878357, -0.29435428977012634, 0.4702240824699402, 0.281344473361969, -0.31358397006988525, -0.3117167055606842, 0.1315067559480667, 0.048619404435157776, -0.34870514273643494, -0.8836331367492676, -0.29957181215286255, 0.2652512490749359, -0.1458827555179596, 0.2830853462219238...
So I'm writing a framework on which I want to base a few apps that I'm working on (the framework is there so I have an environment to work with, and a system that will let me, for example, use a single sign-on) I want to make this framework, and the apps it has use a Resource Oriented Architecture. Now, I want to cre...
[ 0.5045486092567444, 0.4433145225048065, 0.23780377209186554, 0.16308656334877014, 0.2132982462644577, -0.20143422484397888, 0.1689416468143463, 0.32502445578575134, -0.20984359085559845, -0.6175849437713623, -0.02947492152452469, 0.3328813314437866, -0.1405562460422516, 0.02024746686220169...
at how other apps do it. I prefer to use reg ex over making my own format since it is common knowledge. I wrote a small class that I use which allows me to nest these reg ex routing tables. I use to use something similar that was implemented by inheritance but it didn't need inheritance so I rewrote it. I do a reg ex ...
[ 0.5182027816772461, 0.16377364099025726, 0.6601240038871765, 0.09353193640708923, 0.09367252886295319, -0.049282871186733246, 0.09720179438591003, -0.22611385583877563, -0.30600109696388245, -0.6849299669265747, 0.019179578870534897, 0.604149580001831, -0.7009097337722778, -0.0176359061151...
subdirectory my app is running in $index = urldecode(substr($_SERVER["REQUEST_URI"], 12)); Route::process($index, array( "#^api/related/(.*)$#Di" => "ApiController/relatedDocuments/tags", "#^thread/(.*)/post$#Di" => "ThreadController/post/title", "#^thread/(.*)/reply$#Di" => "ThreadController/rep...
[ -0.18089863657951355, -0.22949707508087158, 0.9412907361984253, 0.08991343528032303, 0.03961198776960373, 0.3533690571784973, 0.4984246790409088, 0.06557254493236542, -0.0495498962700367, -1.0800310373306274, -0.3053760826587677, 0.32800987362861633, -0.5043239593505859, 0.2086301147937774...
=> "HomeController", )); ``` In order to keep errors down and simplicity up you can subdivide your table. This way you can put the routing table into the class that it controls. Taking the above example you can combine the three thread calls into a single one. ``` Route::process($index, array( "#^api/related/(.*...
[ 0.040575895458459854, 0.03532542288303375, 0.5946183204650879, 0.013545711524784565, 0.12517139315605164, -0.05525118112564087, 0.10184183716773987, -0.23276592791080475, -0.3455955982208252, -1.1104028224945068, -0.04803489148616791, 0.36423105001449585, -0.49442151188850403, 0.3452278375...
=> "ApiController/toggle/toggle", "#^$#Di" => "HomeController", )); ``` Then you define ThreadController::route to be like this. ``` function route($args) { Route::process($args['uri'], array( "#^(.*)/post$#Di" => "ThreadController/post/title", "#^(.*)/reply$#Di" => "...
[ 0.020507074892520905, -0.202616885304451, 0.7503703832626343, -0.1963316798210144, 0.2606653571128845, 0.04265207052230835, 0.11952412128448486, -0.03763372451066971, -0.2777080535888672, -0.878922700881958, -0.08501201122999191, 0.3359212577342987, -0.5652102828025818, 0.4364343285560608,...
string on the right. Just don't forget to document them or you will confuse people. I'm currently calling index if you don't include a function name on the right. [Here](http://pastie.org/278748) is my current code. You may want to change it to handle errors how you like and or default actions.
[ -0.017776526510715485, -0.201084166765213, 0.3777260482311249, -0.05953207612037659, 0.1599748432636261, 0.012087514623999596, 0.17592830955982208, 0.22447557747364044, -0.4632411599159241, -0.5308887958526611, 0.08477720618247986, 0.46989667415618896, -0.35370010137557983, 0.1266537159681...
Wondering if anyone has gotten the infamous "database is locked" error from Trac and how you solved it. It is starting to occur more and more often for us. Will we really have to bite the bullet and migrate to a different DB backend, or is there another way? See these two Trac bug entries for more info: <http://trac....
[ 0.16080841422080994, 0.0556303933262825, 0.13568434119224548, 0.24990609288215637, -0.1499594748020172, -0.32662272453308105, 0.2708163261413574, 0.3042764663696289, -0.2902420163154602, -0.6820101141929626, 0.1546405553817749, 0.45342817902565, -0.2653711140155792, 0.03675924241542816, ...
I expect we won't be seeing the locks any more. The speed isn't noticeably better as far as I can tell, but at least the locks are gone. Thanks! That's a problem with the current SQLite adapter. There are scripts to migrate to postgres and I can really recommend that, postgres is a lot speeder for trac.
[ -0.03514524921774864, 0.09291660040616989, 0.5385424494743347, 0.3062882125377655, 0.17036114633083344, -0.298431396484375, 0.3279258906841278, 0.5918179154396057, -0.3353753387928009, -0.6325504183769226, 0.21605703234672546, 0.7035748362541199, 0.0199517123401165, 0.280957967042923, -0...
My ultimate goal here is to write a utility that lets me quickly set the folder on *any* dialog box, choosing from a preset list of 'favorites'. As I'm just a hobbyist, not a pro, I'd prefer to use .NET as that's what I know best. I do realize that some of this stuff might require something more than what I could do in...
[ 0.5554311275482178, -0.09807965159416199, 0.08415448665618896, 0.005150511860847473, -0.06769087165594101, 0.17790527641773224, -0.0883592888712883, -0.29083818197250366, -0.0089940270408988, -0.8393187522888184, 0.10308125615119934, 0.6446419358253479, -0.09206059575080872, 0.055406264960...
buttons in the title bar beside the minimize, maximize, and/or close buttons. Either would be good option though I don't have the foggiest idea where to begin. One approach I've tried is to 'drag' the folder name from an app I wrote to the file name textbox on the dialog box, highlighting it using a mouse hook techniq...
[ 0.3217814266681671, -0.050382860004901886, 0.27137452363967896, -0.09027108550071716, -0.17995628714561462, 0.16898764669895172, -0.0923321321606636, -0.22169245779514313, -0.06477201730012894, -0.6637686491012573, -0.06779072433710098, 0.23825784027576447, -0.16631463170051575, -0.0370274...
there's an existing utility that already does this, please let me know! **Update**: When all is said and done, I think I'll probably got with an existing utility. However, I would like to know if there *is* a way to do this programmatically. For something like this you're probably going to get heavy into Win32 API cal...
[ 0.4556003212928772, 0.008439947851002216, -0.0017468213336542249, 0.11080460250377655, -0.03180020675063133, -0.007727697491645813, 0.4462359547615051, -0.09828449040651321, 0.02054552175104618, -0.594978928565979, 0.06713391840457916, 0.7117407321929932, -0.13162922859191895, 0.0556207709...
it had some VB.Net stuff in it. Also, [PInvoke.Net](http://www.pinvoke.net) is a wiki with a lot of pinvoke signatures that you can copy and paste that might help. When it comes down to it, you're probably going to have to learn more about how Windows operates internally (message passing, etc.) to accomplish your...
[ 0.5592069625854492, -0.25514599680900574, 0.0014696427388116717, 0.2546658217906952, -0.33034980297088623, -0.132066547870636, 0.19559870660305023, 0.2645803391933441, -0.3069162368774414, -0.43194517493247986, 0.37959349155426025, 0.12363158911466599, -0.1375470906496048, 0.14862507581710...
I've been given the task of laying the groundwork of a SOA for my client. The goal is to open up various processes in an end-client independent way and also to make data available offline e.g. for reps visiting customers. I do have extensive experience with J2EE (Websphere) and web services but I would appreciate advi...
[ 0.6358233690261841, 0.015800444409251213, 0.2506028413772583, -0.1776169389486313, 0.139959454536438, -0.013214045204222202, 0.026374485343694687, -0.2736082971096039, -0.24009737372398376, -0.5450859665870667, -0.20293956995010376, 0.5270981192588806, -0.0635678768157959, -0.1270298063755...
of clients. I have seen many sites version the APIs by introducing the version in the URL **Granularity** * Each service should be reasonly self-contained (don't expect people to do 3 calls before they get what they need) **Platform Independence** * Try to give more than one way of accessing your APIs (WS, JSON, RE...
[ 0.5765904188156128, 0.06302666664123535, 0.276812881231308, 0.023186031728982925, -0.09474706649780273, -0.09822466224431992, 0.42560014128685, 0.05214301124215126, -0.5333542227745056, -0.5664756894111633, -0.07535617798566818, 0.5898750424385071, -0.24549801647663116, 0.01018936652690172...
We started some overseas merge replication 1 year ago and everything is going fine till now. My problem is that we have now so much data in our system that any crash on one of the subscriber's servers will be a disaster: reinitialising a subscription the standard way will take days (our connexions are definitely slow, ...
[ 0.5194010734558105, 0.1918182075023651, 0.03046373836696148, 0.22355711460113525, 0.34767040610313416, -0.16609080135822296, 0.02250630035996437, 0.2730798125267029, -0.3167848587036133, -0.3488866090774536, 0.13420338928699493, 0.20072384178638458, -0.16995330154895782, 0.0741232410073280...
but it sounds a little bit messy to me: I would have to put my publisher's data in read-only mode and stop all replications untill the operation is completed. 2. make a snapshot of the data, send the snapshot files abroad, install them on the subscriber, and indicate the new snapshot location as an alternate location i...
[ 0.26614511013031006, 0.0395929217338562, 0.38034945726394653, 0.4154798090457916, 0.09810792654752731, -0.3370733857154846, 0.30837926268577576, 0.11010600626468658, -0.14365819096565247, -0.3594815135002136, -0.14264552295207977, 0.40889137983322144, -0.23488609492778778, -0.0104484260082...
ideas", but it will take hours (multiple instances of sql-servers, virtual machines, and all that stuff...), and I was thinking that the guy who did it will need only 2 minutes to explain his idea. And I'd be the most happy man if someone accepts to loose 2 minutes of his time to spare me hours of hard work ... `Shift`...
[ 0.5296010375022888, 0.23963885009288788, 0.30980098247528076, 0.17313162982463837, 0.2590877115726471, -0.13695979118347168, 0.01213898602873087, -0.09859864413738251, -0.3714298903942108, -0.5620202422142029, -0.11839936673641205, 0.5054013729095459, -0.11474855989217758, 0.01752288639545...
I'm trying to handle Winsock\_Connect event (Actually I need it in Excel macro) using the following code: ``` Dim Winsock1 As Winsock 'Object type definition Sub Init() Set Winsock1 = CreateObject("MSWinsock.Winsock") 'Object initialization Winsock1.RemoteHost = "MyHost" Winsock1.RemotePort = "22" Win...
[ -0.03360773250460625, -0.12274998426437378, 0.5877757668495178, -0.1867993324995041, 0.18076680600643158, -0.23427151143550873, 0.49492087960243225, -0.09241433441638947, -0.2890869975090027, -0.6784942746162415, -0.3456827998161316, 0.4990179240703583, -0.4358368515968323, 0.4545289874076...
administrative rights on my PC and I'm not able to register some custom libraries. Can anybody tell me, where I'm wrong? Are you stuck using MSWinsock? [Here](http://www.ostrosoft.com/oswinsck/oswinsck_reference.aspx) is a site/tutorial using a custom winsock object. Also... You need to declare Winsock1 **WithEvent...
[ -0.06235922873020172, 0.23590026795864105, 0.4905398488044739, 0.28639963269233704, 0.44141316413879395, -0.309234082698822, 0.08143855631351471, 0.15325352549552917, -0.46591344475746155, -0.5874290466308594, -0.26937925815582275, 0.5186376571655273, -0.2051689326763153, 0.439248979091644...
What is a good command line tool to create screenshots of websites on Linux? I need to automatically generate screenshots of websites without human interaction. The only tool that I found was [khtml2png](http://khtml2png.sourceforge.net/), but I wonder if there are others that aren't based on khtml (i.e. have good Java...
[ 0.15348605811595917, -0.14379720389842987, 0.4950716197490692, 0.038583941757678986, -0.22723838686943054, -0.3780536651611328, 0.050403986126184464, 0.14006267488002777, -0.2655735909938812, -0.7504985332489014, -0.10999713093042374, 0.6583756804466248, -0.16790267825126648, 0.07375133037...
the URL being displayed in the first firefox window. Now you can grab the screen image with one of several commands, such as the "import" command from the Imagemagick package, or using gimp, or fbgrab, or xv. ``` #!/bin/sh # start a server with a specific DISPLAY vncserver :11 -geometry 1024x768 # start firefox in t...
[ 0.5814608335494995, -0.005552006419748068, 0.7206302285194397, -0.2046235054731369, -0.32978925108909607, -0.27616816759109497, 0.04807957634329796, -0.07735338062047958, -0.38102132081985474, -0.7777070999145508, -0.33401066064834595, 0.6157421469688416, -0.5027087330818176, 0.09263308346...
sleep 5 import -window root image$count.jpg count=`expr $count + 1` done < url_list.txt # clean up when done vncserver -kill :11 ```
[ 0.5238970518112183, -0.041862647980451584, 0.4964868426322937, -0.18394459784030914, 0.11525168269872665, -0.08509638160467148, 0.27158233523368835, -0.23661164939403534, -0.25906166434288025, -0.5804578065872192, -0.380433052778244, 0.6255764365196228, -0.09772635996341705, 0.054992653429...
We have a 3D viewer that uses OpenGL, but our clients sometimes complain about it "not working". We suspect that most of these issues stem from them trying to use, what is in effect a modern 3d realtime game, on a businiss laptop computer. **How can we, in the windows msi installer we use, check for support for openGL...
[ 0.4917268753051758, 0.20236821472644806, 0.2544632852077484, 0.3644077777862549, 0.03663570433855057, -0.25311195850372314, 0.23529335856437683, 0.36227545142173767, -0.06245655566453934, -0.679851233959198, -0.05512261018157005, 0.6934316158294678, -0.05252264067530632, 0.0176858548074960...
at all, because of lack of some OpenGL support. 2. it launches, but crashes further on. 3. it launches, does not crash, but rendering is corrupt. 4. it launches and renders everything correctly, but performance is abysmal. All Windows versions (since 95) have OpenGL support built-in. So it's unlikely to cause situatio...
[ 0.023220572620630264, 0.092759869992733, 0.649017333984375, 0.316472589969635, -0.22256042063236237, -0.27992528676986694, 0.39631351828575134, 0.02482854388654232, -0.05601004511117935, -0.688822329044342, -0.4857717454433441, 0.6715333461761475, -0.34576624631881714, 0.012561965733766556...
to cause situations 3) and 4) above. Even if OpenGL is available, on Windows OpenGL drivers are not very robust, to say mildly. Various bugs in the drivers are very likely to cause situation 2), where doing something valid causes a crash in the driver. Here's a C++/WinAPI code snippet that creates a dummy OpenGL cont...
[ 0.30130788683891296, 0.287298321723938, 0.42268291115760803, 0.10571321099996567, -0.0956203043460846, 0.02290448173880577, 0.2795281410217285, -0.41268500685691833, -0.29700610041618347, -0.29645872116088867, -0.29820743203163147, 0.6584466695785522, -0.28312554955482483, -0.0123875495046...
AfxGetInstanceHandle(), NULL ); HDC dc = GetDC( wnd ); PIXELFORMATDESCRIPTOR pfd = { sizeof(PIXELFORMATDESCRIPTOR), 1, PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL, PFD_TYPE_RGBA, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, PFD_MAIN_PLANE, 0, 0, 0, 0 }; int fmt = ChoosePixelFormat( dc,...
[ -0.3821084797382355, -0.39614003896713257, 1.0999106168746948, -0.180423766374588, -0.05341269448399544, 0.4163716435432434, -0.0422993004322052, -0.4598841369152069, -0.11251542717218399, -0.49656787514686584, -0.3834180235862732, 0.6988394856452942, -0.5650712847709656, -0.21868106722831...
(const char*)glGetString(GL_VERSION); // DO SOMETHING WITH THOSE STRINGS HERE! // cleanup wglDeleteContext( rc ); ReleaseDC( wnd, dc ); DestroyWindow( wnd ); ``` You could somehow plug that code into your installer or application and at least check GL version for being 1.1; this will detect "driver is not installed...
[ 0.23581482470035553, -0.08451750129461288, 0.22486530244350433, -0.10528564453125, -0.1957724541425705, -0.40760815143585205, 0.6450488567352295, -0.11411749571561813, -0.11559175699949265, -0.5349588990211487, -0.3223878741264343, 0.9682238698005676, -0.5255112648010254, 0.104332536458969...
I have an email subject of the form: ``` =?utf-8?B?T3.....?= ``` The body of the email is utf-8 base64 encoded - and has decoded fine. I am current using Perl's Email::MIME module to decode the email. What is the meaning of the =?utf-8 delimiter and how do I extract information from this string? The [`encoded-word`...
[ 0.13127169013023376, 0.3988564908504486, 0.6314144730567932, -0.09805331379175186, 0.07332456111907959, -0.01450461894273758, 0.3352973759174347, -0.10668633133172989, 0.16984400153160095, -0.603907585144043, -0.31338977813720703, 0.17326653003692627, -0.21787594258785248, 0.03322999551892...
various Internet Mail RFCs for more detail, mainly [RFC 2047](http://www.faqs.org/rfcs/rfc2047.html). Since you are using Perl, [Encode::MIME::Header](https://metacpan.org/pod/Encode::MIME::Header) could be of use: > SYNOPSIS > > > > ``` > use Encode qw/encode decode/; > $utf8 = decode('MIME-Header', $header); >...
[ 0.09682667255401611, 0.0730515718460083, 0.5017277598381042, -0.10594570636749268, -0.053020019084215164, 0.06911039352416992, 0.3140258193016052, -0.24157699942588806, -0.1234617605805397, -0.8253716230392456, -0.37380415201187134, 0.06410405784845352, -0.4171343147754669, 0.1927474141120...
> MIME-Header Both B and Q =?UTF-8?B?....?= > MIME-B B only; Q croaks =?UTF-8?B?....?= > MIME-Q Q only; B croaks =?UTF-8?Q?....?= > > ```
[ 0.027897095307707787, 0.573540449142456, 0.3269598186016083, -0.38870346546173096, -0.05676661804318428, 0.4259187579154968, 0.6613683700561523, 0.10341103374958038, 0.2531299591064453, -0.2372836321592331, -0.6586489081382751, 0.5739696025848389, -0.2397581934928894, 0.07325239479541779, ...
I've been looking into [OSGi](http://www.osgi.org/Main/HomePage) recently and think it looks like a really good idea for modular Java apps. However, I was wondering how OSGi would work in a web application, where you don't just have code to worry about - also HTML, images, CSS, that sort of thing. At work we're build...
[ 0.4171532988548279, 0.08245553821325302, 0.18567976355552673, -0.059766046702861786, -0.0888240784406662, 0.26588374376296997, -0.06154351681470871, 0.19555574655532837, -0.5202236175537109, -0.693807065486908, 0.009381972253322601, 0.458914190530777, -0.4202882945537567, 0.093652784824371...
makes any difference, but we're using JSF and [IceFaces](http://www.icefaces.org) (which adds another layer of problems because you have navigation rules and you have to specify all faces config files in your web.xml... doh!) Edit: according to [this thread](http://forums.sun.com/thread.jspa?messageID=3339002), faces-...
[ 0.2770906686782837, 0.21791033446788788, 0.619988203048706, -0.04271352291107178, -0.1971428394317627, 0.20985759794712067, 0.29401543736457825, -0.2792958915233612, -0.4817289412021637, -0.797948956489563, 0.1715303510427475, 0.34388506412506104, -0.2869499921798706, -0.2853236496448517, ...
bundles) where each bundle contributes its own pages, resources, css and optionally javascript. We don't use JSF (Spring MVC here) so I can't comment on the added complexity of that framework in an OSGi context. Most frameworks or approaches out there still adhere to the "old" way of thinking: one WAR file representi...
[ 0.3454427123069763, -0.23813804984092712, 0.3895054757595062, 0.28373390436172485, -0.09515954554080963, -0.1189672127366066, -0.21145910024642944, -0.34458282589912415, -0.47228628396987915, -0.7325775027275085, -0.1848592907190323, 0.45503923296928406, -0.22030355036258698, -0.0178104341...
deploy your application on an OSGi runtime and use its infrastructure for everything. Alternatively, you can embed an OSGi runtime in a traditional app server and then you will need to re-use some infrastructure, specifically you want to use the AppServer's servlet engine. Our design is currently based on OSGi as the ...
[ 0.14944544434547424, -0.23535077273845673, 0.5320616960525513, 0.23822486400604248, 0.03977302834391594, -0.0010624859714880586, -0.16435116529464722, -0.2699642777442932, -0.3184341490268707, -0.8294326663017273, -0.21041502058506012, 0.38417235016822815, -0.3152850270271301, 0.0988316982...
not to just serve a web application over OSGi but to also apply OSGi's component model to the web UI itself, to make it composable, re-usable, dynamic. These are the components in the system: * 1 central bundle that takes care of bridging Spring MVC with OSGi, specifically it uses [code by Bernd Kolb](http://thegoodt...
[ -0.06860501319169998, -0.26129335165023804, 0.4860663115978241, 0.1628272831439972, -0.3196184039115906, 0.19838276505470276, -0.1272268444299698, -0.238175630569458, -0.5563541054725647, -0.55943763256073, -0.19476035237312317, 0.01886940188705921, -0.2628636658191681, 0.2633768916130066,...
the site, as well as the central CSS and Javascript libraries that we want to offer as defaults. * Each bundle that wants to contribute pages to our web UI has to publish 1 or more Controllers as OSGi Services and make sure to **register its own servlet and its own resources (CSS, JSP, images, etc)** with the OSGi HTTP...
[ 0.23781010508537292, -0.22551774978637695, 0.7708624601364136, 0.5004796981811523, 0.03852049633860588, -0.21127159893512726, -0.12395529448986053, 0.13247942924499512, -0.31575506925582886, -0.7718168497085571, -0.24926774203777313, 0.0513828843832016, -0.17678529024124146, 0.223393678665...
Controller services and keeps an up to date map of URLs to Controller instances. Then when an HTTP request comes in for a certain URL, it finds the associated controller and dispatches the request there. The Controller does its business and then returns any data that should be rendered **and** the name of the view (...
[ 0.02719004452228546, -0.5802910923957825, 0.9559521079063416, 0.42909952998161316, -0.08033867180347443, -0.06734023988246918, -0.06553348153829575, 0.2536817491054535, -0.05917663872241974, -0.6320415735244751, -0.4240404963493347, 0.26356804370880127, -0.03408363461494446, 0.544689774513...
our central Sitemesh decorator and spits out the resulting HTML to the client. In know this is rather high level but without providing the complete implementation it's hard to fully explain. Our key learning point for this was to look at [what Bernd Kolb did](http://thegoodthebadtheugly.wordpress.com/2007/05/20/spri...
[ 0.24945880472660065, 0.3589070737361908, 0.2990843653678894, -0.07481451332569122, -0.20942600071430206, -0.08078206330537796, 0.4551766812801361, -0.1111663430929184, -0.10359149426221848, -0.8162658214569092, -0.13560332357883453, 0.3252083361148834, -0.2604392468929291, -0.0081685893237...
really allow the design of componentized web applications.
[ 0.4127497375011444, -0.04144630581140518, 0.3047555983066559, 0.41745010018348694, 0.005933980457484722, -0.5140730142593384, -0.009940952993929386, 0.22386600077152252, -0.07383187860250473, -0.4639967381954193, -0.03054858185350895, 0.3708626925945282, -0.11317040026187897, -0.2790247797...
**Problem**. I need a way to find Starteam server time through Starteam Java SDK 8.0. Version of server is 8.0.172 so method `Server.getCurrentTime()` is not available since it was added only in server version 9.0. **Motivation**. My application needs to use views at specific dates. So if there's some difference in sy...
[ -0.04942580685019493, 0.04366867616772652, 0.9601566791534424, 0.08709236979484558, -0.10247693210840225, 0.10387984663248062, 0.4115033745765686, 0.019785098731517792, -0.46838682889938354, -0.8122067451477051, 0.07557752728462219, 0.3234935700893402, -0.08971250057220459, 0.0780176296830...
My app requests the item's time of creation and compares it with local time. Here's the method I use to get server time: ``` public Date getCurrentServerTime() { Folder rootFolder = project.getDefaultView().getRootFolder(); Topic newItem = (Topic) Item.createItem(project.getTypeNames().TOPIC, rootFolder); ...
[ 0.18995529413223267, -0.12418235838413239, 0.9253529906272888, -0.17668507993221283, 0.27105218172073364, 0.3367997109889984, 0.40385642647743225, -0.08324598520994186, -0.3832499384880066, -0.7535254955291748, -0.41054749488830566, 0.18160898983478546, -0.2889259457588196, 0.2408468723297...
Assume the following class: ``` public class MyEnum: IEnumerator { private List<SomeObject> _myList = new List<SomeObject>(); ... } ``` It is necessary to implement the IEnumerator methods in MyEnum. But is it possible to 'delegate' or redirect the implementation for IEnumerator directly to \_myList without nee...
[ -0.05955638363957405, 0.12413060665130615, 0.30069321393966675, -0.22471106052398682, 0.23504112660884857, 0.14106260240077972, 0.045559946447610855, 0.006051139906048775, -0.1817457526922226, -0.6232158541679382, -0.2700341045856476, 0.6171618103981018, -0.1926417350769043, 0.035158496350...
{ return _myList.GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { return this.GetEnumerator(); } } class Program { static void Main(string[] args) { MyEnum a = new MyEnum(); a.Add(new SomeObject()); foreach (SomeObject o in a) {
[ 0.04133041575551033, -0.10435669869184494, 0.26621851325035095, -0.542612612247467, 0.41696590185165405, 0.4005800485610962, 0.4446961283683777, 0.03162943199276924, -0.17395029962062836, -0.326087087392807, -0.33411458134651184, 0.5530366897583008, -0.29982972145080566, 0.2975054979324341...
Console.WriteLine(o.GetType().ToString()); } Console.ReadLine(); } } ``` **Method 2:** Inherit from List implementation you get that behavior for free. ``` class SomeObject { } class MyEnum : List<SomeObject> { } class Program { static void Main(string[] args) { MyEnum a = new ...
[ -0.034075748175382614, -0.11931798607110977, 0.3135223388671875, -0.30774933099746704, 0.27206656336784363, 0.15482641756534576, 0.33585140109062195, 0.05199424549937248, -0.16417671740055084, -0.4219045042991638, -0.23251225054264069, 0.6153942942619324, -0.33177533745765686, 0.3288019895...
Console.WriteLine(o.GetType().ToString()); } Console.ReadLine(); } } ``` **Method 1** allows for better sandboxing as there is no method that will be called in List without MyEnum knowledge. For least effort **Method 2** is preferred.
[ -0.23977455496788025, -0.06830745190382004, 0.3680435121059418, -0.17997436225414276, 0.12538041174411774, -0.08846896141767502, 0.28144457936286926, -0.16511283814907074, 0.14378462731838226, -0.8292728066444397, -0.21313650906085968, 0.5407084226608276, -0.19029702246189117, 0.0933253914...
If I have a query like, ``` DELETE FROM table WHERE datetime_field < '2008-01-01 00:00:00' ``` does having the `datetime_field` column indexed help? i.e. is the index only useful when using equality (or inequality) testing, or is it useful when doing an ordered comparison as well? > (Suggestions for better executi...
[ 0.13234083354473114, 0.0029486671555787325, 0.4298194646835327, 0.0001290984364459291, 0.06565327197313309, -0.15684601664543152, 0.25970473885536194, -0.14353260397911072, -0.19851766526699066, -0.5933405756950378, -0.028687626123428345, 0.6827382445335388, -0.1758757084608078, 0.10197450...
than, say 1/3 of the rows), it probably won't use the index at all, as a table scan would be likely to be faster. Use EXPLAIN (on a SELECT; you can't EXPLAIN a delete) to determine its decision in a specific case. This is likely to depend upon * How many rows there are in the table * What the range is that you're spe...
[ -0.071116603910923, -0.3707437515258789, 0.12438642233610153, 0.06612162292003632, -0.06706496328115463, -0.01015564426779747, 0.2970949113368988, -0.2992531359195709, 0.1500190943479538, -0.7891944050788879, -0.23957020044326782, 0.5248040556907654, -0.3083573579788208, -0.030479267239570...
the company I work for want to use a "hosted payment form" to charge our customers. A question came up on how we can populate the "payment form" automatically with information from one of our other system. We have no control over the hosed payment form, and we have to use IE. Is this possible at all? And if so, how can...
[ 1.0171047449111938, 0.07646159827709198, 0.25506094098091125, 0.14838071167469025, 0.02865883894264698, -0.16463404893875122, -0.17208151519298553, -0.04001016542315483, -0.037774112075567245, -0.4155259430408478, 0.2690422236919403, 0.3986925184726715, -0.091521717607975, 0.16103111207485...
the fields - field.value = "xxxx". That solution of course depends on the form remaining the same - any changes to the remote form will require you to update your script. If you are "handing off" to a remote site (redirect) that post's back to your site when payment is complete, then unless the remote site offers an ...
[ 0.18413536250591278, -0.17055441439151764, 0.6396859884262085, 0.07200682908296585, 0.06987803429365158, 0.06754948198795319, 0.28500306606292725, 0.008497699163854122, -0.07591323554515839, -0.40087056159973145, -0.23889407515525818, 0.4480588734149933, 0.09659384936094284, 0.266201019287...
Is it possible to show multiple lines of text in grid cells using the .NET Compact framework? We need to create a grid where the middle column contains an address. We'd like to show this over multiple lines and (possibly) apply some formatting to the final line. e.g. 123 Anywhere Street Birmingham B1 2DU ...
[ 0.5122836828231812, -0.08559606969356537, 0.29182809591293335, 0.011942417360842228, -0.04923081025481224, 0.4361613988876343, 0.10595415532588959, -0.21080282330513, -0.21720461547374725, -0.6306036710739136, -0.28780749440193176, -0.174716517329216, -0.6039575338363647, -0.06580150872468...
Our software manages a lot of data feeds from various sources: real time replicated databases, files FTPed automatically, scheduled running of database stored procedures to cache snapshots of data from linked servers and numerous other methods of acquiring data. We need to verify and validate this data: * has an im...
[ 0.5361922383308411, 0.14508874714374542, 0.1928039789199829, 0.5665960311889648, 0.26641082763671875, -0.09429357200860977, 0.22953343391418457, -0.2639593780040741, -0.10329139232635498, -0.34108367562294006, -0.005399325396865606, 0.5882171988487244, -0.05318658426403999, 0.0920104384422...
of check to make, just add a new check to the list and just re-run each class of test in response to a particular event. There are already nice GUIs for running tests, perhaps even being able to schedule them. Is this a good approach? Are there better, similarly generalised, patterns for data validation? We're a .N...
[ 0.882247269153595, -0.2148354947566986, -0.10816892236471176, 0.2587566673755646, 0.09301866590976715, -0.04204150661826134, 0.11304330080747604, -0.31991294026374817, 0.013762801885604858, -0.4941840171813965, 0.27187058329582214, 0.49135714769363403, -0.11510280519723892, -0.121717430651...
validation of data coming into the system. Data comes into the system by various means, and I would assume it needs to be verified in different ways. Workflow is good for designing and controlling business processes (logic) that are apt to change or require human intervention. It is agnostic when it comes to the subje...
[ 0.3290817439556122, 0.15237115323543549, 0.0818687453866005, 0.3650909960269928, -0.09488929808139801, -0.2361207902431488, 0.12783083319664001, -0.16269798576831818, -0.12195999175310135, -0.14390234649181366, -0.0024156176950782537, 0.46725425124168396, -0.17629680037498474, 0.0030669823...
for different types of data import at runtime. You need to design a validation framework that relies heavily on composition over inheritance for its logic. Break apart all the different ways that data can be imported into the system and validated into atomic steps. Group those steps by responsibility and create inter...
[ 0.34629058837890625, 0.019355330616235733, -0.20124195516109467, 0.44941332936286926, -0.1824529469013214, -0.17755967378616333, 0.06803535670042038, -0.4298088848590851, -0.1620871126651764, -0.5888245701789856, 0.07712112367153168, 0.5433016419410706, -0.3618081212043762, -0.095269121229...
to xaml for long term storage. Your classes should be xaml serializable as well to make the transition from activity to repository and back again as smooth and simple as possible.
[ 0.16332745552062988, -0.2114829123020172, 0.07671389728784561, 0.47861066460609436, 0.0833882987499237, -0.48803460597991943, -0.022796502336859703, 0.5144718289375305, -0.31647607684135437, -0.774884045124054, -0.35474297404289246, 0.2025492936372757, -0.22561998665332794, 0.1460032761096...
Imagine to have two RESTful controllers (UsersController, OffersController) and a PagesController (used for static content such as index, about and so on) in your application. You have the following routes defined: ``` map.with_options :controller => 'pages' do |pages| pages.root :action => 'index' # static hom...
[ -0.2664925158023834, -0.3756278455257416, 0.665783166885376, 0.3016555607318878, 0.1772555261850357, 0.09065139293670654, -0.2543097138404846, -0.09664924442768097, -0.2835257947444916, -0.9732063412666321, -0.24757222831249237, 0.5270227193832397, -0.24474461376667023, -0.0152323888614773...
id="menu"> <li> <%= link_to 'Home', root_path %> </li> <li> <%= link_to 'Offers', offers_path %> <ul id="submenu> <li><%= link_to 'Search', 'path/to/search' %></li> <li>maybe more links...</li> </ul>
[ -0.5216795802116394, -0.10327814519405365, 0.6281613707542419, -0.03764646127820015, -0.037181805819272995, 0.5167376399040222, -0.014699183404445648, 0.02160801738500595, -0.11874554306268692, -1.0848857164382935, -0.19984440505504608, 0.32475745677948, -0.188764289021492, 0.2172587811946...
</li> <li> <%= link_to 'About', about_path %> </li> <li> <%= link_to 'Admin', users_path %> <ul id="submenu"> <li><%= link_to 'New User', new_user_path %></li> <li><%= link_to 'New Offer', new_offer_path %></li>
[ -0.5307350158691406, 0.04502563178539276, 0.6833580732345581, -0.1355864554643631, -0.10838376730680466, 0.5868738889694214, -0.16184067726135254, -0.23820362985134125, 0.13853126764297485, -1.1392709016799927, -0.37306758761405945, 0.4493160545825958, -0.21344684064388275, 0.2156727463006...
<li>maybe more links</li> </ul> </li> </li> <%= yield %> </body> </html> ``` The problem with the layout is that I want only one `#submenu` to be visible at any time. All other submenus can be completely skipped (don't need to rendered at all). Take the Admin menu for example: This menu sho...
[ -0.19322167336940765, -0.08173246681690216, 0.6527643799781799, 0.03142381086945534, -0.20319263637065887, -0.05649418756365776, 0.4303070306777954, -0.026204422116279602, -0.21941335499286652, -0.821923017501831, -0.4049622118473053, 0.3170902132987976, -0.5335674285888672, -0.02321392484...
build a lot complicated if conditions and that sucks (really complicated to write and to maintain). I'm looking for an elegant solution? I hope someone understands my question - if there's something unclear just comment the question and I'm going to explain it in more detail. One thing you could play with is yield and...
[ 0.140644371509552, 0.0292617566883564, -0.02668268047273159, 0.15990880131721497, 0.07997429370880127, 0.17539723217487335, 0.08257828652858734, -0.025796782225370407, 0.0475996732711792, -0.8359417915344238, 0.348153680562973, 0.6853394508361816, -0.19724926352500916, -0.10130368173122406...
the menu. If it's not specified it won't get rendered. ``` <% content_for(:menu) do %> <%= render :partial => 'layouts/menu' %> <%= render :partial => 'layouts/search_menu' %> etc... <% end %> ``` If you're using a lot of the same menus in most pages, specify a default in your layout if no yield(:menu) is...
[ -0.09576911479234695, -0.11355028301477432, 0.41100817918777466, -0.09016217291355133, -0.08650798350572586, 0.06906263530254364, 0.27802202105522156, 0.0875157043337822, -0.10877632349729538, -0.9619076251983643, -0.43765923380851746, 0.7848832011222839, -0.36125364899635315, -0.043814498...
Since the release of Adobe AIR I am wondering why Java Web Start has not gained more attention in the past as to me it seems to be very similar, but web start is available for a much longer time. Is it mainly because of bad marketing from Sun, or are there more technical concerns other than the need of having the righ...
[ 0.341717928647995, 0.13238586485385895, -0.10026722401380539, -0.024075763300061226, -0.43692687153816223, -0.32991862297058105, -0.17753274738788605, -0.10387364029884338, 0.061178166419267654, -0.5429366827011108, 0.0904105007648468, 0.5368091464042664, -0.2155628800392151, -0.4267731010...
a pain to setup, but it works very well once in place. So the only recommendation I could make is to start small, to get the hang of it. Deploying one simple application first. Trying to deploy a complete product that is already made without experience with JWS gets complicated rather quickly. Also, learning how to pa...
[ 0.3725871443748474, 0.1049044206738472, 0.34739431738853455, -0.24806475639343262, -0.1023828536272049, -0.2547546327114105, 0.22501084208488464, -0.16386787593364716, -0.43601158261299133, -0.7474629282951355, -0.15612027049064636, 0.539861261844635, -0.3499789535999298, 0.228244468569755...
acceptance of Java Web Start is that it is relatively difficult to setup. Also, somehow there is this dissonance: When you have a desktop application, people expects a installer they can double click. When you have a web application, people expects they can use it right from the browser. Java Web Start is neither here ...
[ -0.07122262567281723, -0.22443760931491852, -0.20705829560756683, -0.3103945851325989, -0.0951978787779808, -0.5546199679374695, -0.05285542085766792, 0.24477432668209076, -0.2091211974620819, -0.8401767611503601, 0.023761838674545288, 0.157808318734169, -0.20997264981269836, -0.2559387981...
After I [messed up the description of my previous post](https://stackoverflow.com/questions/121922/automatic-casts) on this I have sat down and tried to convey my exact intent. I have a class called P which performs some distinct purpose. I also have PW which perform some distinct purpose on P. PW has no member variab...
[ 0.45523276925086975, 0.027424661442637444, 0.28268977999687195, -0.16019584238529205, 0.005102091934531927, 0.23705360293388367, 0.3773282468318939, -0.23700115084648132, -0.16480259597301483, -0.2619144022464752, -0.3800371587276459, 0.12734386324882507, -0.47289150953292847, 0.2669053375...
P GetP( ) const { return p; } private: P p; }; // ... PW& p = c.GetP( ); // valid // ... ``` However that brings up a problem. I can't call the functions of P without indirection everywhere. ``` // ... p->p->a( ) // ... ``` **What I would like to do is call p->a( ) and have it automatically determi...
[ -0.1560521423816681, 0.06143897399306297, 0.4768143594264984, -0.24140000343322754, -0.3644927740097046, 0.32009097933769226, 0.12831604480743408, -0.4436367154121399, -0.16054193675518036, -0.3689304292201996, -0.24097102880477905, 0.4775712490081787, -0.42997586727142334, -0.058141242712...
need to be added (or removed) to PW. You could try overriding operator\* and operator-> to return access to the embedded p. Something like this might do the trick : ``` class P { public: void a( ) { std::cout << "a" << std::endl; } }; class PW { public: PW(P& p) : p(p) { } void b( ) { std::cout << "b...
[ -0.12236211448907852, -0.10441748052835464, 0.4329158067703247, -0.27079951763153076, 0.36127418279647827, 0.16472241282463074, 0.026288744062185287, -0.34104207158088684, 0.12070772796869278, -0.5401866436004639, -0.4973445236682892, 0.5465064644813538, -0.4012083113193512, -0.04438916593...
public: P & getP() { return p; } private: P p; }; int main() { C c; PW pw(c.getP()); (*pw).a(); pw->a(); pw.b(); return EXIT_SUCCESS; } ``` This code prints ``` a a b ``` However, this method may confuse the user since the semantic of operator\* and operator-> becomes a little messed up.
[ -0.2423129826784134, -0.01726960390806198, 0.20973794162273407, -0.2955990731716156, 0.35160213708877563, -0.005139279644936323, 0.471835732460022, -0.23638808727264404, -0.07638835906982422, -0.28378957509994507, -0.6355173587799072, 0.5554468035697937, -0.4331868588924408, 0.199053913354...
I'm calling a non-.NET dll from my project using P/Invoke, meaning that the .dll must always be present in the .exe's directory. Is there any way to tell Visual Studio of this dependency, so that it will automatically copy the .dll to the output directory when compiling, and will automatically include the .dll in the...
[ 0.7076561450958252, -0.037187229841947556, 0.27096685767173767, -0.12228064984083176, 0.10634659230709076, -0.08863994479179382, 0.14918465912342072, -0.22304950654506683, -0.2179081290960312, -0.6353371143341064, -0.2883727252483368, 0.9283949732780457, -0.19190451502799988, 0.00488573079...
Events" where you can specify any batch scripts. I prefere the second option, because this way is more flexible than the first. Also you can modify a MSBuild file and add a task for copy the file(s).
[ 0.098225899040699, -0.39470168948173523, 0.17681552469730377, 0.08005782961845398, -0.05711706355214119, -0.045329462736845016, 0.15037265419960022, 0.1485775262117386, -0.3253103792667389, -0.7201124429702759, -0.22866682708263397, 0.618750274181366, -0.27887970209121704, 0.01957011036574...
I have URLs of the form `http://domain/image/⟨uuid⟩/42x42/some_name.png`. The Web server (nginx) is configured to look for a file `/some/path/image/⟨uuid⟩/thumbnail_42x42.png`, and if it does not exist, it sends the URL to the backend (Django via mod\_wsgi) which then generates the thumbnail. Then the backend emits a 3...
[ 0.47662490606307983, 0.38342344760894775, 0.5596464276313782, -0.15394259989261627, -0.08465609699487686, -0.2395792156457901, 0.20736786723136902, 0.2710825204849243, -0.0021664032246917486, -0.6145028471946716, -0.05904918909072876, 0.35826951265335083, -0.10137283056974411, 0.3981618583...
user agents will interpret this as intended? *Update:* Let me clarify the intent. Currently this works as follows: 1. The client requests a thumbnail of an image. 2. The server sees the file does not exist, so it forwards the request to the backend. 3. The backend creates the thumbnail and returns 302. 4. The backend...
[ 0.279361367225647, -0.08625421673059464, 0.7045997381210327, 0.03524133935570717, 0.03203273564577103, 0.10020739585161209, 0.4460701644420624, -0.1815226823091507, -0.06625350564718246, -0.7083566784858704, -0.193256214261055, 0.6282455921173096, -0.4729558527469635, 0.07923652976751328, ...
if the client has an extremely slow link? The backend is not particularly fast nor memory-efficient, and keeping it in memory while spoon-feeding the client can be wasteful. So I keep the backend working for the minimum amount of time. *Update²:* I’d really appreciate some RFC references or opinions of someone with e...
[ 0.47823411226272583, 0.12923017144203186, 0.274245023727417, 0.06609193235635757, -0.06382908672094345, 0.0005116597167216241, 0.3586370050907135, 0.12860187888145447, -0.35926616191864014, -0.7180066108703613, 0.07935190200805664, 0.5903067588806152, 0.028743555769324303, 0.18142157793045...
URLs to be <http://domain/djangoapp/generate_thumbnail> and that'll return the thumbnail and the proper content-type and so on
[ 0.5292759537696838, 0.3036007285118103, 0.8349510431289673, 0.03284498304128647, -0.20394983887672424, -0.6406048536300659, -0.2680196166038513, 0.22402964532375336, -0.17118693888187408, -0.3776983916759491, -0.04260142520070076, 0.2948645353317261, -0.06414786726236343, 0.490237742662429...
**Intro**: I'm trying to migrate our Trac SQLite to a PostgreSQL backend, to do that I need psycopg2. After clicking past the embarrassing rant on www.initd.org I downloaded the latest version and tried running `setup.py install`. This didn't work, telling me I needed mingw. So I downloaded and installed mingw. **Prob...
[ -0.23153559863567352, 0.24996882677078247, 0.5493147969245911, 0.028765682131052017, 0.11306942254304886, -0.09856817126274109, 0.16025970876216888, -0.03270111605525017, -0.23918963968753815, -0.9519332647323608, -0.04311097040772438, 0.5005691051483154, -0.41471776366233826, 0.2140232026...
-lpq collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1 ``` **What I've tried** - I noticed the forward slashes in the -L option, so I manually entered my PostgreSQL lib directory in the library\_dirs option in the setup.cfg, to no avail (the call then had a -L option with backslashes,...
[ 0.34858018159866333, 0.11161082237958908, 0.2615692913532257, -0.17656506597995758, -0.16401885449886322, -0.1098090335726738, 0.031665705144405365, -0.16451004147529602, -0.2791098654270172, -0.5695301294326782, 0.10928822308778763, 0.8868570923805237, -0.17392711341381073, -0.18412435054...
postgresql by hand to work around this problem.
[ 0.02545783296227455, -0.06831478327512741, 0.1071285754442215, 0.21135687828063965, -0.4722401797771454, -0.22197841107845306, -0.20806561410427094, 0.3444918990135193, 0.07350853830575943, -0.4807540476322174, -0.18808816373348236, 0.314330130815506, -0.025362009182572365, -0.004709616303...
We've been using Scrum on a few projects now with varying success and I now have a query relating to documentation. In Scrum, you obviously have the product backlog ("The application begins by bringing up the last document the user was working with.") and the sprint task backlog ("Implement forgot password screen"). H...
[ 0.47781941294670105, 0.1099100261926651, -0.04438448324799538, -0.03080565296113491, 0.16360925137996674, 0.06600888073444366, -0.2291577160358429, -0.38234448432922363, -0.4052393138408661, -0.5854187607765198, 0.08915434032678604, 0.4813367426395416, 0.136214017868042, -0.034044295549392...
complex API that needs to be integrated with on the back end, where is this documented, how and who captures this information? Is it seperate to the backlog but populated on a just-in-time basis or some other way? [Sprint backlog](http://en.wikipedia.org/wiki/Scrum_(development)#Sprint_backlog) > The sprint backlog is...
[ 0.14885547757148743, -0.1573915034532547, 0.1318078339099884, 0.13234566152095795, 0.28242045640945435, -0.0050965785048902035, 0.313226580619812, -0.26175183057785034, -0.20130068063735962, -0.6130403280258179, -0.09172652661800385, 0.5266357660293579, -0.0701344683766365, -0.426039606332...
on the > sprint backlog are never assigned, > rather tasks are signed-up for by the > team members as they like.
[ 0.027393531054258347, -0.2183900773525238, -0.438986599445343, 0.36465564370155334, -0.14545536041259766, 0.05816197022795677, 0.35536375641822815, 0.3098023235797882, -0.2970501184463501, -0.4945865273475647, -0.31701719760894775, 0.28153055906295776, -0.14469605684280396, -0.364805996417...
Debugging some finance-related SQL code found a strange issue with numeric(24,8) mathematics precision. Running the following query on your MSSQL you would get A + B \* C expression result to be 0.123457 SELECT A, B, C, A + B \* C FROM ( SELECT CAST(0.12345678 AS NUMERIC(24,8)) AS A, CAST(0 AS NUMERIC(24,8)) AS B...
[ 0.09324872493743896, 0.14376838505268097, 0.31802839040756226, -0.032484930008649826, 0.047470707446336746, 0.335655152797699, 0.3065166473388672, -0.16700048744678497, -0.1345641314983368, -0.3114321827888489, 0.05049659311771393, 0.4550221860408783, -0.028396278619766235, 0.0394186303019...
why MSSQL behaves in this way and which type conversions actually occured in my sample? Just as addition of the float type is inaccurate, multiplication of the decimal types can be inaccurate (or cause inaccuracy) if you exceed the precision. See [Data Type Conversion](http://msdn.microsoft.com/en-us/library/ms191530%2...
[ 0.04249004274606705, 0.11482659727334976, 0.3810904920101166, 0.15265308320522308, -0.10873320698738098, 0.13527241349220276, 0.289732962846756, -0.4716176986694336, -0.1858908087015152, -0.37578192353248596, 0.09893154352903366, 0.34030482172966003, -0.30497220158576965, 0.087837278842926...
you with only 6 decimal digits (38 - 32). Thus the original query ``` SELECT A, B, C, A + B * C FROM ( SELECT CAST(0.12345678 AS NUMERIC(24,8)) AS A, CAST(0 AS NUMERIC(24,8)) AS B, CAST(500 AS NUMERIC(24,8)) AS C ) T ``` reduces to ``` SELECT A, B, C, A + D FROM ( SELECT CAST(0.12345678 AS NUMERIC(24,8)) AS A...
[ -0.21798627078533173, 0.17142851650714874, 0.3986815810203552, 0.023091444745659828, 0.02014128491282463, 0.3266271650791168, 0.16165007650852203, -0.4314642548561096, -0.24129103124141693, -0.07590271532535553, -0.23716938495635986, 0.5765136480331421, -0.027040380984544754, -0.0460251271...
AS NUMERIC(38,6)) ``` which gives you `0.123457` after rounding.
[ 0.1204887256026268, 0.21266579627990723, 0.352547824382782, 0.015621156431734562, 0.05745349079370499, 0.32312917709350586, 0.21189577877521515, -0.3797430098056793, -0.04269414022564888, -0.159970223903656, -0.12893669307231903, 0.35223716497421265, 0.34529003500938416, 0.2853111326694488...