text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
<omp.h> // Starting the time measurement double start = omp_get_wtime(); // Computations to be measured ... // Measuring the elapsed time double end = omp_get_wtime(); // Time calculation (in seconds) ```
[ 0.5042624473571777, -0.02078234776854515, 0.710654079914093, -0.07219350337982178, 0.18721596896648407, 0.08363917469978333, 0.07412979751825333, -0.46922922134399414, -0.4163145422935486, -0.5090770125389099, -0.09617161750793457, 0.4405062794685364, -0.09788697957992554, 0.31647953391075...
This is probably the most classic database problem. I have an E-commerce software solution hosted on a SQL server for data, and a web server for the frontend. Every instance/customer has its own database on SQL Server 2008. During development of the next version, I might change or add tables, views, stored procedures...
[ -0.05181685835123062, 0.3605714440345764, 0.33609214425086975, 0.16985423862934113, 0.146578848361969, -0.22090449929237366, 0.10516171902418137, 0.30737730860710144, -0.4121091663837433, -0.49914637207984924, 0.14006023108959198, 0.7554870843887329, -0.42604896426200867, 0.466539144515991...
or more databases, that does the modifications you need. It's made worse, of course, if the instances of SQL Server that you need to update are remote from you, and therefore not directly accessible. It's also vital to ensure that the scripts are applied in sequence - it would be no point running the "add index" scri...
[ 0.3650168180465698, 0.1711554080247879, 0.2570244371891022, 0.3479231297969818, 0.17970061302185059, -0.22734256088733673, -0.036659516394138336, -0.005688810255378485, -0.1975453495979309, -0.8544500470161438, 0.04062487185001373, 0.5714326500892639, -0.11599009484052658, 0.05414194613695...
calls the web service, downloads the script files, unpacks them and applies them to the database. When the remote system calls in, it supplies the ID of the most recent upgrade it has. When the web service completes, it knows the last one it delivered. It's therefore trivial to know what level the remote systems are a...
[ 0.31777915358543396, -0.022645510733127594, 0.43654075264930725, 0.34167054295539856, 0.37534159421920776, 0.07382030040025711, -0.02526642568409443, -0.03671082481741905, 0.27144837379455566, -0.46206092834472656, -0.3769502639770508, 0.696865975856781, 0.2593734860420227, 0.0035872955340...
How does the code looks that would create an object of class: ``` string myClass = "MyClass"; ``` Of the above type, and then call ``` string myMethod = "MyMethod"; ``` On that object? * Use [`Type.GetType(string)`](http://msdn.microsoft.com/en-us/library/system.type.gettype.aspx) to get the type object. * Use [`...
[ 0.09479324519634247, 0.11514412611722946, 0.1682189404964447, 0.014951849356293678, 0.0962703600525856, -0.04782389476895332, 0.32906606793403625, -0.44216522574424744, 0.05714471638202667, -0.5561470985412598, -0.3451937437057495, 0.2670387327671051, -0.21627359092235565, 0.08601586520671...
Type type = Type.GetType("Foo.MyClass"); object instance = Activator.CreateInstance(type); MethodInfo method = type.GetMethod("MyMethod"); method.Invoke(instance, null); } } class MyClass { public void MyMethod() { Console.WriteLine("I...
[ -0.015579587779939175, -0.08795463293790817, 0.22945883870124817, -0.17921018600463867, 0.22376976907253265, 0.09665084630250931, 0.5091517567634583, -0.2780013382434845, 0.27044010162353516, -0.5104670524597168, -0.13490618765354156, 0.6039219498634338, -0.4462185502052307, 0.305394172668...
} } } ``` Each step needs careful checking - you may not find the type, it may not have a parameterless constructor, you may not find the method, you may invoke it with the wrong argument types. One thing to note: Type.GetType(string) needs the assembly-qualified name of the type unless it's in the currently exe...
[ 0.09189824014902115, -0.08851232379674911, 0.257567822933197, -0.21997815370559692, 0.040527570992708206, -0.430242121219635, 0.27830660343170166, -0.15241844952106476, -0.08216001838445663, -0.42474862933158875, -0.2588321268558502, 0.6047561764717102, -0.48409152030944824, 0.077822968363...
From some old c++ code im trying to use a com dll, it works fine when the dll is registered, but it crahses if the dll isnt registered. // Initialize COM. HRESULT hr = CoInitialize(NULL); IGetTestPtr ptest(\_\_uuidof(tester)); *"Use method from the dll"* // Uninitialize COM. CoUninitialize(); Is it anyway to check...
[ 0.1270122528076172, 0.0930822566151619, 0.320379376411438, -0.028842177242040634, -0.0037560914643108845, -0.09456954151391983, 0.5276376605033875, -0.38693615794181824, -0.06521621346473694, -0.6857936978340149, -0.13167905807495117, 0.5843663811683655, -0.4013739228248596, 0.173455446958...
using Visual Studio, where COM Smart Pointers are used in the interface (this gives you the CreateInstance method).
[ 0.3689265549182892, -0.40562453866004944, 0.0003065361233893782, 0.3287830650806427, -0.16630427539348602, -0.08473777770996094, 0.1182653158903122, 0.06421410292387009, -0.14223171770572662, -0.9880409836769104, -0.11202443391084671, 0.6904127597808838, -0.23197337985038757, -0.1786926388...
Does anyone know of a Java library that handles finding sentence boundaries? I'm thinking that it would be a smart StringTokenizer implementation that knows about all of the sentence terminators that languages can use. Here's my experience with BreakIterator: Using the example [here](http://java.sun.com/docs/books/tu...
[ -0.3885183036327362, 0.0019154497422277927, -0.05060931295156479, 0.14766183495521545, -0.19642487168312073, -0.11141138523817062, 0.28930193185806274, -0.3560307025909424, -0.2538437843322754, -0.2752004861831665, -0.012313490733504295, -0.001727943541482091, -0.05732131749391556, -0.0265...
terminators. You wrote: > I'm thinking that it would be a smart StringTokenizer implementation that knows about all of the sentence terminators that languages can use. A basic problem here is that sentence terminators depend on the context, consider: > How did Dr. Jones compute 5! without recursion? This should be ...
[ 0.1037454903125763, -0.17052477598190308, 0.1112414300441742, 0.04550216346979141, -0.26190075278282166, 0.11794643849134445, 0.42509573698043823, -0.4073275327682495, -0.6227611303329468, -0.6138767600059509, -0.10995848476886749, 0.5015861988067627, -0.43760472536087036, 0.09545742720365...
class.
[ -0.14031410217285156, -0.061591736972332, 0.1970747709274292, 0.23996996879577637, 0.16072900593280792, -0.030123164877295494, 0.26015838980674744, 0.3078117370605469, -0.25533729791641235, -0.2821454703807831, -0.22259463369846344, 0.24438507854938507, 0.3611188232898712, -0.0612066611647...
I am having a very strange behavior in JBoss, and I'd like avail myself of the Collective Wisdom of the SO Crowd. We're using JBoss (4.0.4 I think) to serve SOAP calls. In fact, it's used as glorified RPC server, no more. We're running out of memory when we have 20+ clients sending their requests at the same time. The...
[ 0.410860151052475, 0.1169855073094368, 0.4142853021621704, -0.10015230625867844, -0.23667851090431213, -0.18136145174503326, 0.28594353795051575, -0.08028478175401688, -0.09899046272039413, -0.4817020297050476, 0.037939928472042084, 0.3312676250934601, -0.09966012090444565, 0.2551765739917...
to an instance of org.jboss.axis.message.SAX2EventRecorder that hold 4 million objects (strings and Integers). Now, even the longest response does not carry 4MB of data. The requests are all smaller than 40K. Something is fishy there, but I can't find any documentation on the Web. Can someone tell me what the recorder...
[ 0.2115468680858612, 0.018183663487434387, 0.24075627326965332, 0.3486899733543396, -0.025874808430671692, 0.15517206490039825, 0.19487041234970093, -0.06129392981529236, -0.6363284587860107, -0.38689735531806946, 0.11571788787841797, 0.2771838307380676, -0.13106538355350494, 0.221769690513...
org.jboss.axis.message.SAX2EventRecorder which is in turn held by these guys: org.jboss.axis.message.SOAPEnvelopeAxisImpl@0x19c31fd8 (141 bytes) : field recorder org.jboss.axis.message.RPCParamElementImpl@0x19c32260 (123 bytes) : field recorder org.jboss.axis.message.SOAPBodyAxisImpl@0x19c32160 (121 bytes) : field rec...
[ 0.15057174861431122, 0.06803043931722641, 0.5486989617347717, 0.027748912572860718, 0.1519198715686798, 0.23685717582702637, 0.418213427066803, -0.3450830578804016, -0.3389523923397064, -0.5776862502098083, -0.32245779037475586, 0.6813639998435974, -0.3118954002857208, -0.02188130468130111...
Alternatively, you can use the *jconsole* tool (which also comes with your JDK) to request a heap dump at any time using the memory management MBeans. It will tell you what those 4 million objects actually contain which might give you insight into why the software isn't releasing that memory. EDIT: It seems you're n...
[ 0.25480911135673523, 0.2171492874622345, -0.07005348056554794, 0.22570696473121643, -0.12901167571544647, -0.07580790668725967, 0.2417951375246048, 0.023401057347655296, -0.6215371489524841, -0.4573301076889038, 0.1505829095840454, 0.21932901442050934, -0.3722669184207916, 0.23574769496917...
I have stored procedures in SQL Server T-SQL that are called from .NET within a transaction scope. Within my stored procedure, I am doing some logging to some auditing tables. I insert a row into the auditing table, and then later on in the transaction fill it up with more information by means of an update. What I am...
[ 0.33320677280426025, 0.2524726688861847, 0.19854992628097534, 0.022284500300884247, 0.2581017017364502, -0.18345798552036285, -0.0010175660718232393, 0.024140644818544388, -0.3885013461112976, -0.5526294112205505, 0.17067506909370422, 0.46970701217651367, -0.10838007926940918, 0.1300309449...
would like to execute the inserts and updates to the auditing tables outside of the transaction I am executing, so that the auditing will occur anyway, even if the transaction rolls back. I was hoping that this might stop any locks occurring, allowing more than one person to execute the procedure at once. Can anyone h...
[ 0.40771812200546265, 0.17315824329853058, -0.07173848152160645, 0.43813422322273254, -0.040564730763435364, -0.360975980758667, 0.07662174850702286, 0.17380258440971375, -0.31521371006965637, -0.6264272928237915, 0.23436889052391052, 0.7301444411277771, -0.16483870148658752, -0.16843989491...
inserts you might help prevent lock escalations. Also have you examined the deadlock trace to determine what exactly you were deadlocking? You can do this by enabling [trace flag 1204](http://msdn.microsoft.com/en-us/library/aa260630(SQL.80).aspx). Or running SQL Profiler. This will give you detailed information that ...
[ 0.5200251936912537, -0.17766812443733215, 0.11369585990905762, 0.4065696895122528, 0.02745508961379528, -0.26433345675468445, 0.12544530630111694, -0.10575462132692337, -0.6209303140640259, -0.3714763820171356, 0.03479362651705742, 0.5120205879211426, -0.2829921245574951, 0.107519321143627...
very large for an existing application.
[ -0.15124765038490295, 0.23742353916168213, 0.06314879655838013, -0.19917728006839752, 0.19948044419288635, 0.1530466377735138, -0.258916437625885, -0.16953887045383453, -0.2572595775127411, -0.28075510263442993, 0.16351686418056488, -0.022366328164935112, 0.017084931954741478, 0.0378953516...
I am trying to decide if a string is a number in Ruby. This is my code ``` whatAmI = "32.3a22" puts "This is always false " + String(whatAmI.is_a?(Fixnum)); isNum = false; begin Float(whatAmI) isNum = true; rescue Exception => e puts "What does Ruby say? " + e isNum = false; end puts isNum ``` I realize that...
[ 0.28785428404808044, 0.05851047486066818, 0.19652041792869568, -0.26768794655799866, -0.14553478360176086, -0.20767845213413239, 0.669819712638855, -0.3791121244430542, 0.009644285775721073, -0.4768790900707245, -0.1293567568063736, 0.4622957408428192, -0.4075404405593872, -0.0796568766236...
possible in Ruby. I also understand that this may be totally unecessary... **Edit** The to\_f methods do not work, as they never throw an Exception but rather just return 0 if it doesn't work out. You've got the right idea. It can be done a little more compactly, though: ``` isNum = Float(whatAmI) rescue nil ``` In...
[ 0.0031639777589589357, 0.012423821724951267, -0.022108322009444237, -0.13498230278491974, 0.045925188809633255, -0.15020783245563507, 0.5055230259895325, -0.36471593379974365, 0.030360355973243713, -0.4814096689224243, -0.3289189338684082, 0.3887190520763397, -0.4063112139701843, -0.241630...
We're neck deep in a project right now, schedules are tight (but reasonable). Our general strategy is to get a strong beta done, release it for testing, and get feedback from our testers. Quite frequently, we're being hit by small things that spiral into long, time-costing discussions. They all boil down to one thing:...
[ 0.8331022262573242, -0.13348601758480072, -0.205050528049469, 0.26694172620773315, 0.2346491515636444, -0.25933778285980225, 0.0989733338356018, 0.1211543008685112, 0.35433709621429443, -0.44328930974006653, 0.07275606691837311, 0.19522248208522797, -0.0464024655520916, 0.04803135618567467...
catch, but a) Each 'low priority' bug like this drains time from critical issues b) We want to have as strong a product as possible and c) Even the best testing group will miss things from time to time. We use our product, and we know how our users use the old version...but we're all at a loss as to how to think ...
[ 0.6904944777488708, -0.10411539673805237, 0.07227613776922226, 0.3846135139465332, 0.008385407738387585, -0.20321796834468842, 0.16663101315498352, -0.046019814908504486, -0.22731389105319977, -0.27303215861320496, 0.027821112424135208, 0.40726587176322937, -0.1761299967765808, -0.28647509...
part of their jobs, but not the biggest (and, of course, we only matter to them when it doesn't work). Getting actual users in to use our product is difficult, as we're geographically distant from the nearest location that serves as an end user (We're in Ohio, and I think the nearest location we serve is 3+ hours away)...
[ 0.7632211446762085, 0.18546414375305176, 0.3326095938682556, 0.258180171251297, 0.5498165488243103, -0.014651468023657799, 0.29148373007774353, 0.4173453450202942, -0.06944149732589722, -0.47429582476615906, 0.10952550172805786, -0.08332774043083191, 0.13797102868556976, -0.140062749385833...
that any they DON'T find may mean a big upswing in number of calls). We've had three (of about 12 total) customer service reps back here most of the week doing some preliminary testing...they've gotten involved in the discussions as well. Watching someone using the app is a huge benefit to me. Possibly someone who is n...
[ 0.7494301199913025, 0.21169006824493408, 0.3843700587749481, 0.1923140287399292, 0.30136606097221375, 0.1974063515663147, 0.3080020248889923, -0.028431374579668045, -0.42129161953926086, -0.41062432527542114, -0.01619420200586319, 0.6997883319854736, 0.19018414616584778, -0.084739647805690...
watching them in action might bring to light how you can change something that might have seemed minor, but really makes a big impact on them.
[ 0.7766138911247253, -0.15055041015148163, -0.23282422125339508, 0.09967754781246185, -0.14401626586914062, 0.04429943487048149, 0.2101437896490097, 0.14429205656051636, -0.5433158874511719, -0.47789257764816284, 0.2666671872138977, 0.25891152024269104, 0.4566827118396759, -0.17632929980754...
I have a databound and itemtemplated ListBox: ``` <ListBox x:Name="lbLista" ScrollViewer.VerticalScrollBarVisibility="Visible"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <CheckBox IsChecked="{Binding Deleteable, Mode=TwoWay}" /> <Label C...
[ 0.014233292080461979, 0.013951597735285759, 0.6757155060768127, -0.10201022773981094, 0.02149352803826332, 0.10975824296474457, 0.03727379068732262, -0.47453171014785767, 0.051581136882305145, -0.75164794921875, 0.026703722774982452, 0.2635042071342468, -0.04749302193522453, 0.250583827495...
usable - it does not have a handle to grab. I've tried setting some ScrollView attached properties on ListBox, but they do not affect the situation. I pasted your code into test project, added about 20 items and I get usable scroll bars, no problem, and they work as expected. When I only add a couple items (such that s...
[ 0.40922561287879944, -0.01370279025286436, 0.7280238270759583, 0.16351698338985443, -0.14603711664676666, 0.17638733983039856, 0.212447851896286, -0.200886532664299, -0.18320532143115997, -0.7702383399009705, 0.22061894834041595, 0.8021095991134644, -0.012995260767638683, -0.05204311385750...
I'd like to automate the script generation in SQL Server Management Studio 2008. Right now what I do is : * Right click on my database, Tasks, "Generate Scripts..." * manually select all the export options I need, and hit select all on the "select object" tab * Select the export folder * Eventually hit the "Finish" b...
[ 0.08897404372692108, 0.09646794945001602, 0.2143239825963974, -0.04897398501634598, -0.27610570192337036, -0.2425542026758194, 0.14719460904598236, -0.04691740870475769, -0.22116456925868988, -0.711942195892334, 0.2539389729499817, 0.9122334718704224, -0.39382466673851013, -0.3718696534633...
Files\Microsoft SQL Server\90\Tools\Publishing\1.4. The VS call from server explorer is simply calling this. You can achieve the same functionality via the command line like: ``` sqlpubwiz help script ``` I don't know if v1.4 has the same troubles that v1.1 did (users are converted to roles, constraints are not crea...
[ -0.0030798353254795074, -0.01924590952694416, 0.41969776153564453, 0.03237954154610634, -0.1021922379732132, -0.3592511713504791, 0.4959019422531128, 0.167454332113266, -0.07924839854240417, -0.9729762077331543, 0.14178496599197388, 0.7160146832466125, -0.38250717520713806, 0.2753396928310...
not currently scriptable from the command line, I might add that contribution in the future. Scriptio was originally posted on Bill Graziano's blog, but has subsequently been released to CodePlex by Bill and updated by others. Read the discussion to see how to compile for use with SQL Server 2008. <http://scriptio.co...
[ 0.4608128070831299, 0.08611968904733658, 0.1014757826924324, 0.05727735906839371, -0.15893436968326569, -0.20483388006687164, -0.044697344303131104, 0.22970211505889893, 0.29761743545532227, -0.7782149314880371, 0.2627412676811218, 0.5276602506637573, -0.39654749631881714, -0.0048719546757...
It happens to be the same format that their other product, SQL Source Control, uses.
[ 0.10806231945753098, 0.0395439974963665, 0.22627098858356476, 0.32114920020103455, 0.1056908518075943, -0.4630081355571747, -0.4066125452518463, 0.24653074145317078, 0.06358060240745544, -0.16128210723400116, -0.010652239434421062, 0.4652554988861084, 0.03653808310627937, 0.304045528173446...
Could you please tip how to properly name object construction approach where public proprieties values are being set on object creation? For example, ``` SqlCommand command = new SqlCommand { Connection = connection, CommandType = CommandType.Text }; ``` I believe these are called Object Initializers...
[ 0.36400437355041504, -0.0844816118478775, 0.3225562274456024, 0.1895359456539154, -0.013751630671322346, -0.4003201425075531, -0.04423002526164055, -0.20480817556381226, -0.006946830544620752, -0.4899654686450958, 0.11321091651916504, 0.7300575971603394, -0.08689440041780472, 0.03480848670...
I am displaying the contents of a datetime field in mysql in a table with php, and want to show just the date. Is there a way to convert or do this, or must the actual string be editied or trimmed? Using strtotime... ------------------ A simple way is like this: ``` $date="2009-01-27 14:30:22"; echo strftime("%d %m %...
[ 0.15554213523864746, 0.03274887427687645, 0.635283887386322, -0.34881389141082764, -0.19912733137607574, 0.1391829401254654, 0.05977610871195793, 0.06576301157474518, -0.31878864765167236, -0.49979084730148315, -0.1835615634918213, 0.23583579063415527, -0.08351919800043106, 0.0821708664298...
thorough approach which should cope better with historical dates: ``` $date=new void Date("2009-01-27 14:30:22"); echo $date->format("%d %m %Y"); ``` ...or use your DB ----------------- Alternatively, have your db format it for you with [DATE\_FORMAT](http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.h...
[ -0.09976717084646225, 0.14154395461082458, 0.6519681811332703, -0.08014098554849625, 0.00020234282419551164, -0.20876875519752502, 0.23558004200458527, -0.18305523693561554, 0.041824690997600555, -0.681740403175354, -0.3469938039779663, 0.3170981705188751, -0.029804466292262077, 0.27250465...
I am writing a Perl module, and I am using carp to throw a non-fatal warning back to the calling program. The carp warning works fine - I am checking if an input parameter meets a certain condition - if it does not meet the condition, a warning is sent with carp and the module continues on using a default for the para...
[ 0.2644696533679962, 0.18342497944831848, 0.04626927152276039, -0.1760074943304062, -0.13284049928188324, -0.06533639132976532, 0.4157484173774719, 0.1760530322790146, -0.13488130271434784, -0.40501976013183594, 0.076027512550354, 0.5212440490722656, -0.5901350378990173, 0.09892068058252335...
in a bad parameter to the module, and I am trying to catch the warning message that comes back and make sure I got the correct warning message. My module looks something like this: ``` else { carp "value must be numeric - using default value"; } ``` and my test script looks like this: ``` eval { #call to my mo...
[ 0.3806144893169403, 0.30994755029678345, 0.0011258895974606276, -0.19741714000701904, 0.14862336218357086, -0.0765841007232666, 0.520725429058075, 0.07543530315160751, -0.18894942104816437, -0.5019140243530273, -0.05010935664176941, 0.7099982500076294, -0.32954373955726624, 0.3327827751636...
variable is '' - blank. Here is the output from my test script: ``` t/04bad_method_calls....ok 10/12value must be numeric - using default value at ... # Failed test 'Should abort on non-numeric value' # at t/04bad_method_calls.t line 98. t/04bad_method_calls....NOK 12 # '' doesn't match '(?-xism...
[ -0.035685498267412186, 0.20270991325378418, 0.17692583799362183, 0.035907406359910965, 0.05932411178946495, 0.43324729800224304, 0.3321501612663269, 0.16415682435035706, -0.053393054753541946, -0.39375725388526917, 0.37161779403686523, 0.7422229647636414, -0.09957561641931534, 0.3745542466...
have the best understanding of eval - maybe that is not the best way to catch the warning output from carp. I tried using $SIG{\_\_WARN\_\_}, but that was empty as well. Is there any way to capture the output from carp? It's not the biggest deal since this is just in my test script, but I'd still like to get my test s...
[ 0.3167537450790405, -0.02423863299190998, 0.1257575899362564, 0.06905610859394073, -0.18808530271053314, 0.2376970797777176, 0.29982662200927734, 0.20176048576831818, -0.5116473436355591, -0.36046481132507324, 0.3730514645576477, 0.6324716210365295, -0.24499526619911194, -0.008819600567221...
= sub { die $_[0] }; eval $proggie; ```
[ 0.024908695369958878, -0.16883660852909088, 0.11923616379499435, -0.502128541469574, 0.24507659673690796, 0.09890532493591309, 0.5153658390045166, -0.23636065423488617, -0.15083998441696167, 0.06593668460845947, -0.3599015474319458, 0.32820987701416016, -0.37481117248535156, 0.562611103057...
Is there a good C++ framework to implement XA distributed transactions? With the term "good" I mean usable, simple (doesn't imply "easy"), well-structured. Due to study reasons, at the moment I'm proceeding with a personal implementation, following X/Open XA specification. Thank you in advance. I am not aware of an ...
[ 0.27401992678642273, 0.059905070811510086, 0.40361255407333374, 0.05692503601312637, 0.22216761112213135, -0.13479194045066833, -0.3328896760940552, 0.44781777262687683, -0.31783753633499146, -0.07308024168014526, -0.0632069855928421, 0.2697342038154602, -0.4519871473312378, 0.264953672885...
make your own (and incidentally make a bit of a name for yourself by filling a void in the open-source software space) get a copy of [Grey and Reuter](https://rads.stackoverflow.com/amzn/click/com/1558601902). This is the definitive work on transaction processing systems architecture, written by two of the foremost ex...
[ 0.7749910950660706, 0.10851031541824341, 0.3000677525997162, 0.01795986481010914, 0.08018810302019119, -0.1728954315185547, -0.06930997967720032, -0.09348977357149124, -0.4878045916557312, -0.69941645860672, 0.1656915843486786, 0.10111792385578156, -0.2523430585861206, 0.16375024616718292,...
process. You will need to get the resource manager protocol working from it, so starting with this as a prototype is probably a good start. If you can get it to independently roll back or commit a transaction you have the basis of the TM-RM interface. The XA API as defined in the spec is the API to control the transac...
[ 0.4153660237789154, 0.06820493936538696, 0.37179499864578247, 0.11371307820081711, -0.02318403497338295, -0.03842010721564293, 0.00216283998452127, -0.4058282673358917, -0.4423874616622925, -0.48981547355651855, -0.02700396068394184, 0.385385662317276, -0.11362478882074356, 0.1755555272102...
left as an exercise for the reader. You are probably best off using an existing ORB, of which there are several good open-source implementations available. Depending on whether you want to make the DTC and the app server separate processes (which is possibly desirable for stability but not strictly necessary) you coul...
[ 0.35168832540512085, 0.03278852626681328, 0.02194317989051342, 0.257371187210083, -0.018678361549973488, -0.029037145897746086, -0.1801641881465912, -0.04981737956404686, -0.25599411129951477, -0.4818103313446045, -0.16910596191883087, 0.2120242565870285, -0.3274993598461151, -0.2583021521...
fancy. Using this is a trade-off between learning it and the effort of writing your own and debugging all the synchronisation and concurrancy issues.
[ 0.5162343382835388, 0.20533668994903564, 0.03252411261200905, 0.31369394063949585, 0.12892287969589233, -0.297804057598114, -0.02434256114065647, 0.03651025518774986, 0.12051308155059814, -0.370981901884079, 0.05032053589820862, 0.22980287671089172, 0.108629010617733, -0.4069248139858246, ...
Given a dictionary like so: ``` my_map = {'a': 1, 'b': 2} ``` How can one invert this map to get: ``` inv_map = {1: 'a', 2: 'b'} ``` Python 3+: ``` inv_map = {v: k for k, v in my_map.items()} ``` Python 2: ``` inv_map = {v: k for k, v in my_map.iteritems()} ```
[ -0.24783074855804443, 0.1554645448923111, 0.3488917052745819, -0.13360241055488586, -0.15749704837799072, 0.2542468309402466, 0.32159170508384705, -0.07982242852449417, 0.001348522026091814, -0.6889325976371765, -0.10271964222192764, 0.500199556350708, -0.20003649592399597, -0.172518298029...
I have an HTML page with a typical structure: ```html <html> <head> <script src="..." ></script> <style>...</style> </head> <body> content </body> <script> var success_callback = function(data) { // REPLACE PAGE CONTENT & STRUCTURE WITH "data" } ajax(url, params, success_callback);...
[ 0.16721315681934357, 0.2342662662267685, 0.43932050466537476, -0.0797380805015564, -0.18263696134090424, -0.2364008128643036, 0.3446996510028839, -0.411180317401886, -0.24850423634052277, -0.720550537109375, -0.09100732952356339, 0.23058907687664032, -0.13184283673763275, -0.11927407979965...
builder" site... it is a long story). **EDIT** : I forgot to say that **scripts in the received content have to be executed**, even external scripts included using `<script src="...">`. The simplest way is to set the new HTML content using: ``` document.open(); document.write(newContent); document.close(); ```
[ 0.3360695242881775, -0.04126885160803795, 0.39366981387138367, -0.29707828164100647, -0.11122094839811325, -0.20326179265975952, 0.6450080275535583, -0.734889566898346, 0.0951072946190834, -0.8657854199409485, -0.14002393186092377, 0.5695719122886658, -0.36157697439193726, 0.11793409287929...
I'm only asking this because I'm finding as I get older, it becomes a much more frustrating part of my job. How do you handle new versions of software, particularly software that coders and DBAs use on a regular basis? It seems that just when I've fleshed out SQL2005, SQL2008 will have come and gone and SQL2010 will ...
[ 0.682074785232544, 0.29923015832901, 0.17124822735786438, -0.009933535940945148, 0.1288486272096634, -0.23158173263072968, 0.19425731897354126, -0.07826469093561172, -0.3693960905075073, -0.6246765851974487, 0.2959249019622803, 0.47056159377098083, 0.18403476476669312, 0.21349205076694489,...
becoming more frequent, I can't help but feel that this is the wrong approach. **Edited to add:** I guess part of what I'm saying is that the release of newer versions hardly leaves enough time to become an expert in the previous version. Rarely do these upgrades require a lot to be relearned. Actually, I would alm...
[ 0.2833097279071808, 0.12731392681598663, 0.6198088526725769, -0.10006115585565567, -0.05507007613778114, -0.41472795605659485, 0.20204706490039825, 0.3053799271583557, -0.5050266981124878, -0.3538554608821869, 0.26806408166885376, 0.6013245582580566, 0.23978333175182343, 0.3963436782360077...
a lot to learn. I think the trick is to keep on top of things. Because if you fall a few versions back, it can be a nightmare to catch up on things. Even if you just play around with it and don't use it in live projects, you are probably further ahead than a lot of people.
[ 0.7902664542198181, -0.36523962020874023, -0.03361326828598976, 0.6309208273887634, 0.15597482025623322, -0.4486059248447418, 0.41258734464645386, 0.36705324053764343, -0.3247714340686798, -0.21527370810508728, 0.40393203496932983, 0.378612220287323, 0.1559094786643982, 0.02557346969842910...
Is there a way to do this? I want to mimic the behavior of a the UltraTextBox.SelectAll method in windows forms. You might want to provide the exact version of Infragistics Library... Does `this.UltraCombo1.TextBox.SelectAll()` do what you want?
[ 0.580133318901062, -0.31024375557899475, 0.26895660161972046, 0.03071478009223938, 0.17478124797344208, -0.38771986961364746, 0.20980949699878693, -0.2912293076515198, -0.010559984482824802, -0.5055893659591675, -0.15001659095287323, 0.7520760893821716, -0.6795493960380554, -0.341134041547...
How would I take a `Paragraph` object and databind them to the TextBlock for use in a DataTemplate? A plain bind does nothing, just a `ToString()` of the Paragraph object. The InLines property would let me add a list of TextRun's that make up the Paragraph manually, but that can't be bound to and I could really do wit...
[ -0.015678752213716507, 0.06814397126436234, 0.41916364431381226, 0.023208633065223694, -0.540402889251709, -0.21808212995529175, 0.08105944842100143, -0.47436225414276123, -0.08143295347690582, -0.4491470754146576, 0.01058249082416296, 0.37444213032722473, -0.36053141951560974, 0.027931027...
xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Grid.Resources> <FlowDocument x:Key="document"> <Paragraph><Run xml:space="preserve">This is the first paragraph. </Run><Run>The quick brown fox jumps over the lazy dog.</Run></Para...
[ 0.08141335099935532, 0.08986454457044601, 0.08339578658342361, -0.10216966271400452, -0.6665700078010559, 0.11188323050737381, 0.3667556345462799, -0.02972637489438057, -0.2530435025691986, -0.2943890690803528, -0.3499501645565033, 0.2779559791088104, -0.24342849850654602, -0.0790529549121...
</FlowDocument> <DataTemplate DataType="{x:Type Paragraph}"> <ItemsControl ItemsSource="{Binding Inlines}" IsHitTestVisible="False"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <WrapPanel/>
[ -0.17254666984081268, -0.12355265021324158, 0.3536185622215271, 0.014581121504306793, -0.07541227340698242, 0.18897943198680878, -0.016558969393372536, -0.38108307123184204, -0.28985145688056946, -0.6931790113449097, -0.27473801374435425, 0.10649163275957108, 0.1825350672006607, -0.0758586...
</ItemsPanelTemplate> </ItemsControl.ItemsPanel> </ItemsControl> </DataTemplate> </Grid.Resources> <ListBox ItemsSource="{Binding Blocks, Source={StaticResource document}}"/> </Grid> ``` If you want one Paragraph per element you should probably do as suggested and use a rea...
[ -0.17410238087177277, -0.03088398277759552, 0.300326406955719, 0.055662840604782104, -0.36568138003349304, 0.1504376083612442, 0.2317315936088562, -0.2495405375957489, -0.39194610714912415, -0.669795036315918, -0.19411014020442963, 0.14150089025497437, -0.3640407621860504, -0.2307371795177...
I have this code ``` <html> <head> <style type="text/css"> .frame {width: 50em; border: 1px solid black} .frame label {width: 20em; display: block; text-align:right; border: 1px solid green} .frame label span {width: 20em; display: block; font-size: .5em; border: 1px soli...
[ 0.2651273310184479, 0.13360412418842316, 0.8144352436065674, -0.13166877627372742, -0.09620248526334763, 0.1786654144525528, 0.267638236284256, -0.4913474917411804, 0.0337916798889637, -0.8437710404396057, -0.0797598659992218, 0.16564033925533295, 0.010175120085477829, 0.11152690649032593,...
Span </span> </label> </div> </body> ``` The red `<span>` is set to `20em`. But it should be as large as the green `<label>`. I want to keep the font-size small in the red part though. Unfortunately even if the `font-size` is half as large, I can't use `40em` to get the same size. Any idea howto solve that ...
[ 0.23149289190769196, 0.11861439049243927, 0.815606415271759, -0.23130440711975098, -0.1229061558842659, 0.07134520262479782, -0.18910318613052368, -0.5884343981742859, -0.36235156655311584, -0.5366041660308838, -0.22323793172836304, 0.8395920991897583, 0.04590652883052826, -0.2474427968263...
I have a collection object that implements IList. Inside the collection I have used a List to collect the items. Inside the PropertyGrid (at runtime), it binds properly and the Collection Editor opens. I can edit, and I can add items properly and I can catch these methods when they are used in the collection class. Ho...
[ 0.22562946379184723, -0.1767587959766388, 0.4563124477863312, 0.08529525995254517, -0.05661528557538986, -0.32466158270835876, 0.12795816361904144, -0.4005928039550781, -0.18655486404895782, -0.6299603581428528, -0.20960673689842224, 0.39130622148513794, -0.2465314269065857, 0.290646493434...
all the logic from the remove methods and left them with throw new NotImplmented(), and these don't get fired at all! I also have an implemented by own CollectionEditor, but still can't see a way to hook into my objects. So, where should I be looking to find the relevant methods? do I need to change the behaviour of ...
[ 0.13195674121379852, 0.0858905091881752, 0.18947449326515198, 0.06521518528461456, -0.0191553495824337, 0.09931449592113495, 0.17301912605762482, -0.21555903553962708, -0.4489976763725281, -0.2951692044734955, -0.1450694054365158, 0.51261967420578, -0.3831964135169983, 0.2219635397195816, ...
F2 = t.F2 } }; ``` return anonymous type, {| ... |}, there is still some bug, the ugly workaround is appending a .ToList() to the table. ``` let q = query { for t in ctx.SomeTable.ToList() do select {| F1 = t.F1 F2 = t.F2 |} }; ``` Update a record in EF Core ``` let obj = ctx.S...
[ -0.10456148535013199, -0.08484053611755371, 0.35642147064208984, -0.27620747685432434, 0.1755901277065277, 0.0516405925154686, 0.013073302805423737, -0.19807447493076324, -0.33446115255355835, -0.5737507343292236, -0.2570035457611084, 0.5137004256248474, -0.47703325748443604, 0.14688947796...
I need a user to be able to enter a URL, and would like to make sure it is as wholesome as possible. Things like checking that there is http:// at the front, no double-dots, perhaps valid TLD, trailing slash (I have to add the final page). I figure this is such a common requirement that it must exist already. Suggest...
[ 0.5843951106071472, 0.22420740127563477, 0.217778280377388, 0.10493998974561691, 0.05947227403521538, -0.3635304868221283, 0.2914124131202698, 0.2553090751171112, 0.009707228280603886, -0.5029932260513306, -0.1457093358039856, 0.45631155371665955, 0.12159609794616699, 0.13381604850292206, ...
adjust the URL and make it work, then that is what I'd like to do. The download will be a specific file, so if it all goes wrong it won't get the wrong thing from another server by mistake. Have you had a look at "[What is the best regular expression to check if a string is a valid URL](https://stackoverflow.com/questi...
[ 0.20728029310703278, -0.22136814892292023, 0.3118455111980438, 0.12135332822799683, 0.18802465498447418, -0.4655206799507141, 0.05066055431962013, 0.017886996269226074, -0.24629142880439758, -0.3926005959510803, -0.01913262903690338, 0.6625060439109802, -0.14677080512046814, -0.14141835272...
I've been going over and over this in my head, and I can't seem to come up with a good reason why C# closures are mutable. It just seems like a good way to get some unintended consequences if you aren't aware of exactly what's happening. Maybe someone who is a little more knowledgeable can shed some light on why the d...
[ -0.26935848593711853, 0.005224649328738451, 0.6306684613227844, -0.37884122133255005, 0.2003430277109146, 0.21193058788776398, 0.40319469571113586, 0.04090080037713051, -0.2239689975976944, -0.43683868646621704, -0.4954284131526947, 0.36551445722579956, -0.5210754871368408, 0.3681600093841...
closure's state was updated to reflect the changes to the local variable. C# and JavaScript, as well as O'Caml and Haskell, and many other languages, have what is known as *lexical closures*. This means that inner functions can access the *names* of local variables in the enclosing functions, not just copies of the *va...
[ -0.24940957129001617, -0.017810653895139694, 0.23884175717830658, -0.08897513151168823, -0.09402068704366684, 0.29550179839134216, 0.2785596251487732, 0.5392537713050842, -0.14338219165802002, -0.6221280097961426, -0.3913869857788086, 0.2778822183609009, -0.36868128180503845, 0.19292472302...
I am working with a distributed application communicating over GPRS. I use UDP packets to send business data and ICMP pings to verify connectivity. And now I have a problem with calculating a traffic for which I will be charged by the provider. I have to consider following factors: 1. UDP payload: that is obvious. 2. ...
[ 0.3011651635169983, -0.03186807408928871, 0.5563307404518127, -0.08970610797405243, -0.2219562828540802, 0.00959872268140316, 0.15634433925151825, -0.5543060898780823, -0.4322728216648102, -0.1580830216407776, -0.09573045372962952, 0.48278680443763733, -0.5027896761894226, 0.18766021728515...
for every ping 56 bytes. Am I right or I am missing/misunderstanding something? You can try [Entagged](http://entagged.sourceforge.net/) Library for getting metadata from media files
[ 0.486888587474823, -0.22009514272212982, 0.24992582201957703, 0.620613157749176, -0.01696360856294632, -0.4815661907196045, 0.08022426068782806, -0.2039320468902588, -0.41353708505630493, -0.36141082644462585, 0.2928144037723541, 0.5165384411811829, -0.22784441709518433, 0.0446323901414871...
I'm using VBScript (ASP Classic) and SQL Server; I'm trying to have a section on the website where you can see a count of products at certain price levels. Something like: ``` $50 - $100 (4) $100 - $500 (198) $500 - $1000 (43) ``` For the love of me I cannot figure out a good way to do a query like this. I mean... I...
[ 0.5069141983985901, 0.4046264588832855, 0.2800799608230591, -0.01962398923933506, 0.0791226178407669, -0.05890706926584244, 0.06630724668502808, 0.055863238871097565, -0.1582173854112625, -0.5519149899482727, 0.299262672662735, 0.4643125832080841, -0.14547346532344818, 0.5070412158966064, ...
results, especially since the price ranges can differ greatly among related products. Is there a "rule of thumb" when doing something like this as to how you figure out the different price ranges? The most efficient way of doing this in SQL (I believe) is to use a `sum case` construct: ``` select sum(case when Price...
[ 0.09959453344345093, -0.0442822240293026, 0.35780468583106995, 0.009122295305132866, -0.026085738092660904, 0.03962825983762741, -0.19811280071735382, -0.5901086330413818, 0.07961960881948471, -0.39927181601524353, -0.2047305405139923, 0.5161755084991455, 0.20728439092636108, 0.15746140480...
500 and Price < 1000 then 1 else 0 end) as 500to1000 from Products ``` This will only require a single scan of the table.
[ -0.032286982983350754, -0.01009407825767994, 0.7536443471908569, -0.030286600813269615, 0.28650128841400146, 0.025906262919306755, -0.020043181255459785, -0.35600975155830383, 0.2242223620414734, -0.6123135685920715, -0.3514678478240967, 0.7789515256881714, 0.39388567209243774, 0.159325778...
I have the following problem : I have rows like ``` ID CODE NAME ......... 1 h1100h1 Cool example1 ......... 2 h654441 Another cool1 ......... ``` I would like to swap them retaining all old primary keys and constraints. Of course, I can easily solve this manually by updating the rows. ...
[ 0.043485380709171295, 0.5325144529342651, 0.29317229986190796, 0.12304889410734177, 0.19920536875724792, -0.15536020696163177, 0.17909494042396545, 0.004367510322481394, -0.35052162408828735, -0.644964337348938, 0.07674172520637512, 0.6414564847946167, -0.16177335381507874, 0.2093900144100...
really appreciate any suggestions or recommendations. I haven't tested this, but I think it will work. I'm assuming that id is a single-column Primary Key. If that's not the case then you will need to adjust this code slightly to handle the PK. ``` UPDATE T1 SET column_1 = T2.column_1, column_2 = T2.col...
[ 0.1705428808927536, 0.26021409034729004, 0.4861510992050171, -0.19255872070789337, 0.04176662862300873, 0.09615553170442581, 0.0999605655670166, -0.22412151098251343, -0.08388705551624298, -0.6670525074005127, -0.10209879279136658, 0.6573100686073303, -0.22413112223148346, 0.00247791083529...
WHEN T1.id = @id_1 THEN @id_2 WHEN T1.id = @id_2 THEN @id_1 ELSE NULL END WHERE T1.id IN (@id_1, @id_2) ```
[ 0.19749166071414948, 0.014775490388274193, 0.2656038999557495, -0.1719658374786377, -0.09895752370357513, -0.30214789509773254, 0.1596575677394867, -0.3907671272754669, 0.2164674699306488, -0.4174867570400238, -0.2287951409816742, 0.4190743565559387, -0.32944557070732117, 0.378348052501678...
I am trying to ensure that the text in my control derived from TextBox is always formatted as currency. I have overridden the Text property like this. ``` public override string Text { get { return base.Text; } set {
[ 0.23895281553268433, 0.36020001769065857, 0.31699198484420776, -0.1455320417881012, 0.15535908937454224, -0.206217959523201, 0.26159581542015076, -0.12735338509082794, 0.07138863205909729, -0.42398372292518616, -0.17070628702640533, 0.6796966195106506, -0.2907308340072632, 0.18556207418441...
double tempDollarAmount = 0; string tempVal = value.Replace("$", "").Replace(",",""); if (double.TryParse(tempVal, out tempDollarAmount)) { base.Text = string.Format("C", tempDollarAmount); }
[ 0.4328394830226898, 0.08665686845779419, 0.6048210859298706, -0.48217278718948364, 0.4609568417072296, 0.27499860525131226, 0.3514707088470459, -0.5294445157051086, 0.1323266178369522, -0.04973272979259491, -0.20903095602989197, 0.9225262999534607, -0.5372036695480347, -0.13179099559783936...
else { base.Text = "$0.00"; } } } ``` Results: * If I pass the value "Text" (AmountControl.Text =
[ 0.33568069338798523, 0.13793610036373138, 0.6719396114349365, -0.5215876698493958, 0.3061666488647461, 0.010634909383952618, 0.3398364186286926, -0.5356470942497253, -0.03442095220088959, -0.47864168882369995, -0.05374535173177719, 0.8598993420600891, 0.13634498417377472, 0.092040091753005...
"Text";) , the text of the control on my test page is set to "$0.00", as expected. * If I pass the value 7 (AmountControl.Text = "7";) , I expect to see "$7.00", but the text of the control on my test page is set to "C". I assume that I am missing something very simple here. Is it something about the property? Or am I...
[ 0.19732771813869476, 0.2138654887676239, 0.5100934505462646, -0.22465965151786804, 0.016799570992588997, -0.12332026660442352, 0.35677334666252136, -0.11543536931276321, -0.02644929103553295, -0.3645569384098053, -0.13109640777111053, 0.7577692270278931, 0.11837560683488846, 0.107526361942...
I know it is commonly used as a lock object, but is that really sufficient reason? What is the meaning of ``` object o = new object(); ``` An non-abstract class is something that represents actual objects. "asdasdf" is a string. What actual instance can there be of "object" class? It doesn't make sense, OOP-wise. My...
[ 0.2772316634654999, 0.05785633251070976, 0.1815480887889862, 0.21279506385326385, -0.029450830072164536, -0.4034695029258728, 0.2487180382013321, 0.055157024413347244, -0.23584334552288055, -0.366804838180542, -0.09353937208652496, 0.16106827557086945, -0.2514103949069977, 0.45745125412940...
The Monitor.Enter and Monitor.Exit classes (which is the basis behind the "lock" keyword in C#) can acquire a lock on any given object, regardless of implementation.
[ 0.26019802689552307, -0.17548607289791107, 0.06103718280792236, 0.23294781148433685, 0.40040287375450134, -0.2095891535282135, 0.1692299246788025, 0.03179602324962616, -0.15399792790412903, -0.33466967940330505, -0.48744797706604004, 0.3952043652534485, -0.2923011779785156, 0.1327139735221...
Is it possible to format an HTML tooltip? E.g. I have a DIV with attribute title="foo!". When I have text-size of my browser zoomed in or out in, the text size of the tooltip remains unchanged. Is there a way to make the tooltip font scale with the browser setting? No. But there are other options out there like [Overl...
[ 0.3804420828819275, -0.19848203659057617, 0.4282294511795044, 0.022286467254161835, -0.32097411155700684, -0.21556244790554047, 0.42862367630004883, -0.033358052372932434, -0.23192262649536133, -0.6745859384536743, -0.036163561046123505, 0.5285163521766663, 0.017830828204751015, -0.3699578...
adding the jquery script tag in your <head>).
[ 0.09989795088768005, -0.13644342124462128, 0.5120190382003784, 0.0509856678545475, -0.040319159626960754, -0.1946752518415451, 0.006737315561622381, 0.0540909618139267, -0.1908213347196579, -0.4805282950401306, -0.3047684133052826, 0.4597164988517761, -0.011205781251192093, -0.203501343727...
I'm trying to decipher CHtmlView's behaviour when files are dragged into the client area, so I've created a new MFC app and commented out the CHtmlView line that navigates to MSDN on startup. In my main frame, I've overridden CWnd::OnDropFiles() with a function that shows a message box, to see when WM\_DROPFILES is sen...
[ 0.48840466141700745, -0.19906945526599884, 0.8042660355567932, -0.17351600527763367, 0.0005073980428278446, -0.20462669432163239, 0.39606940746307373, -0.07649999856948853, -0.4409032166004181, -0.3525572717189789, -0.38377201557159424, 0.6628136038780212, -0.49546733498573303, 0.159402579...
I've tried overriding OnDrop() from the view class, but it's never called. Why is the first time different? How can I catch all attempts to drag a file into my app? This is part of the underlying `WebBrowser` control behaviour. `CHtmlView` sets `RegisterAsDropTarget` to `true` by default, which means the control inter...
[ 0.5641747117042542, -0.29014748334884644, 0.6090123653411865, 0.18127523362636566, 0.26168379187583923, -0.20021989941596985, 0.4409776031970978, -0.13835392892360687, -0.05564161762595177, -0.28958556056022644, -0.26247191429138184, 0.7373944520950317, -0.5422316789627075, -0.076436102390...
I am trying to create two tables in my SSRS report. I have used 2 different packages with same parameters for the dataset creation. while executing the dataset2 (manually from data tab in the designer) it works fine and gives me field results. But while executing from report (clicking the view report) the second table ...
[ 0.5785840153694153, -0.4349380433559418, 0.23543158173561096, 0.05847826227545738, -0.21959824860095978, -0.10112721472978592, 0.3247179388999939, 0.415615051984787, -0.4143908619880676, -0.6030399799346924, 0.20465506613254547, 0.4883571267127991, -0.3833300471305847, 0.093892402946949, ...
can [combine several feeds into one](http://ask.metafilter.com/16678/Combine-RSS-feeds-into-new-feed), and that might also be a good option.
[ 0.7047668695449829, -0.49054864048957825, 0.23016755282878876, 0.10685693472623825, 0.23064759373664856, -0.39030352234840393, -0.0788513720035553, -0.2937470078468323, -0.5582572221755981, -0.2811131179332733, -0.17255418002605438, 0.19333675503730774, -0.6643179059028625, 0.0001831737463...
Following on from [this question](https://stackoverflow.com/questions/482358/conditionally-selecting-a-version-of-jquery-depending-on-environment) (that I asked) and [this question](https://stackoverflow.com/questions/482308/hosted-microsoft-ajax-on-cdn) (that Simon asked), is there a CDN that provides the jQuery scrip...
[ 0.026779940351843834, 0.031055329367518425, 0.37259727716445923, 0.20798976719379425, -0.2944311499595642, -0.15551845729351044, -0.17828305065631866, 0.19258379936218262, -0.10501611232757568, -0.531944990158081, -0.1329483985900879, 0.5463441610336304, -0.18575632572174072, -0.2025209814...
I am having trouble with debugging one of the problems that I am having in our website. This is the problem. I have a webpage that contains the photo of an employee and information related to the employee. When the user logins to our website, we are storing the details of the employee in session. I am setting the image...
[ 0.5661596059799194, 0.3746192753314972, 0.31359294056892395, 0.02677605114877224, 0.0059911273419857025, 0.09682860225439072, 0.31358709931373596, 0.11638578772544861, -0.5597349405288696, -0.5847060084342957, -0.03066028282046318, 0.504733681678772, -0.12101327627897263, 0.058714278042316...
is not displayed. It is because I am checking whether the session is alive inside the imgPhoto.aspx page. sometimes the session is alive and sometimes the session is not alive. It looks like there is some function that is setting the session to null asynchronously. I am not knowing how to track that function. so I am t...
[ 0.23279879987239838, 0.06980952620506287, 0.12707017362117767, 0.17753006517887115, -0.14249487221240997, 0.011737859807908535, 0.6337529420852661, 0.29141977429389954, -0.5989534854888916, -0.6161317229270935, -0.020038560032844543, 0.3885434567928314, -0.4652220606803894, 0.2456001639366...
way to debug this problem, please let me know. **EDIT:** The page imgPhoto.aspx gets company and empno as query string parameters. Then the page gets the binary data based on company and empno and uses Response.BinaryWrite() to display photo. The session check is at the beginning of this function. so somewhere before...
[ 0.28514260053634644, 0.04548769071698189, 0.7103007435798645, 0.011722598224878311, -0.04369829222559929, -0.00815645419061184, 0.37613415718078613, 0.01804981380701065, -0.5175292491912842, -0.5698611736297607, -0.12194860726594925, 0.530781626701355, -0.3666321039199829, 0.07616928964853...
it is giving the list of functions that are executed inside that page. It is not giving all the functions that are executed before that function. Yes, Microsoft has a CDN that hosts both jQuery and the vsdoc Intellisense for jQuery. You can learn more at <http://www.asp.net/ajax/cdn/>
[ 0.20934930443763733, -0.2744225561618805, 0.11752857267856598, 0.3498322069644928, -0.220651775598526, -0.47032609581947327, -0.09133991599082947, 0.5116583704948425, -0.24706140160560608, -0.612276017665863, 0.12047794461250305, 0.5045804381370544, -0.021457398310303688, -0.23682449758052...
I'm currently involved in a heavily localised WPF application and we've had a bug raised about keyboard shortcuts on menus in non-English languages. The bug referred to modifer key names (`Shift`, `Ctrl`, etc.) not being translated, which is easy enough to fix. However, this got me thinking about the shortcut keys th...
[ 0.004180337768048048, -0.018016578629612923, 0.1909381002187729, -0.036330047994852066, -0.10494852066040039, 0.11231797933578491, 0.4000014662742615, 0.1909678727388382, -0.2208971232175827, -0.4538749158382416, -0.2168566733598709, 0.5048336386680603, -0.18727077543735504, -0.05933725088...
major applications cope with this problem? * Are there any other issues to consider in this case? Although this question was inspired by a WPF app, I'm more interested in the general case. You should stay away from symbol-keys (such as `*` and `<`), since they tend to move around on international keyboards. See [Wikip...
[ 0.019290447235107422, 0.03270791843533516, 0.2822231650352478, -0.027257468551397324, -0.041354890912771225, -0.07875113934278488, 0.5178856253623962, 0.0740676298737526, -0.39306849241256714, -0.5809788107872009, -0.0750456154346466, 0.4807804524898529, -0.17322960495948792, -0.3540748953...
be fully customizable keyboard shortcuts, but that could be more for power-users. See [Media Player Classic](http://sourceforge.net/projects/guliverkli/) for an example.
[ -0.17902977764606476, -0.3136442303657532, 0.3604322373867035, 0.19453077018260956, -0.0445202961564064, -0.3121381103992462, -0.029277842491865158, -0.3235436975955963, -0.32943618297576904, -0.3191516399383545, -0.43494901061058044, 0.6732380390167236, -0.25714853405952454, -0.1272317618...
I have recently been working with someone on a project that is very ajax intense. All calls are made to web services using ajax and the data logic is handled on the client side. The server side code just acts as the [data access layer](http://en.wikipedia.org/wiki/Data_access_layer) and does little else. How much javas...
[ 0.35465890169143677, 0.270999550819397, 0.0092772813513875, 0.21090319752693176, -0.1857941597700119, -0.35251158475875854, 0.1987188756465912, 0.1749083250761032, -0.10231708735227585, -0.7863121628761292, -0.11074252426624298, 0.5410255789756775, 0.07479413598775864, -0.16025251150131226...
user spends 99% percent of his time using other sites, not yours. Make sure your site does what he/she expects from the rest of the web as well as from using computers in general. By the way, usability testing can be used to figure out "what the user really expects" in any area. Your judgments as a designer are likely...
[ 0.6127772927284241, 0.16972875595092773, 0.29517242312431335, 0.3202567994594574, 0.017322586849331856, -0.1702454835176468, 0.4710913598537445, -0.1795128434896469, -0.02738194353878498, -0.7553871273994446, -0.08180613070726395, 0.5789332985877991, 0.058432575315237045, -0.27360779047012...
EDIT: Scotty2012 and David Morton's answers don't work for me so I have put a bounty on this question. I think I need to change the type of the string to something else before passing it in. I'm not much cop at P/Invoke and I'm struggling with declaring and calling [SHSetKnownFolderPath](http://msdn.microsoft.com/en-u...
[ -0.16474252939224243, -0.0037798124831169844, 0.5397470593452454, -0.058973703533411026, -0.3716908097267151, -0.01321454904973507, 0.36767300963401794, -0.26460596919059753, -0.2984767258167267, -0.759946882724762, -0.18233270943164825, 0.42332252860069275, -0.44583559036254883, 0.0647176...
As IntPtr, ByRef pszPath As IntPtr) As Integer End Function <DllImport("shell32.dll")> _ Private Shared Function SHSetKnownFolderPath(<MarshalAs(UnmanagedType.LPStruct)> ByVal rfid As Guid, ByVal dwFlags As UInteger, ByVal hToken As IntPtr, ByRef pszPath As IntPtr) As Integer End Function Public S...
[ -0.30388176441192627, 0.07576235383749008, 0.7628371715545654, 0.003592143766582012, -0.1386144608259201, 0.20600460469722748, 0.37997087836265564, -0.5989689230918884, -0.32679232954978943, -0.5566008687019348, -0.2781199812889099, 0.36879563331604004, -0.1896316558122635, 0.5233339071273...
Then MsgBox("Set Sucessfully") End If End Sub Private Sub ButtonGetDocumentsPath_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonGetDocumentsPath.Click Dim pPath As IntPtr If SHGetKnownFolderPath(Documents, 0, IntPtr.Zero, pPath) = 0 Then ...
[ -0.29055750370025635, -0.1658010482788086, 0.8974794745445251, 0.06531509757041931, 0.2261185646057129, 0.01998390443623066, 0.4022851288318634, -0.4365747272968292, -0.17922110855579376, -0.6666102409362793, -0.4422963559627533, 0.4551286995410919, -0.3188033699989319, 0.23253124952316284...
TextBoxPath.Text = s End If End Sub End Class ``` Thanks! Try this code out. Sorry for the length, but it's all needed to properly PInvoke this particular function. It's a simple console application that includes a definition for both functions and an example usage of SHGetKnownFolderPath. I went ahead...
[ 0.21053139865398407, -0.03721938654780388, 0.4479081332683563, -0.05369337648153305, -0.021488334983587265, -0.1858447641134262, 0.29935377836227417, 0.10031943768262863, 0.07905377447605133, -0.7452152371406555, 0.2510308623313904, 0.7375277876853943, -0.5618729591369629, -0.0334535390138...