text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
convert this to Lambda expression? Here's one way to go. This kind-of matches the above. ``` var subquery = E1 .GroupBy(e => e.Id) .Select(g => new { ID = g.Key, Cnt = g.Count()}); //.ToList(); var q = D1 .GroupJoin( subquery, c => c.ID, dp => dp.ID, (c, g) => new {ID = c.ID, Cnt=g.Any() ? g.F...
[ -0.15306322276592255, -0.11656757444143295, 0.3926675617694855, -0.39430856704711914, -0.08861170709133148, 0.3307899236679077, 0.062245678156614304, -0.4721972346305847, 0.16996540129184723, -0.5149644613265991, -0.15713363885879517, 0.7542008757591248, -0.5351632237434387, -0.12964530289...
(d, g) => new {ID = d.ID, Cnt = g.Count()} ); ``` For comparision, the query comprehension form is: ``` var q = from d in D1 join e in E1 on d.ID equals e.ID into g select new {ID = d.ID, Cnt = g.Count()}; ```
[ -0.3311188817024231, -0.17712219059467316, 0.4659084379673004, -0.26718759536743164, -0.021852687001228333, 0.24165108799934387, 0.05866145342588425, -0.527102530002594, -0.026107387617230415, -0.6151071190834045, -0.49954140186309814, 0.664052426815033, -0.29831817746162415, 0.16728186607...
My application reads an Excel file using VSTO and adds the read data to a `StringDictionary`. It adds only data that are numbers with a few digits (1000 1000,2 1000,34 - comma is a delimiter in Russian standards). What is better to check if the current string is an appropriate number? ``` object data, string key; // ...
[ 0.11962627619504929, 0.0238704364746809, 0.6394606232643127, -0.15199781954288483, 0.2791190445423126, 0.015430877916514874, 0.34078025817871094, -0.25520315766334534, 0.08986963331699371, -0.8208618760108948, -0.1110956221818924, 0.3980095684528351, -0.21940097212791443, 0.090628080070018...
algorithm issues. My questions: Which way is faster? Which is safer? And is it better to call `Convert.ToDouble(object)` or `Convert.ToDouble(string)` ? I did a quick non-scientific test in Release mode. I used two inputs: "2.34523" and "badinput" into both methods and iterated 1,000,000 times. Valid input: ``` Dou...
[ 0.1548190414905548, 0.01725984364748001, 0.14605973660945892, -0.011546539142727852, -0.08463228493928909, 0.35736846923828125, 0.9698629379272461, -0.4628009498119354, 0.08569668233394623, -0.7405633926391602, 0.3151816129684448, 0.5814512372016907, -0.33057546615600586, -0.22281922399997...
I don't care how basic the test is, in the invalid input case, `Convert.ToDouble`'s exception raising will ruin your performance. So, here's another vote for `TryParse` with some numbers to back it up.
[ 0.391959011554718, 0.22232647240161896, -0.13364504277706146, 0.17042553424835205, 0.07540314644575119, 0.16036081314086914, 0.27093830704689026, -0.35230913758277893, 0.26741841435432434, -0.4605214297771454, 0.09294455498456955, 0.474871426820755, 0.03675105795264244, -0.0336221493780612...
I was looking to explore the spatial capabilities of PostGIS or SQL Server 2008. Maybe Oracle as well. I was wondering if there are any good tutorials out there exploring the spatial capabilities of these database in particular or of this type of capability in general. Does anyone know of any? Book recommendations wo...
[ 0.3685344457626343, -0.057866837829351425, 0.23916786909103394, 0.09083115309476852, -0.4113062918186188, -0.04672081023454666, 0.1592833548784256, 0.028813561424613, -0.07765626162290573, -0.6738476157188416, 0.37302306294441223, 0.5233990550041199, 0.16585488617420197, 0.2974100410938263...
I have a very basic CSV file upload module working to bulk upload my user's data into my site. I process the CSV file in the backend with a python script that runs on crontab and then email the user the results of the bulk upload. This process works ok operationally, but my issue is with the format of the csv file. A...
[ 0.4213908314704895, 0.4228503704071045, 0.2532602846622467, -0.18194299936294556, -0.2739182412624359, -0.09439719468355179, 0.09070514142513275, 0.07313559204339981, -0.309225469827652, -0.6066725850105286, 0.052647221833467484, 0.500207781791687, -0.21318979561328888, 0.02076026424765587...
email column to be entitled "Email", but it may say "Primary Email", "Email Address"), or missing additional data columns. Any good examples of CSV upload functionality that is very permissive and user friendly? Also, how do I tell the user to export as CSV data? I'm importing address book information, so this data of...
[ 0.45206496119499207, 0.1576584279537201, 0.3843028247356415, 0.14738553762435913, -0.34423744678497314, -0.3512505888938904, 0.11871679127216339, 0.27029529213905334, -0.1953388750553131, -0.3479021489620209, 0.15262410044670105, 0.1566307246685028, -0.446113646030426, -0.03050167858600616...
might enter. I would have it evolve as you go and slowly build a list of one-one relations based on what your user uploads. Or! Check the column headers and make sure it's properly formatted and advise them how to fix it if it is not. > "Primary Email" not recognized, our > schema is "Email", "Address", "Phone", > ...
[ 0.3085930645465851, 0.028271352872252464, 0.5679551362991333, 0.130379319190979, -0.21492615342140198, -0.13684669137001038, 0.16534659266471863, 0.04062952473759651, 0.03951188921928406, -0.8656278252601624, -0.23626333475112915, 0.44587650895118713, -0.22050900757312775, 0.04300346225500...
Could some one explain this to me i am not familiar with preg\_match\_all filters, this code works fine except it does not return a negative value if one of the latitudes and longitudes is negative. ``` if ( preg_match_all( "#<td>\s+-?(\d+\.\d+)\s+</td>#", $output, $coords ) ) { list( $lat, $long ) = $coords[1]; ...
[ 0.16246384382247925, -0.010795671492815018, 0.6306015253067017, -0.15483129024505615, 0.17905493080615997, 0.01330791786313057, 0.2618865668773651, -0.4989892244338989, -0.06604675203561783, -0.46311700344085693, -0.07234424352645874, 0.3620412051677704, -0.33445778489112854, 0.03894764184...
$output, $coords ) ) { ``` See the [official documentation](http://php.net/manual/en/regexp.reference.php) for details about preg in php and [php.net/preg\_match\_all](http://php.net/preg_match_all) for the details of `preg_match_all`.
[ 0.0031174207106232643, -0.010644737631082535, 0.3238148093223572, -0.2724289894104004, 0.06503292173147202, -0.16342514753341675, 0.0857076644897461, -0.16328153014183044, 0.03939215838909149, -0.5312731862068176, -0.3490753769874573, 0.7301260828971863, -0.6349902749061584, -0.08530990034...
I am using a jquery click function: > **Button code** ``` <input type="button" id="myButtton"> ``` > **Jquery code** ``` $(document).ready(function () { $("#myButtton").click(function () { alert("Mybutton"); }); }); ``` This code works in Internet Explorer but does not work in Firefox. What am I...
[ 0.3424394130706787, 0.26185616850852966, 0.6185904741287231, -0.3413087725639343, 0.35754624009132385, -0.06482034176588058, 0.483247309923172, -0.3495646119117737, -0.11140976846218109, -0.5604361295700073, -0.35182684659957886, 0.646537721157074, -0.5034576654434204, 0.03868407756090164,...
I am trying to replce the follwing code that works fine ``` TcpClient oC = new TcpClient(ip, port); oC = new TcpClient(ip, port); StreamReader messageReader; try { messageReader = new StreamReader(oC.GetStream(), Encoding.ASCII); reply = messageReader.ReadLine(); } ``` with ``` try { using (messageReader ...
[ 0.049549348652362823, 0.07033892720937729, 0.6250198483467102, -0.3020893335342407, 0.2750625014305115, 0.04715988039970398, 0.4833197593688965, -0.1429249793291092, -0.19137150049209595, -0.7588647603988647, -0.4042970538139343, 0.6139918565750122, -0.5575540661811829, 0.22773781418800354...
the first time is works fine, it is only after that that I get that Exception, I played around a bit with it and now I get: > Cannot access a disposed > object.\r\nObject name: > 'System.Net.Sockets.Socket'. Just reiterating my comment on Jareds answer. Ali Commented: > I have oc.Connect before this and it > work...
[ 0.15782220661640167, -0.3624589145183563, 0.19992800056934357, 0.0030496716499328613, -0.1332588493824005, -0.08733723312616348, 0.22717610001564026, 0.13111309707164764, -0.29546791315078735, -0.9217411875724792, -0.10763329267501831, 0.5963225960731506, -0.6088557243347168, 0.07264824956...
Stream you initiate > it with. In this instance, the > NetworkStream of the TcpClient. Theres > no need to dispose of the StreamReader > here"
[ -0.006927437614649534, -0.3407425880432129, 0.5238758325576782, 0.15372535586357117, 0.20856164395809174, -0.4928320348262787, -0.08200835436582565, -0.020344668999314308, 0.19793203473091125, -0.726229190826416, -0.06728465110063553, 0.4963163137435913, -0.32618197798728943, 0.18766772747...
I have a loop written in C++ which is executed for each element of a big integer array. Inside the loop, I mask some bits of the integer and then find the min and max values. I heard that if I use SSE instructions for these operations it will run much faster compared to a normal loop written using bitwise AND , and if-...
[ 0.2252485603094101, 0.12533852458000183, -0.09458210319280624, -0.17937809228897095, 0.0319921150803566, 0.3076421320438385, 0.5132994055747986, -0.29670000076293945, -0.06770092993974686, -0.5263411402702332, 0.020253172144293785, 0.3338545560836792, -0.46800196170806885, -0.0093590114265...
specific. You can look up which processor supports which SSE version on wikipedia. 2. If SSE code will be faster or not depends on many factors: The first is of course whether the problem is memory-bound or CPU-bound. If the memory bus is the bottleneck SSE will not help much. Try simplifying your integer calculations,...
[ -0.09535716474056244, 0.15882810950279236, -0.07501336187124252, 0.27203842997550964, -0.36953333020210266, -0.3126610219478607, 0.23929017782211304, -0.051120858639478683, -0.3963927924633026, -0.8119456768035889, -0.027421094477176666, 0.6136593818664551, -0.47105032205581665, -0.3625712...
up to date, you'll want it as a comment and to check the correctness of your assembler code. 4. Think about using a library like the IPP, that implements common low-level SIMD operations optimized for various processors.
[ 0.24052514135837555, -0.21315695345401764, 0.1221184954047203, 0.19988666474819183, -0.038171373307704926, -0.4124905467033386, -0.2766014337539673, 0.08859557658433914, -0.13776105642318726, -0.6140815615653992, -0.21913228929042816, 0.5080739259719849, -0.2278757244348526, -0.35115996003...
I would like to write a function which takes action if a give buffer name already exists. For example: ``` (if (buffer-exists "my-buffer-name") ; do something ) ``` Does elisp have a function that will check the for the existence of a buffer similar to how my made up "buffer-exists" function does? Thanks From ...
[ 0.05689583718776703, -0.06252698600292206, 0.11805280297994614, -0.0688517615199089, -0.11767295747995377, -0.11432748287916183, 0.09403413534164429, 0.037558674812316895, 0.053011395037174225, -0.5556338429450989, -0.046565908938646317, 0.3746236264705658, -0.3581511080265045, 0.160303741...
is no live buffer named name. If name starts with a space, the new buffer does not keep undo information. If name is a buffer instead of a string, then it is the value returned. The value is never nil. ```
[ -0.10049953311681747, 0.1244402527809143, 0.11966092139482498, -0.13805504143238068, 0.1633378565311432, -0.08487503230571747, 0.2554895579814911, 0.2395773082971573, -0.3165191113948822, -0.431316614151001, -0.37526342272758484, 0.13140444457530975, -0.34092018008232117, 0.532659590244293...
I would like some code to execute at the "preload" stage of my usercontrol's lifecycle. However the preload event is only available on the Page object. So, I added the following method to my usercontrol: ``` Private Sub Page_PreLoad(ByVal sender As Object, ByVal e As System.EventArgs) Handles Page.PreLoad ``` Howev...
[ -0.06868679821491241, 0.09203781187534332, 0.6051231622695923, -0.04047675058245659, -0.2875392436981201, -0.24723881483078003, 0.4216133952140808, -0.03283780813217163, -0.02133357897400856, -0.7041909694671631, -0.31780266761779785, 0.4869796931743622, -0.18897852301597595, 0.30871015787...
to do it in VB... Anyway, in your UserControl's Init you could explicitly assign your Page\_PreLoad method as the handler for the PreLoad event of the UserControl's Page property instead of using the "Handles" syntax in the method declaration. What your example is doing is trying to assign an event handler to an event...
[ 0.4092189073562622, -0.20713520050048828, 0.24568642675876617, -0.00556297367438674, -0.19843509793281555, -0.37027910351753235, 0.15159521996974945, -0.3330715596675873, -0.25358670949935913, -0.4083479940891266, -0.04387789964675903, 0.3627029359340668, -0.7394005060195923, 0.24142917990...
event to which you can assign a handler. Anyway, this compiles and approaches what it sounds like you are looking for (using C-style comments to preserve WMD syntax highlighting). ``` Protected Overrides Sub OnInit(ByVal e As System.EventArgs) // this assigns Page_PreLoad as the event handler // for the PreLo...
[ -0.08278273046016693, -0.20632945001125336, 0.20298783481121063, 0.06321623921394348, -0.01193803921341896, -0.20019005239009857, 0.062459081411361694, -0.37278467416763306, -0.14208835363388062, -0.5371679663658142, -0.22984348237514496, 0.3757174611091614, -0.6219109892845154, 0.14725212...
there may be a better way with one of the different events in the page lifecycle. However, building on what he said, this should work because the control's OnInit is called in which the event handler assignment is made, then the Page's OnLoad event is raised and then the event handler within the control is executed.
[ -0.12479091435670853, -0.40912747383117676, 0.33631202578544617, 0.3934592306613922, 0.0010317217092961073, -0.04009518399834633, 0.025560617446899414, -0.15593187510967255, -0.2286597490310669, -0.6739405393600464, -0.22828204929828644, 0.36258459091186523, -0.2412438988685608, -0.0089222...
What is the easiest and most graceful way to auto-submit an AJAX form when a drop-down box's option is selected? I'm creating an administration page where the admin can modify user permissions (where "permissions" is stored as an integer), and I would like the "permissions" field to be a drop-down box that automaticall...
[ 0.2703973054885864, 0.009766067378222942, 0.12717387080192566, 0.24345478415489197, -0.043280210345983505, -0.1984637975692749, -0.10638885945081711, -0.1314806193113327, -0.04718392714858055, -0.7871634364128113, -0.02098301239311695, 0.49686330556869507, -0.3017013370990753, -0.311112344...
on. Feel free to point out any tangential suggestions or anything else...I'm relatively new to Rails, and only just reaching the point where I can write code without constantly referencing others' work. ``` <!-- This is the "index" view, by the way. --> <% for membership in @story.memberships %> <% form_for members...
[ 0.4642556309700012, 0.04943336918950081, 0.2577439546585083, 0.14656679332256317, 0.13688690960407257, -0.2976345419883728, 0.17638806998729706, -0.026782622560858727, -0.32253381609916687, -0.5682148337364197, -0.19542111456394196, 0.814495325088501, -0.3607006072998047, -0.22228924930095...
JS approach: ``` <% remote_form_for membership do |f| %> <%= f.select :permissions, [['none', 0], ['admin', 9]], {}, :onchange => 'this.form.submit()' %> <% end %> ``` The other way would be something like this, and would eschew the form builder (and this may have a couple syntax errors): ``` <%= select_tag(:pe...
[ -0.10226547718048096, -0.09409238398075104, 0.4299067556858063, -0.22395750880241394, -0.1397663950920105, -0.03671959415078163, 0.2963047921657562, -0.15339916944503784, -0.06637895852327347, -0.649795651435852, -0.10309073328971863, 0.5796532034873962, -0.2635517418384552, -0.15855327248...
I'm dealing with a Postgres table (called "lives") that contains records with columns for time\_stamp, usr\_id, transaction\_id, and lives\_remaining. I need a query that will give me the most recent lives\_remaining total for each usr\_id 1. There are multiple users (distinct usr\_id's) 2. time\_stamp is not a uniq...
[ 0.049482312053442, -0.09647993743419647, 0.6060383915901184, 0.09518449753522873, 0.45979419350624084, 0.26651203632354736, -0.04885271564126015, -0.2774434983730316, -0.38685494661331177, -0.6741927862167358, 0.13284410536289215, 0.2502945363521576, -0.45497193932533264, 0.681094408035278...
| 1 | 1 09:00 | 4 | 2 | 2 10:00 | 2 | 3 | 3 10:00 | 1 | 2
[ 0.10088083148002625, 0.3166366219520569, 0.2902737259864807, -0.22061844170093536, -0.0003438678977545351, 0.26576489210128784, 0.717060923576355, -0.24954240024089813, 0.0665140450000763, -0.4493909478187561, -0.2768858075141907, 0.19291454553604126, -0.21704091131687164, 0.01538022141903...
| 4 11:00 | 4 | 1 | 5 11:00 | 3 | 1 | 6 13:00 | 3 | 3 | 1 ``` As I
[ 0.19106543064117432, 0.5270813703536987, 0.5859823822975159, -0.5661681890487671, -0.09874118864536285, 0.355469673871994, 0.8211076259613037, -0.19375906884670258, -0.10921455174684525, -0.526435375213623, -0.07745793461799622, 0.39904147386550903, -0.08768224716186523, 0.5057185888290405...
will need to access other columns of the row with the latest data for each given usr\_id, I need a query that gives a result like this: ``` time_stamp|lives_remaining|usr_id|trans_id ----------------------------------------- 11:00 | 3 | 1 | 6 10:00 | 1 | 2 | 4 13:00 |...
[ 0.19063417613506317, 0.15729662775993347, 1.0209285020828247, 0.17207787930965424, 0.6715616583824158, 0.11077050119638443, 0.12815561890602112, -0.41564667224884033, -0.2534450888633728, -0.7349679470062256, -0.030739620327949524, 0.4853181838989258, -0.08134778589010239, 0.33439862728118...
| 3 | 1 ``` As mentioned, each usr\_id can gain or lose lives, and sometimes these timestamped events occur so close together that they have the same timestamp! Therefore this query won't work: ``` SELECT b.time_stamp,b.lives_remaining,b.usr_id,b.trans_id FROM (SELECT usr_id, max(time_stamp) AS max_t...
[ 0.27816343307495117, 0.039251647889614105, 0.656090259552002, -0.22297212481498718, 0.47087225317955017, 0.3117179870605469, -0.17350411415100098, -0.7236096858978271, -0.3497781455516815, -0.715514063835144, 0.007875415496528149, 0.4463053345680237, -0.5536613464355469, 0.1734585165977478...
to pass that information from the subquery to the main query that will provide the data for the other columns of the appropriate rows. This is the hacked up query that I've gotten to work: ``` SELECT b.time_stamp,b.lives_remaining,b.usr_id,b.trans_id FROM (SELECT usr_id, max(time_stamp || '*' || trans_id) ...
[ 0.26108479499816895, 0.01308465376496315, 0.6981831789016724, 0.042373333126306534, 0.24163104593753815, 0.1611369401216507, 0.11121115833520889, -0.2791805863380432, -0.36845582723617554, -0.8039529919624329, 0.21135668456554413, 0.36815011501312256, -0.4642317295074463, 0.174937963485717...
within a query, a self join, and it seems to me that it could be much simpler by grabbing the row that MAX found to have the largest timestamp and trans\_id. The table "lives" has tens of millions of rows to parse, so I'd like this query to be as fast and efficient as possible. I'm new to RDBM and Postgres in particula...
[ 0.24002128839492798, 0.12273476272821426, 0.2412266880273819, -0.003281045239418745, 0.0005469197640195489, -0.0911739319562912, 0.21216878294944763, -0.41146185994148254, -0.20099954307079315, -0.6043181419372559, 0.2992284595966339, 0.505849301815033, -0.22397692501544952, -0.12143263220...
Oracle analytic function? Any advice on accessing related column information used by an aggregate function (like MAX), creating indexes, and creating better queries would be much appreciated! P.S. You can use the following to create my example case: ``` create TABLE lives (time_stamp timestamp, lives_remaining integ...
[ -0.04571479186415672, 0.1798654943704605, 0.008021038956940174, 0.24178725481033325, 0.14687417447566986, 0.33084917068481445, -0.13038310408592224, -0.24877022206783295, 0.08190488815307617, -0.231562539935112, 0.2607508897781372, 0.6097943186759949, -0.23629634082317352, -0.3408911228179...
values ('2000-01-01 11:00', 4, 1, 5); insert into lives values ('2000-01-01 11:00', 3, 1, 6); insert into lives values ('2000-01-01 13:00', 3, 3, 1); ``` On a table with 158k pseudo-random rows (usr\_id uniformly distributed between 0 and 10k, `trans_id` uniformly distributed between 0 and 30), *By query cost, below,...
[ -0.1575426459312439, 0.03164874017238617, 0.37521055340766907, -0.06649582833051682, 0.24672073125839233, 0.5201740860939026, 0.1135711818933487, -0.3874107003211975, -0.009060915559530258, -0.6533365249633789, -0.06837457418441772, 0.40519994497299194, -0.28522881865501404, 0.087529167532...
745k (!), and completes in 1.3 seconds (given a compound index on (`usr_id`, `trans_id`, `time_stamp`)) * Bill's query has a cost estimate of 93k, and completes in 2.9 seconds (given a compound index on (`usr_id`, `trans_id`)) * **Query #1 below** has a cost estimate of 16k, and completes in 800ms (given a compound ind...
[ -0.05524129047989845, -0.1050465926527977, 0.9335508942604065, 0.17930983006954193, 0.12645921111106873, 0.6036683320999146, 0.210153266787529, -0.6727520227432251, -0.4349343478679657, -0.6307066679000854, -0.2028827965259552, 0.20155473053455353, -0.06378022581338882, 0.2659399211406708,...
query #2 (given a compound index on (`usr_id`, `time_stamp`, `trans_id`)); it has the advantage of scanning the `lives` table only once and, should you temporarily increase (if needed) [work\_mem](http://www.postgresql.org/docs/current/static/runtime-config-resource.html#GUC-WORK-MEM) to accommodate the sort in memory,...
[ -0.5498158931732178, -0.15131640434265137, 0.4627818465232849, -0.07856318354606628, -0.28046560287475586, -0.03482242301106453, 0.09086830914020538, -0.265479177236557, -0.1853831708431244, -0.7776243686676025, -0.1874484121799469, 0.31338489055633545, -0.5189916491508484, -0.215644419193...
hand, keep in mind that cost estimate is exactly that, an estimate. The best query execution time is obtained when running on a dedicated database without load (e.g. playing with pgAdminIII on a development PC.) Query time will vary in production based on actual machine load/data access spread. When one query appears ...
[ -0.14742863178253174, 0.03145216777920723, 0.08460340648889542, 0.10083501040935516, -0.02150151878595352, 0.25708597898483276, 0.06119405850768089, -0.241072416305542, -0.27475088834762573, -0.7990191578865051, 0.11737658083438873, 0.5628504753112793, 0.15862831473350525, -0.1180967390537...
(e.g. the RDBMS cache and filesystem cache won't be thrashed by concurrent queries and/or filesystem activity) then the query time you obtained in standalone (e.g. pgAdminIII on a development PC) mode will be representative. If there is contention on the production system, query time will degrade proportionally to the ...
[ -0.0014122232096269727, 0.026732275262475014, 0.2130536288022995, 0.21946752071380615, -0.11226581782102585, 0.20300649106502533, 0.1621948927640915, -0.4029124677181244, -0.24258312582969666, -0.6741149425506592, -0.29252588748931885, 0.5723521113395691, -0.11463003605604172, 0.2059676945...
cost | time (dedicated machine) | time (under load) | -------------------+--------------------------+-----------------------+ some query A: 5k | (all data cached) 900ms | (less i/o) 1000ms | some query B: 50k | (all data cached) 900ms | (lots of i/o) 10000ms | ``` **Do not forget to run `ANALYZE lives` o...
[ 0.15474340319633484, 0.3502630293369293, 0.2515128552913666, 0.30791106820106506, 0.3113175928592682, 0.005057177040725946, 0.10331622511148453, -0.33110520243644714, -0.18802382051944733, -0.6620190143585205, -0.22564378380775452, 0.34842562675476074, 0.02016528882086277, 0.05633261054754...
one nested index lookup into lives - on my machine -- the latter query plan was selected given my memory settings and -- histogram SELECT l1.* FROM lives AS l1 INNER JOIN ( SELECT usr_id, MAX(time_stamp) AS time_stamp_max FROM lives GROUP BY usr_id ) AS l2 ON l1.usr_id...
[ -0.03353782743215561, -0.22040393948554993, 0.36880797147750854, -0.037802454084157944, 0.3261876702308655, 0.5931532382965088, -0.14221039414405823, -0.46279701590538025, -0.24312974512577057, -0.6714985370635986, 0.3056216835975647, 0.4910636246204376, -0.2730444371700287, -0.39301857352...
usr_id, time_stamp, MAX(trans_id) AS trans_max FROM lives GROUP BY usr_id, time_stamp ) AS l3 ON l1.usr_id = l3.usr_id AND l1.time_stamp = l3.time_stamp AND l1.trans_id = l3.trans_max ``` **Query #2** ``` -- cheat to obtain a max of the (time_stamp, trans_id) tuple in...
[ 0.016950009390711784, -0.10899540781974792, 0.6558483242988586, -0.03745097294449806, 0.28925004601478577, 0.8281261920928955, -0.005646293051540852, -0.31307539343833923, -0.4828360676765442, -0.703770637512207, -0.15438149869441986, 0.38113677501678467, -0.2501309812068939, -0.0142383361...
the least I/O intensive operation even in case of great scarcity -- of memory (least reliant on cache for the best performance) SELECT l1.* FROM lives AS l1 INNER JOIN ( SELECT usr_id, MAX(ARRAY[EXTRACT(EPOCH FROM time_stamp),trans_id]) AS compound_time_stamp FROM lives GROUP BY ...
[ -0.29756298661231995, -0.2487219274044037, 0.7768014669418335, -0.33354315161705017, 0.22989438474178314, 0.3591793477535248, 0.3173065781593323, -0.0622929222881794, -0.06811248511075974, -0.8341679573059082, -0.16300946474075317, 0.521134614944458, -0.27603837847709656, 0.009848807007074...
supports [Window Function](http://www.postgresql.org/docs/8.4/static/functions-window.html#FUNCTIONS-WINDOW-TABLE) meaning you can write something as simple and efficient as: **Query #3** ``` -- use Window Functions -- performs a SINGLE scan of the table SELECT DISTINCT ON (usr_id) last_value(time_stamp) OVER wnd, ...
[ -0.19384586811065674, -0.18338283896446228, 0.7288724780082703, 0.03870723024010658, 0.0506267324090004, 0.011938707903027534, -0.09050720185041428, -0.22534728050231934, -0.3400975167751312, -0.711627185344696, -0.25861310958862305, 0.4368242621421814, -0.1589677333831787, -0.019830685108...
I have an old project in WSAD 5.1.2 with a WAS4 server configuration that's in a .wsi-file. If I double click it I get the server configuration editor and on the environment tab there is a System Properties section with some name-value pairs. Now I have opened the same project in RAD 7.5.1. Where can i input the same ...
[ 0.26355236768722534, 0.30666735768318176, 0.2674151659011841, -0.2874022126197815, -0.21713872253894806, 0.0345996618270874, 0.080632284283638, 0.024182021617889404, -0.12056996673345566, -1.0542829036712646, 0.12717264890670776, 0.5009414553642273, -0.21616731584072113, 0.2908039391040802...
Machine > Custom properties
[ 0.16994372010231018, 0.010238691233098507, -0.03645245358347893, 0.2596004605293274, -0.10512382537126541, 0.19595184922218323, 0.22760938107967377, -0.19426673650741577, -0.18762944638729095, -1.1092368364334106, -0.06552942097187042, 0.42304736375808716, -0.23418816924095154, 0.246591389...
I'm currently using the ASP.NT MVC RC1 to implement a basic timesheet application. I'd like to follow the DRY principles but finding it difficult in one particular case: One of my views, a partial view actually, has a number of textboxes that represent the number of hours spent on a particular task, one textbox per da...
[ 0.37099140882492065, 0.07330388575792313, 0.4425095021724701, -0.1539379060268402, -0.1104094535112381, 0.18171080946922302, 0.1156575083732605, -0.0900978371500969, -0.3482556939125061, -0.8382229804992676, 0.15861272811889648, 0.6496137380599976, 0.11022078990936279, 0.0370323620736599, ...
not cause a full postback, only an AJAX postback that does not do anything with the results (the postback updates the value on the DB but the return ActionResult is an EmptyResult as there is nothing I need to update on the UI). Currently I have the controller create a view that is populated with the "total" for that ...
[ 0.07404941320419312, 0.013852068223059177, 0.5084851384162903, -0.18715837597846985, -0.4854983687400818, 0.08477549254894257, 0.3634178638458252, -0.3590755760669708, -0.2342502921819687, -0.5420322418212891, 0.05891978368163109, 0.6158653497695923, -0.15046754479408264, 0.257746785879135...
total is calculated, I have to change it in two places! AHH! NOT DRY! So, how can I do this? The only answer that comes to me so far is to scrap the javascript code that calculates the total on the UI and instead have the AJAX postback return the new "total" for that view. Are there other approaches? Having the logi...
[ 0.5005282759666443, -0.216410830616951, 0.14055532217025757, -0.0174881499260664, -0.30299118161201477, 0.1083751767873764, -0.04963505640625954, -0.0791735127568245, -0.33990171551704407, -0.6972800493240356, 0.44366273283958435, 0.5633115768432617, 0.1359354555606842, -0.0104389451444149...
end of the day if you change one you have to change both. I think it's a tradeoff between form and function. How important is it to have the javascript? If the AJAX call is just too slow (a real possibility) then this may be the time to realize that the DRY principle is a guiding principle, not a law.
[ 0.4776509404182434, -0.016560513526201248, 0.27204856276512146, 0.2093358039855957, 0.11449199169874191, -0.4229496121406555, 0.3190773129463196, 0.1295354813337326, 0.03289153426885605, -0.7837442755699158, 0.19581158459186554, 0.6125701069831848, -0.09209588170051575, -0.0032480263616889...
I have a linq object that I'd like to "retire" when certain aspects are changed and the `Save()` method is called. The database does this by having a Terminated column which when set causes the object to be ignored on subsequent queries. I'd like to do this transparently so for example: ``` DataContext db = new DataCo...
[ 0.2677486538887024, 0.22062820196151733, 0.7562679052352905, -0.27105793356895447, 0.19473856687545776, 0.011349755339324474, 0.08327122777700424, -0.40757834911346436, 0.11348003149032593, -0.362371027469635, -0.23817700147628784, 0.525983989238739, -0.19825467467308044, 0.481950581073761...
in the process of saving I've created a duplicate object and replaced bar with it. Essentially inside the save method I want to set `this = newObj;`. Is what I want possible or am I going about this the wrong way? You can change references (or more precisely the variables that hold them) if they are passed by reference...
[ 0.1566811203956604, 0.2418135106563568, 0.5899251103401184, -0.2399870753288269, 0.36264801025390625, 0.2870807945728302, 0.4034947454929352, -0.11709044128656387, -0.4454681873321533, -0.7342332601547241, -0.0018804303836077452, 0.5464653372764587, -0.804173469543457, 0.2224225103855133, ...
don't know where they are referenced. The Foo object doesn't know about any references to it. If you want the exact behaviour you outlined in your code, the only way to achieve this, is to change the *contents* of your Foo instance, i.e., overwrite each and every field with the updated values. Hope this helps.
[ 0.4825819730758667, 0.3123593032360077, 0.30035221576690674, -0.267671138048172, 0.0549844391644001, -0.11303859204053879, 0.6060329675674438, 0.30618441104888916, -0.22950619459152222, -0.4338701367378235, -0.02782035619020462, 0.7309122681617737, -0.5859884023666382, 0.09613063931465149,...
Despite closing streams in finally clauses I seem to constantly run into cleaning up problems when using Java. File.delete() fails to delete files, Windows Explorer fails too. Running System.gc() helps sometimes but nothing short of terminating the VM helps consistently and that is not an option. Does anyone have any ...
[ 0.2903481125831604, 0.09971179813146591, 0.08879483491182327, -0.002839513588696718, -0.37521082162857056, -0.14950837194919586, 1.035788893699646, -0.24123647809028625, -0.2875698208808899, -0.7429897785186768, -0.082146055996418, 0.8009904026985168, -0.5538389086723328, -0.06097337603569...
a separate process to encode the file, but that seems unlikely to cause this since ProcessExplorer clearly indicates that java.exe has a RW lock on the file and LAME terminates fine. UPDATE: I am working with the assumption that there is a missing close() or a close() that does not get called somewhere in my code or e...
[ 0.4256895184516907, 0.13794057071208954, 0.2363458126783371, -0.04683820158243179, -0.03499564155936241, -0.18702207505702972, 0.6210630536079407, -0.14785322546958923, -0.3891603946685791, -0.6269102692604065, -0.0774189829826355, 0.4580392837524414, -0.12924057245254517, 0.07839857041835...
separate program, run it and see if the issue still happens? My guess is that there is some other place in the code that does `new FileInputStream(path);` and does not close the stream properly. You might be just seeing the results here when you try to delete the file.
[ 0.4827093183994293, -0.16966287791728973, 0.19745789468288422, 0.1287122368812561, 0.1911028027534485, -0.19278012216091156, 0.3465471565723419, 0.1628500521183014, -0.28564709424972534, -0.3941298723220825, 0.11965657770633698, 0.6170946955680847, -0.24588419497013092, 0.18492554128170013...
I tried `FeedbackReporter.framework` from [vafer.org](http://vafer.org/projects/feedbackreporter/) but it doesn't want to work. :-/ So any suggestions for great Cocoa feedback frameworks? Try this one from Jon Rentzsch: <http://github.com/rentzsch/jrfeedbackprovider/tree> It's a good start.
[ 0.38399070501327515, 0.21336883306503296, -0.07993479073047638, 0.08919557183980942, -0.24923233687877655, -0.2762480676174164, 0.013625333085656166, 0.2885628044605255, -0.1546839326620102, -0.6121112704277039, 0.2854490280151367, 0.32032737135887146, -0.18474873900413513, -0.025975482538...
What are some of the disadvantages of using an external JS file over including the JS as a part of the ASPX page? I need to make an architectural decision and heard from coworkers that external JS does not play nice sometimes. The only downside that I am aware of is the extra HTTP request needed. That downside goes aw...
[ 0.4124073088169098, 0.23793058097362518, 0.23025859892368317, -0.1970718801021576, -0.2615157961845398, -0.08401022106409073, 0.2663004696369171, 0.1466604620218277, -0.19704508781433105, -0.6693325638771057, -0.050350259989500046, 0.4507608115673065, -0.17695561051368713, -0.0576453097164...
How do I "turn on" cascading saves using AutoMap Persistence Model with Fluent NHibernate? As in: I Save the Person and the Arm should also be saved. Currently I get > *"object references an unsaved transient instance - save the transient instance before flushing"* ``` public class Person : DomainEntity { public ...
[ -0.061747919768095016, -0.10802379995584488, 0.6763636469841003, -0.11748658865690231, 0.08420833945274353, 0.11827956885099411, 0.20487797260284424, -0.2913896143436432, -0.1577933430671692, -0.5925979018211365, 0.058675121515989304, 0.6377657055854797, 0.03459498658776283, 0.142054572701...
IHasOneConvention, IHasManyConvention, IReferenceConvention { public bool Accept( IOneToOnePart target ) { return true; } public void Apply( IOneToOnePart target ) { target.Cascade.All(); } public bool Accept( IOneToManyPart target ) { return true; } pu...
[ 0.20909801125526428, 0.01635749265551567, 0.23554211854934692, -0.20688214898109436, -0.08726741373538971, 0.3205038607120514, 0.5644463300704956, -0.9542698860168457, 0.27806752920150757, -0.5456360578536987, 0.11364622414112091, 0.6173599362373352, -0.7709441184997559, 0.171333909034729,...
target.Cascade.All(); } public bool Accept( IManyToOnePart target ) { return true; } public void Apply( IManyToOnePart target ) { target.Cascade.All(); } } ```
[ 0.23237484693527222, 0.13276433944702148, 0.3543078303337097, -0.279389351606369, -0.2600388526916504, -0.005426342599093914, 0.7860193252563477, -0.6756671071052551, 0.05369486287236214, -0.5536400079727173, -0.0501827597618103, 0.3557400107383728, -0.7246731519699097, 0.28048381209373474...
I'm trying to print types like `off_t` and `size_t`. What is the correct placeholder for `printf()` *that is portable*? Or is there a completely different way to print those variables? You can use `z` for size\_t and `t` for ptrdiff\_t like in ``` printf("%zu %td", size, ptrdiff); ``` But my manpage says some older...
[ 0.285042941570282, 0.04541395604610443, 0.1911691427230835, -0.18276642262935638, -0.07194501906633377, 0.0781131386756897, -0.02719913423061371, 0.04851297661662102, -0.15676727890968323, -0.7167638540267944, -0.08821770548820496, 0.5629706978797913, -0.22243060171604156, 0.15961571037769...
Personally, I would just cast the values to `unsigned long` or `long` like another answer recommends. If you use C99, then you can (and should, of course) cast to `unsigned long long` or `long long` and use the `%llu` or `%lld` formats respectively.
[ 0.5248925089836121, 0.1733992099761963, 0.09094000607728958, 0.027035517618060112, 0.17325995862483978, -0.025614796206355095, -0.16558530926704407, 0.1424381583929062, 0.004375977907329798, -0.5048090815544128, -0.15544043481349945, 0.4721909463405609, 0.2343018800020218, 0.14505855739116...
How can I use the UIWebView in Xcode so that when it loads up pages it DOESN'T download the images (to cause a faster loading page)? `UIWebView` is a pale, poor little shadow of WebKit's full `WebView`, for which this is easy. `-webView:shouldStartLoadWithRequest:navigationType:` only gets called for navigation. It doe...
[ 0.208090141415596, -0.015691429376602173, 0.7300630211830139, -0.024555573239922523, -0.1300535798072815, -0.292906254529953, 0.5028128027915955, -0.04192770645022392, 0.025265326723456383, -0.899204432964325, -0.10767264664173126, 0.4885135889053345, -0.32027262449264526, 0.29385131597518...
any IMG tags and modify them to whatever placeholder you want. Then you will load the resulting string into the `UIWebView` using `-loadHTMLString:baseURL:`. Of course parsing the HTML is not a trivial task on iPhone, and Javascript loaders are going to give you trouble, so this isn't a perfect answer, but it's the be...
[ 0.21960178017616272, 0.031639400869607925, 0.522783100605011, -0.08867734670639038, -0.10972875356674194, -0.19957920908927917, 0.3807646632194519, -0.04461131617426872, -0.07240668684244156, -0.6387461423873901, -0.22443422675132751, 0.3870120942592621, -0.5267626047134399, -0.30735352635...
I'm interested in hearing what others do when, in a given application, some pages need to be secure and others don't. Take any solution off the table that requires a separate domain/subdomain. In this case, all calls, secure or insecure, will link to the same domain. I see a few options: 1. The ham-fisted, just secure...
[ 0.18651799857616425, 0.10750076919794083, 0.3711795508861542, 0.22186096012592316, -0.05391591414809227, -0.49635520577430725, 0.1447763592004776, 0.03796311840415001, -0.24489489197731018, -0.5046272873878479, -0.32551512122154236, 0.43557068705558777, -0.42867740988731384, 0.115253731608...
it's pointing and applying the correct protocol. In this solution, all links would have to be fully qualified. 4. A laissez-fair version of the application-centric approach where links to secure pages are fully qualified and links to other pages are not. In this case, the protocol would be inherited for pages not handl...
[ 0.3048434555530548, 0.10383967310190201, 0.6492712497711182, 0.30346566438674927, -0.21796444058418274, -0.37768805027008057, 0.2578248381614685, -0.46542268991470337, -0.039102453738451004, -0.3883008062839508, -0.06978827714920044, 0.6590324640274048, 0.04741848632693291, -0.309818387031...
of information. In my network config, all SSL-handling is taken care of at the load balancer level. The LB, then, communicates with the web server cluster via port 80. As a result, the applications themselves have no idea whether traffic arrived securely. All they see is a port 80 connection. Thanks. You're actually t...
[ 0.021938849240541458, -0.18760982155799866, 0.7204355001449585, 0.15517033636569977, 0.24447856843471527, -0.24996618926525116, 0.2141145020723343, 0.005228135269135237, -0.5528393387794495, -0.5902047753334045, -0.13564863801002502, 0.6497460007667542, -0.30910179018974304, -0.09537345170...
because there's no way for keyboard only users to skip some options. (On top of that, the mouse wheel *seems* to spin by multiple answers, but it actually fires onChange for each entry it passes by on IE.) If you really want the event to fire whenever someone presses up or down, I would hook into the onKeyPress or onK...
[ -0.0903400108218193, -0.15495716035366058, 0.11956394463777542, 0.044665247201919556, 0.2111695557832718, -0.13828696310520172, 0.31506797671318054, -0.16136647760868073, -0.24059319496154785, -0.5346922278404236, -0.03726857900619507, 0.7937197089195251, -0.17411848902702332, -0.105701595...
I am getting this ambiguous reference error with some software that came from a vendor. The problem is, I need to keep both DLLs in my project, because various parts of it use code from both. So... I need to know the syntax for explicitly specifying the assembly. In other words, I want to do exactly what the error mess...
[ 0.28548431396484375, 0.3739076256752014, 0.06047249212861061, -0.11843378096818924, -0.043079815804958344, -0.22649803757667542, 0.515454888343811, 0.06819439679384232, 0.08140046894550323, -0.7362914085388184, 0.009779918007552624, 0.4857954680919647, -0.4037897288799286, 0.14020811021327...
but I'm not looking for that - I just want to explicitly specify the assembly to use in this one file. I really hate having to fix vendor code. Why is the syntax for this not listed in MSDN anywhere? If you have the link, please post it, I think I've seen it before, but I can't find it now. ``` <%@ Control Language="v...
[ 0.2534743845462799, 0.24542762339115143, -0.019520461559295654, -0.09716911613941193, 0.1917005032300949, 0.23748108744621277, 0.22517037391662598, -0.02532457374036312, -0.2588946521282196, -0.4217558205127716, -0.3821897804737091, 0.31492355465888977, -0.5874891877174377, 0.3945959806442...
I am new to MDX and I know that this must be a simple question but I haven't been able to find an answer. I am modeling a a questionnaire that has questions and answers. What I am trying to achieve is to find out the number of people who gave specific answers to questions., e.g. the number of males aged between 20-25 ...
[ 0.3715381920337677, 0.16199065744876862, 0.47053608298301697, -0.0012168021639809012, -0.0822073444724083, 0.26914453506469727, 0.43354156613349915, -0.400648832321167, -0.3192640244960785, -0.7053340673446655, -0.04129701107740402, 0.34466615319252014, 0.11953655630350113, 0.1216509267687...
WHERE [Answer].[Dim Answer].&[1] ``` `[Measures].[Fact Demographics Count]` is a count of the primary key column `[Answer].[Dim Answer].&[1]` is the key for the Male answer Result for number of people who are male = 150 Result for number of people who are between 20-25 = 12 But when I run the next query belo...
[ 0.18626199662685394, 0.10914111137390137, 0.7909135222434998, 0.05806690454483032, 0.1253039836883545, 0.40131983160972595, 0.14809413254261017, -0.3047431409358978, -0.09296386688947678, -0.4337468445301056, -0.38653743267059326, 0.3447491228580475, 0.18355025351047516, 0.0125433774664998...
Columns FROM [Dsv All] WHERE {[Answer].[Dim Answer].&[1],[Answer].[Dim Answer].&[9]} ``` result = 162 The structure of the fact table is FactDemographicsKey, RespodentKey, QuestionKey, AnswerKey Any help would be greatly appreciated Thanks Firstly thanks to everyone for their replies. T...
[ 0.17932459712028503, 0.11109084635972977, 0.8043317198753357, 0.12116403132677078, -0.27449485659599304, 0.3821496069431305, -0.22754371166229248, -0.2927117943763733, -0.2098521590232849, -0.14782515168190002, -0.08725190907716751, 0.3826946020126343, -0.2034735530614853, 0.22831849753856...
respondents In the datasource view for the cube I duplicated factDemographics 5 times using Named Queries and I named these fact1, fact2, ..., fact5. (which will create 5 measure groups) Using VS Studio's create cube wizard I set the following fact tables 1. fact1, fact2, ... as fact tables 2. dimRespondent a fact t...
[ 0.14179927110671997, -0.2075929492712021, 0.6207062602043152, 0.2374430000782013, -0.5247930288314819, 0.725928783416748, 0.11791596561670303, -0.5040391087532043, -0.28351879119873047, -0.5745508670806885, 0.5209941864013672, 0.16807515919208527, -0.3029133677482605, 0.19785256683826447, ...
to many dimRespondent filter3 many to many dimRespondent filter4 many to many dimRespondent filter5 many to many dimRespondent filter1 regular relationship fact1 filter2 regular relationship fact2 filter3 regular relationship fact3 filter4 regular relationship fact4 filter5 regular relationship fact5 This n...
[ 0.05769158527255058, -0.23318177461624146, 0.8093087673187256, 0.03320308402180672, -0.15644708275794983, 0.47889912128448486, 0.20781326293945312, -0.17259399592876434, -0.05093155801296234, -0.5384836196899414, -0.0999365746974945, 0.3430901765823364, -0.26399657130241394, -0.20109364390...
a more elegant solution. If anyone knows what that is I'd love to hear it. Thanks
[ 0.2828584313392639, 0.125615194439888, 0.03281698748469353, 0.3815020024776459, 0.24276219308376312, 0.05025116726756096, 0.18903249502182007, 0.3175519108772278, 0.14646901190280914, -0.41922640800476074, 0.17097781598567963, 0.32376042008399963, 0.37337273359298706, 0.12735268473625183, ...
I came across a comment in some code referring to said code being "I18N safe". What does this refer to? I + (some 18 characters) + N = InternationalizatioN I18N safe means that steps were taken during design and development that will facilitate Localization (L10N) at a later point.
[ 0.25756803154945374, -0.004612507298588753, 0.21495822072029114, -0.023514607921242714, -0.16379331052303314, 0.0064285267144441605, 0.3585093021392822, 0.017152227461338043, -0.24499757587909698, -0.412092924118042, -0.03801620379090309, 0.18468907475471497, -0.09681235998868942, 0.051663...
I like to be able to fully test compatibility of my web pages on Mac OS X. I have installed Parallels desktop. It works fine, but it uses a lot a of resources... So I would like to be able to test everything inside OS X. In fact I am looking for Explorer 6 for the Mac. Any suggestions around? ie net render 0.9, firef...
[ 0.553054928779602, 0.005374808330088854, 0.5130314826965332, 0.18802253901958466, -0.15244393050670624, 0.0009706193814054132, 0.20564964413642883, 0.15675273537635803, -0.072566919028759, -1.1722378730773926, 0.1783527284860611, 0.726945698261261, -0.23869174718856812, 0.26814430952072144...
What is the best way to program an immediate reaction to an update to data in a database? The simplest method I could think of offhand is a thread that checks the database for a particular change to some data and continually waits to check it again for some predefined length of time. This solution seems to be wasteful...
[ 0.14760349690914154, -0.1766453981399536, 0.32424527406692505, 0.24094831943511963, -0.15869219601154327, 0.07043520361185074, 0.3485379219055176, 0.16261747479438782, -0.3293967545032501, -0.32631465792655945, 0.3075586259365082, 0.42691442370414734, -0.22335658967494965, -0.0218059439212...
sent to me. Surely my client isn't continually checking for updates all the time. I think the way they do this is with AJAX, but how AJAX can behave like a remote function call I don't know. I'd be curious to know how gmail does this, but what I'd most like to know is how to do this in the general case with a database....
[ 0.3041174113750458, -0.0520898774266243, 0.12189352512359619, 0.16425493359565735, -0.2536791265010834, -0.20419739186763763, 0.39578089118003845, 0.3620729446411133, -0.19924597442150116, -0.588304877281189, 0.04983699694275856, 0.5654852986335754, -0.39222627878189087, -0.02335200086236,...
a notification or have his screen updated once the change in the database has been made. You basically have two issues here: 1. You want a browser to be able to receive asynchronous events from the web application server without polling in a tight loop. 2. You want the web application to be able to receive asynchronou...
[ -0.30506885051727295, -0.1736128032207489, 0.4136590361595154, -0.1955125629901886, -0.7029778957366943, 0.036717236042022705, 0.2536270022392273, -0.08325515687465668, -0.3850547671318054, -0.13657917082309723, 0.1528429388999939, -0.025615934282541275, -0.4593466818332672, -0.13645328581...
Problem #1. **For Problem #2** The solution is going to be specific to which database you are using and probably the database driver your server uses too. For instance, with [PostgreSQL](http://www.postgresql.org/) you would use [LISTEN](http://www.postgresql.org/docs/8.3/interactive/sql-listen.html) and [NOTIFY](htt...
[ -0.047292158007621765, -0.1373366117477417, 0.5279834270477295, 0.23941953480243683, -0.13453100621700287, -0.2066946178674698, 0.1949283331632614, -0.4081592559814453, -0.5433506369590759, -0.365509033203125, -0.012637589126825333, 0.4734251797199249, -0.6661746501922607, -0.2436803728342...
the same theme, some databases allow you to write stored procedures in languages such as [Java, Ruby](http://www.postgresql.org/docs/8.3/interactive/external-pl.html), [Python](http://www.postgresql.org/docs/8.3/interactive/plpython.html) and [others](http://www.postgresql.org/docs/8.3/interactive/external-pl.html). Yo...
[ 0.35518866777420044, -0.022085510194301605, 0.009866565465927124, 0.22036510705947876, -0.1625179648399353, -0.14275869727134705, 0.031885482370853424, -0.11681991815567017, -0.46369558572769165, -0.30179935693740845, 0.11210557818412781, 0.39183512330055237, -0.304639607667923, -0.2424811...
The following script works fine in IE7 but fails to execute in Firefox 3. The div tag which was display: none; shows in IE but never in FF. I am not a client / javascript guy... thanks. ``` <script type="text/javascript"> //<![CDATA[ document.getElementById("Fred1_Panel").style.setAttribute("display","inline");//]]> ...
[ -0.02812016010284424, 0.027972761541604996, 0.48289039731025696, -0.34265148639678955, -0.176299050450325, -0.2866951525211334, 0.7379559278488159, -0.09240080416202545, -0.01026061736047268, -0.8613225221633911, -0.37074118852615356, 0.8135660886764526, -0.5225171446800232, -0.27358749508...
* Should I use a commercial component? * Should I roll my own expression evaluator? * Should I roll my own dynamic language? I know programmers are notorious for wanting to write their own language, but this is not the case here. The less work, the better. Lets assume that compatibility with Excel formulas is not a st...
[ 0.48575857281684875, 0.22152923047542572, 0.1635628044605255, 0.27449771761894226, 0.1141585037112236, 0.03713275492191315, -0.2054709941148758, -0.10137495398521423, -0.024852044880390167, -0.4177454113960266, -0.04944201186299324, 0.8585375547409058, -0.36673083901405334, -0.122997045516...
the same functions <http://blogs.msdn.com/lucabol/archive/2008/12/04/financial-functions-for-net-released.aspx>
[ 0.15319515764713287, -0.22877255082130432, 0.42561930418014526, 0.014588935300707817, 0.0933241918683052, -0.10285679250955582, -0.1475648134946823, -0.05981999635696411, -0.4051397144794464, -0.12029504776000977, -0.038528650999069214, 0.6682304739952087, -0.23564213514328003, -0.10665719...
If I have 2 datafiles attached to a tablespace, and BOTH are set to AUTOEXTEND and BOTH are set to unlimited, will Oracle know to extend both datafiles, or only extend one of them. I have read through many manuals, but none of them answer this question. As to why this is set like this, well, it's an inherited system th...
[ 0.41519153118133545, 0.1194753646850586, 0.24708779156208038, 0.07294289022684097, 0.31258565187454224, -0.17200800776481628, -0.35621339082717896, -0.3337804973125458, -0.10471833497285843, -0.4138373136520386, -0.04887900501489639, 0.5704404711723328, -0.31973159313201904, -0.01680507510...
I've worked on a number of products that make use of code generation. It seems to be the only way to achieve both a high degree of user-customizability and high execution speed. The downside is that we are requiring users to install a compiler (primarily on MS Windows). This has been an on-going headache, because ve...
[ 0.40899690985679626, 0.2768988609313965, -0.20982785522937775, 0.16378314793109894, 0.03618893027305603, -0.13801948726177216, 0.3017518222332001, 0.23543618619441986, -0.023411015048623085, -0.6975336670875549, -0.17390449345111847, 0.7312792539596558, -0.4453531801700592, 0.0316023081541...
assembly languages are all machine-specific. Ideally there would be some way to produce generated code that would be flexible, run fast, and not expose us to the whims of third-party providers. Maybe I'm overlooking something simple, like Java. Any ideas would be appreciated. Thanks. If you're considering C and even ...
[ 0.357485830783844, -0.023145122453570366, -0.05202745273709297, -0.09039090573787689, 0.0077057345770299435, 0.2105865329504013, 0.09976978600025177, 0.42190560698509216, -0.2509802281856537, -0.618098795413971, -0.2891148030757904, 0.7011576890945435, -0.3808824419975281, -0.3059826195240...
Simple question: are the following statements equivalent? or is the second one doing more implicit things behind the scenes (if so, what?) ``` myClass x(3); myClass x = myClass(3); ``` Thanks! They are not completely identical. The first is called "direct initialization" while the second is called "copy initializati...
[ 0.22449266910552979, -0.04116976633667946, 0.01839814893901348, 0.025395769625902176, -0.32139286398887634, -0.09987010061740875, -0.033645711839199066, 0.024491917341947556, 0.02593827433884144, -0.38134297728538513, -0.2610340416431427, 0.7221736311912537, -0.19632653892040253, 0.1534757...
where you have copy initialization with the same type, the compiler is allowed to elide a copy, so it can construct the temporary you create directly into the initialized object. So you can end up very well with the same code generated. But the copy constructor, even if the copy is elided (optimized out), must still be...
[ -0.025363747030496597, -0.040684740990400314, 0.01880745217204094, 0.16262654960155487, 0.045201580971479416, -0.17054177820682526, -0.02248532883822918, 0.05772550031542778, -0.19862493872642517, -0.669950544834137, -0.44292110204696655, 0.5014567971229553, -0.22867794334888458, 0.1523155...
temporary object is created in trying to implicitly convert the right side to the left side: ``` myclass c = 3; ``` The compiler creates a temporary object of the type of myclass then when there is a constructor that takes an int. Then it initializes the object with that temporary. Also in this case, the temporary c...
[ -0.1628536731004715, 0.0820372924208641, 0.3178180754184723, -0.16233499348163605, -0.14316199719905853, 0.09745746850967407, 0.16587099432945251, 0.3658740222454071, -0.1735345870256424, -0.6863583922386169, -0.2632800042629242, 0.3304368555545807, -0.34665048122406006, 0.2848874926567077...
to do with an assignment operator. In both cases, what happens is an initialization.
[ -0.31583845615386963, -0.194627046585083, -0.18623575568199158, -0.05161533132195473, 0.0015188629040494561, -0.21224889159202576, -0.10857841372489929, -0.1995844542980194, 0.22143365442752838, -0.4594859778881073, -0.5549964308738708, 0.5223044157028198, -0.21321311593055725, 0.020938059...
I have a windows service that starts a thread in the OnStart method. Basically I want to be able to stop the service if something goes really wrong (like an unhandled exception). Currently I'm using `ServiceBase.Stop()` but that involves having a `ServiceBase` instance somewhere visible to the thread, which in turn i...
[ 0.2629624903202057, 0.12686918675899506, 0.13177984952926636, -0.23639331758022308, 0.07238244265317917, -0.30966809391975403, 0.5982346534729004, 0.4344446361064911, -0.2848466634750366, -0.6498883962631226, -0.21717408299446106, 0.5385702252388, -0.3563244938850403, 0.5879818797111511, ...
The only time this won't work is if you are using the same service class to run multiple services in the same process, something that is very rare. ``` private static MyService m_ServiceInstance; public static MyService ServiceInstance { get { return m_ServiceInstance; } } public MyService() { InitializeComp...
[ -0.07203444838523865, -0.21965886652469635, 0.3188551664352417, -0.29120489954948425, 0.10496169328689575, 0.09852015972137451, 0.5335045456886292, -0.22749726474285126, -0.2623851001262665, -0.871826708316803, -0.5127434730529785, 0.49506935477256775, -0.45233017206192017, 0.3849117159843...
I am running a java program from within a Bash script. If the java program throws an unchecked exception, I want to stop the bash script rather than the script continuing execution of the next command. How to do this? My script looks something like the following: ``` #!/bin/bash javac *.java java -ea HelloWorld > ...
[ 0.3052387237548828, 0.3540789783000946, 0.05764266848564148, -0.43124914169311523, -0.04072238877415657, -0.24497337639331818, 0.3527495563030243, -0.05691142752766609, 0.02731570042669773, -0.6008700728416443, 0.03281140327453613, 0.5623944997787476, -0.19278807938098907, 0.15377609431743...
We are looking for an ASP.NET compatible data grid that allows for multi-line editing similar to Excel or a WinForms data grid. It must also support very basic keyboard input (tab, arrow keys, return). Note that we are **not** looking for Excel capabilities (functions, formatting, formulas) ... just a grid for fast dat...
[ 0.2363845556974411, -0.16907264292240143, 0.36090317368507385, 0.5056388974189758, 0.20663343369960785, -0.31313470005989075, -0.04039647802710533, -0.1006312444806099, 0.029410813003778458, -0.9060465097427368, -0.07021641731262207, 0.616777777671814, -0.18132230639457703, -0.141052722930...
recommend? The client-side grids seemed closer to what we needed, with Sigma Widgets ( [example](http://www.sigmawidgets.com/products/sigma_grid2/demos/example_column_editor.html) ) being the closest I've found so far. Extjs's grid was too inflexible, and the jQuery grid was too buggy. We ended up using [Sigma Grid](ht...
[ 0.5597313642501831, -0.0673893466591835, 0.5335701107978821, 0.29544341564178467, -0.240298792719841, -0.11266383528709412, 0.24790328741073608, -0.5139586925506592, 0.21048301458358765, -0.5099635720252991, 0.19524751603603363, 0.49576595425605774, -0.03050285018980503, 0.0289287231862545...