text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
`alert` [oneporter](https://stackoverflow.com/questions/777784/is-there-a-way-to-have-browsers-ignore-or-override-xml-stylesheet-processing-inst/800549#800549) used, but can display it in a new window as well. Again: this will not invoke the XSLT transformation that is specified: ``` javascript:(function(){ var u = ...
[ 0.1945262998342514, -0.3010927438735962, 0.6846941709518433, -0.43178272247314453, -0.055486682802438736, -0.38881614804267883, 0.35864174365997314, -0.38891762495040894, -0.11972245573997498, -0.6820217370986938, -0.539090633392334, 0.6192499399185181, -0.7638724446296692, -0.232093364000...
d.appendChild(t); w.document.write('<html><body><pre>' + d.innerHTML + '</pre></body></html>'); w.document.close(); w.focus(); } }; x.send(null); })() ```
[ 0.0772576555609703, -0.14854231476783752, 0.8982071876525879, -0.5130943655967712, -0.10396797955036163, 0.18328145146369934, 0.2676890194416046, -0.46061286330223083, 0.2130441516637802, -0.7961606979370117, -0.8147885203361511, 0.5521982312202454, -0.6430754065513611, 0.1611696183681488,...
I been trying to find an Free/Open Source XML-FO processor that i could use in .NET applications but i havent had luck finding one. Do anyone know of one that i could use? Thanks in advance. You can call [apache fop](http://xmlgraphics.apache.org/fop/) from .net [This guy](http://radio.javaranch.com/balajidl/2006/01/...
[ 0.7204440236091614, 0.22447815537452698, -0.15721051394939423, 0.05704788118600845, 0.04804797098040581, -0.17010830342769623, 0.4228063225746155, 0.17155061662197113, -0.18636219203472137, -0.5649207234382629, 0.12895317375659943, 0.3409399390220642, -0.02314644306898117, 0.00343432906083...
Just wondering when using the jQuery Cycle plugin if for the next/prev buttons, it can be configured so that clicking the next button would slide right, and clicking prev would slide left. Thanks for your help. Dave Ack! Forget that, just found the answer [here](http://www.malsup.com/jquery/cycle/scrollhv.html) for a...
[ 0.4572318196296692, 0.1262912154197693, 0.0321696437895298, 0.37590670585632324, -0.02678738906979561, 0.034929949790239334, 0.22156760096549988, 0.5408530235290527, -0.4558263421058655, -0.4305727779865265, 0.1425361931324005, 0.3849240243434906, 0.05334911122918129, 0.294169157743454, ...
I would like to create a similar effect to Apple's Safari 4 Beta Top Sites page - ![http://farm4.static.flickr.com/3644/3323438140_10b62d40f4.jpg](https://i.stack.imgur.com/PXqUN.jpg) when when you view it and a page's content has changed since you last visited, it displays a blue star in the top right hand corner to...
[ 0.3359955847263336, -0.037491124123334885, 0.14124271273612976, 0.04864916577935219, 0.1288137137889862, -0.13992533087730408, 0.4127521812915802, 0.6985306739807129, -0.3319913446903229, -0.6651607155799866, -0.053131572902202606, 0.09036311507225037, -0.1893581748008728, 0.39086019992828...
to dynamically change the cookie's content. Have I explained properly? How would I do it? Many thanks in advance Server side: Read the website f.ex every minute and save the timestamp if changed content. Save the users' visit timestamp to the page Ajax: Check if the websites update timestamp is newer than your visi...
[ 0.17666666209697723, -0.3650984764099121, 0.6536312699317932, 0.37918621301651, -0.19458717107772827, -0.432012140750885, 0.37966039776802063, 0.28195399045944214, -0.3426791727542877, -0.7628149390220642, -0.06744136661291122, 0.7537551522254944, -0.03030087985098362, -0.11865684390068054...
changes can occur, but the main content could not change. The easiest way to do this would be if the website provides rss, then there's probable that the important new content will be published via rss.
[ 0.44807741045951843, -0.09181983023881912, 0.5237866640090942, 0.3512531518936157, 0.15174181759357452, -0.266735702753067, 0.004088285379111767, 0.17282062768936157, -0.5809682011604309, -0.4991794526576996, -0.23293200135231018, 0.31366220116615295, -0.1425550878047943, 0.064426310360431...
I'm working on a PostgreSQL 8.1 SQL script which needs to delete a large number of rows from a table. Let's say the table I need to delete from is Employees (~260K rows). It has primary key named id. The rows I need to delete from this table are stored in a separate temporary table called EmployeesToDelete (~10K rec...
[ -0.14732320606708527, 0.22860169410705566, 0.2823367416858673, 0.03356318548321724, 0.122153639793396, 0.20531877875328064, -0.062036946415901184, 0.010744732804596424, -0.08335171639919281, -0.6556169390678406, 0.03120550885796547, 0.25304049253463745, -0.12121440470218658, 0.432672172784...
SELECT employee_id FROM EmployeesToDelete ) ``` But I heard that using the "IN" clause and subqueries can be inefficient, especially with larger tables. I've looked at the PostgreSQL 8.1 documentation, and there's mention of DELETE FROM ... USING but it doesn't have examples so I'm not sure how t...
[ 0.0018982599722221494, 0.04929187148809433, 0.35894888639450073, -0.06391657888889313, 0.24245792627334595, -0.12943784892559052, -0.17310146987438202, -0.15821205079555511, -0.11528022587299347, -0.769377589225769, -0.1399529129266739, 0.5652889609336853, -0.2833712697029114, 0.2395583093...
= ed.employee_id ``` Your comments are greatly appreciated. Edit: I ran EXPLAIN ANALYZE and the weird thing is that the first DELETE ran pretty quickly (within seconds), while the second DELETE took so long (over 20 min) I eventually cancelled it. Adding an index to the temp table helped the performance quite a bit...
[ -0.05258806049823761, -0.0486004538834095, 0.4177698493003845, 0.1079176813364029, -0.1246897429227829, 0.09942938387393951, 0.5002286434173584, -0.22935692965984344, -0.3128831088542938, -0.7063034772872925, 0.027119096368551254, 0.6547691822052002, -0.35201185941696167, 0.070444017648696...
width=4) (actual time=38.807..38.807 rows=10731 loops=1) -> HashAggregate (cost=182.14..184.14 rows=200 width=4) (actual time=19.801..28.773 rows=10731 loops=1) -> Seq Scan on EmployeesToDelete (cost=0.00..155.31 rows=10731 width=4) (actual time=0.005..9.062 rows=10731 loops=1) Total runti...
[ -0.021614355966448784, -0.18050169944763184, 0.8265165686607361, -0.2645946145057678, -0.1776522994041443, 0.18757598102092743, 0.7288035154342651, -0.33215075731277466, -0.33252835273742676, -0.7424620985984802, -0.17677946388721466, 0.699429452419281, -0.023635273799300194, -0.0515652000...
see where you can optimize. Very few PostgreSQL users are able to guess **correctly** the fastest query...
[ 0.028767116367816925, -0.18544144928455353, 0.134205624461174, 0.40871989727020264, -0.033329788595438004, -0.2881474494934082, -0.007429924327880144, 0.3224927484989166, -0.2546844780445099, -0.6976351141929626, 0.03417150303721428, 0.33816292881965637, -0.18335331976413727, -0.2318964898...
I have a WCF service and a Windows client. They communicate via a Duplex WCF channel which when I run from within a single network domain runs fine, but when I put the server on a separate network domain I get the following message in the WCF server trace... The message with to > 'net.tcp://abc:8731/ActiveAreaServic...
[ 0.35464486479759216, 0.10141468048095703, 0.7845003008842468, -0.26604756712913513, -0.13541877269744873, -0.11307839304208755, 0.33399248123168945, -0.34768518805503845, -0.04489398002624512, -0.9125421047210693, 0.29449528455734253, 0.3852570056915283, -0.3116131126880646, 0.425430178642...
two separate domains. The Network domains are fully trusted, so I'm a little confused as to what else could cause this? Server app.config ----------------- ``` <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.serviceModel> <behaviors> <serviceBehaviors> <behavio...
[ 0.08520258218050003, -0.19123415648937225, 0.4923398196697235, -0.1822546273469925, -0.13494636118412018, 0.05662497505545616, 0.43728137016296387, 0.05525766685605049, -0.18509997427463531, -0.7851357460021973, -0.14896534383296967, 0.5475214123725891, -0.2946048080921173, 0.3131846487522...
<serviceDebug includeExceptionDetailInFaults="true" /> </behavior> </serviceBehaviors> </behaviors> <services> <service behaviorConfiguration="JobController.ActiveAreaBehavior" name="JobController.ActiveAreaServer">
[ 0.18517552316188812, -0.10345525294542313, 0.08688521385192871, -0.3509666919708252, 0.04930219054222107, 0.3291385769844055, 1.0068769454956055, -0.35674312710762024, -0.17731425166130066, -0.4530760645866394, -0.1582973301410675, 0.7332834005355835, -0.2235639989376068, 0.199469894170761...
<endpoint address="mex" binding="mexTcpBinding" bindingConfiguration="" contract="IMetadataExchange" /> <host> <baseAddresses> <add baseAddress="net.tcp://SERVER:8731/ActiveAreaService/" /> </baseAddresses>
[ -0.26195573806762695, -0.12793517112731934, 0.8635309338569641, -0.19730055332183838, -0.11151744425296783, -0.06094404309988022, 0.05250784009695053, -0.5494818687438965, -0.14017832279205322, -0.5869380235671997, -0.09152363240718842, 0.07566558569669724, -0.45256558060646057, 0.25612258...
</host> </service> </services> </system.serviceModel> </configuration> ``` but I also add an end point programmatically in Visual C++ ``` host = gcnew ServiceHost(ActiveAreaServer::typeid); NetTcpBinding^ binding = gcnew NetTcpBinding(); binding->MaxBufferSize = Int32::MaxValue; binding->Ma...
[ -0.22265562415122986, -0.08254104107618332, 0.8406591415405273, -0.07519585639238358, -0.04903634265065193, 0.15667782723903656, 0.1746121346950531, -0.45727336406707764, -0.26110363006591797, -0.8004661202430725, -0.570938229560852, 0.23175862431526184, -0.28720077872276306, 0.17786775529...
<binding name="NetTcpBinding_IActiveAreaServer" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="Strong...
[ -0.3399501442909241, -0.09139763563871384, 0.5593448281288147, 0.08318892121315002, -0.039604928344488144, -0.09652118384838104, 0.4486943781375885, -0.48269861936569214, -0.1307847648859024, -0.5374296307563782, -0.30946341156959534, 0.5363233089447021, -0.3446495831012726, 0.196244522929...
maxReceivedMessageSize="65536"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <reliableSession ordered="true" inactivityTimeout="00:10:00"
[ -0.5873717665672302, 0.019205356016755104, 0.6132090091705322, 0.3935829997062683, 0.37907132506370544, -0.0179890263825655, 0.6873313784599304, -0.3162519633769989, -0.17181171476840973, -0.21427598595619202, -0.1517883986234665, 0.8584362864494324, 0.02551943063735962, -0.076358951628208...
enabled="false" /> <security mode="Transport"> <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" /> <message clientCredentialType="Windows" />
[ -0.18417155742645264, -0.3182675838470459, 0.6010330319404602, -0.10059662908315659, 0.10775967687368393, 0.16572917997837067, 0.2623426020145416, -0.15499475598335266, -0.5912527441978455, -0.7853205800056458, -0.38696378469467163, 0.5076327919960022, -0.2948184013366699, -0.1405652463436...
</security> </binding> </netTcpBinding> </bindings> <client> <endpoint address="net.tcp://SERVER:8731/ActiveAreaService/" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IActiveAreaServer" contract="ActiveArea.IActiveAre...
[ -0.21202519536018372, -0.2870325446128845, 0.9327138662338257, -0.239044651389122, -0.37851181626319885, -0.08142650127410889, 0.1522432416677475, -0.43381646275520325, -0.1620161086320877, -0.4640757143497467, -0.12670615315437317, 0.1069987341761589, -0.4649789035320282, 0.19538114964962...
name="NetTcpBinding_IActiveAreaServer"> <identity> <userPrincipalName value="user@SERVERDOMIAIN.CLIENTDOMAIN.COM" /> </identity> </endpoint> </client> </system.serviceModel> </configuration> ``` Any help is appreciated! Cheers Don't guess, m...
[ 0.2648213803768158, -0.038998741656541824, 0.4234590232372284, -0.07346507161855698, -0.3178982734680176, -0.25907206535339355, 0.4631763696670532, 0.033915311098098755, -0.09439384937286377, -0.7565829157829285, -0.002348424168303609, 0.1976734846830368, -0.07971075922250748, 0.0236096568...
to know what PostgreSQL will do and see where you can optimize. Very few PostgreSQL users are able to guess **correctly** the fastest query...
[ 0.31487929821014404, -0.04025252163410187, 0.19370950758457184, 0.38687843084335327, -0.21594323217868805, -0.130342498421669, 0.1286633163690567, 0.47314608097076416, -0.01938880980014801, -0.6802382469177246, 0.18122966587543488, 0.2690196633338928, -0.20013217628002167, -0.1071137189865...
I have the following scenario, with exception being thrown when I try to cast: 1. I added a project reference and imported the project's namespace. 2. The LoadFile line loads the dll that is generated when this project is built. 3. I am trying to access the public field of an attribute that decorates a property of an ...
[ 0.05207125470042229, 0.00884449016302824, 0.24830280244350433, -0.181510791182518, -0.04122661426663399, -0.06331786513328552, 0.36732643842697144, -0.3659309446811676, -0.051159441471099854, -0.4732323884963989, -0.1152588352560997, 0.4113198518753052, -0.3372995853424072, 0.2577875256538...
snippet: ``` using MyNamespace; // added project reference to this item m_Assembly = Assembly.LoadFile(ConfigurationManager.AppSettings["DLL_File_Path"]); Type objectType = m_Assembly.GetType(string.Format("{0}.{1}", NAMESPACE_PREFIX, "MyObject")); // Crash happens on line below: Attribute attr = (Attribute) ob...
[ 0.03938063606619835, 0.016095245257019997, 0.5253930687904358, -0.10387721657752991, 0.3243752717971802, 0.15127862989902496, 0.31946077942848206, -0.18619337677955627, -0.42491158843040466, -0.641405463218689, -0.5191404819488525, 0.24732261896133423, -0.370586097240448, 0.308240413665771...
loaded, when you try to use it, the Type System blows up because of the types being repeated between the 2 dll's... According to the error, these are the locations of the two dll's * C:\currentProject\bin\debug\A.dll * C:\projectA\bin\debug\A.dll If the reference is explicitly set on the solution, you can try to set...
[ 0.2396770566701889, -0.015794051811099052, 0.6373867392539978, 0.14340993762016296, 0.1578335016965866, -0.1782677322626114, 0.1564752608537674, -0.16911680996418, -0.20552469789981842, -0.5952777862548828, -0.032443370670080185, 0.30313819646835327, -0.597691535949707, 0.5099189281463623,...
I know ASP.NET does this automatically, but for some reason I can't seem to find the method. Help anyone? Just as the title says. If I do a Response.Redirect("~/Default.aspx"), it works, but I don't want to redirect the site. I just want the full URL. Can anyone help me out? For the "/#{path}/Default.aspx" part, us...
[ 0.20685315132141113, -0.02788725309073925, 0.5299282670021057, 0.12558354437351227, -0.05376923456788063, -0.18765316903591156, 0.6776283383369446, 0.034159377217292786, -0.3195471465587616, -0.8228715062141418, -0.13864003121852875, 0.42880117893218994, -0.08968272805213928, 0.16034449636...
I'm looking for an example Spring MVC 2.5 web app that I can easily: * Setup as a project in Eclipse * Deploy to a local app server (using Ant/Maven) There are a couple of example applications included with the Spring distribution ('petclinic' and 'jpetstore'), but they don't provide any Eclipse project files (or a w...
[ 0.5004242658615112, 0.014558342285454273, -0.00464880233630538, 0.028415963053703308, -0.35275596380233765, 0.19146060943603516, 0.03642086312174797, -0.2845507562160492, -0.395444393157959, -0.43572384119033813, 0.004980007652193308, 0.2843472957611084, -0.2153162807226181, -0.35680156946...
with unit tests. This meets the following requirements: * Spring MVC 2.5 * Project in Eclipse * Deploy to a local app server using Ant * Uses HSQL (no need to install a local DB)
[ 0.16875018179416656, -0.09773104637861252, 0.30990180373191833, 0.031802862882614136, -0.3182803690433502, -0.039130572229623795, 0.37054726481437683, -0.3203471899032593, 0.01041598990559578, -0.6807771325111389, -0.4093209505081177, 0.17075997591018677, -0.11359500885009766, -0.234900608...
I'm tracking a Virtual PC virtual machine file (\*.vmc) in git, and after making a change git identified the file as binary and wouldn't diff it for me. I discovered that the file was encoded in UTF-16. Can git be taught to recognize that this file is text and handle it appropriately? I'm using git under Cygwin, with...
[ 0.14373210072517395, 0.11410912871360779, 0.2166062891483307, -0.036382220685482025, 0.07955305278301239, -0.05066560581326485, 0.3177873194217682, 0.329700767993927, -0.1471160501241684, -0.8152858018875122, -0.31773579120635986, 0.8202559947967529, -0.4902205765247345, 0.0890005454421043...
get merging too! $ git difftool commit1 commit2 ``` `git difftool` takes the same arguments as `git diff` would, but runs a diff program of your choice instead of the built-in GNU `diff`. So pick a multibyte-aware diff (in my case, `vim` in diff mode) and just use `git difftool` instead of `git diff`. Find "difftool...
[ 0.26203593611717224, -0.3239602744579315, 0.505977988243103, -0.13455654680728912, -0.07225881516933441, -0.24430963397026062, 0.2820320427417755, 0.02636520192027092, -0.10428345948457718, -0.6832232475280762, -0.20671752095222473, 0.8004254102706909, -0.4413565993309021, 0.10884213447570...
I have used Ruby on Rails with ActiveRecord, so I am quite used to switching to Production/Development database. I am wondering, how do people implement Development and Production Database difference in ASP.NET MVC (preferably with ado.net entity). I tried to have it by creating 2 entity datasets with the same name...
[ 0.2927270829677582, 0.20202618837356567, 0.07298346608877182, -0.01020021177828312, -0.32686105370521545, 0.1295432448387146, 0.041241370141506195, -0.16705644130706787, -0.17587807774543762, -0.652903139591217, 0.24535907804965973, 0.5909968614578247, -0.3362124264240265, 0.40467235445976...
each of Development (web.config), QA (web-qa.config), and Production (web-prod.config) installs. The config files have different connection strings pointing to the corresponding instances of the database. The default connection string points to the SQL server instance on my local machine which isn't available to the ne...
[ 0.20052902400493622, 0.22754603624343872, 0.587174654006958, -0.15349136292934418, 0.16593006253242493, 0.19123876094818115, 0.050782911479473114, -0.16815482079982758, 0.049699537456035614, -0.9127324819564819, -0.3554208278656006, 0.6332897543907166, -0.44971057772636414, 0.2377894818782...
I need to create a regular expression that allows a string to contain any number of: * alphanumeric characters * spaces * ( * ) * & * . No other characters are permitted. I used [RegexBuddy](http://www.regexbuddy.com/) to construct the following regex, which works correctly when I test it within RegexBuddy: ``` \w* ...
[ 0.2924121618270874, 0.27065980434417725, 0.3207179009914398, -0.18967126309871674, 0.027125107124447823, 0.0655704140663147, 0.5831265449523926, -0.38475021719932556, 0.18881158530712128, -0.45560136437416077, 0.030552051961421967, 0.5485005378723145, -0.5158354640007019, 0.078724972903728...
+ test.matches("\\w* *\\(*\\)*&*\\.*")); // Outputs false } } ``` * I must admit that I have a bit of a blind spot when it comes to regular expressions. Can anyone explain why it doesn't work please? That regular expression tests for any amount of whitespace, followed by any amount of alphanumeric characters, follo...
[ 0.22507070004940033, 0.17196980118751526, 0.029236039146780968, -0.058679260313510895, -0.1070585772395134, -0.06912519782781601, 0.5213537216186523, -0.36006781458854675, 0.041448742151260376, -0.34935563802719116, -0.23874089121818542, 0.5432178378105164, -0.46615836024284363, -0.1476228...
\\(\\)&\\.]+") ``` Though that will also allow a string that is only spaces, or only periods, etc.. If you want to ensure at least one alpha-numeric character... ``` test.matches("[\\w \\(\\)&\\.]*\\w+[\\w \\(\\)&\\.]*") ``` So you understand what the regular expression is saying... anything within the square brac...
[ 0.04006028547883034, 0.15261559188365936, 0.1263027936220169, -0.14588621258735657, 0.09144096076488495, 0.10965737700462341, 0.16144044697284698, -0.3194348216056824, 0.023113129660487175, -0.49579840898513794, -0.40563997626304626, 0.3338373601436615, -0.22292007505893707, -0.14204476773...
This `HyperLink` syntax is not working to pass parameters to a small PopUp window: ``` <asp:HyperLink ID="HyperLink2" runat="server" Text="Manage Related Items" NavigateUrl='<%# "editRelatedItems.aspx?" + "ProductSID=" + Eval("ProductSID") + "&CollectionTypeID=" + Eval("CollectionTypeID")+ "&ProductTypeID=" + Eval...
[ -0.4094291031360626, 0.10744602978229523, 0.8931872248649597, 0.06929099559783936, -0.09022076427936554, -0.05714869871735573, 0.4700123965740204, -0.1118936836719513, -0.14919261634349823, -0.7241042852401733, -0.30175140500068665, 0.4382360279560089, -0.4904302656650543, -0.0406751036643...
ID="HyperLink2" runat="server" Text="Manage Related Items" NavigateUrl="#" onClick='<%# "window.open('editRelatedItems.aspx" + "?ProductSID=" + Eval("ProductSID") + "&CollectionTypeID=" + Eval("CollectionTypeID")+ "&ProductTypeID=" + Eval("P...
[ -0.4098513126373291, -0.19448979198932648, 0.8670076727867126, 0.11998167634010315, -0.05477716773748398, -0.028092527762055397, 0.12124187499284744, -0.4630441665649414, -0.21178938448429108, -0.7123889923095703, -0.39006903767585754, 0.25286075472831726, -0.38786017894744873, 0.243335753...
",'name','height=550, width=790,toolbar=no, directories=no,status=no, menubar=no,scrollbars=yes,resizable=no'); return false;%>' Target="_blank" /> ``` That should work, but I would really create a javascript method to call which would open the window. ``...
[ 0.005260266363620758, -0.02838287129998207, 0.36447852849960327, -0.3545001447200775, 0.09407587349414825, 0.14086219668388367, 0.39932507276535034, -0.14434462785720825, 0.07666506618261337, -0.4854404330253601, -0.5321239829063416, 0.5873481035232544, -0.1945090889930725, -0.000041935716...
openRelatedItems(productSID, collectionTypeId, productTypeId) { window.open('editRelatedItems.aspx" + "?ProductSID=" + productSID + "&CollectionTypeID=" + collectionTypeID + "&ProductTypeID=" + productTypeID + ",'name','height=550, wid...
[ -0.03321854770183563, -0.07664669305086136, 0.8033168911933899, -0.1493845283985138, 0.050238460302352905, 0.17068247497081757, 0.1455472707748413, -0.1789740025997162, -0.2653978168964386, -0.5538251996040344, -0.45609205961227417, 0.34334057569503784, -0.2686382532119751, 0.2095928192138...
directories=no,status=no, menubar=no,scrollbars=yes,resizable=no'); } </script> ```
[ -0.25611233711242676, -0.004439989570528269, 0.6658443212509155, 0.027494676411151886, 0.27390217781066895, -0.006690642796456814, 0.31762656569480896, 0.21804103255271912, -0.15509480237960815, -0.45171359181404114, -0.884208619594574, 0.4391341209411621, -0.386385053396225, 0.36092516779...
Tomcat.exe is consuming 75% of CPU. Is anyone having any idea why it happens and how can that be decreased? I am using Tomcat5.5 & J2SDK v 1.4.2\_12 To understand what's happening, you should try to run it under a profiler. Try the YourKit (<http://www.yourkit.com/>) or Netbeans (<http://profiler.netbeans.org/docs/hel...
[ 0.2525770664215088, -0.32937324047088623, 0.49085134267807007, 0.001912470324896276, 0.05730558559298515, -0.09627005457878113, 0.3025626540184021, 0.33902251720428467, -0.2525143325328827, -0.6504086852073669, 0.049121446907520294, 0.8632522225379944, -0.3842563331127167, -0.2066686451435...
*Multiplying* two numbers in log space means adding them: ``` log_multiply(x, y) = log( exp(x) * exp(y) ) = x + y ``` *Adding* two numbers in log space means you do a special log-add operation: ``` log_add(x, y) = log( exp(x) + exp(y) ) ``` which is implemented in the following code, in a way t...
[ 0.020208660513162613, -0.03139684349298477, 0.16525164246559143, -0.2804392874240875, -0.1352219581604004, 0.22745521366596222, 0.06154545769095421, -0.31333276629447937, -0.35416874289512634, -0.5125856399536133, -0.1697206199169159, 0.44472023844718933, -0.36217042803764343, -0.212022110...
y; if(y == neginf) return x; return max(x, y) + log1p(exp( -fabs(x - y) )); } ``` ([Here](http://www.csee.usf.edu/~murphy/Temp/download/Toolboxes/Trulla%20Toolbox/Level%204/Example/trulla.smooth/include/evolution/core/math/MathUtils.hpp) is another one.) But here is the question: **Is there a trick ...
[ -0.2168368250131607, -0.17145268619060516, 0.39570754766464233, -0.20023034512996674, -0.020780770108103752, 0.03609182685613632, 0.17308399081230164, -0.40978899598121643, -0.42845267057418823, -0.1379309892654419, -0.14216174185276031, 0.6195442080497742, -0.3741162121295929, 0.009550962...
return x; return x + log1p(-exp(y-x)); } ``` That's just based on some quick math I did...
[ 0.045179590582847595, 0.2948434054851532, 0.2843601405620575, -0.32971853017807007, 0.2660635709762573, -0.13040128350257874, 0.43443286418914795, -0.05129390209913254, -0.037817224860191345, -0.3512031137943268, -0.31485459208488464, 0.5376255512237549, -0.45393112301826477, 0.14586444199...
I have an Order mapping with many OrderItems. The mapping correctly saves both the Order and OrderItems to the database when I do a save on just the Order, but when I reload that order, the List of OrderItems that the order contains is filled with null values (for all the othe order items in the table) until it reaches...
[ -0.3824145793914795, 0.2718870937824249, 0.20397229492664337, -0.16785146296024323, -0.10544765740633011, 0.27157077193260193, 0.41940751671791077, -0.10319177806377411, -0.19901835918426514, -0.8794122338294983, -0.00805620662868023, 0.444682776927948, -0.16801664233207703, 0.238792881369...
cascade="all" inverse="true" > <key column="OrderID"/> <index column="OrderItemID" /> <one-to-many class="OrderItem" not-found="ignore" /> </list> ``` OrderItem: ``` <many-to-one name="Order" class="Order" column="OrderID" not-null="true" /> ``` Here's the Order's class implementation: ``` public class Orde...
[ -0.06361276656389236, -0.10588506609201431, 0.23555950820446014, -0.04447823762893677, -0.23432713747024536, 0.1724271923303604, 0.29887863993644714, -0.6461626887321472, -0.18010957539081573, -0.5777993202209473, 0.27182936668395996, 0.2391873300075531, -0.8756324648857117, -0.08421719819...
if that will solve your problem. What may be helpful is to look at how the actual SQL that is hitting the database is different from what you expect by enabling logging to console.out ([see this blog](http://www.davesquared.net/2008/01/viewing-sql-generated-by-nhibernate.html))
[ 0.09715618193149567, -0.04085541516542435, 0.3388662338256836, 0.15153570473194122, -0.19011089205741882, -0.19514358043670654, 0.22074592113494873, 0.00030079251155257225, -0.2522999048233032, -0.26429739594459534, 0.28195157647132874, 0.43685847520828247, -0.12918053567409515, 0.36240208...
I've seen [this](https://stackoverflow.com/questions/159456/pivot-table-and-concatenate-columns-sql-problem#159803), so I know how to create a pivot table with a dynamically generated set of fields. My problem now is that I'd like to get the results into a temporary table. I know that in order to get the result set i...
[ 0.11764143407344818, 0.1555594503879547, 0.48936983942985535, -0.06322161853313446, -0.10837569087743759, -0.15778954327106476, -0.24815422296524048, -0.06182784214615822, -0.5218080282211304, -0.2892482578754425, 0.158527672290802, 0.24037007987499237, -0.4874895513057709, 0.1268002539873...
a better way? you could do this: ``` -- add 'loopback' linkedserver if exists (select * from master..sysservers where srvname = 'loopback') exec sp_dropserver 'loopback' go exec sp_addlinkedserver @server = N'loopback', @srvproduct = N'', @provider = N'SQLOLEDB', @datasrc = @@servername go declare @...
[ 0.10079437494277954, -0.2975477874279022, 0.6599698066711426, 0.3710595667362213, -0.09513598680496216, -0.06858000159263611, 0.19569255411624908, -0.5083762407302856, -0.3123900592327118, -0.4513474106788635, -0.07206949591636658, 0.6284327507019043, -0.23452641069889069, 0.06178670004010...
I've just been doing some research into sql data services, and found out that the current ACE model is being phased out for a newer relational model. It seemed all the samples in the March 2009 CTP were based on the ACE model (like the StorageClient project). I'm wondering if these are still relevant- they seem to all ...
[ 0.19992728531360626, 0.1463664174079895, 0.24191053211688995, 0.12808100879192352, -0.07463672012090683, -0.19041462242603302, -0.04777039587497711, 0.07878230512142181, -0.24726463854312897, -0.5182740092277527, 0.20256510376930237, 0.372721791267395, -0.1713026911020279, 0.30777686834335...
(which is not changing models and remains based on ADO.NET Data Services). So the samples you're looking at are entirely valid.
[ 0.5303555130958557, -0.15451942384243011, -0.08824333548545837, 0.522637128829956, 0.014115842990577221, -0.09712546318769455, -0.028515754267573357, -0.28723224997520447, -0.11897021532058716, -0.3437674939632416, 0.21566811203956604, 0.2102917581796646, 0.0731394812464714, 0.043498355895...
I am trying to change the class of an element using javascript. So far I'm doing : ``` var link = document.getElementById("play_link"); link.className = "play_button"; ``` ***edit***: here is the actual code that replace the classname In the HTML : ``` <a href="#play_link_<%=i%>" id="play_link_<%=i%>"onclick="cha...
[ 0.18209560215473175, -0.15477539598941803, 0.7420769929885864, -0.4095730781555176, 0.3194393813610077, 0.004466027952730656, 0.31467434763908386, -0.5626030564308167, -0.2187175452709198, -0.688176691532135, -0.20784391462802887, 0.7349686622619629, -0.5813014507293701, -0.150147899985313...
= function(){changeCurrentTo(temp);return false;}; } ``` with ``` .play_button{ background:url(/images/small_play_button.png) no-repeat; width:25px; height:24px; display:block; } ``` the old class is ``` .stop_button{ background:url(/images/small_stop_button.png) no-repeat; width:25px; ...
[ -0.13317105174064636, -0.18006063997745514, 0.6237549185752869, -0.34320271015167236, 0.04623883590102196, 0.10405361652374268, 0.060380272567272186, -0.09172883629798889, -0.3001396059989929, -0.770197331905365, -0.3203626275062561, 0.3835265040397644, -0.47913652658462524, 0.212029010057...
but if I shake the mouse a bit then it displays. It works perfectly in FF, Chrome, Opera and Safari, so it's an IE bug. I know it's hard to tell right away from only these information, but if I could get some pointers and directions that would be helpful. Thanks- You should create *one* image with a width of `50px` ...
[ 0.14917853474617004, -0.14749078452587128, 0.7657874822616577, -0.04968344420194626, 0.11176074296236038, -0.12839454412460327, 0.22948990762233734, 0.0925435721874237, -0.112334705889225, -0.7307648062705994, -0.13261166214942932, 0.8616892099380493, -0.25556913018226624, -0.0872313827276...
height: 24px; display: block; } .play_button { background-position: left top; } .stop_button { background-position: right top; } ``` Then you load "both images" at the same time, and no delay will happen when you change which part of the image gets displayed. Note that I have made a new CSS class so tha...
[ 0.04469683766365051, -0.21449580788612366, 0.5148161053657532, -0.20580725371837616, 0.11199264228343964, 0.1293528825044632, 0.031029490754008293, -0.47332489490509033, -0.38828757405281067, -0.7069685459136963, -0.15150918066501617, 0.7057733535766602, -0.2249891310930252, -0.40964722633...
I'm installing a large app, and part of it is a custom written tool called "DbUpdateManager" to mass execute SQL scripts against our target database. Right now, the WiX 2.x install works - but it has one flaw: during install, I also install a couple of Windows services, which can be optionally started right away. Thos...
[ 0.3866267204284668, 0.17015676200389862, 0.23381592333316803, -0.07725135236978531, -0.25668632984161377, -0.346607506275177, 0.5674067735671997, -0.20173467695713043, 0.11062818765640259, -0.9879849553108215, 0.04172695428133011, 0.6278975605964661, -0.40047213435173035, 0.003172856289893...
<!-- DbUpdateManager component with the necessary files --> <Component Id='DbUpdateManagerComponent' Guid='...' DiskId='1'> <File Id='DbUpdateManagerFile' LongName='DbUpdateManager.Wizard.exe' Name='DbUmWz.exe' src='DbUpdateManager.Wizard.exe' KeyPath='no' /> </Component> <!-- Component to inst...
[ -0.059770096093416214, -0.05579601600766182, 0.3914988934993744, -0.11006274074316025, -0.3377949297428131, 0.08161023259162903, 0.5518408417701721, -0.5047755241394043, 0.15860764682292938, -0.5978531837463379, -0.45952942967414856, 0.6294717192649841, -0.18032075464725494, 0.174051925539...
Description='My Service' ErrorControl='normal' Start='auto' Type='ownProcess' Vital='yes' /> <ServiceControl Id='UninstallMyService' Name='MyService' Remove='uninstall' Wait='yes' /> </Component> <!-- Feature for the DbUpdateManager referencing the above component -...
[ 0.01683725044131279, -0.04114953428506851, 0.3518444001674652, -0.1612318605184555, 0.06481306254863739, -0.09462490677833557, 0.6294589638710022, -0.25797584652900696, 0.20342062413692474, -0.6819959282875061, -0.6669349670410156, 0.5685155391693115, -0.1982446312904358, 0.123818814754486...
Title='Database Update Manager'> <ComponentRef Id='DbUpdateManagerComponent'/> </Feature> <!-- Custom action for running DbUpdateManager --> <CustomAction Id='RunDbUpdateManagerAction' FileKey='DbUpdateManagerFile' ExeCommand='' Return='asyncWait' /> <!-- Calling the custom action in...
[ 0.09403935074806213, -0.062983438372612, 0.25966575741767883, -0.08780445158481598, -0.12248069047927856, -0.07084823399782181, 0.35309898853302, -0.48756924271583557, -0.07618342339992523, -0.3952377438545227, -0.42255130410194397, 0.7234436869621277, -0.15221565961837769, 0.2397011965513...
After='InstallFinalize'>&amp;DbUpdateManager=3</Custom> ``` I inherited this WIX, and it works - but as I said - the DbUpdateManager gets called too late in the process (only "After=InstallFinalize") and thus the services will fail to start up properly at first (the run fine the second time around when you restart th...
[ 0.3183460235595703, -0.1811802238225937, 0.32075944542884827, -0.3754650354385376, -0.05040837451815605, -0.20148830115795135, 0.5939686894416809, -0.47561684250831604, -0.1384364813566208, -0.613262951374054, -0.23166455328464508, 0.856981098651886, -0.41840410232543945, 0.047424059361219...
Before='StartServices'>&amp;DbUpdateManager=3</Custom> ``` Unfortunately, in this case, nothing at all happens - DbUpdateManager NEVER gets called.... Any ideas why? Debugging the MSI/WiX stuff is really really tricky, and I can't seem to see the forest for the trees anymore.... Thanks! Marc EDIT: The "RunDbUpdate...
[ 0.09702074527740479, -0.0644933432340622, 0.34971117973327637, -0.19430333375930786, -0.014446769841015339, -0.2070644050836563, 0.7675731778144836, -0.398720920085907, -0.26046037673950195, -0.6854322552680969, -0.3077704608440399, 0.6031527519226074, -0.32480794191360474, -0.093011856079...
time - unfortunately, I'm just not seeing my wizard :-( What I'm seeing is an error code "return value 1631" which means something like "MSI Service could not be started" - wtf ??? MSI (s) (2C:D8) [20:53:36:383]: Doing action: RunDbUpdateManagerAction Action 20:53:36: RunDbUpdateManagerAction. Action started at 20:53...
[ 0.08051962405443192, -0.19907093048095703, 0.6711300611495972, -0.16902384161949158, -0.09855502098798752, 0.11803407967090607, 0.834719181060791, -0.11919473856687546, -0.4624679386615753, -0.7711237072944641, -0.443694144487381, 0.4985891282558441, -0.14011375606060028, -0.03682274743914...
/i [msiname] /l\*v [filename] EDIT: After reading your comment have a look at this page [here](http://msdn.microsoft.com/en-us/library/aa368561(VS.85).aspx) you could try to add NOT INSTALLED in the condition EDIT2: I found this [page](http://www.installsite.org/pages/en/bugs_msi.htm) Search for your error Number 163...
[ -0.026185112074017525, 0.07916174083948135, 0.14722216129302979, 0.12980031967163086, 0.42073842883110046, 0.2316344529390335, 0.4627566933631897, 0.14972910284996033, -0.5888298153877258, -0.718211829662323, -0.07712124288082123, 0.3911290168762207, -0.6817424297332764, 0.0383255407214164...
Does anyone know how to determine the active node of a SQL Active-Passive Failover Cluster programmatically from T-SQL? `@@SERVERNAME` only returns the virtual server name, which is identical from both nodes. I don't plan to make any decisions based on the data - I trust the failover to do its thing - but I would lik...
[ -0.0017581230495125055, 0.2976643145084381, 0.06711115688085556, 0.06351641565561295, 0.008399718441069126, -0.29201290011405945, 0.16865037381649017, 0.2651226222515106, -0.10471761971712112, -0.6013755798339844, -0.0553252287209034, 0.42933759093284607, -0.1499023139476776, 0.10437300056...
I'm using the Crystal Reports Viewer 11 ActiveX control in an Access form (version 2007, 2003 format). Everything works well on my development machine, where I have CRXI installed. I copied the referenced DLL to the client's machine, but when I try to register it, it says "Can't find module" (I double- and triple-check...
[ 0.1350054144859314, 0.22041583061218262, 0.4747653007507324, -0.10731244087219238, -0.13038204610347748, -0.18633578717708588, 0.3363560140132904, -0.037254270166158676, -0.07864624261856079, -0.5394225716590881, -0.017707956954836845, 0.8153546452522278, -0.4301747977733612, 0.03652239963...
at a loss as to what ones and how I go about finding out. Although I'm using the CR control, I assume this would apply to any ActiveX control throwing this error. Thanks. This should work - ``` string assemblyFile = ( new System.Uri(Assembly.GetExecutingAssembly().CodeBase) ).AbsolutePath; ```
[ 0.13345539569854736, 0.16815508902072906, 0.638043224811554, -0.2686544954776764, 0.3983376622200012, -0.06114360690116882, 0.413639098405838, -0.1444040685892105, -0.18629644811153412, -0.8340842127799988, -0.11536113172769547, 0.9346824884414673, -0.484295517206192, 0.24771542847156525, ...
Somewhere on net on one Blog I read a sentence that is "DataGridView something like Boeing 777, but what is goal when I do not know how to fly. Before I goo deep in creating my projects I wanna know is there alternative for DataGridView in C#. Something like jQuery in WEB api. The favors things which I am looking for i...
[ 0.8270608186721802, -0.15853366255760193, 0.2836519479751587, 0.6201951503753662, -0.30096763372421265, -0.44188591837882996, -0.03366132825613022, 0.4430258870124817, -0.19369006156921387, -0.7887498140335083, 0.5544527173042297, 0.36054402589797974, -0.17340749502182007, 0.06629575043916...
ocean you need to learn to fly a 777. There are many ways of displaying data in WinForms applications; which one is best for you depends on what you're trying to do. If you want to show a fixed, non-editable, non-scrollable list of data you can use a DataList; simple and limited. If you want to add scrolling you can o...
[ 0.35202550888061523, -0.32101884484291077, 0.44465401768684387, 0.36033421754837036, 0.08599038422107697, -0.1576586216688156, -0.25958171486854553, 0.08323736488819122, -0.2808358371257782, -0.6994101405143738, 0.41965484619140625, 0.7078225016593933, -0.0009875739924609661, -0.1337630897...
features and more functional controls are more complex.
[ -0.21138562262058258, 0.13096338510513306, 0.48831412196159363, 0.4183964729309082, 0.14063195884227753, -0.028522323817014694, -0.29040729999542236, -0.4878403842449188, -0.13183948397636414, -0.5824548006057739, -0.28148287534713745, 0.41675758361816406, -0.028774771839380264, -0.0945824...
I have a database like where: Table `foo` has columns `id` and `name` Table `bar` has columns `id` and `foo_id` I have an incoming HTTP query with a `foo.name`, I'd like to insert a row into `bar` with `bar.foo_id` set appropriately. So, for example: ``` > SELECT * FROM foo; id name ------ ------- 1 "Andrey...
[ 0.009691471233963966, 0.3461310863494873, 0.4243416488170624, -0.2125699520111084, -0.15167447924613953, 0.13589033484458923, 0.12651167809963226, -0.45646026730537415, -0.0362197570502758, -0.7392178177833557, 0.05454358831048012, 0.32596734166145325, -0.39365413784980774, 0.2799330651760...
foo_id=(SELECT id FROM foo WHERE foo.name=?) ``` But this seems to be wrong, as SELECT's return sets, not values... you would have to do ``` SELECT TOP 1 ID FROM foo where foo.name=? ``` but other than that there is nothing wrong with doing a select in an update.
[ -0.04503174126148224, -0.007127557415515184, 0.18299606442451477, -0.2146323025226593, 0.11874593049287796, -0.45804375410079956, 0.043165236711502075, -0.2595769464969635, 0.08184907585382462, -0.284213125705719, -0.14525726437568665, 0.7322660684585571, -0.34425804018974304, -0.102730296...
After I generate a scaffold, Rails gives me the ability to POST to `items.xml` which will create a new `item`. A GET to `items.xml` will simply list them all. Where does Rails specify which method in the controller (`create` or `index`, respectively) will be called, based on the type of action I am performing? More sp...
[ 0.04573722556233406, -0.2379934936761856, 0.5871923565864563, 0.21470852196216583, -0.23157313466072083, 0.00842142291367054, -0.024893630295991898, -0.48240935802459717, -0.2577674090862274, -0.7022600769996643, -0.018149875104427338, 0.17064648866653442, -0.09846987575292587, 0.322566270...
#=> index GET /items/1 #=> show GET /items/new #=> new GET /items/1/edit #=> edit PUT /items/1 #=> update POST /items #=> create DELETE /items/1 #=> destroy ``` **Edited to add** to get all those routes, in config/routes.rb, simply add `map.resources :items`
[ -0.006939831655472517, 0.01419967319816351, 0.45485541224479675, 0.07805950939655304, 0.030796177685260773, 0.06085732579231262, 0.29397886991500854, -0.3331259787082672, -0.2826727330684662, -0.9785593152046204, -0.21414004266262054, 0.16357241570949554, -0.3825145959854126, 0.10481107234...
I'm looking for a database that supports the following functionality: 1) Records in the database are like Python dictionaries or Perl hashes. For example, a "purchase" record might look like this: ``` <purchase 5436> = { product: "BMX Bike", price: 99.50, city: "Springfield" } ``` 2) The records are stored in array...
[ 1.0177448987960815, 0.09467893838882446, 0.1576213836669922, 0.12051432579755783, 0.19086000323295593, 0.39423322677612305, -0.2628222107887268, -0.39220738410949707, -0.1092071458697319, -0.582486093044281, 0.5430739521980286, 0.5432260632514954, 0.00973321683704853, 0.30413395166397095, ...
I want to be able to do two kinds of queries on this database: 3a) Count the # of records that match a various criteria. For example, how many purchase were made with a value over 50? I know of lots of databases that support this. 3b) Count the number of times records appear in a certain order. For example, how many ...
[ 0.5432538390159607, 0.24257367849349976, -0.08277209848165512, 0.3425329923629761, 0.126620352268219, -0.19848713278770447, -0.056182216852903366, -0.5028815269470215, -0.35152581334114075, -0.44288206100463867, 0.19801883399486542, 0.49826526641845703, -0.31448274850845337, 0.057268545031...
that speed is important, and this database needs to support gigabytes of data. For example, there might be 1,000,000,000 purchase arrays, and I want to count how many of them have a purchase in "Springfield" followed by a purchase in "Hometown" (note that order is important). Maybe I'm wrong, but I think a relational D...
[ 0.41377875208854675, 0.09054170548915863, 0.18672692775726318, 0.27520617842674255, 0.011594056151807308, 0.02062663622200489, -0.07127015292644501, -0.2523442804813385, -0.38867685198783875, -0.5557350516319275, 0.2587054371833801, 0.4985003173351288, -0.19035881757736206, 0.3523450493812...
order. I think this [article](http://www.tomjewett.com/dbdesign/dbdesign.php?page=manymany.php) probably expresses better than I could.
[ 0.16185882687568665, 0.2234695851802826, 0.1787446141242981, -0.06761954724788666, -0.4287358820438385, 0.023304449394345284, 0.6760823130607605, -0.29566195607185364, -0.19294732809066772, -0.5418869256973267, -0.05256412550806999, 0.46741217374801636, -0.12588544189929962, 0.050767742097...
I'm trying to configure log4j to use the `SMTPAppender` but I keep getting relay access denied errors. I get this error when executing my code on my laptop AND straight from my shared hosting environment. Here's the relevant config: ``` #CONFIGURE SMTP log4j.appender.email=org.apache.log4j.net.SMTPAppender log4j.appe...
[ 0.09111291915178299, 0.22856956720352173, 0.49198317527770996, -0.09204012900590897, 0.09214058518409729, -0.13443493843078613, 0.8053416609764099, -0.46564051508903503, -0.1613568216562271, -0.812953770160675, -0.1391419917345047, 0.5196600556373596, -0.20220477879047394, 0.04748146608471...
It seems to me that functional programming is a great thing. It eliminates state and makes it much easier to automatically make code run in parallel. Many programmers who were first taught imperative programming styles find it very difficult to learn functional programming, because it is so different. I began to wonde...
[ 0.40663233399391174, -0.10627676546573639, -0.380810409784317, 0.16760002076625824, -0.346733421087265, 0.034125085920095444, 0.15228791534900665, 0.006661302410066128, -0.3108256459236145, -0.3595185875892639, 0.36102941632270813, 0.6137851476669312, -0.324802041053772, 0.0876848772168159...
is, should functional programming be taught in school before imperative, and if so, why is it not more common to start with it? Actually, some schools already do it this way around. Where I study (University of Copenhagen), they teach SML in the first semester, as an intro to programming. Then they teach Java afterward...
[ 0.011864932253956795, 0.16634957492351532, 0.07854006439447403, -0.0647483840584755, -0.25216570496559143, -0.3189236521720886, 0.4321661591529846, 0.20970945060253143, -0.2757638096809387, -0.3159365952014923, -0.07788064330816269, 0.6821883916854858, 0.02661498449742794, -0.8098103404045...
school or earlier, so people who have not yet been exposed to imperative programming usually pick it up without too much trouble. In fact, there's a trend that people who are new to programming when they enroll pick SML up *faster* than those who've already learned Java or C++. It seems like there's a big conceptual ...
[ 0.42945459485054016, -0.19429150223731995, -0.08790745586156845, 0.04010075330734253, -0.3557334542274475, -0.3297712206840515, 0.40858450531959534, 0.04294061288237572, -0.29512515664100647, -0.540846586227417, -0.037641752511262894, 0.5958644151687622, 0.08325918018817902, -0.53199321031...
if your entire understanding of programming is based in side effects, it's much harder to imagine that anything is possible *without* them. I think a big benefit of this approach is that functional programming principles become an essential part of your programming toolbox, rather than some esoteric add-on you might u...
[ 0.5232092142105103, 0.2034285068511963, -0.34188589453697205, 0.22725003957748413, -0.05908023566007614, -0.20071561634540558, 0.6474758982658386, -0.05704985931515694, -0.09434980154037476, -0.43210935592651367, 0.06362924724817276, 0.7219198942184448, 0.024905117228627205, -0.13990323245...
concept of higher-order functions (even though they're not available in the language)
[ -0.18411149084568024, 0.19156049191951752, -0.030822623521089554, 0.15745145082473755, -0.12751340866088867, 0.23914530873298645, 0.09590458124876022, -0.10267378389835358, -0.23532573878765106, -0.35451748967170715, -0.32006996870040894, 0.5919457077980042, -0.00912527646869421, -0.281247...
Whenever I set a indeterminate progress bar in a modal pop-up via PopUpManager, there is no progress displayed. If I add the same ProgressBar to the parent regularly or make the pop-up non-modal it works. Is there a reason why it doesn't work in modal pop-ups? and a way to make it work? Thanks. I have had some other d...
[ 0.3029963970184326, 0.22155152261257172, 0.12554173171520233, -0.21200066804885864, 0.04122105985879898, -0.1732608675956726, 0.6890542507171631, 0.20187729597091675, -0.27488788962364197, -0.6458768844604492, -0.5044625997543335, 0.520998477935791, -0.5517548322677612, 0.20146389305591583...
{ if(_progBar == null) { _progBar = new ProgressBar(); _progBar.width = 200;
[ -0.20375286042690277, -0.2506219744682312, 0.7454540133476257, -0.5233031511306763, 0.254169762134552, 0.42014747858047485, 0.34900420904159546, -0.28116026520729065, -0.3199770152568817, -0.5136362910270691, -0.28615230321884155, 0.26488587260246277, -0.2810130715370178, 0.159516304731369...
_progBar.indeterminate = true; _progBar.labelPlacement = 'center'; _progBar.setStyle("removedEffect", fade); _progBar.setStyle("addedEffect", fade); _progBar.setStyle("color", 0xFFFFFF);
[ -0.057525116950273514, -0.03936789184808731, 0.43562257289886475, -0.18413349986076355, 0.27935075759887695, 0.20698182284832, 0.488253116607666, -0.25011351704597473, 0.07002007961273193, -0.49346691370010376, -0.6636098623275757, 0.08826294541358948, -0.5921028256416321, 0.60544055700302...
_progBar.setStyle("borderColor", 0x000000); _progBar.setStyle("barColor", 0xf4b60f); _progBar.label = ""; } PopUpManager.addPopUp(_progBar,this,true);
[ 0.04915807768702507, -0.2850830554962158, 0.8185000419616699, 0.05397772789001465, 0.1940796822309494, 0.32710281014442444, 0.2829049825668335, -0.31078705191612244, -0.30553537607192993, -0.36430594325065613, -0.3914104104042053, 0.28709056973457336, -0.7845821380615234, 0.045938596129417...
PopUpManager.centerPopUp(_progBar); } ``` work around: ``` private function showLoading(e:Event = null):void { if(_progBar == null) { _progBar = new ProgressBar();
[ 0.022181561216711998, -0.27959051728248596, 0.5468604564666748, -0.2265370488166809, 0.10125373303890228, 0.1835222840309143, 0.20059427618980408, -0.024542341008782387, -0.3104386627674103, -0.3220584988594055, -0.6170525550842285, 0.3350830376148224, -0.7698858976364136, 0.18087118864059...
_progBar.width = 200; _progBar.indeterminate = true; _progBar.labelPlacement = 'center'; _progBar.setStyle("removedEffect", fade); _progBar.setStyle("addedEffect", fade);
[ -0.13645772635936737, -0.10312772542238235, 0.6074112057685852, -0.2438773363828659, 0.14791132509708405, 0.33502647280693054, 0.4014560580253601, -0.28989681601524353, -0.15535330772399902, -0.4511246979236603, -0.5024459362030029, 0.039074238389730453, -0.39396387338638306, 0.53640592098...
_progBar.setStyle("color", 0xFFFFFF); _progBar.setStyle("borderColor", 0x000000); _progBar.setStyle("barColor", 0xf4b60f); _progBar.label = ""; _progBar.mode
[ 0.28385913372039795, -0.2952449917793274, 0.9139469265937805, -0.018932579085230827, 0.18398769199848175, 0.11049436777830124, 0.4328788220882416, -0.4349229037761688, -0.34166985750198364, -0.4850099980831146, -0.2268088161945343, 0.3603053092956543, -0.6403608918190002, 0.197822347283363...
= ProgressBarMode.MANUAL; } PopUpManager.addPopUp(_progBar,this,true); PopUpManager.centerPopUp(_progBar); _progBar.setProgress(0, 0); } ```
[ -0.04346481338143349, -0.003393755527213216, 0.6682048439979553, -0.04270961880683899, 0.13479770720005035, 0.3718551695346832, 0.34465986490249634, -0.1614232063293457, -0.3201490342617035, -0.38594338297843933, -0.5664301514625549, 0.2499227374792099, -0.6234760880470276, -0.040803272277...
I got a script from the Net that computes the usage of datafiles and transaction log files from a certain SQL Server instance. The script works fine if there is not database name with whitespace or is not too long. However, if the database name has whitespace or is too long, I get the error message "Msg 911, Level 16, ...
[ 0.4996049404144287, 0.2545661926269531, -0.03123423084616661, 0.09483405947685242, 0.13318218290805817, -0.0843602642416954, 0.5176593065261841, -0.0802091732621193, -0.0005082387360744178, -0.671262800693512, 0.3572818636894226, 0.3435259461402893, -0.14872729778289795, -0.027879338711500...
DB" which has a whitespace. Please see the code below: ``` --Script to calculate information about the Data Files SET QUOTED_IDENTIFIER OFF SET NOCOUNT ON DECLARE @dbname varchar(50) declare @string varchar(250) set @string = '' create table #datafilestats ( Fileid tinyint, FileGroup1 tinyint, TotalExtent...
[ 0.18830455839633942, 0.040958695113658905, 0.21789169311523438, -0.15544629096984863, -0.6284576058387756, 0.3039024770259857, 0.3738679587841034, -0.7041377425193787, 0.13764864206314087, -0.3801860511302948, 0.13335031270980835, 0.40468916296958923, -0.3453749120235443, 0.375572413206100...
2)) DECLARE dbnames_cursor CURSOR FOR SELECT name FROM master..sysdatabases OPEN dbnames_cursor FETCH NEXT FROM dbnames_cursor INTO @dbname WHILE (@@fetch_status = 0) BEGIN set @string = 'use ' + @dbname + ' DBCC SHOWFILESTATS' insert into #datafilestats exec (@string) insert into #dbstats (dbname, Fil...
[ -0.2755703032016754, 0.12348904460668564, 0.47304221987724304, -0.17123889923095703, -0.2449597865343094, 0.20215553045272827, 0.14618328213691711, -0.8209050297737122, 0.010640725493431091, -0.49233800172805786, -0.34466642141342163, 0.5240787863731384, -0.3373563587665558, 0.059014726430...
#dbstats set FreeSizeinPercent = (TotalSizeinMB - UsedSizeinMB)/TotalSizeinMB*100 where dbname = @dbname truncate table #datafilestats FETCH NEXT FROM dbnames_cursor INTO @dbname END CLOSE dbnames_cursor DEALLOCATE dbnames_cursor drop table #datafilestats select * from #dbstats drop table #dbstats --Script to ...
[ -0.1553286910057068, 0.12688158452510834, 0.7381687760353088, -0.14584818482398987, -0.07798632234334946, 0.029085325077176094, 0.25178590416908264, -0.5407792925834656, -0.22878426313400269, -0.46433836221694946, -0.16440227627754211, 0.5453934073448181, -0.3721546530723572, -0.0190138220...
the commmand ``` use Test DB DBCC SHOWFILESTATS ``` and I got the same error message I mentioned above. But if I do the command ``` use [Test DB] DBCC SHOWFILESTATS ``` it works fine and i don't get the error message. My question is is there a way in the script to enclose the variable @dbname with square bracke...
[ 0.35407349467277527, 0.13601654767990112, 0.08845021575689316, -0.05117747560143471, -0.30814409255981445, -0.14516176283359528, 0.34404799342155457, -0.4916195273399353, 0.2811063230037689, -0.33188390731811523, 0.11017908155918121, 0.7026200890541077, -0.3298178017139435, 0.2648864686489...
Client wants to edit DotNetNuke skin and he is not a programmer, so I'm looking for some WYSIWYG skin editor. Either web or desktop solution will do. This is dificult. Depending on what your client wants to do, I find it the best option to have him play around with CSS only so admin -> portal settings -> CSS stylesheet...
[ 0.46888136863708496, -0.2645756006240845, 0.36054396629333496, -0.03425197675824165, -0.12628212571144104, -0.053331926465034485, 0.03101567178964615, 0.35318922996520996, -0.01476888544857502, -1.1678261756896973, 0.14041200280189514, 0.9066483974456787, -0.36885866522789, -0.157744109630...
I was about to refactor this following VB6 code (written by someone else). ``` Public Function GetValue(ID As Long) As Boolean On Error GoTo eh '' ... DAL Logic... eh_Exit: On Error GoTo 0 Exit Function eh: Resume eh_Exit End Function ``` What do you think the original author's intention was for the ...
[ -0.0580492839217186, 0.46686798334121704, 0.3797587752342224, -0.11811484396457672, -0.07369363307952881, -0.13368655741214752, 0.41113290190696716, -0.11821267008781433, -0.196492001414299, -0.3297964334487915, -0.3379881680011749, 0.4525802433490753, -0.14526183903217316, 0.2347752302885...
I have been using [Firebug](http://en.wikipedia.org/wiki/Firebug_%28software%29) for a while now and for the past month I can't get the JavaScript debugger to work. I mean, it will work sometimes, but it does random things 80% of the time. I don't think that it's just me because a friend of mine have the same problem. ...
[ 0.35437536239624023, 0.2953704297542572, 0.5133783221244812, -0.126157745718956, -0.3490774631500244, -0.41452479362487793, 0.3760582208633423, 0.12791697680950165, -0.2814866304397583, -0.8076665997505188, -0.008907086215913296, 0.4691092073917389, -0.4727011024951935, -0.0128142628818750...