text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
| End 2009-1-1 06:00 | 2009-1-1 18:00 2009-2-1 20:00 | 2009-2-2 04:00 2009-2-2 06:00 | 2009-2-2 14:00 ``` Note: This whole thing would be relatively easy to implement by just pulling all the data and running some manual loop on it, however that is the current system, and its rather slow because of the number of shift...
[ 0.0345284566283226, 0.08176809549331665, 0.7440083026885986, -0.1562262624502182, -0.1312498152256012, 0.16889777779579163, 0.4576958417892456, 0.03878967463970184, -0.30336201190948486, -0.43386730551719666, -0.1588073968887329, 0.32982224225997925, -0.05374036729335785, 0.137903586030006...
*next* dates in each row and see whether * Current row's **Start** date falls between previous row's date range. * Current row's **End** date falls between next row's date range. ![alt text](https://farm4.static.flickr.com/3501/3468942647_172669e3a6_o.png) Using above code, implementing UDF is as simple as followed....
[ -0.3788413107395172, -0.24769970774650574, 0.6905889511108398, -0.370735764503479, -0.030060632154345512, -0.13423268496990204, -0.26899397373199463, -0.11357934027910233, -0.12136632204055786, -0.4603098928928375, -0.1421358436346054, 0.28934478759765625, 0.08567839115858078, 0.3360009491...
Start = case when Pv.Start is null then Curr.Start when Curr.Start between Pv.Start and Pv.[End] then Pv.Start
[ -0.24441032111644745, -0.25878801941871643, 0.13792768120765686, -0.09610062837600708, -0.02369878813624382, 0.6072832942008972, -0.16829222440719604, -0.42098236083984375, -0.3063693642616272, -0.35694679617881775, -0.27722108364105225, 0.5664605498313904, -0.09711232036352158, 0.05557806...
else Curr.Start end, [End] = case when Curr.[End] between Nx.Start and Nx.[End] then Nx.[End] else Curr.[End]
[ -0.5976670384407043, 0.01229822263121605, 0.02049330063164234, -0.3403140902519226, -0.18917039036750793, 0.6961497068405151, 0.20307675004005432, -0.16573935747146606, -0.2229229360818863, -0.30812588334083557, -0.3066736161708832, 0.3610641062259674, -0.29385510087013245, 0.1064317971467...
end from shift Curr left join shift Pv on Pv.ID = Curr.ID - 1 --; prev left join shift Nx on Nx.ID = Curr.ID + 1 --; next if exists( select 1 from FlattenedDateRange
[ -0.16256456077098846, -0.438789427280426, 0.5868865847587585, -0.21862171590328217, 0.00703690480440855, 0.35964059829711914, -0.14048898220062256, -0.3641502857208252, -0.1870613545179367, -0.2096444070339203, -0.42042508721351624, 0.37914690375328064, 0.13682951033115387, 0.0519235841929...
R where @from between R.Start and R.[End] and @to between R.Start and R.[End]) begin set @_Result = 1 --; There is/are watchman/men during specified date range end else begin set @_Result = 0 --;
[ 0.3328922390937805, -0.05425114557147026, 0.656489908695221, -0.46092721819877625, 0.45233434438705444, 0.018234513700008392, 0.6800934672355652, -0.7136746644973755, -0.05223103240132332, -0.2883303165435791, -0.6405236124992371, 0.7130864262580872, -0.10483379662036896, -0.08513375371694...
There is NO watchman end return @_Result end ```
[ 0.4499173164367676, 0.28733089566230774, 0.6451483964920044, -0.03809993714094162, 0.25839942693710327, -0.358513206243515, 0.5068284869194031, 0.09939620643854141, 0.11302278190851212, -0.3679714798927307, -0.24799445271492004, 0.7185556888580322, -0.4800213873386383, 0.30628883838653564,...
How can I get the list of logial drives (C#) on a system as well as their capacity and free space? [`System.IO.DriveInfo.GetDrives()`](http://msdn.microsoft.com/library/system.io.driveinfo.getdrives)
[ 0.31452202796936035, 0.1398366242647171, 0.2701834440231323, 0.5100730061531067, 0.2538108825683594, -0.10443475097417831, -0.20884619653224945, 0.11055943369865417, -0.3353259861469269, -0.6187082529067993, -0.12323332577943802, 0.5401402711868286, -0.06880974024534225, 0.1222878843545913...
I have a fairly large CRUD winform app that is set up to display forms embedded in tabcontrols. I want to have objects for Person,(has a) Enrollment,(has a) Plan that hold and track the information as they interact with the forms. How do I accomplish this? I found a suggestion to declare the Person object in my ***Prog...
[ -0.025981228798627853, 0.007302925456315279, 0.7888140082359314, 0.17266905307769775, -0.12374413758516312, 0.002661240054294467, -0.010924728587269783, 0.09082695096731186, -0.18099728226661682, -0.6867539882659912, 0.10670249909162521, 0.27169695496559143, 0.11500933766365051, 0.21021662...
private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new FrmWWCShell()); } } ``` and then on the ***Search.cs*** --> ``` Program._CurrentPerson = new CurrentPerson {
[ -0.24477103352546692, -0.08519311249256134, 0.6438407301902771, -0.20870846509933472, 0.272942453622818, 0.16815848648548126, 0.47449228167533875, 0.09907322376966476, -0.3424818217754364, -0.5014693140983582, -0.46422797441482544, 0.5282700657844543, -0.5537309050559998, 0.480199843645095...
PersonID = Convert.ToInt32(pID), LastName = lName,
[ -0.6171247363090515, -0.42854002118110657, 0.09133125841617584, -0.3180655837059021, -0.028701698407530785, 0.48271653056144714, 0.4166286289691925, -0.009804862551391125, 0.2848270833492279, -0.7240445613861084, 0.02208772487938404, 0.35538697242736816, -0.18384425342082977, 0.08071933686...
FirstName = fName, SocialSn = sSN, MiddleName = mName,
[ -0.3297598361968994, -0.28478896617889404, 0.2099931836128235, -0.14850807189941406, -0.21056756377220154, 0.48078453540802, 0.17973673343658447, 0.2117111086845398, -0.07793056964874268, -0.8761559724807739, -0.5301612615585327, 0.020814331248402596, -0.03717393800616264, 0.34720459580421...
BirthDate = Convert.ToDateTime(bDate) }; ``` Is this the best way? There is still a bunch of Data that needs to be *filled in* from the database once they
[ 0.7733842134475708, -0.01585056446492672, 0.17972432076931, -0.22042901813983917, 0.27960503101348877, 0.22981484234333038, 0.17862170934677124, -0.08273062855005264, -0.04151036962866783, -0.5679218769073486, 0.1457979828119278, 0.09742321074008942, 0.009426138363778591, 0.239778891205787...
have made this selection on the Search page. What about declaring the object on each form and passing it some way? The object is slowly "built" as they progress. First they **Search** for someone by name and select who they will work with. Then they can work with there Enrollments. After selecting an Enrollment they wi...
[ 0.595690906047821, -0.16417278349399567, 0.5147866010665894, 0.30514413118362427, 0.09245986491441727, 0.021417303010821342, -0.09304429590702057, 0.05429711937904358, -0.30096131563186646, -0.8910576701164246, 0.012644827365875244, 0.41687628626823425, 0.15860788524150848, 0.3858906626701...
in your case you might just create a central controller class to hold the central data. Pass on this object in every form constructor and you're done.
[ 0.3300371766090393, -0.2245813012123108, -0.014971766620874405, 0.6984360814094543, 0.07147909700870514, -0.4087376296520233, -0.10109645873308182, 0.2450934499502182, -0.1813393384218216, -0.3980908989906311, -0.1255512237548828, 0.2837463617324829, 0.047035180032253265, 0.476475745439529...
I have a system that compares fiscal year up to the current date to the same date range of the year before. You can adjust the year and month to look at and it always compares the same date range to the year previous. I have it set so if the current day is leap day it compares to the 28th of last year, and if last year...
[ 0.24472761154174805, 0.10003980249166489, 0.698835015296936, 0.21848607063293457, -0.11203484982252121, 0.4723091125488281, 0.14059101045131683, 0.14548762142658234, -0.5872753262519836, -0.36836305260658264, 0.3226633667945862, 0.21650391817092896, 0.10570471733808517, 0.18126855790615082...
last day of that month, otherwise up to current date. OK that works fine right now, but now my employers don't want it to be up to the current date they want it to go up to yesterdays date. How can I do that, my main concerns are what if today is the 1st of the month, or what if today is the first day of the fiscal ye...
[ 0.14189858734607697, -0.10974185913801193, 0.8375295996665955, 0.1127205491065979, 0.2637438178062439, -0.02368895150721073, 0.08808109909296036, 0.46117886900901794, -0.34742408990859985, -0.4794222414493561, -0.09784822165966034, 0.3928740322589874, -0.004638404119759798, 0.3113974034786...
$month == date('m')) { $this_day = date('d'); } else { $this_day = date('t', mktime(0, 0, 0, $month, 1, $year)); // LAST DAY OF MONTH } if(is_leap_year($year) && $this_day == 29) { $last_day = 28; } else if(is_leap_year($last_year) && $this_day == 28) {
[ -0.024179009720683098, -0.039893168956041336, 0.7075448036193848, -0.32806268334388733, 0.4987103044986725, 0.180039644241333, 0.4706306457519531, -0.12389877438545227, -0.356819212436676, -0.23260171711444855, -0.4233149588108063, 0.3683776557445526, -0.24908985197544098, 0.23110656440258...
$last_day = 29; } else { $last_day = $this_day; } if($month >= 2) { $this_year_start = $year; $last_year_start = $last_year; } else { $this_year_start = $year - 1; $last_year_start = $last_year - 1; }
[ -0.21491745114326477, -0.0790737047791481, 0.6432903409004211, -0.45989853143692017, 0.25517818331718445, -0.019445328041911125, 0.24002715945243835, 0.12576903402805328, -0.5286867618560791, -0.2555546760559082, -0.42339757084846497, 0.23025865852832794, -0.06603388488292694, 0.3828629255...
$this_ytd_start = $this_year_start.'-02-01'; $last_ytd_start = $last_year_start.'-02-01'; $this_ytd_end = $year.'-'.str_pad($month, 2, "0", STR_PAD_LEFT).'-'.$this_day; $last_ytd_end = $last_year.'-'.str_pad($month, 2, "0", STR_PAD_LEFT).'-'.$last_day; } ``` What would be the best solution? Thanks! [st...
[ -0.05210375413298607, -0.12191596627235413, 0.9120042324066162, -0.16716603934764862, 0.3912681043148041, 0.03905751183629036, 0.024966713041067123, 0.09363541752099991, -0.3067755401134491, -0.7143155932426453, -0.2440832555294037, 0.49883824586868286, 0.097964808344841, 0.284347951412200...
I am having trouble arranging items with the css below. One of the more obvious problems I am having is that The strong text for the headings of the table columns is black, and does not match the strong text in the information above the table. My main problem is that Layer3 will not go to the bottom of the Layer2. I ...
[ 0.04311598092317581, 0.42713239789009094, 0.4734390377998352, -0.06697221845388412, 0.024020059034228325, -0.14888444542884827, 0.21440532803535461, 0.02806621976196766, -0.3190935552120209, -0.8520054817199707, -0.011000411584973335, 0.23272699117660522, -0.20205575227737427, 0.4535727500...
organizing information into columns, as opposed to my current approach of leftlayer, leftlayer2 and rightlayer? ``` <html><head><title>Auctions</title> <link rel="stylesheet" href="stylesheet.css" type="text/css"> </head> <body> <div id="Layer0"> <div id="Layer2"> <h1>Org."EdHardy"Herren"Hoodie"Gelb"Gr."XL"</h1> <div...
[ -0.4555026590824127, -0.42942526936531067, 0.6949282288551331, 0.077687568962574, -0.23235417902469635, 0.1756618767976761, 0.07974234223365784, -0.7417542934417725, -0.08678723871707916, -0.6029331684112549, -0.013604407198727131, 0.39271047711372375, 0.0850665494799614, 0.137148886919021...
id="rightlayer"><a href="#" onclick="makewindows(&amp;amp;quot;&lt;img src='..\/images\/250405322811.jpg' &gt;&amp;amp;quot;); return false;"> <img src="../images/250405322811.jpg" height="100" width="100"></a> <p><a href="#" onclick="makewindows(&amp&lt;quot;); return false;">Click for full description </a></p> <p><a ...
[ -0.31262141466140747, -0.1632014662027359, 1.2065366506576538, -0.0524226613342762, -0.16017620265483856, 0.15658749639987946, 0.18174517154693604, -0.5313900709152222, 0.07872793078422546, -0.37973248958587646, 0.028200451284646988, 0.5039958357810974, -0.09433687478303909, 0.678078353404...
{ margin:0px 10px 10px 10px; font:Arial, Helvetica, sans-serif; font-size:12px; line-height: 1.6em; text-align:justify; text-decoration:none; } h1 { font-size:2.5em; text-align: center; color:#ccc; padding-top:15px; } h3 { font-size:14px; color:#999; } .leftlayer { float: left; left: 20%; width: 20%; heigh...
[ -0.31217527389526367, 0.002857165178284049, 0.8272770047187805, 0.05880486220121384, -0.16438689827919006, 0.016748443245887756, 0.3013922870159149, -0.4541202485561371, -0.07510817050933838, -0.7068994641304016, -0.3940529227256775, 0.22804757952690125, -0.10796505212783813, -0.1577242612...
non-semantic + the onclick property should be replaced with javascript-generated event handlers * as [Dave already pointed out](https://stackoverflow.com/questions/781970/problems-arranging-css-layers-with-heading-and-table/782003#782003), the CSS 'float' property can't be set to 'bottom', you have to use 'clear' inst...
[ 0.10916969180107117, -0.1152007132768631, 0.3678763508796692, 0.08607480674982071, -0.3300076127052307, -0.2861540913581848, 0.314505934715271, -0.18798457086086273, -0.39845365285873413, -0.6063798666000366, -0.17814533412456512, 0.32073521614074707, -0.4483775794506073, -0.08874524384737...
of your choice when setting margins, paddings and fonts. And don't forget to put labels next to your radio buttons, so it will be an easier target to the user: clicking the associated label is like clicking the button itself. This is a little bit tricky, because you need unique ids for the choiches, while you need to ...
[ 0.10761931538581848, 0.1700693666934967, 0.31536033749580383, 0.06784403324127197, -0.15795837342739105, 0.055976565927267075, -0.10333769768476486, -0.12801498174667358, -0.08748140931129456, -0.5200355648994446, -0.06691673398017883, 0.7097471356391907, -0.04907742515206337, -0.277597993...
name="radiobutton" value="fakeapproved" type="radio" id="radiobutton_fakeapproved"><label for="radiobutton_fakeapproved">Fake (Approved)</label></p>` `<p><input name="radiobutton" value="fakesuspected" type="radio" id="radiobutton_fakesuspected"><label for="radiobutton_fakesuspected">Fake (Suspected)</label></p>`
[ 0.5280231237411499, 0.2907744348049164, 0.14631515741348267, -0.340152382850647, -0.06691441684961319, -0.14630647003650665, 0.4448237121105194, -0.48274996876716614, 0.1535182148218155, 0.22406929731369019, -0.4637681841850281, 0.6453427672386169, -0.3652276396751404, 0.4197767674922943, ...
I haven't found any good explanation of this problem, so I'm hoping someone can shed some light on it. My thought is that this is "just the way it is", but I would like to understand a little better anyways. Here is my situation: I have a main branch, and a development branch(dev). Most developers are working in Main,...
[ 0.14586026966571808, 0.1899009644985199, -0.2212536334991455, -0.13044166564941406, -0.06637353450059891, 0.11100496351718903, 0.22691786289215088, 0.12557657063007355, -0.1654362678527832, -0.5455377697944641, -0.027307983487844467, 0.5725643634796143, -0.0027943593449890614, 0.1327521055...
changed in Main but not in Dev. This is great. The next time I merge Main->Dev, F1 has changed in Main again, so it should copy it (was not changed in Dev). However, TFS tells me that both target and source have changes, even though the changes in target are *exactly* the same changes from Main. When this happens to a...
[ 0.1846432387828827, -0.06586383283138275, 0.04007045179605484, 0.06788605451583862, -0.2845776379108429, -0.040441788733005524, 0.2860200107097626, 0.11090786010026932, -0.3486621081829071, -0.8741183876991272, 0.16972455382347107, 0.699576199054718, -0.4045516550540924, 0.0586011372506618...
you. This definitely is "Not the way it is". I have never seen this happen the way you describe. Seems there must be something amiss in your environment or the way you are working. This does not answer you question, but I would question why "most" developers are working in Main. Main should be for stabilization and as...
[ 0.7838819622993469, -0.15976054966449738, 0.04255678504705429, 0.3200927674770355, 0.039382245391607285, -0.17534440755844116, 0.09271572530269623, 0.30201438069343567, -0.3192456066608429, -0.6098279356956482, -0.16702206432819366, 0.5394285917282104, -0.31402674317359924, 0.0498681627213...
This seems, to me, a slightly more specific question that those already asked, so: How reliable is the Windows Event Log service if I'm looking for a 'fire and forget' logging service, so that even an error in calling the service does not impact the caller, and is noted somewhere, somehow, by the OS? On Windows side, t...
[ 0.2617779076099396, 0.18650652468204498, 0.23856113851070404, 0.1650499850511551, 0.08813423663377762, -0.3365775942802429, 0.5819369554519653, 0.056881289929151535, -0.27480050921440125, -0.3505041301250458, -0.05332167446613312, 0.8528327941894531, 0.07327498495578766, -0.094766058027744...
properly it will work. Having that said, you usually don't use the event log in a "fire and forget" context. Keep in mind it is a system-global log, which is supposed to be read by an administrator. Being fed too many events, it will become quite useless from the administrator's point of view. If you do use it sparsel...
[ 0.45395687222480774, 0.023394696414470673, 0.20372599363327026, 0.28845059871673584, 0.1653115153312683, -0.5147489309310913, 0.326183557510376, -0.17737549543380737, -0.42288583517074585, -0.6113411784172058, -0.1945010870695114, 0.8637832403182983, 0.025303274393081665, -0.18544448912143...
which is a high performance event tracing infrastructure that is built into Windows.
[ 0.1251131147146225, -0.34345152974128723, 0.09943971037864685, 0.42614755034446716, 0.21974478662014008, -0.4534716308116913, -0.053403764963150024, 0.1412583440542221, 0.10038791596889496, -0.5818517208099365, -0.22594979405403137, 0.33811452984809875, -0.1492345780134201, 0.1934235841035...
I have a terrible Rails test startup time. When running a single functional test that may take 2 seconds to run, the total time from execution to returning to the command line could be up to 10-15 seconds. There are two gems I know are definitely getting in the way. A Facebook and Flickr gem (Facebooker, Flickraw). F...
[ 0.4965720474720001, 0.11280381679534912, -0.1699075698852539, 0.04989083483815193, -0.05050482228398323, -0.12496309727430344, 0.8604402542114258, -0.014854655601084232, 0.028813345357775688, -0.6210841536521912, 0.18888720870018005, 0.5410714149475098, 0.04701964929699898, 0.0131720481440...
these gems off during test time? I'd really like to get my test run as close to how long the actual test takes to run as possible. Also, I have tried the rails\_test\_server gem and am having some difficulties as this is a very large project and the gem is hitting some conflicts somewhere in the project that I haven't ...
[ 1.0903599262237549, 0.09892427176237106, -0.20382291078567505, 0.40248042345046997, 0.05834373086690903, -0.18875129520893097, 0.4487680196762085, -0.27395129203796387, -0.10831322520971298, -0.520132839679718, 0.2581227421760559, 0.8006523847579956, 0.14178255200386047, -0.018932143226265...
production environment files, but not to the test environment file.
[ 0.5710388422012329, 0.2631520628929138, -0.09562461823225021, 0.059278227388858795, 0.44405418634414673, -0.013916745781898499, -0.0813194289803505, -0.16498523950576782, 0.05592026561498642, -0.30433207750320435, -0.4897077977657318, 0.49364060163497925, -0.119114451110363, 0.024913297966...
I'm looking for a way to completely disable the copy/paste functionality in Visual Studio (2005 if it matters). The reason behind this request is that I want to prevent myself from doing too much copy/paste while coding. Thanks to all for your answers! Yes, there is a way. Download [AutoHotKey](http://www.autohotkey....
[ 0.18435458838939667, 0.09572981297969818, 0.6238220930099487, 0.1847224086523056, -0.21769531071186066, -0.025366459041833878, 0.38013532757759094, -0.14078760147094727, -0.3634510934352875, -0.5478165149688721, 0.13559412956237793, 0.8191890120506287, -0.02934596687555313, 0.0766097158193...
(right click toolbar -> Customize->Keyboard) and delete Edit.Copy and Edit.Paste hotkies. However, above script works with any VS and on any computer while this solution needs to be setup individually.
[ 0.07034040987491608, -0.15774545073509216, 0.5579100251197815, 0.23566493391990662, -0.16216696798801422, -0.02902829274535179, 0.3749592900276184, -0.01862114481627941, -0.07000432908535004, -0.8879327178001404, -0.2450617104768753, 0.5993357300758362, -0.2514800727367401, 0.0277800783514...
I'm trying to migrate to TFS from VSS and I need to be able to show what files were checked in between two releases. In VSS we would just label the code for a release and view history between labels and generate a report to show the checkins and the comments. Is there a way to get similar results with TFS? Or show the ...
[ 0.5121644139289856, -0.1676338016986847, 0.2767247259616852, -0.046710819005966187, -0.22753383219242096, -0.16630899906158447, -0.07184367626905441, -0.1704401969909668, -0.1375531554222107, -0.9412099123001099, -0.08059754967689514, 0.7980722784996033, -0.44977957010269165, -0.0748240500...
hist . -r /version:C10~C1000 ``` will list all the changesets affecting this folder and content recursively between changesets 10 and 1000. See the documentation on [MSDN](http://msdn.microsoft.com/library/yxtbh4yh.aspx). If you need maximum flexibility, you can create your own commands using the TFS client assembl...
[ 0.06944949179887772, -0.19869711995124817, 0.4924418330192566, -0.023633910343050957, 0.04872911423444748, 0.05076667293906212, 0.18463027477264404, 0.014390881173312664, -0.5026269555091858, -0.980691134929657, -0.583263635635376, 0.39312443137168884, -0.28601697087287903, 0.1545094400644...
I'm trying to use a radio button as a click function: ``` $("input[type=radio]").click(function(){ ``` and I don't just want radio buttons, I want radio buttons with the class 'baby', or I could even do it by name if that's easier, searched google and I can't find anything :( How about this : ``` $("input[type=rad...
[ 0.3401741683483124, 0.3718217611312866, 0.33332890272140503, -0.04454696550965309, 0.2905949652194977, -0.07314831763505936, 0.16957120597362518, -0.10718590021133423, -0.1889047622680664, -0.43661725521087646, 0.02956089749932289, 0.8653535842895508, -0.5041025280952454, 0.220047563314437...
the application I'm developing with EVC++ 4 runs on Windows CE 5 and should support unicode (AFAIK wchar\_t uses UTF-16 on windows, so I'm using that), so I want to be able to test it with "more exotic" characters. Especially with characters that use 4 Byte in UTF-16 and not just 2. Therefore I'm trying to display such...
[ 0.09388904273509979, -0.024633614346385002, 0.39308837056159973, 0.371046245098114, 0.028151005506515503, 0.07498957216739655, 0.3406449854373932, -0.05873067304491997, 0.1277189403772354, -0.8817688226699829, 0.24252919852733612, 0.3978846073150635, -0.28025755286216736, -0.06367100030183...
I downloaded the font and put it into Windows\Fonts. I created a textfile using a hexeditor (just to be sure) with following content: ``` FFFE D802 DC00 ``` When I open it with notepad (which should be unicode-capable, right?) and use the downloaded font it doesn't display 1 char, as intended, but this 2: ``` ˘Ü ```...
[ -0.10780993849039078, 0.2509651482105255, 0.47518423199653625, -0.13901923596858978, -0.2808972895145416, 0.21981854736804962, 0.16180896759033203, -0.1282881498336792, -0.21055398881435394, -0.7844747304916382, -0.016018882393836975, 0.5346729755401611, -0.3098975121974945, -0.19265954196...
the same result. Using UTF-8 doesn't help notepad either. How about this : ``` $("input[type=radio][class=baby]").click(function(){ ```
[ 0.07783961296081543, 0.022260351106524467, 0.5628477931022644, -0.23833373188972473, 0.09743233025074005, -0.37975767254829407, 0.3494342267513275, -0.025659125298261642, 0.181135892868042, -0.5635650157928467, -0.03437137231230736, 1.0569647550582886, -0.28591570258140564, 0.3461548089981...
I have a section followed by a table of contents like so: ``` \section{Section1} ABC. \addcontentsline{toc}{section}{Table of Contents} \tableofcontents \newpage \addcontentsline{toc}{section}{List of Figures} \listoffigures \newpage \section{Section2} DEF. \section{Section3} GHI. ``` My issue is that the "Table o...
[ 0.000028841261155321263, 0.038478340953588486, 0.7505630254745483, 0.10766009986400604, -0.29973992705345154, 0.029525496065616608, -0.037221092730760574, -0.11527462303638458, -0.34562748670578003, -0.4933687448501587, -0.16413193941116333, 0.27543357014656067, -0.23075245320796967, 0.053...
As a programmer I sometimes find myself in the position of being dealt a task which is utterly tedious and downright boring. This is not surprising, it would be odd if all aspects of programming were fantastically challenging and fun, but that doesn't change the fact that I wish I could live without these types of assi...
[ 0.5476821660995483, 0.046023473143577576, -0.2789536416530609, 0.3153887391090393, -0.1664239466190338, -0.3366765081882477, 0.1994643211364746, 0.26672351360321045, -0.441150426864624, -0.5984499454498291, -0.08940669894218445, 0.5209361910820007, 0.15362803637981415, 0.07861775159835815,...
I have to, just so I get a reason for not finishing. This is of course affecting my professional life, as I'm constantly jumping from challenge to challenge, leaving a trail of unfinished blah behind me. How do you cope with coders coma? Are there any tips on how to be more productive when it comes to finishing borin...
[ 0.6263607740402222, 0.2441088706254959, -0.2435516119003296, -0.04780352860689163, -0.08210695534944534, -0.0915357917547226, 0.5668900609016418, -0.0825607180595398, -0.2672799229621887, -0.3262627422809601, -0.066958948969841, 0.16572019457817078, 0.12331405282020569, 0.07717739045619965...
through. tl;dr of the link: Timeboxing means allocate a time slice, then work, cutting out what would put you behind. It is meant to get rid of the motivation for procrastination, by not making the tedious task take up more time than it is worth. Besides tedious tasks, timeboxing can be used to make a dent in somethin...
[ 0.42700859904289246, -0.24592120945453644, -0.08598855137825012, 0.4216777980327606, -0.19295766949653625, 0.05448976159095764, 0.03886060789227486, 0.23545607924461365, -0.037845347076654434, -0.6546370983123779, -0.07192183285951614, 0.2039843648672104, -0.05622507259249687, 0.1360685378...
I am working on a simple ruby assignment and I am getting and internal server error. I am assuming it is in how I am tying my classes together. EDIT: I updated it and now I am just not inserting to the database. The point of issue is where I call "result = @dbh.query(query)" This is my first page: ``` #!/usr/local/b...
[ -0.0033446992747485638, -0.061626605689525604, 0.4469899535179138, -0.4368191659450531, -0.29877638816833496, 0.07497171312570572, 0.1696530431509018, -0.42395567893981934, -0.012661440297961235, -0.6040085554122925, -0.2192341536283493, 0.330178439617157, -0.22103632986545563, 0.100414633...
type="text" name="topping1" id="topping1" /></label> <br /><br /> <label for="topping2">Topping 2: <input type="text" name="topping2" id="topping2" /></label> <br /><br /> <label for="name">Name: <input type="text" name="name" id="name" /></label> <br /><br /> <input type="submit" name="submit" id="submit" value="Order...
[ -0.2611759901046753, 0.013261882588267326, 0.5013932585716248, -0.32522791624069214, -0.35405462980270386, 0.06611678749322891, 0.24692977964878082, -0.31702500581741333, 0.10353410243988037, -0.43175750970840454, -0.18821896612644196, 0.3288354277610779, 0.05724075064063072, -0.0691972747...
puts row end end end class Pizza def initialize(db) @dbh=db end def new_pizza(size,topping1,topping2,name) query = "INSERT INTO pizza VALUES(0,#{size},#{topping1},#{topping2},#{name})" @dbh.query_db(query) puts "two" end end ``` Any help would be appreciated,...
[ -0.04541516676545143, 0.05251578614115715, 0.18456245958805084, -0.5067389011383057, -0.12523412704467773, 0.184554323554039, 0.21608786284923553, -0.35029593110084534, 0.2303389459848404, -0.7578122019767761, -0.16856466233730316, 0.41948723793029785, -0.28779464960098267, 0.2954833805561...
query = "INSERT INTO pizza VALUES(0,\"#{size}\",\"#{topping1}\",\"#{topping2}\",\"#{name}\")" @dbh.query_db(query) end ```
[ 0.009408395737409592, 0.0714545026421547, 0.20258301496505737, -0.4286370575428009, 0.044386882334947586, 0.08254801481962204, 0.2579645812511444, -0.1302289217710495, 0.3663903772830963, -0.3994944393634796, -0.3807733356952667, 0.28859028220176697, -0.1808517426252365, 0.3380056917667389...
> Related to my previous question: [Call repaint from another class in Java?](https://stackoverflow.com/questions/772713/call-repaint-from-another-class-in-java) I'm new to Java and I've had a look at some tutorials on SwingWorker. Yet, I'm unsure how to implement it with the example code I gave in the previous questi...
[ 0.3711753785610199, 0.010941029526293278, 0.11116252839565277, -0.12781216204166412, -0.2566620409488678, -0.05994096398353577, 0.3728460967540741, -0.2977384924888611, -0.22133417427539825, -0.7381163239479065, 0.011386348865926266, 0.6022095084190369, 0.03444843739271164, -0.137969821691...
the things which were done is to use [`SwingUtilities.invokeLater`](http://docs.oracle.com/javase/6/docs/api/javax/swing/SwingUtilities.html#invokeLater%28java.lang.Runnable%29) and [`invokeAndWait`](http://docs.oracle.com/javase/6/docs/api/javax/swing/SwingUtilities.html#invokeAndWait%28java.lang.Runnable%29) which ke...
[ 0.2189592868089676, -0.045903243124485016, 0.021626640111207962, -0.17177894711494446, -0.13523060083389282, 0.009852346032857895, 0.3962238132953644, -0.4979100525379181, -0.23706865310668945, -0.2816619575023651, -0.12338586151599884, 0.5078592896461487, -0.4312637746334076, -0.270088940...
`SwingWorker` will be made: ``` class AnswerWorker extends SwingWorker<Integer, Integer> { protected Integer doInBackground() throws Exception { // Do a time-consuming task. Thread.sleep(1000); return 42; } protected void done() { try { JOptionPa...
[ 0.2884005010128021, -0.1298927366733551, 0.14252763986587524, -0.31265172362327576, 0.2787604033946991, -0.10307946801185608, 0.22367195785045624, -0.4293006360530853, -0.43709269165992737, -0.30016830563545227, -0.3039000928401947, 0.5078734755516052, -0.5085933208465576, -0.0293678902089...
catch (Exception e) { e.printStackTrace(); } } } ``` The return type of the `doInBackground` and `get` methods are specified as the first type of the `SwingWorker`, and the second type is the type used to return for the `publish` and `process` methods, which are not used in this exampl...
[ 0.24197925627231598, -0.3281368315219879, 0.1921091377735138, -0.087241992354393, 0.17183682322502136, -0.2187700867652893, -0.045727211982011795, -0.48250308632850647, -0.18613176047801971, 0.01022589672356844, -0.24904735386371613, 0.6363784074783325, -0.6171354055404663, -0.175002038478...
to a `JButton` to execute the `AnswerWorker`: ``` JButton b = new JButton("Answer!"); b.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { new AnswerWorker().execute(); } }); ``` The above button can be added to a `JFrame`, and clicked on to get a message box a ...
[ 0.17987515032291412, -0.28836217522621155, 0.7774814963340759, -0.3342173993587494, 0.026159413158893585, 0.13762831687927246, 0.20278115570545197, -0.6155558228492737, -0.18648633360862732, -0.46419697999954224, -0.4687320291996002, 0.513620913028717, -0.5660733580589294, -0.0090160118415...
// include: "JButton" b code here. f.getContentPane().add(b); f.getContentPane().add(new JButton("Nothing")); f.pack(); f.setVisible(true); } ``` Once the application is run, there will be two buttons. One labeled "Answer!" and another "Nothing". When one clicks on the "Answer!" button, nothing will ...
[ 0.24040120840072632, -0.13492268323898315, 0.59139484167099, -0.28237760066986084, 0.30450698733329773, -0.21915408968925476, 0.5219624042510986, -0.3813934028148651, -0.089056096971035, -0.5588176250457764, -0.7345012426376343, 0.8962574601173401, -0.5560911893844604, -0.19593670964241028...
My application is a stand alone Java app, that customers download, install and run. It uses MQ to communicate with a host, which has been working for years. Neither myself nor customers have anything MQ installed on their Windows machines; we include and use com.ibm.mq.jar to do the work. Apparently though, MQ needs a...
[ 0.15244172513484955, -0.08998739719390869, 0.5818508267402649, -0.10610458999872208, 0.17836201190948486, 0.11931820213794708, 0.1613188534975052, -0.1557217687368393, -0.16686348617076874, -0.9729167819023132, -0.17747759819030762, 0.4166053235530853, -0.3003201186656952, 0.25486111640930...
can update your manufacturer info in that function. Save the old info before populating the new info. Or prompt the user if they really want to change it before saving.
[ 0.7143393158912659, -0.01340400893241167, 0.35627636313438416, 0.2864014804363251, 0.3073645830154419, 0.0733669176697731, -0.1705922931432724, 0.19562497735023499, -0.08472538739442825, -0.7085314989089966, -0.04206518083810806, 0.7314510941505432, 0.15773461759090424, 0.05679578706622124...
A question prompted by [jbar's question](https://stackoverflow.com/questions/779573/what-works-for-web-dev-in-c/779585#779585). In scripting languages like Python, Ruby, and Perl, there are libraries that simplify generating dynamic HTML. (For example, the [cgi](http://ruby-doc.org/stdlib/libdoc/cgi/rdoc/classes/CGI.h...
[ 0.6954683065414429, -0.052432261407375336, 0.050757404416799545, 0.051842376589775085, -0.3578683137893677, -0.1618296504020691, 0.23599112033843994, -0.20959176123142242, -0.12369034439325333, -0.5039244890213013, -0.20544269680976868, 0.3469465672969818, -0.35338810086250305, -0.11223132...
a web application developed with Wt is written in only one compiled language (C++), from which the library generates the necessary HTML/XHTML, Javascript, CGI, SVG/VML/Canvas and AJAX code.
[ 0.5207872986793518, -0.03449416905641556, 0.2532587945461273, 0.13004261255264282, -0.11046002060174942, -0.11077424883842468, 0.050011079758405685, -0.19163520634174347, 0.18681453168392181, -0.4751695394515991, -0.5407200455665588, 0.3617643713951111, -0.2623845040798187, -0.289860367774...
I'm trying to use the [nftw](http://www.opengroup.org/onlinepubs/009695399/functions/nftw.html) to process some files under a directory ``` #include <ftw.h> #include <stdio.h> int wrapper(const char * fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf) { printf("File %d\n", ftwbuf->base); return(0);...
[ 0.1571609228849411, 0.2164914458990097, 0.38666218519210815, -0.45071789622306824, 0.23429925739765167, 0.22004854679107666, 0.7545443773269653, -0.1605837345123291, -0.12580826878547668, -0.7057824730873108, -0.11690042912960052, 0.5717411637306213, -0.47824984788894653, 0.110590785741806...
is only this definition or declaration, which is probably not what you want kconfig_parser.c: In function ‘wrapper’: kconfig_parser.c:6: error: dereferencing pointer to incomplete type ``` I've checked the definition of the struct and the prototype of the callback, and some examples, it should be fine... What am I do...
[ 0.2672906517982483, 0.23013265430927277, 0.12986335158348083, -0.1756853312253952, -0.13287822902202606, -0.17433777451515198, 0.4646006226539612, -0.32437095046043396, -0.13839654624462128, -0.40884214639663696, -0.12661319971084595, 0.7546120285987854, -0.45219630002975464, 0.13569885492...
I have a variable size array of strings, and I am trying to programatically loop through the array and match all the rows in a table where the column "Tags" contains at least one of the strings in the array. Here is some pseudo code: ``` IQueryable<Songs> allSongMatches = musicDb.Songs; // all rows in the table ``` ...
[ -0.09317346662282944, 0.26112115383148193, 0.39843758940696716, -0.08502314984798431, -0.1412915289402008, -0.008226873353123665, 0.3257344961166382, -0.35570722818374634, -0.328530490398407, -0.4371652901172638, -0.06633766740560532, 0.4722813665866852, -0.4203508794307709, 0.066244490444...
= allSongMatches.Where(SongsVar => { bool retVal = false; foreach(string str in strArray) { retVal = retVal || SongsVar.Tags.Contains(str); } return retVal; }); ``` Can anybody show me the correct strategy to accomplish this? I am still new to the world of LINQ :-...
[ 0.025979716330766678, 0.17543502151966095, 0.638321578502655, -0.14572416245937347, 0.003405384486541152, 0.1218738704919815, 0.5427079200744629, -0.7098116278648376, -0.2067910134792328, -0.1871488392353058, -0.37007787823677063, 0.7692938446998596, -0.04658109322190285, -0.01258870866149...
var closureVariable = str; // See the link below for the reason searchPredicate = searchPredicate.Or(SongsVar => SongsVar.Tags.Contains(closureVariable)); } var allSongMatches = db.Songs.Where(searchPredicate); ``` [LinqToSql strange behaviour](https://stackoverflow.com/questions/658818/linqtosql-strange-be...
[ -0.3249202370643616, 0.08861247450113297, 0.43787968158721924, -0.29253652691841125, -0.12846766412258148, 0.07092110067605972, 0.5864309072494507, 0.03132856637239456, -0.5573157072067261, -0.06549019366502762, -0.332199364900589, 0.2747802436351776, -0.29280754923820496, 0.49723592400550...
Is it possible to BULK INSERT (SQL Server) a CSV file in which the fields are only OCCASSIONALLY surrounded by quotes? Specifically, quotes only surround those fields that contain a ",". In other words, I have data that looks like this (the first row contain headers): ``` id, company, rep, employees 729216,INGRAM MIC...
[ 0.2891390323638916, 0.49100053310394287, 0.1635940968990326, 0.2553372383117676, 0.23165804147720337, 0.056544285267591476, -0.1996268481016159, -0.06493865698575974, -0.2925381362438202, 0.00926908478140831, 0.06402502954006195, 0.1558719426393509, -0.12278856337070465, 0.2739987373352051...
is a varchar, then using some kludgy processing to strip out the quotes, but that doesn't work either, because the fields that contain ',' are split into multiple columns. Unfortunately, I don't have the ability to manipulate the CSV file beforehand. Is this hopeless? Many thanks in advance for any advice. By the w...
[ 0.43573233485221863, 0.20643845200538635, 0.4504829943180084, -0.04545066878199577, -0.21360166370868683, 0.04513390362262726, 0.25623053312301636, -0.19230549037456512, -0.29939353466033936, -0.07966149598360062, 0.1440395712852478, 0.5469020009040833, -0.22075264155864716, 0.163856282830...
to do this, here is the code. I wrote this because I absolutely had no choice. It is utility code and I'm not proud of it, but it works. The approach is not to get SQL to understand quoted fields, but instead manipulate the file to use an entirely different delimiter. EDIT: Here is the code in a github repo. It's been...
[ 0.30627015233039856, -0.07161711156368256, 0.5711227059364319, 0.19007526338100433, -0.21790087223052979, 0.02457917109131813, 0.017174843698740005, -0.31445175409317017, -0.27370426058769226, -0.5584371089935303, -0.043665871024131775, 0.5411590933799744, -0.15517716109752655, -0.12991185...
to use the new field delimiter instead of a comma. In the version of the function here, the placeholder is <*TMP*> (I feel confident this will not appear in the original csv - if it does, brace for explosions). Therefore after running this function you import in sql by doing something like: ``` BULK INSERT MyTable FR...
[ 0.10207359492778778, 0.15729865431785583, 0.7437164187431335, -0.09939029067754745, -0.3525788187980652, -0.12347566336393356, 0.27896496653556824, -0.13116933405399323, -0.2956700325012207, -0.49210208654403687, -0.07485006004571915, 0.6495257616043091, -0.1802069991827011, 0.205706313252...
As String) As Integer Dim PH1 As String = "<*TMP*>" Dim objReader As StreamReader = Nothing Dim count As Integer = 0 'This will also serve as a primary key' Dim sb As New System.Text.StringBuilder Try objReader = New StreamReader(File.OpenRead(InputFile), System.Te...
[ -0.04869486764073372, -0.5400962829589844, 0.8963367938995361, -0.24912813305854797, -0.15739521384239197, 0.09168663620948792, 0.3832686245441437, -0.22761501371860504, -0.34336137771606445, -0.39583152532577515, -0.536960780620575, 0.45797884464263916, -0.6185357570648193, 0.346695184707...
UpdateStatus(ex.Message) End Try If objReader Is Nothing Then UpdateStatus("Invalid file: " & InputFile) count = -1 Exit Function End If 'grab the first line Dim line =
[ -0.22671492397785187, -0.4694221615791321, 0.7876476049423218, -0.135883167386055, 0.1730692982673645, 0.1156267374753952, 0.7062190771102905, 0.2219950407743454, -0.17214661836624146, -0.4689677655696869, -0.49158746004104614, 0.5698718428611755, -0.6083873510360718, -0.01083079818636179,...
reader.ReadLine() 'and advance to the next line b/c the first line is column headings If hasHeaders Then line = Trim(reader.ReadLine) End If While Not String.IsNullOrEmpty(line) 'loop through each line count += 1 'Replace commas with our custom-made delimiter line = li...
[ -0.12461944669485092, -0.23924429714679718, 0.8666321039199829, -0.21507345139980316, 0.06278082728385925, 0.08387622982263565, -0.09852457791566849, -0.26411837339401245, 0.1864633560180664, -0.4959568977355957, -0.3470270335674286, 0.29413363337516785, -0.5415651798248291, 0.028699992224...
commas. 'In that case we will need to identify the quoted section and swap commas back in for our custom placeholder. Dim starti = line.IndexOf(ph1 & """", 0) If line.IndexOf("""",0) = 0 then starti=0 While starti > -1 'loop through quoted fields Dim FieldTerminatorFound As...
[ -0.01790340058505535, -0.2264663428068161, 0.8040266633033752, -0.28755420446395874, 0.1846056431531906, 0.07718449085950851, 0.14993536472320557, -0.4914502501487732, -0.06491661071777344, -0.29038408398628235, -0.2269509881734848, 0.48458096385002136, -0.3725890517234802, 0.1180692389607...
quote token (originally a ",) Dim endi As Integer = line.IndexOf("""" & ph1, starti) If endi < 0 Then FieldTerminatorFound = True If endi < 0 Then endi = line.Length - 1 End If
[ 0.3118354380130768, -0.3691433072090149, 0.8492331504821777, -0.13849113881587982, -0.03005472756922245, 0.21129675209522247, -0.11306047439575195, -0.2318650335073471, 0.03557072952389717, -0.09233623743057251, -0.08668972551822662, 0.300245076417923, -0.24840416014194489, 0.6854799389839...
While Not FieldTerminatorFound 'Find any more quotes that are part of that sequence, if any Dim backChar As String = """" 'thats one quote Dim quoteCount = 0 While backChar =
[ 0.3117917776107788, 0.06400812417268753, 0.5461481809616089, 0.0038041004445403814, 0.020935961976647377, -0.15743879973888397, 0.04696391522884369, -0.178392231464386, 0.13304023444652557, -0.19165314733982086, -0.11206744611263275, 0.5113155245780945, -0.1851964294910431, 0.2569298744201...
"""" quoteCount += 1 backChar = line.Chars(endi - quoteCount) End While If quoteCount Mod 2 = 1 Then 'odd number of quotes. real field terminator
[ 0.025116629898548126, -0.1006183847784996, 0.6067367792129517, -0.03134949132800102, -0.09310071915388107, -0.08643775433301926, -0.04372476041316986, -0.18204976618289948, 0.04775987192988396, -0.14880333840847015, -0.2776682376861572, 0.6626937985420227, -0.26912546157836914, 0.297528654...
FieldTerminatorFound = True Else 'keep looking endi = line.IndexOf("""" & ph1, endi + 1) End If End While
[ 0.04317113012075424, -0.16208069026470184, 0.7765064835548401, -0.2264847755432129, 0.11071546375751495, 0.008758238516747952, 0.4610239267349243, -0.2060089111328125, -0.013052551075816154, -0.32884591817855835, -0.2612230181694031, 0.46713411808013916, -0.4349009692668915, -0.04996571689...
'Grab the quoted field from the line, now that we have the start and ending indices Dim source = line.Substring(starti + ph1.Length, endi - starti - ph1.Length + 1) 'And swap the commas back in line = line.Replace(source, source.Replace(ph1, ",")) 'Find the next quoted ...
[ -0.17453409731388092, -0.2551053464412689, 0.6484497785568237, -0.1819111704826355, 0.15503951907157898, 0.31510448455810547, -0.11301995068788528, -0.4869769811630249, 0.04140661284327507, -0.276302695274353, -0.39163729548454285, 0.5607671141624451, -0.4048808217048645, -0.09027234464883...
' If endi >= line.Length - 1 Then endi = line.Length 'During the swap, the length of line shrinks so an endi value at the end of the line will fail starti = line.IndexOf(ph1 & """", starti + ph1.Length) End While line = objReader.ReadLine End While
[ -0.3776383399963379, -0.2287096232175827, 0.8542304635047913, -0.22722695767879486, 0.21265508234500885, 0.3024650514125824, 0.25168249011039734, -0.39851734042167664, -0.01864793710410595, -0.4725585877895355, -0.4644310176372528, 0.12890461087226868, -0.22998641431331635, 0.1876768618822...
objReader.Close() SaveTextToFile(sb.ToString, OutputFile) Return count End Function ```
[ -0.454581081867218, 0.14254267513751984, 0.6235214471817017, -0.405159056186676, 0.13237524032592773, 0.030589191243052483, 0.3907845616340637, -0.11060316115617752, -0.08242175728082657, -0.45653021335601807, -0.35935989022254944, 0.41913941502571106, -0.5851101875305176, 0.06106326356530...
I'm currently stuck. I have a webform with a button that registers or saves a record. What i'd like to is have it display a javascript alert and then redirect to a page. Here is the code i am using ``` protected void Save(..) { // Do save stuff DisplayAlert("The changes were saved Successfully"); Respon...
[ 0.24593709409236908, 0.30157411098480225, 0.629410982131958, -0.2958480715751648, 0.16633085906505585, 0.08654545992612839, 0.41609615087509155, -0.05179627984762192, -0.37862861156463623, -0.972876250743866, 0.10935007035732269, 0.2868072986602783, -0.2422553300857544, 0.3943694829940796,...
this.GetType(), Guid.NewGuid().ToString(), string.Format("alert('{0}');", message.Replace("'", @"\'").Replace("\n", "\\n").Replace("\r", "\\r")), true
[ 0.12104243785142899, -0.13624438643455505, 0.5814757943153381, -0.3622751533985138, 0.4587648808956146, -0.09917003661394119, 0.2713390290737152, -0.2187538892030716, -0.008282448165118694, -0.6357697248458862, -0.537903904914856, 0.8862207531929016, -0.636400043964386, -0.0576639249920845...
); } ``` Can anyone help me find a solution to this? Thanks You can't do a Response.Redirect because your javascript alert will never get displayed. Better to have your javascript code actually do a `windows.location.href='default.aspx'` to do the redirection after the alert is displayed. Something like this: `...
[ 0.13395905494689941, -0.0019853399135172367, 0.7335479855537415, -0.26008889079093933, 0.2081504762172699, -0.05598911643028259, 0.4757135510444641, -0.13465780019760132, -0.188520610332489, -0.9164854288101196, -0.2839735448360443, 0.7212541103363037, -0.3964761197566986, 0.14897510409355...
true); } ```
[ 0.2280387133359909, 0.2371959388256073, 0.36949822306632996, -0.5194705724716187, 0.32995277643203735, -0.3401951193809509, 0.6732558012008667, 0.09848881512880325, 0.33962613344192505, -0.2657029926776886, -0.51800137758255, 0.9220685958862305, -0.23792512714862823, 0.335862934589386, 0...
I'm editing some Python code with rather long functions and decided it would be useful to quickly get the function name without scrolling up. I put this bit of code together to do it. Is there something built in to emacs in general, or the standard python mode in particular, which I can use instead? ``` (defun python-...
[ -0.18298551440238953, 0.05307365208864212, 0.3460894227027893, -0.1030445396900177, 0.01899542845785618, -0.024744603782892227, 0.08085209131240845, -0.16933390498161316, -0.208382710814476, -0.3963637053966522, -0.21903355419635773, 0.5229801535606384, -0.24167615175247192, -0.08866188675...
current function > name in the mode line, updating it as > you move around in a buffer. > > > To either enable or disable Which > Function mode, use the command M-x > which-function-mode. This command is > global; it applies to all buffers, > both existing ones and those yet to be > created. However, it takes ...
[ -0.24601612985134125, -0.46685245633125305, 0.8823090195655823, -0.14927884936332703, 0.224723219871521, -0.12077747285366058, -0.13906261324882507, 0.08488993346691132, -0.2484225332736969, -0.6730040311813354, -0.3081921935081482, 0.5623073577880859, -0.3861883878707886, 0.10195420682430...
all the major modes that support > Imenu. Although I see it getting a little confused in one Python file that I have here...
[ 0.05470232293009758, -0.09012303501367569, -0.05225694552063942, -0.16132378578186035, -0.34865444898605347, -0.29300957918167114, 0.36145907640457153, 0.3840146064758301, -0.10789453238248825, -0.8974442481994629, 0.08052699267864227, 0.7838530540466309, -0.4896109104156494, -0.0100178830...
The project I am currently working on requires a lot of hexadecimal numbers to be entered into the code. I once saw a pic of an old keyboard with a hexadecimal numpad (has A-F letters on it also) replacing the normal numpad. Anyone know where I can get one of these? IPv6 Buddy -keypad should work well for hexadecimal ...
[ 0.3331681191921234, 0.14306284487247467, 0.44773322343826294, 0.30758312344551086, 0.28355497121810913, 0.0680941566824913, 0.25702235102653503, 0.0027429137844592333, -0.22602689266204834, -0.6352657079696655, -0.0696517825126648, 0.3946695327758789, -0.06345909088850021, 0.30359050631523...
Let's say you have a class library project that has any number of supplemental files that also need to be included with the compiled assembly (e.g. simple text files or even a legacy unmanaged DLL that's wrapped by the assembly as an interop layer). While embedding the supplemental files into the assembly itself is [re...
[ 0.5476866960525513, -0.17903341352939606, -0.21733853220939636, 0.15617533028125763, 0.07330545037984848, -0.02438284642994404, -0.09490855038166046, -0.19649776816368103, -0.318610817193985, -0.35476556420326233, -0.1903957724571228, 0.1823274940252304, -0.08701227605342865, -0.0785154104...
Directory" specified appears to be sufficient for projects that are completely self-contained within a solution. But if a separate project in another solution adds a reference to the assembly, it does not automatically pickup its sidecar files. Is there a way in the project to somehow mark the resulting assembly such t...
[ 0.5259943604469299, -0.05133943259716034, 0.39307528734207153, 0.2159021645784378, 0.23239190876483917, -0.3677709698677063, -0.21454404294490814, -0.11274434626102448, -0.2636808753013611, -0.4942874312400818, 0.012752500362694263, 0.293881893157959, -0.4669944941997528, 0.257194429636001...
[here](http://msdn.microsoft.com/en-us/library/xawyf94k.aspx), but the command is similar to this: ``` csc /linkresource:N.dll /t:library A.cs ``` Where N.dll is a *native DLL* that will go wherever the managed assembly goes (including into the GAC.) There's a very clear description at the link I provided.
[ 0.20771776139736176, -0.027114596217870712, 0.12624137103557587, -0.26000428199768066, -0.05745675787329674, -0.25998568534851074, 0.11934700608253479, 0.22903107106685638, -0.4765203297138214, -0.6987171769142151, -0.38878926634788513, 0.09126269072294235, -0.2899859845638275, 0.435132563...
I have a custom UserControl which tries to recreate auto-complete for a textbox. When user types, the text is used to filter a provided collection of items and then a Popup displays a ListBox with items that match what user have typed. Unfortunately, if user decides to switch away from the application to another windo...
[ 0.4683648645877838, 0.060811836272478104, 0.411782830953598, 0.020490702241659164, -0.19935883581638336, -0.004550660960376263, 0.07820256054401398, 0.08725254237651825, -0.3811344504356384, -0.53719562292099, 0.0933808982372284, 0.22082427144050598, -0.24509155750274658, 0.258075267076492...
around but only found one post about this that went unanswered for two years :( Actually, I didn't realize that I had `StaysOpen` property of the Popup set to `true`. ``` <Popup StaysOpen="False" /> ``` actually does the trick for me.
[ 0.46252351999282837, 0.15997086465358734, 0.5560784935951233, 0.05233365669846535, 0.2571423053741455, -0.5246657729148865, 0.5979582667350769, 0.4299745559692383, -0.24869634211063385, 0.03961723670363426, -0.015711044892668724, 0.5983681082725525, 0.0582018680870533, 0.22777077555656433,...
I have the following two procedures defined in my AppDelegate. saveSettings and loadSettings. I am calling my loadSettings procedure in the AppDidFinishLaunching method, and I am calling the saveSettings procedure in my settings view, once the save button is clicked. Both methods seem to be called at the right time, t...
[ 0.00267221312969923, -0.11666753888130188, 0.5000311136245728, -0.12858274579048157, -0.018101025372743607, 0.40418514609336853, 0.17861895263195038, -0.03619590029120445, -0.3259638249874115, -0.8527810573577881, 0.039503004401922226, 0.745543360710144, -0.4408741891384125, -0.08123055845...
different view and it works fine, but for some reason, I am not getting results in my appDelegate. ``` - (void)applicationDidFinishLaunching:(UIApplication *)application { [window addSubview:navigationController.view]; [window makeKeyAndVisible]; [self loadSettings]; [self setDefaults]; } -(void)l...
[ 0.036653079092502594, -0.3971404731273651, 0.9132729172706604, -0.14839085936546326, -0.16500736773014069, 0.3240916132926941, 0.49680784344673157, -0.4615195095539093, -0.3512803018093109, -0.9840062856674194, 0.014486967585980892, 0.9434117078781128, -0.1975790411233902, 0.23926874995231...
settings.autoLogin=@"N"; } -(void)saveSettings:(SharedData *)d{ settings=d; NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; [prefs setObject:settings.masterLocation forKey:@"masterLocation"]; [prefs setObject:settings.masterPort forKey:@"masterPort"]; [prefs setObject:settings.userN...
[ 0.057234734296798706, -0.11111577600240707, 0.45982494950294495, -0.2640380859375, 0.22039097547531128, 0.2482803612947464, 0.5473674535751343, -0.35573989152908325, -0.1859179139137268, -0.6913455128669739, -0.15730363130569458, 0.7421114444732666, -0.31243953108787537, 0.2317630052566528...
I have a Web application using spring and hibernate and struts (it runs on Tomcat) The call sequence is something like this... Struts action calls spring service bean which in turn calls Spring DAO bean. The DAO implementation is a Hibernate implementation. **The question is** Would all my spring beans be running in...
[ 0.12523183226585388, -0.23839855194091797, 0.2066887468099594, -0.18573501706123352, -0.27973729372024536, 0.16886335611343384, 0.18861480057239532, -0.12026990205049515, -0.3674341142177582, -0.3110094666481018, 0.050407953560352325, 0.20269478857517242, -0.40185844898223877, 0.0500749200...
all beans in the same thread ?** When I tried a JUnit test - I got the same id via Thread.currentThread().getId() in the Test Case and the two beans- which leads me to believe there was only one thread in action Or is the behavior unpredictable? Or will it change when running on Tomcat server ? **Clarification** I d...
[ 0.48308196663856506, -0.07801374047994614, 0.44746634364128113, -0.0366363562643528, -0.053790006786584854, 0.06450644880533218, 0.22299063205718994, 0.015575464814901352, -0.607473611831665, -0.5707977414131165, 0.41391679644584656, 0.4121464192867279, -0.5109466910362244, 0.1562997698783...