text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
{ return _c.GetValue(); } }; using namespace std; int main() { B<int, A> b(10); cout<<b.GetValue(); return 0; } ``` Is there a way by which the template parameter T can be removed? For example is there a way to make the following work? ``` //Does not compile template <template <typename T> ...
[ 0.27019229531288147, -0.26750245690345764, 0.22429722547531128, -0.25530508160591125, 0.17091430723667145, -0.14071503281593323, 0.4261808693408966, -0.3760124146938324, -0.10240115225315094, -0.4808162748813629, -0.6028934121131897, 0.7259194850921631, -0.6900245547294617, 0.1695482283830...
{ return _c.GetValue(); } }; int main() { B< A<int> > b(10); cout<<b.GetValue(); return 0; } ``` I assume you're after X, as well as A, in your code. The usual pattern is to have ``` template<typename C> struct B { C c; }; ``` and then, inside classes eligible for substitution: ``` te...
[ 0.15673436224460602, -0.02484380453824997, 0.20828430354595184, -0.2806982100009918, 0.10733144730329514, -0.07238062471151352, 0.22073592245578766, -0.24087154865264893, -0.0680110976099968, -0.5952973961830139, -0.47774675488471985, 0.5358192920684814, -0.5173298716545105, 0.175098687410...
A cancer CT picture is stored inside a unsigned short array (1-dimensional). I have the location information of the cancer region inside the picture, but the coordinates (x,y) are in superpixel (128x128 unsigned short). My task is to highlight this region. I already solved this one by converting superpixel coordinat...
[ 0.4507461488246918, 0.020742276683449745, 0.7208309173583984, 0.11559595912694931, 0.23787832260131836, 0.08020292222499847, -0.044126830995082855, 0.04065930098295212, 0.12921132147312164, -0.9746099710464478, 0.5018332004547119, 0.2285095453262329, -0.3190085291862488, 0.3065721392631531...
know this does not work. To give you an idea what I was thinking of: ``` typedef struct { unsigned short[128x128] } spix; spix *spixptr; unsigned short * bufptr = img->getBuf(); spixptr = bufptr; ``` **Update 1:** Yep its vague, let me try again with a picture: ``` [0][1][2] ... [127]| ... [x] | [1] ...
[ 0.4683923125267029, -0.04799244552850723, 0.8011326789855957, 0.05659068003296852, 0.2340787798166275, -0.1894342601299286, 0.38698869943618774, -0.33016055822372437, -0.20467093586921692, -0.40186071395874023, 0.10518524050712585, 0.39216047525405884, -0.34083810448646545, 0.0498753339052...
| | . | <-- this is a superpixel . | | [127] | | --------------------
[ -0.3953320384025574, -0.26349076628685, 0.46114179491996765, -0.20970679819583893, -0.14237356185913086, 0.27532607316970825, -0.12904667854309082, -0.034740377217531204, -0.26322078704833984, -0.4116169214248657, -0.057577937841415405, 0.15752220153808594, -0.25952333211898804, -0.0064133...
| . | . | . | [y]
[ 0.11072903126478195, 0.35183173418045044, 0.5401831269264221, -0.17198117077350616, -0.14908072352409363, 0.12634263932704926, 0.28750377893447876, 0.12558606266975403, -0.05940963700413704, -0.302250474691391, -0.4372715950012207, 0.24805057048797607, -0.08188416063785553, 0.2104556411504...
|<--whole picture stored in a ushort* buf = new ushort[x*y] ------------------------------ ``` I like to access the 128x128 `ushorts` at once with a pointer, so I can `memcpy` data into the 128x128 field. **Update 2:** The bitblit transfer hint helped a lot. From what I understand you have: * A large image that i...
[ 0.26476117968559265, -0.08378402888774872, 0.5380038619041443, 0.11994442343711853, 0.036786388605833054, -0.17037898302078247, 0.10980594903230667, -0.05007995665073395, -0.2983991205692291, -0.8270034193992615, 0.011394666507840157, 0.5170629024505615, -0.2609368562698364, 0.161739110946...
the image as if they were a single pixel. So if the image was 1024x1024 pixels you'd want to be able to access it as a 8x8 grid of 128x128 pixel blocks. Now if this is the case what you need is to create a class that represents one of these 128x128 blocks. This class should reference the image, so that you don't copy ...
[ 0.2118712216615677, -0.20352041721343994, 0.326734721660614, 0.5498385429382324, -0.22328481078147888, 0.24176283180713654, -0.014991485513746738, -0.10985401272773743, -0.42998939752578735, -0.6524548530578613, -0.06882951408624649, 0.23958374559879303, -0.5160372257232666, 0.205938681960...
larger image then what you need is the [bit blit](http://www.catb.org/~esr/jargon/html/B/bitblt.html) algorithm. The [bit block transfer](http://en.wikipedia.org/wiki/Bit_blit) (usually called just blit) will allow you to copy the selected bit of data from the larger image to a smaller one. The algorithm can also be ad...
[ 0.5560815930366516, -0.4137662947177887, 0.6333334445953369, 0.1768709272146225, -0.2693944275379181, -0.13681083917617798, -0.5147110223770142, -0.11152539402246475, -0.38689351081848145, -0.8958109617233276, -0.34495559334754944, 0.6032370924949646, -0.3705993890762329, -0.14409257471561...
I have a DateTime object that I need to print in a custom gridlike control. The type of the data I want to print is a date in the format dd-mm-yyyy. This value can be either filled or blank. If it's filled it will be parsed into a `DateTime` and then printed as the default `ToString`. For each row, I can use ``` <Cel...
[ 0.17527420818805695, 0.07657864689826965, 0.831447958946228, -0.2659313976764679, 0.18890757858753204, 0.16397765278816223, -0.2562502324581146, -0.13190332055091858, -0.12363585829734802, -0.5903322100639343, 0.03712610527873039, 0.37643465399742126, -0.20808935165405273, 0.11831074208021...
problem with empty dates, ``` Convert.ToDateTime() ``` On an empty string, it will print the default DateTime. Is there a way that I can fashion an If-Statement in my aspx code, to only perform `Convert.ToDateTime`, if it's not an empty string? ``` Container.Value.Length > 0 ? Convert.ToDateTime(Container.Value).To...
[ 0.19361011683940887, -0.1960161328315735, 0.46896448731422424, -0.3113156855106354, 0.4528160095214844, -0.26619088649749756, 0.1512034386396408, -0.17379765212535858, -0.011983850970864296, -0.486494779586792, -0.0858704000711441, 0.626240611076355, -0.45286983251571655, 0.134712949395179...
**The background** I'm building a fair-sized web application with a friend in my own time, and we've decided to go with the Django framework on Python. Django provides us with a lot of features we're going to need, so please don't suggest alternative frameworks. The only decision I'm having trouble with, is whether...
[ 0.6559739112854004, 0.381147563457489, 0.05562540143728256, -0.1654312014579773, 0.07815428823232651, -0.03963964059948921, 0.10973818600177765, 0.34580498933792114, -0.28321224451065063, -0.5803858041763306, 0.07873260229825974, 0.5706948637962341, 0.030888916924595833, -0.336045175790786...
work will be written in Python. The attractiveness of Jython is of course the JVM. The number of python/django enabled web-hosts is extremely minimal - whereas I'm assuming I could drop a jython/django application on a huge variety of hosts. This isn't a massive design decision, but still one I think needs to be decid...
[ 0.3773709833621979, 0.24594439566135406, 0.11964084953069687, 0.007205785717815161, -0.33374419808387756, -0.27653253078460693, 0.24933861196041107, -0.020933160558342934, 0.010660316795110703, -0.5463281273841858, -0.10240892320871353, 1.0181803703308105, -0.14363926649093628, -0.62316983...
Jython (with very minimal pre-configuration)? **Decision** Thanks for the helpful comments. What I think I'm going to do is develop in Jython for the JVM support - but to try to only use Python code/libraries. Portability isn't a major concern so if I need a library in the JDK (not readily available in python), I'l...
[ 0.35049664974212646, 0.33343207836151123, 0.15549956262111664, -0.2013934850692749, -0.4675113260746002, -0.3169473111629486, 0.26174861192703247, 0.2688826024532318, -0.17054952681064606, -0.4251694679260254, 0.010732942260801792, 0.7307968735694885, -0.2434283345937729, -0.24017418920993...
should use the regular Python implementation or Jython, I'd say it's a matter of whether you prefer having all the Java libraries available or all of the Python libraries. At this point you can expect almost everything in the Python standard library to work with Jython, but there are still plenty of third-party package...
[ 0.6050502061843872, -0.006261907983571291, -0.17442208528518677, -0.06147824600338936, -0.30299776792526245, -0.47702303528785706, 0.25927677750587463, 0.4024145305156708, -0.49817541241645813, -0.2930538058280945, -0.22161607444286346, 0.9568568468093872, -0.2115834504365921, -0.239803731...
I've been doing PHP/MySQL websites with shared hosting providers for the last couple years. The day-to-day process is basically: * develop in Eclipse, one website per folder * upload via FileZilla, one website per folder * use PHPMyAdmin to create and manage your local and online databases and transfer data from one t...
[ 0.5424277186393738, 0.38609734177589417, 0.16778510808944702, -0.04926242306828499, -0.3056497573852539, -0.1227341741323471, 0.1175094023346901, 0.36118704080581665, -0.308981716632843, -0.7772108912467957, 0.1738816350698471, 0.39398789405822754, 0.13426202535629272, 0.037393540143966675...
some pointers based on your experience and tell me what I am not doing optimally: * I've installed both the Visual Web Developer 2008 Express as well as the full version of Visual Studio 2008, both seem to be full-featured tools for developing ASP.NET sites. **In terms of websites at shared hosting providers, what can...
[ 0.028181297704577446, 0.07007378339767456, 0.28903648257255554, 0.154424786567688, -0.5536667108535767, -0.05341862514615059, 0.2428562045097351, -0.016320254653692245, -0.33154818415641785, -0.5694307684898376, 0.3737267851829529, 0.5977917313575745, -0.33416610956192017, -0.4664703011512...
in the above IDEs?** * I installed SQL Server 2008 Management Studio and can now issue SQL commands to my online SQL Server database (although I strangely can't see my database in the list on the left, I can still access it, I assume this is some rights issue with my provider, www.domainbox.de, but this provider told m...
[ 0.03433540463447571, 0.19256213307380676, 0.27211248874664307, 0.12200256437063217, -0.20578062534332275, -0.3236684799194336, 0.33590447902679443, -0.06179431453347206, -0.3936850428581238, -0.5656562447547913, 0.08623000979423523, 0.6168928742408752, -0.15641355514526367, 0.1351436078548...
there something else that is better, e.g. where you could edit your data in the grid, etc.?** And I assume that with most providers you are able to manage your online SQL Server database with SQL Server Management Studio, is that correct? (I remember back in 2001 managing online SQL Server 2000 database at a shared hos...
[ 0.4768327474594116, -0.21826227009296417, 0.16238628327846527, 0.4527249038219452, 0.09688929468393326, -0.3152972459793091, 0.11440856754779816, 0.38183051347732544, -0.6450571417808533, -0.3798414468765259, 0.2875494658946991, 0.990291953086853, 0.09638632833957672, -0.272946834564209, ...
your data in your online database to local storage?** (currently I would have to write code that output my data to some other format, e.g. XML or SQL Script) * And after you make a number of structural and data changes to your local database, **how do you transfer those changes and the new data to your online database?...
[ 0.5648095011711121, -0.026069818064570427, 0.5386732816696167, 0.12985551357269287, 0.27175599336624146, -0.18411272764205933, 0.3198843002319336, 0.011252359487116337, -0.5442057847976685, -0.9688109159469604, 0.03130575641989708, 0.38540923595428467, -0.03831979259848595, 0.0149090569466...
ways to go about this, better providers, better tools, etc. **Would like to hear some "best practices" advice from anyone who works with ASP.NET, SQL Server and shared hosting.** For the most part, what you're doing now will work with an asp.net website. For your development environment, I don't think you will be limi...
[ 0.08972357213497162, -0.0006984976935200393, 0.1110457107424736, 0.06727928668260574, -0.5112078785896301, -0.18527555465698242, 0.2456173598766327, 0.08034857362508774, -0.222675621509552, -0.6872859001159668, 0.2974392771720886, 0.6067860126495361, 0.04053722694516182, -0.202833741903305...
deploying manually. You can use some of the automated stuff in visual studio, but your deployment will tend to be a little slower. After compiling your application, it will then delete every file in your destination website, and upload everying from scratch (uncompressed I think). Your whole site will be down while thi...
[ 0.320907324552536, 0.05931101366877556, 0.2137496918439865, -0.036396101117134094, -0.027603760361671448, 0.027215618640184402, 0.1495261937379837, 0.002676538424566388, -0.668749988079071, -0.7649601697921753, -0.27343979477882385, 0.8624569773674011, -0.41644614934921265, -0.114764675498...
so they throttle the allowed bandwidth for this way down. This is probably the performance issues you previously saw. If you can get by with it, I would use their hosted SQL tools for most of your work, but then use the management studio for anything it can't handle. For backing up your SQL server, if your host doesn'...
[ 0.42065665125846863, 0.29164960980415344, 0.00841868482530117, 0.2762632369995117, 0.09020490199327469, -0.2984854578971863, 0.2800012528896332, 0.19035060703754425, -0.3699166178703308, -0.44720935821533203, 0.19334955513477325, 0.650964081287384, -0.3052196502685547, 0.2275398224592209, ...
file of your database, but on the local database server. Most places will work with you on this, since many customers need this. For applying changes to your database, your best bet is to script all of the changes into one sql script and run it using the remote SQL management tool. These aren't hard to write, and ther...
[ 0.4087907373905182, -0.22761417925357819, 0.5721369385719299, 0.24533557891845703, 0.4106610119342804, -0.14084944128990173, 0.2460719347000122, 0.1111631989479065, -0.3584213852882385, -1.1906782388687134, 0.2260727882385254, 0.6636776924133301, -0.04522137716412544, 0.19123561680316925, ...
I am creating a large table dynamically using Javascript. I have realised the time taken to add a new row grows exponentially as the number of rows increase. I suspect the Page is getting refreshed in each loop per row (I am also adding input elements of type text on each cell) Is there a way to stop the page "refres...
[ 0.13864119350910187, 0.18704670667648315, 0.23710237443447113, -0.16142058372497559, 0.05536865070462227, 0.1549626886844635, 0.1415557712316513, 0.0076744514517486095, -0.3326966166496277, -0.76075279712677, 0.2792494595050812, 0.45107534527778625, -0.08692815899848938, 0.1456616967916488...
that document.getElementById() is one of the lines taking a lot of time to execute when the table is very large. I am using getElementById() to dynamically access an HTML input of type text loaded on each cell of the table. Any ideas on which DOM method I should use instead of getElementById()? Use the table DOM to lo...
[ -0.0467318631708622, -0.051913246512413025, 0.45987263321876526, -0.1851007342338562, 0.3109971284866333, 0.04611662030220032, 0.06250503659248352, -0.2865905165672302, -0.13180820643901825, -0.7919309735298157, -0.04286176338791847, 0.2748168110847473, -0.42295578122138977, 0.164874181151...
your cell contains an input element oneCell.innerHTML = 'test'; // simply write on the cell directly } ``` Hope that helps someone else... Cheers.
[ 0.2958357334136963, 0.42033374309539795, -0.03144581988453865, 0.04614357277750969, 0.10720512270927429, -0.0825921893119812, 0.25841468572616577, -0.16624045372009277, 0.23112617433071136, -0.8098971247673035, 0.0011203516041859984, 0.1810680329799652, -0.21849574148654938, -0.40020483732...
I have a rather large (many gigabytes) table of data in SQL Server that I wish to move to a table in another database on the same server. The tables are the same layout. What would be the most effecient way of going about doing this? This is a one off operation so no automation is required. Many thanks. If it is a ...
[ 0.25743791460990906, 0.14771340787410736, 0.10565560311079025, 0.06238918378949165, 0.24574342370033264, -0.2660943567752838, -0.09813382476568222, -0.17283786833286285, -0.22559058666229248, -0.676960825920105, 0.10889580845832825, 0.5500822067260742, -0.059356413781642914, 0.262711435556...
efficiency you can get anyway.
[ 0.4963514506816864, -0.12938985228538513, 0.013291911222040653, 0.3981325626373291, -0.2719070017337799, -0.19732552766799927, 0.01881011575460434, 0.22074992954730988, -0.14618486166000366, -0.7781755328178406, 0.11384623497724533, 0.9395706653594971, 0.06769701838493347, -0.2369948625564...
Say I have a file with any number of lines, say, 125. I want to get all the lines except the first n, say, 20. So, I want lines 21–125. Is there a way to do this with with `tail`/`head`, or some other tool? Try ``` tail -n +21 myfile.txt ```
[ 0.36821433901786804, 0.023172646760940552, 0.5992243885993958, -0.15284471213817596, -0.045482318848371506, 0.09479885548353195, 0.06837211549282074, -0.09311190992593765, -0.47298142313957214, -0.5968902707099915, 0.0707520842552185, 0.08124001324176788, -0.31689974665641785, -0.218713581...
I am using an Infragistics UltraGrid in a WinForms application. Which event is raised on "check change" of checkbox in Infragistics UltraGrid? The AfterUpdate event of the checkbox is what you'll want to use. If you're not able to trigger it, though, try adding this as well: ``` Private Sub YourGridcontrol_MouseDo...
[ -0.06163550168275833, -0.16095852851867676, 0.8518480062484741, -0.18558140099048615, 0.1806112378835678, -0.33009615540504456, 0.4112921357154846, -0.3736779987812042, 0.10475918650627136, -0.7018333077430725, -0.37645986676216125, 0.6984133124351501, -0.374907910823822, 0.161288276314735...
you want. UPDATE: Or, like Vincent suggested, doing the PerformAction on the CellChange event should work, too. The gist is the same.
[ 0.778946042060852, -0.20293693244457245, 0.13561007380485535, 0.2652360200881958, 0.25441449880599976, -0.12136225402355194, -0.053552985191345215, 0.1939583569765091, 0.11849140375852585, -0.3386295735836029, -0.04145394638180733, 0.7022238373756409, -0.03995347395539284, -0.4890491962432...
How do you parse a CSV file using gawk? Simply setting `FS=","` is not enough, as a quoted field with a comma inside will be treated as multiple fields. Example using `FS=","` which does not work: file contents: ``` one,two,"three, four",five "six, seven",eight,"nine" ``` gawk script: ``` BEGIN { FS="," } { for...
[ -0.17272646725177765, 0.4211624264717102, 0.3598537743091583, -0.2587534189224243, -0.06726144999265671, 0.35892972350120544, 0.4318963587284088, -0.4880068004131317, -0.2687441408634186, -0.26719462871551514, -0.24437516927719116, 0.5352255702018738, -0.3285525143146515, -0.08830998092889...
gawk to parse CSV if the CSV contains awkward data", where 'awkward' means things like commas in the CSV field data. The next question is "What other processing are you going to be doing", since that will influence what alternatives you use. I'd probably use Perl and the Text::CSV or Text::CSV\_XS modules to read and...
[ 0.014929945580661297, 0.11718831956386566, 0.22582504153251648, -0.2698042094707489, -0.331694096326828, 0.2091364562511444, 0.39001235365867615, 0.08370783179998398, -0.1874685287475586, -0.3318254351615906, 0.08226608484983444, 0.37762102484703064, -0.5957912802696228, -0.175809189677238...
I am building a Facebook App which is heavy on Javascript. For this I have multiple Javascript files. Since in Facebook development, the page is served over a tunnel, there is excessive latency added while requesting multiple javascript files. Is it possible to combine the contents of multiple javascript files at runti...
[ 0.5262008309364319, 0.09659279882907867, 0.29275813698768616, -0.005086648277938366, -0.05210676044225693, 0.20966209471225739, 0.12952172756195068, -0.33829572796821594, -0.37646251916885376, -0.8048258423805237, 0.2998131513595581, 0.38671213388442993, -0.2631312906742096, -0.18342566490...
you get to save all around. It throws in doc generation and JSLint checking as well, but that's just an added bonus.
[ 0.6371619701385498, -0.1597028523683548, 0.07371765375137329, 0.31808140873908997, 0.0479731522500515, -0.07032162696123123, -0.012926638126373291, 0.23774179816246033, -0.24872234463691711, -0.6762686967849731, 0.3084573745727539, 0.49234357476234436, 0.19644051790237427, -0.1835029721260...
I am using Visual Studio 2005 and StarTeam 2008 (cross-platform client and VS integration). At some point, I added an 'App.config' to a project. I notice now that this file will not check-in. 1. The 'StarTeam Pending Checkins' window in VS reports the file 'Not in View'. Selecting it for check in and clicking 'Check I...
[ 0.2553953230381012, -0.11075480282306671, 0.6985929608345032, -0.37849491834640503, 0.1503235548734665, 0.0438348688185215, 0.5730940103530884, -0.1376778483390808, -0.11161617934703827, -0.8176203370094299, -0.24004411697387695, 0.783652663230896, -0.42888933420181274, -0.0085997804999351...
file quickly appears with a 'Current' status. 3. Refreshing StarTeam from VS, I still see the file as 'Not in View'. I have tried forcing the check-in. I completely removed my working files and pulled the solution fresh in hopes that the StarTeam status ('Current') would apply in VS. By using reflection you can do tha...
[ 0.4186229407787323, -0.09169880300760269, 0.7681721448898315, -0.259067177772522, 0.2610057592391968, -0.31540998816490173, 0.23171621561050415, -0.23463471233844757, -0.06645465642213821, -0.40858739614486694, -0.23295634984970093, 0.9152101874351501, -0.2873404920101166, 0.33674967288970...
If you call a web service from Silverlight like this: ``` MyServiceClient serviceClient = new MyServiceClient(); void MyMethod() { serviceClient.GetDataCompleted += new EventHandler<GetDataCompletedEventArgs>(serviceClient_GetDataCompleted); serviceClient.GetDataAsync(); // HOW DO I WAIT/JOIN HERE ON THE ASYNC ...
[ 0.39823025465011597, -0.23440925776958466, 0.5428364872932434, -0.026385394856333733, -0.05002393200993538, -0.1765270084142685, 0.3816658556461334, -0.31138545274734497, -0.2875886857509613, -0.6461065411567688, -0.29816344380378723, 0.5972639322280884, -0.05238424614071846, 0.31280949711...
finish working } ``` and in your event handler code ``` void serviceClient_GetDataCompleted(...) { // Set values you need from service wait.Set(); } ```
[ 0.40257933735847473, -0.27106818556785583, 0.4577959477901459, -0.24041152000427246, 0.4473833739757538, -0.20290887355804443, 0.38951846957206726, -0.06072050333023071, -0.2656334340572357, -0.6728561520576477, -0.7067559957504272, 0.7458699941635132, -0.2677934169769287, 0.03466535732150...
Usually, I've seen it with forms, but I've found it helpful to group related sets of data (eg when you have multiple tables on a page, using a fieldset around each table or group of related tables to define a visible meaning and a group name (legend)). Is this abusing the fieldset tag to the point where, in my uses, it...
[ 0.4402502775192261, -0.0396440327167511, 0.23590028285980225, 0.4369496703147888, -0.10697498917579651, -0.5228685736656189, 0.1504613161087036, -0.054427020251750946, -0.3799732029438019, -0.36240819096565247, -0.2963605225086212, 0.255246102809906, -0.14484110474586487, 0.056751705706119...
experimentation. Potentially similar to definition list in use. I personally do not think that the "field" in fieldset is specific to form field. It just inherited relationship from it's use within the form tag. field is in reference to the grouping. Imagine going to your local parks and recreation to play softball ...
[ 0.699022650718689, -0.3008648455142975, -0.1448892503976822, 0.39078807830810547, -0.08954981714487076, -0.39331573247909546, 0.3664586842060089, -0.10557421296834946, -0.13736854493618011, -0.6493711471557617, 0.32375240325927734, 0.27515044808387756, -0.07340366393327713, 0.0959612652659...
The FIELDSET element allows authors to > group thematically related controls > and labels. Grouping controls makes it > easier for users to understand their > purpose while simultaneously > facilitating tabbing navigation for > visual user agents and speech > navigation for speech-oriented user > agents. The pr...
[ 0.028191348537802696, 0.26886555552482605, 0.25945210456848145, 0.2597062289714813, -0.1727319210767746, 0.05186992138624191, -0.09929855167865753, -0.4692862629890442, -0.10843069106340408, -0.5065128207206726, -0.2832145094871521, 0.48069530725479126, -0.35615280270576477, -0.26208215951...
eu lectus condimentum faucibus in et odio.</p> </fieldset> <fieldset> <legend>Poems</legend> <h2>20 pages of well written poems</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p>Cras nec diam eu lectus condimentum faucibus in et odio.</p> </fieldset> <fieldset> <legend>Horror</...
[ 0.04599219933152199, 0.5010497570037842, 0.06876689195632935, 0.20447967946529388, -0.42434611916542053, 0.6072489619255066, 0.2015385925769806, 0.002383959013968706, -0.09731581062078476, -0.5787232518196106, -0.18367470800876617, 0.03633376583456993, -0.3295370936393738, -0.2677368223667...
consectetur adipiscing elit.</p> <p>Cras nec diam eu lectus condimentum faucibus in et odio.</p> </fieldset> ```
[ 0.1998690664768219, 0.29330122470855713, 0.39518874883651733, -0.03966372832655907, 0.2094394862651825, 0.4299754202365875, -0.11610446870326996, 0.0624656081199646, -0.054378341883420944, -0.7884141802787781, -0.23918171226978302, 0.28580033779144287, -0.1085352897644043, -0.2628449797630...
I'm looking for articles, forum or blog posts dealing with SharePoint and thread safety? I'm quite sure there are some special aspects regarding thread safety that have to be considered when working with the SharePoint object model. Actually I didn't find many information about this, yet. So I'm looking forward to yo...
[ 0.4939742982387543, -0.011180509813129902, 0.309384286403656, 0.3689710795879364, -0.04702262952923775, -0.3818866014480591, 0.18349434435367584, 0.6133283972740173, -0.5821889042854309, -0.18166480958461761, 0.4507973790168762, 0.47828319668769836, 0.2577695846557617, 0.2640979588031769, ...
e.g. a SPWeb was altered and saved by calling the Update() method before you saved your changes (also calling the Update() method) even though you got your object first. In the following example the instruction `web11.Update()` will throw an exception telling you that the SPWeb represented through the object web12 wa...
[ 0.22282615303993225, -0.34142667055130005, 0.6305845975875854, -0.25103262066841125, 0.1639104038476944, -0.3535117506980896, 0.2649575173854828, -0.13818830251693726, -0.5474637746810913, -0.742874801158905, -0.40625983476638794, 0.24523963034152985, -0.5944201946258545, 0.140770271420478...
web12.Title = "web12"; web12.Update(); web11.Title = "web11"; web11.Update(); ``` So the thready-safety seems to be handled by the object model itself. Of course you have to handle the exceptions that might be thrown due to race conditions.
[ 0.35426387190818787, -0.08485793322324753, 0.1048450618982315, 0.30149686336517334, -0.07775804400444031, -0.5432565212249756, 0.26833948493003845, 0.05757350102066994, -0.3561192750930786, -0.22694805264472961, -0.1106710210442543, 0.47528207302093506, -0.23535829782485962, -0.06924831122...
For some reason the system admin changed my user name from XxXx to XxXx1 in the source control system. Then the problems started. I had to delete all local files and re-download them from source control just to open the project. And after I had rebooted the computer, I can't do much to my files. Whenever I try to undo...
[ 0.1485297977924347, 0.44981977343559265, 0.2040819674730301, -0.2429967224597931, 0.018573768436908722, 0.17576928436756134, 0.6219481229782104, 0.5355450510978699, -0.1252203732728958, -0.6867900490760803, -0.08999426662921906, 0.3981773853302002, -0.23729927837848663, 0.6801811456680298,...
enter it when starting VS2008. Maybe through Explorer (I think I used it to browse to the tfs server and saved the user name and password). Any tips? After giving up on everything else, I deleted the local workspace and created a new one. Now everything works fine.
[ 0.4474479556083679, -0.11881677061319351, 0.6400262117385864, 0.07436277717351913, -0.03906740993261337, -0.2751315236091614, 0.5165560841560364, 0.5084214806556702, -0.176532581448555, -0.7501241564750671, 0.2627251148223877, 0.43706873059272766, -0.0951261818408966, 0.031063959002494812,...
I've got an array of `char*` in a file. The company I work for stores data in flat files.. Sometimes the data is sorted, but sometimes it's not. I'd like to sort the data in the files. Now I could write the code to do this, from scratch. Is there an easier way? Of course an in-place sort would be the best option....
[ 0.4011130928993225, 0.44744375348091125, -0.14249946177005768, 0.0124882273375988, -0.012182864360511303, 0.37670645117759705, -0.05343203619122505, -0.14527949690818787, -0.40485259890556335, -0.5041786432266235, 0.0051277633756399155, 0.28875961899757385, -0.23565611243247986, 0.15063591...
fixed lengt ``` This would represent three records of length 28. The app knows the length. Each record ends with CRLF (`\r\n`), though it shouldn't matter for this sort. ``` template<size_t length> int less(const char* left, const char* right) { return memcmp(left, right, length) < 0; } std::sort(array, array + ...
[ 0.15811769664287567, 0.11038318276405334, 0.8859021663665771, -0.1799831986427307, 0.11090923845767975, 0.2949339747428894, -0.06551891565322876, -0.3340720534324646, -0.5314814448356628, -0.2181536853313446, -0.10860772430896759, 0.7055580019950867, -0.5095815062522888, 0.0490469001233577...
I heard a lot about makefiles and how they simplify the compilation process. I'm using VS2008. Can somebody please suggest some online references or books where I can find out more about how to deal with them? A UNIX guy probably told you that. :) You can use makefiles in VS, but when you do it bypasses all the built-...
[ 0.6100232601165771, -0.19236209988594055, -0.020501013845205307, 0.21251170337200165, 0.09124816954135895, -0.12239813059568405, 0.3325970768928528, -0.127468079328537, -0.20819130539894104, -0.8965702056884766, 0.16966994106769562, 0.7173562049865723, -0.29821062088012695, 0.0465036928653...
I have an Air application with a main window. I would like to have a new window fly out from the side of the main window when the user clicks on a button in the main window. The window that appears needs to display information based on value passed from the main form. How can I achieve this with Flex Builder 3? Target...
[ 0.6221619844436646, 0.1404181569814682, 0.4408087134361267, -0.06072098761796951, -0.27900078892707825, -0.13947907090187073, -0.023704756051301956, -0.18809399008750916, -0.027164971455931664, -0.8636247515678406, -0.20668207108974457, 0.5137344598770142, -0.5996963381767273, -0.177021831...
some optimizations with calling conventions if the function is static since it knowns no other source file needs to know how to call it. This only really applies to c because as others have noted, c++ has namespaces to address this issue.
[ -0.18087491393089294, -0.019438810646533966, 0.18779413402080536, 0.12551535665988922, -0.1898719072341919, -0.15384891629219055, 0.022368542850017548, 0.07591434568166733, -0.3183803856372833, -0.32820695638656616, -0.2922610938549042, 0.6156207323074341, -0.44135093688964844, -0.04414896...
I have written a program in C to parse large XML files and then create files with insert statements. Some other process would ingest the files into a MySQL database. This data will serve as a indexing service so that users can find documents easily. I have chosen InnoDB for the ability of row-level locking. The C pro...
[ 0.10475723445415497, 0.46707504987716675, 0.12526172399520874, -0.005021910648792982, -0.07444765418767929, -0.12470487505197525, 0.2536728084087372, -0.20654845237731934, -0.04479797184467316, -0.49922582507133484, 0.033406078815460205, 0.6293157339096069, -0.27852827310562134, 0.24815952...
a separate server. Is it worth moving the files over to that server to speed up inserts? EDIT: This table won't really be updated, but rows will be deleted. * Use the mysqlimport tool or the LOAD DATA INFILE command. * Temporarily disable indices that you don't need for data integrity
[ 0.23486274480819702, -0.06362222880125046, 0.44081300497055054, 0.29416072368621826, 0.1048777624964714, -0.3072681128978729, 0.30186352133750916, 0.06670799851417542, -0.26163527369499207, -0.6298824548721313, -0.08737024664878845, 0.6052017211914062, -0.39467620849609375, -0.001846569357...
If you know the Index, Value or Text. also if you don't have an ID for a direct reference. [This](https://stackoverflow.com/questions/149573/check-if-option-is-selected-with-jquery-if-not-select-a-default#149820), [this](https://stackoverflow.com/questions/196684/jquery-get-select-option-text#196687) and [this](https:...
[ -0.45061323046684265, -0.3422650396823883, 0.6823779940605164, 0.007518689148128033, 0.21313849091529846, 0.06836967170238495, -0.13879655301570892, -0.32702741026878357, -0.20366181433200836, -0.488038033246994, -0.7617045044898987, 0.6154165267944336, -0.2658296525478363, -0.285714685916...
'selected') ``` **EDIT2**: after Ryan's comment. A match on "Selection 10" might be unwanted. I found no [selector](http://api.jquery.com/category/selectors/) to match the full text, but a [filter](http://api.jquery.com/filter/) works: ``` $('.selDiv option') .filter(function(i, e) { return $(e).text() == "Sele...
[ -0.231742724776268, -0.290541410446167, 0.1677337884902954, -0.24329489469528198, -0.1772262454032898, 0.2084721326828003, 0.1970652937889099, -0.36205819249153137, -0.0894692912697792, -0.8382233381271362, -0.37121304869651794, 0.48269930481910706, -0.4101529121398926, -0.0255249701440334...
Every example I've seen of CGI/Perl basically a bunch of print statements containing HTML, and this doesn't seem like the best way to write a CGI app. Is there a better way to do this? Thanks. EDIT: I've decided to use CGI::Application and HTML::Template, and use the following tutorial: [<http://docs.google.com/View?d...
[ 0.4883021414279938, 0.15372611582279205, 0.2644622325897217, 0.2614627480506897, -0.5192173719406128, -0.1284431368112564, 0.4589717984199524, -0.24113400280475616, -0.3277256488800049, -0.32749947905540466, -0.11166016012430191, 0.30061355233192444, 0.10936368256807327, -0.088520258665084...
I have a class which constructor takes a [Jakarta enums](http://commons.apache.org/lang/api-2.3/org/apache/commons/lang/enums/Enum.html). I'm trying to find how I can easily inject it via an [Spring](http://www.springframework.org/) XML aplicationContext. For example : The enum : ``` public class MyEnum extends org....
[ 0.05493620038032532, -0.08835163712501526, 0.31963029503822327, -0.05472183972597122, 0.0350862592458725, 0.11183887720108032, 0.06085909530520439, -0.24323369562625885, 0.06114453449845314, -0.5201314687728882, -0.37372055649757385, 0.1015419140458107, -0.2485632598400116, 0.4425027370452...
final MyEnum status; public MyService(MyEnum status) { this.status = status; } } ``` The application context : ``` <bean id="myService" class="MyService"> <constructor-arg index="0" value="MyFirstValue" /> </bean> ``` Of course, with this I have a `no matching editors or conversion strategy fou...
[ -0.2965615391731262, 0.016632365062832832, 0.41523075103759766, -0.04359995573759079, -0.0964294821023941, 0.15071982145309448, -0.12196004390716553, -0.2642345130443573, -0.20175057649612427, -0.44869372248649597, -0.2586587071418762, 0.31136956810951233, -0.01791444793343544, 0.157885074...
index="0"> <util:constant static-field="MyEnum.MY_FIRST_VALUE"/> </constructor-arg> </bean> ``` The definition and usage of the tag (including the XSD def) is found [here](http://static.springframework.org/spring/docs/2.5.x/reference/xsd-config.html#xsd-config-body-schemas-util).
[ 0.15899257361888885, -0.04514550045132637, 0.9997532367706299, 0.085878886282444, 0.02667076326906681, -0.18078207969665527, -0.31022074818611145, -0.3391631543636322, -0.3243359327316284, -0.4268149733543396, -0.29983875155448914, 0.41648533940315247, -0.16774466633796692, -0.066488228738...
Given a collection of user specified tags how do I determine which ones **are not** in the tags table with 1 SQL Statement? Assuming a table schema `tags (id, tag)` and I'm using mysql, if there's an optimization I'm unaware of. thanks ``` SELECT Tag FROM UserSpecifiedTags LEFT OUTER JOIN AllTags ON UserSpecif...
[ 0.2632465660572052, 0.10432122647762299, 0.33885300159454346, 0.043140146881341934, -0.03466074541211128, -0.12723861634731293, 0.2101631909608841, -0.46488767862319946, -0.140896737575531, -0.6667895913124084, -0.1630404144525528, 0.4763333797454834, -0.3540703356266022, -0.15241432189941...
I am trying to implement performance testing on ActiveMQ, so have setup a basic producer and consumer to send and receive messages across a queue. I have created a producer with no problems, getting it to write a specific number of messages to the queue: ``` for(int i = 0; i < numberOfMessages; i++){ ...
[ 0.3460024893283844, -0.268919974565506, 0.2514299154281616, -0.2588934600353241, -0.12333306670188904, 0.3500383496284485, 0.3460470736026764, -0.24907132983207703, 0.04377881810069084, -0.6385205388069153, 0.13126607239246368, 0.32915276288986206, -0.43495070934295654, 0.2681961953639984,...
produceMessage(message); } catch (Exception e) { logger.error("Caught exception while sending message", e); } } ``` This
[ -0.040831804275512695, -0.11458571255207062, 0.012454618699848652, -0.34263643622398376, 0.040539465844631195, -0.05287779122591019, 0.5892661213874817, -0.15196794271469116, -0.11454463005065918, -0.5008290410041809, -0.3046374022960663, 0.47659409046173096, -0.5530197024345398, 0.1712678...
continues to completion with no problems and I have confirmed this with checks on the admin website, that have the correct number of messages pending. The problem occurs when I try to receive the messages from the queue. Using a simple consumer to read from the queue, it will read a various number of messages from the...
[ 0.3043570816516876, 0.26781919598579407, 0.7418389320373535, -0.26840895414352417, 0.10972476005554199, 0.3665279150009155, 0.549091637134552, 0.28289365768432617, -0.3571949899196625, -0.4788251519203186, 0.14936862885951996, 0.536372721195221, 0.05391116067767143, 0.3507331609725952, 0...
receive the messages: ``` Message message = jmsTemplate.receive(); ``` and it works for some messages(about 20-30) but then just locks. It was suggested to me that some of the characters in the message may be an escape character (I was using a random string of varying length, due to this just being a performance tes...
[ -0.06423591822385788, -0.1507595032453537, 0.6810495853424072, -0.3852786421775818, 0.029171116650104523, 0.24409516155719757, 0.41519248485565186, -0.28618618845939636, -0.3053203523159027, -0.5417527556419373, -0.1552286446094513, 0.27046942710876465, -0.4076821506023407, 0.0227080732583...
on my localhost. Not many views on this yet, but for future reference if anyone has the same problem, I have found the solution. The configuration for activeMQ limits the amount of memory used by the senders and receivers before slowing them down, the default values given to me were: ``` <systemUsage> <sys...
[ -0.4086952209472656, -0.3211980164051056, 0.6287250518798828, -0.22220857441425323, 0.14281603693962097, 0.19027794897556305, 0.3656269609928131, 0.3100278377532959, -0.36459892988204956, -0.8379746675491333, -0.15654735267162323, 0.6881265640258789, -0.12944644689559937, 0.072338514029979...
</memoryUsage> <storeUsage> <storeUsage limit="1 gb" name="foo"/> </storeUsage> <tempUsage>
[ -0.4883744716644287, 0.09903474897146225, -0.11938919126987457, -0.22798995673656464, 0.3679138123989105, 0.4313933551311493, 0.0794898122549057, 0.22124335169792175, -0.48279568552970886, -0.2541842460632324, -0.3866826593875885, 0.4149269759654999, -0.1576615571975708, 0.0682244822382927...
<tempUsage limit="100 mb"/> </tempUsage> </systemUsage> </systemUsage> ``` I removed this configuration completely and now it works a dream. I'm carrying out performance testing, so you may want to put your own constraints in, but this was definitely the cause of my problems!
[ -0.09640026092529297, 0.05496013164520264, 0.5415121912956238, 0.0663316547870636, 0.332483172416687, -0.0984688475728035, 0.4512951672077179, 0.21000832319259644, -0.39066725969314575, -0.7207003235816956, -0.1310882568359375, 0.5310664772987366, -0.23956350982189178, 0.2098427414894104, ...
Can I export multiple calendar events into a single iCalendar file? You simply make an iCalendar file with multiple VEVENT sections. For example: ``` BEGIN:VCALENDAR BEGIN:VEVENT DESCRIPTION: DTEND:20071202T220000Z DTSTAMP:20081124T220920Z DTSTART:20071202T200000Z LOCATION:Wherever STATUS:CONFIRMED SUMMARY:An event UI...
[ 0.09993482381105423, -0.12741026282310486, 0.5224649906158447, 0.161930114030838, 0.09622935205698013, 0.039191897958517075, 0.21296843886375427, 0.28242990374565125, -0.5650767683982849, -0.5397406816482544, -0.0970933586359024, 0.2987035810947418, 0.0675048902630806, 0.22901029884815216,...
If you have a situation where you need to know where a boolean value wasn't set (for example if that unset value should inherit from a parent value) the Java boolean primitive (and the equivalent in other languages) is clearly not adequate. What's the best practice to achieve this? Define a new simple class that is ca...
[ 0.15754620730876923, 0.11369972676038742, -0.22470656037330627, -0.03174065798521042, -0.11934026330709457, -0.0518169142305851, 0.47656989097595215, -0.4268561601638794, 0.04509350657463074, -0.42218372225761414, -0.05526576563715935, 0.3808707296848297, -0.36147651076316833, -0.008595785...
better and faster, since no boxing is required: ``` public enum ThreeState { TRUE, FALSE, TRALSE }; ``` There is the advantage of the first that users of your class doesn't need to care about your three-state boolean. They can still pass `true` and `false`. If you don't like the `null`, since it's tellin...
[ -0.19093364477157593, 0.025174351409077644, 0.01691008172929287, 0.008410577662289143, -0.4738944470882416, -0.14004720747470856, 0.5391157865524292, -0.23612922430038452, -0.23487801849842072, -0.6208468079566956, -0.13067211210727692, 0.6066783666610718, -0.12956659495830536, -0.06806889...
> **Possible Duplicate:** > > [Split string in SQL](https://stackoverflow.com/questions/2647/split-string-in-sql) I have seen [a couple of questions related to string concatenation](https://stackoverflow.com/questions/tagged/concatenation+sql) in SQL. I wonder how would you approach the opposite problem: splitting ...
[ 0.006397795397788286, -0.12255232781171799, 0.011493372730910778, 0.16257832944393158, -0.024674519896507263, 0.03369484469294548, 0.05672638490796089, -0.3675054609775543, -0.5049589276313782, -0.47588175535202026, -0.12345127761363983, 0.34083613753318787, -0.31142809987068176, -0.091279...
Server 2005 and above. For earlier version of SQL Server the solution [provided by miies](https://stackoverflow.com/questions/314824/t-sql-opposite-to-string-concatenation-how-to-split-string-into-multiple-records#314833) can be used. For working with text data type [wcm answer](https://stackoverflow.com/questions/3...
[ -0.32130151987075806, -0.2660762369632721, 0.5749205946922302, -0.16877789795398712, -0.5727765560150146, 0.022756589576601982, 0.17457669973373413, -0.43143633008003235, -0.3793067932128906, -0.15724994242191315, -0.047674451023340225, 0.20887769758701324, -0.3320520222187042, 0.149307593...
FROM Pieces WHERE stop > 0 ) SELECT pn, SUBSTRING(@s, start, CASE WHEN stop > 0 THEN stop-start ELSE 512 END) AS s FROM Pieces ) ```
[ -0.21843144297599792, -0.3349785804748535, 0.30877789855003357, -0.18784739077091217, -0.19407764077186584, 0.29505133628845215, 0.2686537206172943, -0.6019505262374878, -0.17103567719459534, -0.5754878520965576, -0.6899731755256653, 0.11905886232852936, -0.255907267332077, 0.0663339868187...
Here's a simple (hopefully) L10N question: Do all locales want this format: *Sunday, Nov 23, 2008* with the weekday before the date, or do some locales want it after the date like this? *Nov 23, 2008, Sunday* Don't assume that. I can customize my setting in XP to : **T. MMMM JJJJ,TTTTT** , which is: **24. Novem...
[ 0.08076392114162445, -0.11870461702346802, 0.7917487025260925, 0.20688635110855103, 0.034736815840005875, -0.09890007227659225, 0.4103696644306183, 0.5069290399551392, -0.5398287773132324, -0.5910558700561523, -0.03348243609070778, 0.47448092699050903, 0.1839485913515091, 0.018478490412235...
I have a string ``` var s:String = "This is a line \n This is another line."; this.txtHolder.text = s; //.text has \n, not a new line ``` and i want to put it into a text area, but the new line character is ignored. How can i ensure that the text breaks where i want it to when its assigned? On flex, while coding `\n...
[ 0.29975491762161255, -0.05162682384252548, 0.4945257306098938, -0.20842541754245758, 0.049032073467969894, -0.048490848392248154, 0.39991772174835205, -0.25349798798561096, -0.14059054851531982, -0.6776798963546753, -0.3055330514907837, 0.13957256078720093, -0.407479852437973, 0.2618309259...
Learning a little about T-SQL, and thought an interesting exercise would be to generate a Mandelbrot set with it. Turns out someone already has (and recently, it appears). I'll let someone else post it as an answer, but I'm curious what optimizations can be made. Alternately, what would you do to make the code more r...
[ 0.4256150424480438, 0.3097119927406311, 0.0692988857626915, 0.18561840057373047, -0.12133955210447311, 0.03349168971180916, 0.20738041400909424, -0.18973693251609802, -0.09266280382871628, -0.6201597452163696, -0.11530805379152298, 0.3406968414783478, -0.20652222633361816, 0.03193518519401...
float, @Res float, @MaxIterations Integer = 500 As Set NoCount On Declare @Grid Table ( X float Not Null, Y float Not Null, InSet Bit Primary Key (X, Y)) Declare @Xo float, @Yo float, @Abs float Declare @PtX Float, @PtY Float Declare @Iteration Integer Set @Iteration = 0 Select @Xo = @Left, @Yo = @Bot...
[ 0.20271435379981995, -0.27100032567977905, 0.4897424578666687, -0.012337343767285347, 0.30559682846069336, 0.677410900592804, 0.02227289415895939, -0.5573342442512512, -0.025004345923662186, -0.3611587584018707, 0.05706549063324928, 0.2768975496292114, -0.041124336421489716, 0.169644951820...
And (Square(@PtX) + Square(@PtY)) < 4.0 Begin Select @PtX = Square(@PtX) - Square(@PtY) + @Xo, @PtY = 2* @PtX * @PtY + @Yo Select @Iteration, @PtX, @PtY Set @Iteration = @Iteration + 1 End
[ 0.07628610730171204, -0.24024714529514313, 0.49871954321861267, -0.21442365646362305, -0.05332610383629799, 0.44012102484703064, -0.02197115868330002, -0.7064864039421082, -0.14531628787517548, -0.34056079387664795, 0.07930716872215271, -0.048058316111564636, -0.17870217561721802, 0.113733...
Insert @Grid(X, Y, InSet) Values(@Xo, @Yo, Case When @Iteration < @MaxIterations Then 1 Else 0 End) Set @Xo = @Xo + @res Set @Iteration = 0 End Select @Xo = @Left,
[ 0.10420947521924973, -0.1754923164844513, 0.3861646056175232, 0.03850831091403961, 0.2577042281627655, 0.5679112672805786, -0.15079617500305176, -0.3796933591365814, 0.10078524798154831, -0.45696786046028137, 0.09916312247514725, 0.18269528448581696, -0.22595727443695068, 0.129555538296699...
@Yo = @Yo + @Res End Select * From @Grid ```
[ 0.3933832347393036, 0.15336653590202332, 0.138205423951149, -0.3091629445552826, -0.023540392518043518, 0.11586804687976837, 0.2501317262649536, -0.12967325747013092, -0.061742380261421204, -0.5541036128997803, -0.08739949017763138, 0.362890362739563, -0.14556171000003815, 0.48329040408134...
Are the formulas represented in a [syntax tree](http://en.wikipedia.org/wiki/Abstract_syntax_tree) then recalculated using a design pattern like the Visitor pattern? How would you go about reproducing the recalculation process in code? Probably, as you say, one guess is that Excel creates a bunch of ASTs, one for each ...
[ -0.13185839354991913, -0.16663026809692383, 0.08922451734542847, 0.3167877793312073, -0.006593550089746714, 0.11284030973911285, -0.045164212584495544, -0.14557838439941406, -0.37581056356430054, -0.42532554268836975, -0.10741858184337616, 0.10245997458696365, -0.2104617953300476, -0.23798...
recalculate a sheet in parallel.
[ 0.21568183600902557, 0.2394285351037979, 0.36651068925857544, 0.19154275953769684, -0.16132134199142456, 0.25148454308509827, -0.138043612241745, -0.07521799951791763, -0.4696884751319885, -0.6655915379524231, -0.003173388773575425, 0.006170609034597874, -0.16604255139827728, -0.0508179552...
I have a column with a "DEFAULT" constraint. I'd like to create a script that drops that column. The problem is that it returns this error: ``` Msg 5074, Level 16, State 1, Line 1 The object 'DF__PeriodSce__IsClo__4BCC3ABA' is dependent on column 'IsClosed'. Msg 4922, Level 16, State 9, Line 1 ALTER TABLE DROP CO...
[ -0.47293993830680847, 0.21784570813179016, 0.5058194398880005, -0.13581907749176025, 0.25605687499046326, 0.17355480790138245, 0.5001941919326782, -0.2107488065958023, -0.39300650358200073, -0.3640243113040924, -0.32305535674095154, 0.5524853467941284, -0.612456738948822, -0.01472526136785...
constraint's name has been randomly generated, I can't drop it by name. --- **Update** : The constraint type is "DEFAULT". I saw the solutions that you all proposed but I find them all really "dirty"... Don't you think? I don't know if it's with Oracle or MySQL but it's possible to do something like: ``` DROP CO...
[ -0.10247781872749329, 0.03130475431680679, 0.24871353805065155, 0.1592828333377838, -0.02364375814795494, -0.04326947033405304, 0.08953285217285156, 0.09552595019340515, -0.3480989336967468, -0.5560230016708374, 0.1563008725643158, 0.6522727608680725, -0.47719377279281616, 0.07929106056690...
col.name, col.column_id, col.default_object_id, OBJECTPROPERTY(col.default_object_id, N'IsDefaultCnst') as is_defcnst, dobj.name as def_name from sys.columns col left outer join sys.objects dobj on dobj.object_id = col.default_object_id and dobj.type = 'D' where col.object_id = object...
[ -0.2909420430660248, 0.19448256492614746, 0.210209921002388, -0.22962065041065216, 0.017747458070516586, 0.38518399000167847, 0.22293607890605927, -0.44610974192619324, -0.09840871393680573, -0.5596976280212402, -0.5377320647239685, 0.26461294293403625, -0.27324149012565613, 0.240527138113...
Question for anyone who's used Mechanical Turk: Is it possible to take an HTML template created on Mechanical Turk's website, and then create more HITs based on that template from the command line tools or API? --- According to the API docs, it's not possible to create new HTML and add it...from the API. However, wh...
[ 0.46444591879844666, 0.3632596731185913, 0.1324639916419983, 0.14078067243099213, -0.1973075121641159, 0.28571075201034546, -0.2932138741016388, -0.0689830482006073, -0.11179648339748383, -0.14774516224861145, 0.28154072165489197, 0.4951019287109375, -0.16468918323516846, 0.054717585444450...
already. But I haven't seen a way in the documentation to do so. --- The main reason I want the HTML is so I can apply styles that I can't apply by using a questions file. If there was some sort of "rich" question file, that might solve the problem. I know this is an old question, but the API has been updated to allo...
[ 0.5602949857711792, 0.08669621497392654, 0.6238020658493042, 0.0727785974740982, -0.020198751240968704, -0.07827142626047134, 0.0572020560503006, -0.08204814791679382, -0.036401692777872086, -0.5548766851425171, 0.2768443524837494, 0.6691133379936218, 0.12165962159633636, 0.180388584733009...
I'm building a JSF+Facelets web app, one piece of which is a method that scans a directory every so often and indexes any changes. This method is part of a bean which is in application scope. I have built a subclass of TimerTask to call the method every X milliseconds. My problem is getting the bean initialized. I can ...
[ 0.3133794367313385, 0.34431156516075134, 0.5960058569908142, -0.1572001427412033, -0.021584544330835342, 0.012548969127237797, 0.23742908239364624, -0.20508481562137604, -0.12016677856445312, -0.9649327993392944, 0.08293704688549042, 0.34689614176750183, -0.45697763562202454, -0.2830499410...
it doesn't require a page visit to start the indexing method. Google has shown a few people that want this functionality, but no real solutions outside of integrating with Spring, which I really don't want to do just to get this piece of functionality. I've tried playing around with both the servlets that have "load-o...
[ 0.0765259712934494, 0.01592697948217392, 0.39057818055152893, 0.11619006097316742, -0.17600564658641815, -0.15582339465618134, -0.0047811721451580524, 0.019502026960253716, -0.3547150492668152, -0.6559483408927917, 0.08844950050115585, 0.2727128565311432, -0.22677507996559143, -0.170554473...
web app startup? If your code calls [FacesContext](http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/javax/faces/context/FacesContext.html), it will not work outside a thread associated with a JSF request lifecycle. A FacesContext object is created for every request and disposed at the end of the request. The ...
[ 0.2820434272289276, -0.002060041530057788, 0.9203957319259644, -0.0981149673461914, -0.03869760036468506, 0.007976116612553596, 0.18297427892684937, -0.14795824885368347, -0.37490251660346985, -0.8811582326889038, -0.4068426489830017, 0.36171457171440125, -0.5221765041351318, -0.0451135300...
make sure that any calls to the FacesContext are kept in the JSP's request thread. web.xml: ``` <listener> <listener-class>appobj.MyApplicationContextListener</listener-class> </listener> ``` Implementation: ``` public class MyApplicationContextListener implements ServletContextListener { private static f...
[ -0.35383251309394836, 0.21991392970085144, 0.799594521522522, -0.45038458704948425, -0.07243649661540985, 0.224371999502182, 0.4354884624481201, -0.5274812579154968, -0.17186398804187775, -0.5822541117668152, -0.4868050515651703, 0.6756933331489563, -0.3776577413082123, 0.158727765083313, ...
FOO); try { event.getServletContext().removeAttribute(FOO); } finally { myObject.dispose(); } } } ``` You can address this object via the JSF application scope (or just directly if no other variable exists with the same name): ``` <f:view> <h:outputText value=...
[ -0.19314922392368317, -0.00879910122603178, 0.7510555982589722, -0.3569408059120178, 0.049728721380233765, -0.1309334635734558, 0.2394554764032364, -0.19982802867889404, -0.15842030942440033, -0.6175484657287598, -0.5005592703819275, 0.549037516117096, -0.4765230715274811, -0.0950220376253...
managed bean, you can get it from the [ExternalContext](http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/index.html): ``` FacesContext.getCurrentInstance() .getExternalContext().getApplicationMap().get("foo"); ```
[ -0.004959618207067251, 0.15925775468349457, 0.4052383601665497, -0.2587825357913971, -0.0037750236224383116, 0.10495954751968384, 0.1954970508813858, 0.3907482922077179, -0.5467716455459595, -0.6655482053756714, -0.13011141121387482, 0.4455711841583252, -0.5028432011604309, 0.0291630737483...
I am a junior programmer. Since my supervisor told me to sit in with the client, I joined. I saw the unsatisfied face of the client despite the successful (from my programmer's perspective) delivery of the project! **Client:** You could have included this! **Us:** Was not in the specification! **Client:** Common...
[ 0.7428615689277649, 0.246894970536232, 0.10275627672672272, -0.09133762121200562, -0.07072600722312927, -0.20714160799980164, -0.08386171609163284, -0.10152016580104828, -0.10474637895822525, -0.40407904982566833, -0.008064668625593185, 0.8019218444824219, 0.3348127603530884, 0.00035531233...
should be in, i.e. it was implied. * The developer thinks that unspecified stuff should not be in. For future specs that you have, you should have a catch all statement, that explicitly states that if something is not specified in this document, it can be done after the original specification is done at an additional ...
[ 0.6490910649299622, -0.07928153872489929, 0.30213117599487305, -0.06442190706729889, 0.21036715805530548, -0.5953496098518372, 0.1583137810230255, -0.07277187705039978, 0.054968930780887604, -0.21662379801273346, -0.20202961564064026, 0.6185385584831238, -0.20259618759155273, -0.0016469798...
out explicitly. I.e. you will have to do a little more work, but it is worth it in return for the catch all explicitly spec'ed agreement your client will enter into. **Bad spec?** Was it necessarily a bad spec? No. It is impossible to mention everything your clients may expect, so it is critical to have this cat...
[ 1.0181058645248413, 0.16562320291996002, 0.13814719021320343, -0.024646321311593056, -0.22212952375411987, -0.3716227114200592, -0.12572816014289856, -0.3119445741176605, -0.040979307144880295, -0.19084636867046356, -0.10275871306657791, 0.5880201458930969, -0.2669650614261627, 0.088401906...